@sidequest-007/dsh-atlas 1.0.9 → 1.0.10

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.
@@ -8,7 +8,7 @@
8
8
  /** Stable `<style>` element id (idempotent injection across HMR re-runs). */
9
9
  export declare const STYLE_ID = "dsh-atlas-style";
10
10
  /** The dock's injected stylesheet text. */
11
- export declare const cssText = "\n.dsh_atFile_rail {\n box-sizing: border-box;\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 6px;\n width: calc(\n 100% -\n var(--dsh-composer-side-clearance) -\n var(--dsh-composer-side-clearance)\n );\n max-width: var(--dsh-composer-card-max-width);\n min-width: 0;\n margin: 0 auto;\n}\n.dsh_atFile_row {\n display: inline-flex;\n align-items: center;\n gap: 2px;\n min-width: 0;\n max-width: 100%;\n min-height: 36px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 14px;\n background: var(--dsw-alias-bg-layer-1);\n}\n.dsh_atFile_path {\n display: inline-flex;\n align-items: flex-end;\n gap: 6px;\n min-width: 0;\n max-width: 360px;\n height: 100%;\n padding: 0 6px 0 10px;\n border: 0;\n background: none;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 13px;\n line-height: 18px;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.dsh_atFile_path:hover {\n color: var(--dsw-alias-brand-primary);\n}\n.dsh_atFile_cost {\n flex: none;\n padding: 0 6px;\n color: var(--dsw-alias-label-secondary);\n font-size: 11px;\n line-height: 18px;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n.dsh_atFile_cost_warn {\n color: var(--dsw-alias-label-error, #ef4444);\n font-weight: 600;\n}\n.dsh_atFile_missing {\n flex: none;\n padding: 0 6px;\n color: var(--dsw-alias-label-error, #ef4444);\n font-size: 11px;\n line-height: 18px;\n white-space: nowrap;\n}\n.dsh_atFile_icon {\n flex: none;\n width: 14px;\n height: 14px;\n}\n.dsh_atFile_remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 20px;\n height: 20px;\n margin-right: 4px;\n border: 0;\n border-radius: 10px;\n background: none;\n color: var(--dsw-alias-label-dimmed);\n cursor: pointer;\n}\n.dsh_atFile_remove svg {\n width: 12px;\n height: 12px;\n}\n.dsh_atFile_remove:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n color: var(--dsw-alias-label-primary);\n}\n.dsh_atFile_section {\n display: flex;\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n}\n.dsh_atFile_title {\n margin: 0;\n color: var(--dsw-alias-label-primary);\n font-size: 18px;\n line-height: 26px;\n font-weight: 600;\n}\n.dsh_atFile_card {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n min-width: 0;\n padding: 14px 16px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 12px;\n background: var(--dsw-alias-bg-layer-1);\n cursor: pointer;\n}\n.dsh_atFile_checkbox {\n flex: none;\n width: 18px;\n height: 18px;\n margin: 2px 0 0;\n accent-color: var(--dsw-alias-brand-primary);\n cursor: pointer;\n}\n.dsh_atFile_cardText {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n.dsh_atFile_cardTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 22px;\n}\n.dsh_atFile_cardDesc {\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 20px;\n}\n.dsh_atFile_filter {\n display: flex;\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n padding-top: 4px;\n}\n.dsh_atFile_filterHeading {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 12px;\n min-width: 0;\n}\n.dsh_atFile_filterHeadingText {\n display: flex;\n flex: 1 1 280px;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n.dsh_atFile_filterTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n}\n.dsh_atFile_filterDesc,\n.dsh_atFile_filterHint,\n.dsh_atFile_workspaceField > span {\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 20px;\n}\n.dsh_atFile_scopeTabs {\n display: inline-flex;\n flex: 0 1 auto;\n min-width: 220px;\n padding: 3px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-1);\n}\n.dsh_atFile_scopeTab {\n flex: 1 1 0;\n min-width: 0;\n height: 30px;\n padding: 0 14px;\n border: 0;\n border-radius: 6px;\n background: none;\n color: var(--dsw-alias-label-secondary);\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n}\n.dsh_atFile_scopeTab:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n color: var(--dsw-alias-label-primary);\n}\n.dsh_atFile_scopeTab[aria-selected='true'] {\n background: var(--dsw-alias-button-ghost-active-fill);\n color: var(--dsw-alias-label-primary);\n font-weight: 600;\n}\n.dsh_atFile_workspaceField {\n display: flex;\n flex-direction: column;\n gap: 5px;\n min-width: 0;\n}\n.dsh_atFile_workspaceSelect,\n.dsh_atFile_filterInput {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n height: 36px;\n padding: 0 10px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n outline: none;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n}\n.dsh_atFile_workspaceSelect:focus,\n.dsh_atFile_filterInput:focus {\n border-color: var(--dsw-alias-brand-primary);\n}\n.dsh_atFile_workspaceSelect:disabled,\n.dsh_atFile_filterInput:disabled {\n opacity: 0.55;\n}\n.dsh_atFile_filterToolbar {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n min-width: 0;\n}\n.dsh_atFile_filterGroupTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n}\n.dsh_atFile_secondaryButton {\n flex: none;\n min-height: 30px;\n padding: 0 12px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 15px;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-secondary);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n cursor: pointer;\n}\n.dsh_atFile_secondaryButton:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n color: var(--dsw-alias-label-primary);\n}\n.dsh_atFile_secondaryButton:disabled,\n.dsh_atFile_filterRemove:disabled,\n.dsh_atFile_addButton:disabled {\n opacity: 0.45;\n cursor: default;\n}\n.dsh_atFile_filterList {\n min-width: 0;\n overflow: hidden;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-1);\n}\n.dsh_atFile_filterRow {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n min-width: 0;\n min-height: 40px;\n padding: 0 8px 0 12px;\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n}\n.dsh_atFile_filterRow:last-child {\n border-bottom: 0;\n}\n.dsh_atFile_filterName {\n min-width: 0;\n overflow: hidden;\n color: var(--dsw-alias-label-primary);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 13px;\n line-height: 20px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.dsh_atFile_ruleMain {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n flex: 1 1 auto;\n gap: 8px;\n min-width: 0;\n}\n.dsh_atFile_ruleBadge {\n flex: none;\n padding: 2px 6px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 4px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n.dsh_atFile_ruleMain .dsh_atFile_filterName {\n flex: 1 1 180px;\n}\n.dsh_atFile_filterRemove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 28px;\n height: 28px;\n border: 0;\n border-radius: 14px;\n background: none;\n color: var(--dsw-alias-label-tertiary);\n cursor: pointer;\n}\n.dsh_atFile_filterRemove:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover-danger);\n color: var(--dsw-alias-state-error-primary);\n}\n.dsh_atFile_filterRemove svg,\n.dsh_atFile_addButton svg {\n width: 15px;\n height: 15px;\n}\n.dsh_atFile_filterEmpty {\n padding: 16px 12px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 20px;\n text-align: center;\n}\n.dsh_atFile_filterAddRow {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n min-width: 0;\n}\n.dsh_atFile_ruleMode {\n display: inline-flex;\n align-self: flex-start;\n gap: 2px;\n padding: 3px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-1);\n}\n.dsh_atFile_ruleModeButton {\n min-width: 72px;\n height: 28px;\n padding: 0 10px;\n border: 0;\n border-radius: 5px;\n background: none;\n color: var(--dsw-alias-label-secondary);\n font: inherit;\n font-size: 12px;\n cursor: pointer;\n}\n.dsh_atFile_ruleModeButton[aria-pressed='true'] {\n background: var(--dsw-alias-button-ghost-active-fill);\n color: var(--dsw-alias-label-primary);\n font-weight: 600;\n}\n.dsh_atFile_caseToggle {\n display: inline-flex;\n align-items: center;\n align-self: flex-start;\n gap: 7px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n cursor: pointer;\n}\n.dsh_atFile_caseToggle input {\n width: 15px;\n height: 15px;\n margin: 0;\n accent-color: var(--dsw-alias-brand-primary);\n}\n.dsh_atFile_filterAddRow .dsh_atFile_filterInput {\n flex: 1 1 240px;\n width: auto;\n}\n.dsh_atFile_filterInput[aria-invalid='true'] {\n border-color: var(--dsw-alias-state-error-primary);\n}\n.dsh_atFile_addButton {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n flex: none;\n height: 36px;\n padding: 0 14px;\n border: 0;\n border-radius: 18px;\n background: var(--dsw-alias-button-primary-fill);\n color: var(--dsw-alias-label-primary-inverted);\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n}\n.dsh_atFile_filterError {\n color: var(--dsw-alias-state-error-primary);\n font-size: 13px;\n line-height: 20px;\n}\n.dsh_atFile_inherited {\n display: flex;\n flex-direction: column;\n gap: 7px;\n min-width: 0;\n padding-top: 4px;\n}\n.dsh_atFile_inheritedTitle {\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n line-height: 18px;\n}\n.dsh_atFile_inheritedList {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.dsh_atFile_inheritedList code {\n max-width: 100%;\n overflow: hidden;\n padding: 3px 8px;\n border-radius: 4px;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-secondary);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 12px;\n line-height: 18px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n@media (max-width: 560px) {\n .dsh_atFile_scopeTabs {\n width: 100%;\n }\n .dsh_atFile_addButton {\n flex: 1 1 auto;\n }\n}\n\n\n/* Maximize the @ mention menu height: the framework caps the listbox at 400px\n (its own design cap, itself already clamped to the space above the composer)\n inline; target only OUR menu (the atlas data-source marker is present on BOTH\n the pending loading row and the ready option rows, so the override holds from\n the first open and the width never jumps).\n\n The WIDTH is deliberately left alone. The framework lays the menu out as an\n absolutely positioned box with left:0 and right:0 inside the composer card's\n own overlay anchor, so it is exactly as wide as the card, which is itself\n capped by --dsh-composer-card-max-width. A content-sized width here (the\n previous behaviour) could push the popup past the composer instead \u2014 the\n plugin's UI must never leave the chat box. Long names wrap inside the card\n width instead (see the itemName rule below). */\n[role=\"listbox\"]:has([data-source=\"atlas\"]) {\n /* Fit as much of the list as the composer leaves room for: MentionNavigator\n measures the composer card's top edge into --dsh-atlas-menu-max on every\n menu change and on resize, so the cap follows the real available height (a\n multi-line draft shrinks it) instead of a fixed viewport guess. The\n fallback keeps the previous behaviour until the first measurement lands,\n and 760px stays the absolute ceiling. */\n max-height: min(760px, var(--dsh-atlas-menu-max, calc(100dvh - 100px))) !important;\n}\n/* The MENU SHELL's own cap is 400px, set inline by the framework. Our category is\n short by design (a bounded row budget), and the user asked the popup to use the\n space above the composer instead of cutting the list at 400px \u2014 so when our\n group is present the shell may grow to the same measured budget. An important\n rule outranks an inline style, and a taller cap never stretches a short list\n (the height stays content-driven). */\n[data-trigger-menu]:has([data-source=\"atlas\"]) {\n max-height: min(760px, var(--dsh-atlas-menu-max, calc(100dvh - 100px))) !important;\n}\n[id^=\"dsh-slash-option-atlas-\"] {\n /* Text and icon share the bottom edge so the label reads against the icon. */\n align-items: flex-end !important;\n gap: 10px !important;\n}\n[id^=\"dsh-slash-option-atlas-\"] [class*=\"itemIcon\"] {\n /* The icon slot grows with the bigger Tabler icons (36px skill included). */\n width: 32px !important;\n height: 32px !important;\n flex: none !important;\n}\n[id^=\"dsh-slash-option-atlas-\"] [class*=\"itemName\"] {\n /* The name NEVER shrinks to make room for the description: full width,\n wrapping only when the menu hits its max width. */\n max-width: none !important;\n flex: 0 0 auto !important;\n min-width: 0 !important;\n white-space: normal !important;\n overflow-wrap: anywhere !important;\n overflow: visible !important;\n text-overflow: clip !important;\n}\n[id^=\"dsh-slash-option-atlas-\"] [class*=\"itemDescription\"] {\n /* The description stays on ONE line with an ellipsis inside the remaining\n space \u2014 it can never spill into the name or the next row. */\n flex: 1 1 auto !important;\n min-width: 0 !important;\n white-space: nowrap !important;\n overflow: hidden !important;\n text-overflow: ellipsis !important;\n}\n\n\n/* Display-only side ad panel: beside the @ menu, same height, never in the\n list. z-index stays BELOW the menu's 100 so a residual overlap can never\n hide the candidate list (placement also keeps the panel outside the menu). */\n.dsh_atAll_ad {\n position: fixed;\n z-index: 90;\n width: 150px; /* overwritten inline: adapts to the ad's aspect */\n border-radius: 12px;\n overflow: hidden;\n pointer-events: none;\n background: linear-gradient(160deg, #0b1e33 0%, #12294a 55%, #1c3d6b 100%);\n border: 1px solid rgba(255, 255, 255, 0.12);\n box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);\n}\n.dsh_atAll_ad img {\n display: block;\n width: 100%;\n height: 100%;\n /* contain (never crop): the whole ad stays visible, letterboxed on the\n panel's gradient when the panel is taller than the image aspect. */\n object-fit: contain;\n}\n.dsh_atAll_adBanner {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 120px;\n padding: 12px;\n box-sizing: border-box;\n}\n.dsh_atAll_adWordmark {\n font-family: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;\n font-size: 22px;\n font-weight: 700;\n letter-spacing: 6px;\n color: rgba(255, 255, 255, 0.95);\n text-shadow: 0 2px 10px rgba(120, 180, 255, 0.45);\n}\n.dsh_atAll_adTag {\n font-size: 11px;\n letter-spacing: 2px;\n color: rgba(255, 255, 255, 0.55);\n}\n\n/* Sent-message reference chips are inert in this client build (its chat view\n calls projectUserText without the reference actions), so ReferenceLinks\n supplies the click and publishes the affordance itself: only a chip that\n bridge can actually open carries data-dsh-atlas-link. The styling is the\n framework's OWN link language \u2014 the tokens its wired chips use (the\n ui-primitives markdown fileMention rule): link-blue at rest, a dotted\n underline under the pointer. A build that wires the chips itself renders\n buttons, which this rule never matches. */\n[data-dsh-atlas-link] {\n color: var(--dsw-alias-link);\n font-weight: 500;\n text-decoration: none;\n cursor: pointer;\n}\n[data-dsh-atlas-link]:hover,\n[data-dsh-atlas-link]:focus {\n outline: none;\n text-decoration: underline dotted var(--dsw-alias-link);\n text-underline-offset: 3px;\n}\n/* A reference whose target is gone: the click learned it, so the chip stops\n looking like a link and reads as stale instead \u2014 the dock's own \u5DF2\u5931\u6548\n language, applied to a chip the plugin does not own. */\n[data-dsh-atlas-missing] {\n color: var(--dsw-alias-label-dimmed, inherit);\n text-decoration: line-through;\n cursor: default;\n}\n/* A composer reference chip: the framework styles its BODY with the chip blue and\n cursor:default, and that rule is a single class \u2014 the same specificity as the\n link rule above, so this one is spelled with the host ancestor to win outright\n (a chip that opens must not keep telling the pointer it is not clickable). An\n inert chip keeps the framework's own look and cursor untouched. */\n[data-composer-chip] [data-dsh-atlas-link] {\n color: var(--dsw-alias-link);\n cursor: pointer;\n}\n[data-composer-chip] [data-dsh-atlas-link]:hover {\n text-decoration: underline dotted var(--dsw-alias-link);\n text-underline-offset: 3px;\n}\n[data-composer-chip] [data-dsh-atlas-missing] {\n color: var(--dsw-alias-label-dimmed, inherit);\n text-decoration: line-through;\n cursor: default;\n}\n/* A draft reference is drawn as a link by the plugin itself: the framework\n colours only the head of a token it recognises (its matcher stops at the last\n separator or the first non-word character), and a hand-typed token it never\n recognised stays plain. DraftLinks paints the WHOLE token through the CSS\n Custom Highlight API \u2014 the one way to colour a text range without\n re-parenting a Lexical text span, whose updateDOM writes through\n firstChild.nodeValue. The colour is the framework's own reference colour (its\n composer-editor textRef rule), so a token it did colour reads unchanged. */\n::highlight(dsh-atlas-draft-ref) {\n color: var(--dsw-alias-state-business-primary);\n}\n/* A draft reference whose target the Host reports as gone: the dock's own \u5DF2\u5931\u6548\n language (dimmed and struck through), painted over the same range so a\n reference that cannot open still reads as a reference. It is never a link:\n nothing here touches the cursor, and the click gate refuses it. */\n::highlight(dsh-atlas-draft-missing) {\n color: var(--dsw-alias-label-dimmed, inherit);\n text-decoration: line-through;\n}\n/* Menu glyphs: this plugin's own icons, drawn over the icon slot the framework\n reserves on each of its rows (see MenuIcons). They live in their own fixed\n layer \u2014 nothing is inserted into a row the framework owns \u2014 and a slot is\n marked only while a glyph covers it, which is what hides the framework's own\n three-glyph set exactly there and nowhere else. */\n.dsh_atlas_menuIcon {\n position: fixed;\n z-index: 2147482500;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n pointer-events: none;\n}\n[data-dsh-atlas-menu-icon-host] > svg {\n display: none;\n}\n/* The folder tab: a directory, one level, walked in place. Rows are the sidebar's\n own density (they sit next to the files tree), the path is the only wide text\n and it ellipsizes rather than pushing the controls out of the header. */\n.dsh_atlas_folder {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n overflow-y: auto;\n font-size: 13px;\n color: var(--dsw-alias-label-primary);\n}\n.dsh_atlas_folderHead {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 6px 10px;\n border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.25));\n position: sticky;\n top: 0;\n background: var(--dsw-alias-bg-primary, transparent);\n}\n.dsh_atlas_folderUp,\n.dsh_atlas_folderOpen {\n flex: none;\n border: none;\n background: transparent;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n cursor: pointer;\n border-radius: 6px;\n padding: 2px 6px;\n font: inherit;\n}\n.dsh_atlas_folderUp:disabled {\n opacity: 0.4;\n cursor: default;\n}\n.dsh_atlas_folderUp:not(:disabled):hover,\n.dsh_atlas_folderOpen:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16));\n}\n.dsh_atlas_folderPath {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n direction: rtl;\n text-align: left;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 12px;\n}\n.dsh_atlas_folderNote {\n margin: 8px 10px;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-size: 12px;\n}\n.dsh_atlas_folderList {\n list-style: none;\n margin: 0;\n padding: 4px;\n}\n.dsh_atlas_folderRow {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 4px 6px;\n border: none;\n border-radius: 6px;\n /* A row stays plain until the pointer is on it. The theme paints generic\n buttons, and a list where every line carries a plate reads as a table rather\n than a tree (reported from a screenshot), so this one wins outright. */\n background: none !important;\n box-shadow: none !important;\n color: inherit;\n cursor: pointer;\n text-align: left;\n font: inherit;\n}\n.dsh_atlas_folderRow:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16)) !important;\n}\n.dsh_atlas_folderGlyph {\n display: inline-flex;\n flex: none;\n align-items: center;\n}\n.dsh_atlas_folderName {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n/* The folder chooser dialog: the product's browse backend wearing this plugin's\n face (the product's own dialog is a private child slot of the workspace picker,\n so a plugin cannot render it). */\n.dsh_atlas_pickerScrim {\n position: fixed;\n inset: 0;\n z-index: 2147482600;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.45);\n}\n.dsh_atlas_picker {\n display: flex;\n flex-direction: column;\n width: min(560px, 88vw);\n max-height: min(560px, 84vh);\n border-radius: 14px;\n border: 1px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.3));\n background: var(--dsw-specific-menu, var(--dsw-alias-bg-primary, #1b1f2a));\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n overflow: hidden;\n}\n.dsh_atlas_pickerHead {\n display: flex;\n flex-direction: column;\n gap: 6px;\n padding: 14px 16px 8px;\n}\n.dsh_atlas_pickerTitle {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n}\n.dsh_atlas_pickerPathRow {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.dsh_atlas_pickerPath {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 12px;\n}\n.dsh_atlas_pickerCrumbs {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n}\n.dsh_atlas_pickerCrumb {\n border: none;\n background: none !important;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n cursor: pointer;\n font: inherit;\n font-size: 12px;\n padding: 1px 4px;\n border-radius: 5px;\n}\n.dsh_atlas_pickerCrumb:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16)) !important;\n}\n.dsh_atlas_pickerList {\n list-style: none;\n margin: 0;\n padding: 4px 8px;\n overflow-y: auto;\n flex: 1 1 auto;\n min-height: 120px;\n}\n.dsh_atlas_pickerRow {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 5px 8px;\n border: none;\n border-radius: 7px;\n background: none !important;\n color: inherit;\n cursor: pointer;\n text-align: left;\n font: inherit;\n}\n.dsh_atlas_pickerRow:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16)) !important;\n}\n.dsh_atlas_pickerGlyph {\n display: inline-flex;\n flex: none;\n align-items: center;\n}\n.dsh_atlas_pickerName {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.dsh_atlas_pickerChevron {\n flex: none;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n}\n.dsh_atlas_pickerNote {\n margin: 6px 16px;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-size: 12px;\n}\n.dsh_atlas_pickerNewRow {\n display: flex;\n gap: 6px;\n padding: 0 16px 8px;\n}\n.dsh_atlas_pickerInput {\n flex: 1 1 auto;\n min-width: 0;\n padding: 5px 8px;\n border-radius: 7px;\n border: 1px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.35));\n background: transparent;\n color: inherit;\n font: inherit;\n}\n.dsh_atlas_pickerFoot {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 16px 14px;\n border-top: 1px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.25));\n}\n.dsh_atlas_pickerButton {\n border: 1px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.35));\n border-radius: 7px;\n background: none !important;\n color: inherit;\n cursor: pointer;\n font: inherit;\n padding: 4px 10px;\n}\n.dsh_atlas_pickerButton:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16)) !important;\n}\n.dsh_atlas_pickerButton:disabled {\n opacity: 0.5;\n cursor: default;\n}\n.dsh_atlas_pickerIconButton {\n border: none;\n background: none !important;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n cursor: pointer;\n font: inherit;\n padding: 2px 6px;\n border-radius: 6px;\n}\n.dsh_atlas_pickerIconButton:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16)) !important;\n}\n.dsh_atlas_pickerPrimary {\n border-color: transparent;\n background: var(--dsw-alias-state-business-primary, #5686fe) !important;\n color: #fff;\n}\n.dsh_atlas_pickerToggle {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-size: 12px;\n}\n.dsh_atlas_pickerSpacer {\n flex: 1 1 auto;\n}\n";
11
+ export declare const cssText = "\n.dsh_atFile_rail {\n box-sizing: border-box;\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 6px;\n width: calc(\n 100% -\n var(--dsh-composer-side-clearance) -\n var(--dsh-composer-side-clearance)\n );\n max-width: var(--dsh-composer-card-max-width);\n min-width: 0;\n margin: 0 auto;\n}\n.dsh_atFile_row {\n display: inline-flex;\n align-items: center;\n gap: 2px;\n min-width: 0;\n max-width: 100%;\n min-height: 36px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 14px;\n background: var(--dsw-alias-bg-layer-1);\n}\n.dsh_atFile_path {\n display: inline-flex;\n align-items: flex-end;\n gap: 6px;\n min-width: 0;\n max-width: 360px;\n height: 100%;\n padding: 0 6px 0 10px;\n border: 0;\n background: none;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 13px;\n line-height: 18px;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.dsh_atFile_path:hover {\n color: var(--dsw-alias-brand-primary);\n}\n.dsh_atFile_cost {\n flex: none;\n padding: 0 6px;\n color: var(--dsw-alias-label-secondary);\n font-size: 11px;\n line-height: 18px;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n.dsh_atFile_cost_warn {\n color: var(--dsw-alias-state-error-primary, #ef4444);\n font-weight: 600;\n}\n.dsh_atFile_missing {\n flex: none;\n padding: 0 6px;\n color: var(--dsw-alias-state-error-primary, #ef4444);\n font-size: 11px;\n line-height: 18px;\n white-space: nowrap;\n}\n.dsh_atFile_icon {\n flex: none;\n width: 14px;\n height: 14px;\n}\n.dsh_atFile_remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 20px;\n height: 20px;\n margin-right: 4px;\n border: 0;\n border-radius: 10px;\n background: none;\n color: var(--dsw-alias-label-dimmed);\n cursor: pointer;\n}\n.dsh_atFile_remove svg {\n width: 12px;\n height: 12px;\n}\n.dsh_atFile_remove:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n color: var(--dsw-alias-label-primary);\n}\n.dsh_atFile_section {\n display: flex;\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n}\n.dsh_atFile_title {\n margin: 0;\n color: var(--dsw-alias-label-primary);\n font-size: 18px;\n line-height: 26px;\n font-weight: 600;\n}\n.dsh_atFile_card {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n min-width: 0;\n padding: 14px 16px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 12px;\n background: var(--dsw-alias-bg-layer-1);\n cursor: pointer;\n}\n.dsh_atFile_checkbox {\n flex: none;\n width: 18px;\n height: 18px;\n margin: 2px 0 0;\n accent-color: var(--dsw-alias-brand-primary);\n cursor: pointer;\n}\n.dsh_atFile_cardText {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n.dsh_atFile_cardTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 22px;\n}\n.dsh_atFile_cardDesc {\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 20px;\n}\n/* A-23 grouping: a heading plus one explanatory line, so the rows under it cannot be\n read as belonging to the other feature. The top rule separates the groups without\n introducing a card, which would nest one box inside the section's own. */\n.dsh_atFile_groupTitle {\n margin-top: 8px;\n padding-top: 12px;\n border-top: 1px solid var(--dsw-alias-border-l2);\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n}\n.dsh_atFile_groupDesc {\n margin-top: -4px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 20px;\n}\n.dsh_atFile_filter {\n display: flex;\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n padding-top: 4px;\n}\n.dsh_atFile_filterHeading {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 12px;\n min-width: 0;\n}\n.dsh_atFile_filterHeadingText {\n display: flex;\n flex: 1 1 280px;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n.dsh_atFile_filterTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n}\n.dsh_atFile_filterDesc,\n.dsh_atFile_filterHint,\n.dsh_atFile_workspaceField > span {\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 20px;\n}\n.dsh_atFile_scopeTabs {\n display: inline-flex;\n flex: 0 1 auto;\n min-width: 220px;\n padding: 3px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-1);\n}\n.dsh_atFile_scopeTab {\n flex: 1 1 0;\n min-width: 0;\n height: 30px;\n padding: 0 14px;\n border: 0;\n border-radius: 6px;\n background: none;\n color: var(--dsw-alias-label-secondary);\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n}\n.dsh_atFile_scopeTab:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n color: var(--dsw-alias-label-primary);\n}\n.dsh_atFile_scopeTab[aria-selected='true'] {\n background: var(--dsw-alias-button-ghost-active-fill);\n color: var(--dsw-alias-label-primary);\n font-weight: 600;\n}\n.dsh_atFile_workspaceField {\n display: flex;\n flex-direction: column;\n gap: 5px;\n min-width: 0;\n}\n.dsh_atFile_workspaceSelect,\n.dsh_atFile_filterInput {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n height: 36px;\n padding: 0 10px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n outline: none;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n}\n.dsh_atFile_workspaceSelect:focus,\n.dsh_atFile_filterInput:focus {\n border-color: var(--dsw-alias-brand-primary);\n}\n.dsh_atFile_workspaceSelect:disabled,\n.dsh_atFile_filterInput:disabled {\n opacity: 0.55;\n}\n.dsh_atFile_filterToolbar {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n min-width: 0;\n}\n.dsh_atFile_filterGroupTitle {\n color: var(--dsw-alias-label-primary);\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n}\n.dsh_atFile_secondaryButton {\n flex: none;\n min-height: 30px;\n padding: 0 12px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 15px;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-secondary);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n cursor: pointer;\n}\n.dsh_atFile_secondaryButton:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n color: var(--dsw-alias-label-primary);\n}\n.dsh_atFile_secondaryButton:disabled,\n.dsh_atFile_filterRemove:disabled,\n.dsh_atFile_addButton:disabled {\n opacity: 0.45;\n cursor: default;\n}\n.dsh_atFile_filterList {\n min-width: 0;\n overflow: hidden;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-1);\n}\n.dsh_atFile_filterRow {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n min-width: 0;\n min-height: 40px;\n padding: 0 8px 0 12px;\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n}\n.dsh_atFile_filterRow:last-child {\n border-bottom: 0;\n}\n.dsh_atFile_filterName {\n min-width: 0;\n overflow: hidden;\n color: var(--dsw-alias-label-primary);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 13px;\n line-height: 20px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.dsh_atFile_ruleMain {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n flex: 1 1 auto;\n gap: 8px;\n min-width: 0;\n}\n.dsh_atFile_ruleBadge {\n flex: none;\n padding: 2px 6px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 4px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n.dsh_atFile_ruleMain .dsh_atFile_filterName {\n flex: 1 1 180px;\n}\n.dsh_atFile_filterRemove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 28px;\n height: 28px;\n border: 0;\n border-radius: 14px;\n background: none;\n color: var(--dsw-alias-label-tertiary);\n cursor: pointer;\n}\n.dsh_atFile_filterRemove:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover-danger);\n color: var(--dsw-alias-state-error-primary);\n}\n.dsh_atFile_filterRemove svg,\n.dsh_atFile_addButton svg {\n width: 15px;\n height: 15px;\n}\n.dsh_atFile_filterEmpty {\n padding: 16px 12px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 20px;\n text-align: center;\n}\n.dsh_atFile_filterAddRow {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n min-width: 0;\n}\n.dsh_atFile_ruleMode {\n display: inline-flex;\n align-self: flex-start;\n gap: 2px;\n padding: 3px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-1);\n}\n.dsh_atFile_ruleModeButton {\n min-width: 72px;\n height: 28px;\n padding: 0 10px;\n border: 0;\n border-radius: 5px;\n background: none;\n color: var(--dsw-alias-label-secondary);\n font: inherit;\n font-size: 12px;\n cursor: pointer;\n}\n.dsh_atFile_ruleModeButton[aria-pressed='true'] {\n background: var(--dsw-alias-button-ghost-active-fill);\n color: var(--dsw-alias-label-primary);\n font-weight: 600;\n}\n.dsh_atFile_caseToggle {\n display: inline-flex;\n align-items: center;\n align-self: flex-start;\n gap: 7px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n cursor: pointer;\n}\n.dsh_atFile_caseToggle input {\n width: 15px;\n height: 15px;\n margin: 0;\n accent-color: var(--dsw-alias-brand-primary);\n}\n.dsh_atFile_filterAddRow .dsh_atFile_filterInput {\n flex: 1 1 240px;\n width: auto;\n}\n.dsh_atFile_filterInput[aria-invalid='true'] {\n border-color: var(--dsw-alias-state-error-primary);\n}\n.dsh_atFile_addButton {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n flex: none;\n height: 36px;\n padding: 0 14px;\n border: 0;\n border-radius: 18px;\n background: var(--dsw-alias-button-primary-fill);\n color: var(--dsw-alias-label-primary-inverted);\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n}\n.dsh_atFile_filterError {\n color: var(--dsw-alias-state-error-primary);\n font-size: 13px;\n line-height: 20px;\n}\n.dsh_atFile_inherited {\n display: flex;\n flex-direction: column;\n gap: 7px;\n min-width: 0;\n padding-top: 4px;\n}\n.dsh_atFile_inheritedTitle {\n color: var(--dsw-alias-label-tertiary);\n font-size: 12px;\n line-height: 18px;\n}\n.dsh_atFile_inheritedList {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.dsh_atFile_inheritedList code {\n max-width: 100%;\n overflow: hidden;\n padding: 3px 8px;\n border-radius: 4px;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-secondary);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 12px;\n line-height: 18px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n@media (max-width: 560px) {\n .dsh_atFile_scopeTabs {\n width: 100%;\n }\n .dsh_atFile_addButton {\n flex: 1 1 auto;\n }\n}\n\n\n/* Maximize the @ mention menu height: the framework caps the listbox at 400px\n (its own design cap, itself already clamped to the space above the composer)\n inline; target only OUR menu (the atlas data-source marker is present on BOTH\n the pending loading row and the ready option rows, so the override holds from\n the first open and the width never jumps).\n\n The WIDTH is deliberately left alone. The framework lays the menu out as an\n absolutely positioned box with left:0 and right:0 inside the composer card's\n own overlay anchor, so it is exactly as wide as the card, which is itself\n capped by --dsh-composer-card-max-width. A content-sized width here (the\n previous behaviour) could push the popup past the composer instead \u2014 the\n plugin's UI must never leave the chat box. Long names wrap inside the card\n width instead (see the itemName rule below). */\n[role=\"listbox\"]:has([data-source=\"atlas\"]) {\n /* Fit as much of the list as the composer leaves room for: MentionNavigator\n measures the composer card's top edge into --dsh-atlas-menu-max on every\n menu change and on resize, so the cap follows the real available height (a\n multi-line draft shrinks it) instead of a fixed viewport guess. The\n fallback keeps the previous behaviour until the first measurement lands,\n and 760px stays the absolute ceiling. */\n max-height: min(760px, var(--dsh-atlas-menu-max, calc(100dvh - 100px))) !important;\n}\n/* The MENU SHELL's own cap is 400px, set inline by the framework. Our category is\n short by design (a bounded row budget), and the user asked the popup to use the\n space above the composer instead of cutting the list at 400px \u2014 so when our\n group is present the shell may grow to the same measured budget. An important\n rule outranks an inline style, and a taller cap never stretches a short list\n (the height stays content-driven). */\n[data-trigger-menu]:has([data-source=\"atlas\"]) {\n max-height: min(760px, var(--dsh-atlas-menu-max, calc(100dvh - 100px))) !important;\n}\n[id^=\"dsh-slash-option-atlas-\"] {\n /* Text and icon share the bottom edge so the label reads against the icon. */\n align-items: flex-end !important;\n gap: 10px !important;\n}\n[id^=\"dsh-slash-option-atlas-\"] [class*=\"itemIcon\"] {\n /* The icon slot grows with the bigger Tabler icons (36px skill included). */\n width: 32px !important;\n height: 32px !important;\n flex: none !important;\n}\n[id^=\"dsh-slash-option-atlas-\"] [class*=\"itemName\"] {\n /* The name NEVER shrinks to make room for the description: full width,\n wrapping only when the menu hits its max width. */\n max-width: none !important;\n flex: 0 0 auto !important;\n min-width: 0 !important;\n white-space: normal !important;\n overflow-wrap: anywhere !important;\n overflow: visible !important;\n text-overflow: clip !important;\n}\n[id^=\"dsh-slash-option-atlas-\"] [class*=\"itemDescription\"] {\n /* The description stays on ONE line with an ellipsis inside the remaining\n space \u2014 it can never spill into the name or the next row. */\n flex: 1 1 auto !important;\n min-width: 0 !important;\n white-space: nowrap !important;\n overflow: hidden !important;\n text-overflow: ellipsis !important;\n}\n\n\n/* Display-only side ad panel: beside the @ menu, same height, never in the\n list. z-index stays BELOW the menu's 100 so a residual overlap can never\n hide the candidate list (placement also keeps the panel outside the menu). */\n.dsh_atAll_ad {\n position: fixed;\n z-index: 90;\n width: 150px; /* overwritten inline: adapts to the ad's aspect */\n border-radius: 12px;\n overflow: hidden;\n pointer-events: none;\n background: linear-gradient(160deg, #0b1e33 0%, #12294a 55%, #1c3d6b 100%);\n border: 1px solid rgba(255, 255, 255, 0.12);\n box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);\n}\n.dsh_atAll_ad img {\n display: block;\n width: 100%;\n height: 100%;\n /* contain (never crop): the whole ad stays visible, letterboxed on the\n panel's gradient when the panel is taller than the image aspect. */\n object-fit: contain;\n}\n.dsh_atAll_adBanner {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n height: 100%;\n min-height: 120px;\n padding: 12px;\n box-sizing: border-box;\n}\n.dsh_atAll_adWordmark {\n font-family: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;\n font-size: 22px;\n font-weight: 700;\n letter-spacing: 6px;\n color: rgba(255, 255, 255, 0.95);\n text-shadow: 0 2px 10px rgba(120, 180, 255, 0.45);\n}\n.dsh_atAll_adTag {\n font-size: 11px;\n letter-spacing: 2px;\n color: rgba(255, 255, 255, 0.55);\n}\n\n/* Sent-message reference chips are inert in this client build (its chat view\n calls projectUserText without the reference actions), so ReferenceLinks\n supplies the click and publishes the affordance itself: only a chip that\n bridge can actually open carries data-dsh-atlas-link. The styling is the\n framework's OWN link language \u2014 the tokens its wired chips use (the\n ui-primitives markdown fileMention rule): link-blue at rest, a dotted\n underline under the pointer. A build that wires the chips itself renders\n buttons, which this rule never matches. */\n[data-dsh-atlas-link] {\n color: var(--dsw-alias-link);\n font-weight: 500;\n text-decoration: none;\n cursor: pointer;\n}\n[data-dsh-atlas-link]:hover,\n[data-dsh-atlas-link]:focus {\n outline: none;\n text-decoration: underline dotted var(--dsw-alias-link);\n text-underline-offset: 3px;\n}\n/* A reference whose target is gone: the click learned it, so the chip stops\n looking like a link and reads as stale instead \u2014 the dock's own \u5DF2\u5931\u6548\n language, applied to a chip the plugin does not own. */\n[data-dsh-atlas-missing] {\n color: var(--dsw-alias-label-dimmed, inherit);\n text-decoration: line-through;\n cursor: default;\n}\n/* A composer reference chip: the framework styles its BODY with the chip blue and\n cursor:default, and that rule is a single class \u2014 the same specificity as the\n link rule above, so this one is spelled with the host ancestor to win outright\n (a chip that opens must not keep telling the pointer it is not clickable). An\n inert chip keeps the framework's own look and cursor untouched. */\n[data-composer-chip] [data-dsh-atlas-link] {\n color: var(--dsw-alias-link);\n cursor: pointer;\n}\n[data-composer-chip] [data-dsh-atlas-link]:hover {\n text-decoration: underline dotted var(--dsw-alias-link);\n text-underline-offset: 3px;\n}\n[data-composer-chip] [data-dsh-atlas-missing] {\n color: var(--dsw-alias-label-dimmed, inherit);\n text-decoration: line-through;\n cursor: default;\n}\n/* A draft reference is drawn as a link by the plugin itself: the framework\n colours only the head of a token it recognises (its matcher stops at the last\n separator or the first non-word character), and a hand-typed token it never\n recognised stays plain. DraftLinks paints the WHOLE token through the CSS\n Custom Highlight API \u2014 the one way to colour a text range without\n re-parenting a Lexical text span, whose updateDOM writes through\n firstChild.nodeValue. The colour is the framework's own reference colour (its\n composer-editor textRef rule), so a token it did colour reads unchanged. */\n::highlight(dsh-atlas-draft-ref) {\n color: var(--dsw-alias-state-business-primary);\n}\n/* A draft reference whose target the Host reports as gone: the dock's own \u5DF2\u5931\u6548\n language (dimmed and struck through), painted over the same range so a\n reference that cannot open still reads as a reference. It is never a link:\n nothing here touches the cursor, and the click gate refuses it. */\n::highlight(dsh-atlas-draft-missing) {\n color: var(--dsw-alias-label-dimmed, inherit);\n text-decoration: line-through;\n}\n/* Menu glyphs: this plugin's own icons, drawn over the icon slot the framework\n reserves on each of its rows (see MenuIcons). They live in their own fixed\n layer \u2014 nothing is inserted into a row the framework owns \u2014 and a slot is\n marked only while a glyph covers it, which is what hides the framework's own\n three-glyph set exactly there and nowhere else. */\n.dsh_atlas_menuIcon {\n position: fixed;\n z-index: 2147482500;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n pointer-events: none;\n}\n[data-dsh-atlas-menu-icon-host] > svg {\n display: none;\n}\n/* The folder tab: a directory, one level, walked in place. Rows are the sidebar's\n own density (they sit next to the files tree), the path is the only wide text\n and it ellipsizes rather than pushing the controls out of the header. */\n.dsh_atlas_folder {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n overflow-y: auto;\n font-size: 13px;\n color: var(--dsw-alias-label-primary);\n}\n.dsh_atlas_folderHead {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 6px 10px;\n border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.25));\n position: sticky;\n top: 0;\n background: var(--dsw-alias-bg-base, transparent);\n}\n.dsh_atlas_folderUp,\n.dsh_atlas_folderOpen {\n flex: none;\n border: none;\n background: transparent;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n cursor: pointer;\n border-radius: 6px;\n padding: 2px 6px;\n font: inherit;\n}\n.dsh_atlas_folderUp:disabled {\n opacity: 0.4;\n cursor: default;\n}\n.dsh_atlas_folderUp:not(:disabled):hover,\n.dsh_atlas_folderOpen:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16));\n}\n.dsh_atlas_folderPath {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n direction: rtl;\n text-align: left;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 12px;\n}\n.dsh_atlas_folderNote {\n margin: 8px 10px;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-size: 12px;\n}\n.dsh_atlas_folderList {\n list-style: none;\n margin: 0;\n padding: 4px;\n}\n.dsh_atlas_folderRow {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 4px 6px;\n border: none;\n border-radius: 6px;\n /* A row stays plain until the pointer is on it. The theme paints generic\n buttons, and a list where every line carries a plate reads as a table rather\n than a tree (reported from a screenshot), so this one wins outright. */\n background: none !important;\n box-shadow: none !important;\n color: inherit;\n cursor: pointer;\n text-align: left;\n font: inherit;\n}\n.dsh_atlas_folderRow:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16)) !important;\n}\n/* The row the user's second click asked for (A.16). It has to read at rest, not\n under the pointer: by the time this tab renders, the mouse is wherever it was\n when the chip was clicked, so a hover-only look would leave the selection\n invisible. Same token the chooser uses for its cursor row, so the two reading\n of \"this one\" match. */\n.dsh_atlas_folderRowSelected,\n.dsh_atlas_folderRowSelected:hover {\n background: var(--dsw-alias-interactive-bg-active, rgba(128, 128, 128, 0.28)) !important;\n box-shadow: inset 2px 0 0 var(--dsw-alias-state-business-primary, #5686fe) !important;\n}\n.dsh_atlas_folderGlyph {\n display: inline-flex;\n flex: none;\n align-items: center;\n}\n.dsh_atlas_folderName {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n/* The folder chooser dialog: the product's browse backend wearing this plugin's\n face (the product's own dialog is a private child slot of the workspace picker,\n so a plugin cannot render it). */\n.dsh_atlas_pickerScrim {\n position: fixed;\n inset: 0;\n z-index: 2147482600;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.45);\n}\n.dsh_atlas_picker {\n display: flex;\n flex-direction: column;\n width: min(560px, 88vw);\n max-height: min(560px, 84vh);\n border-radius: 14px;\n border: 1px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.3));\n background: var(--dsw-specific-menu, var(--dsw-alias-bg-base, #1b1f2a));\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n overflow: hidden;\n}\n.dsh_atlas_pickerHead {\n display: flex;\n flex-direction: column;\n gap: 6px;\n padding: 14px 16px 8px;\n}\n.dsh_atlas_pickerTitle {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n}\n.dsh_atlas_pickerPathRow {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.dsh_atlas_pickerPath {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 12px;\n}\n.dsh_atlas_pickerCrumbs {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n}\n.dsh_atlas_pickerCrumb {\n border: none;\n background: none !important;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n cursor: pointer;\n font: inherit;\n font-size: 12px;\n padding: 1px 4px;\n border-radius: 5px;\n}\n.dsh_atlas_pickerCrumb:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16)) !important;\n}\n.dsh_atlas_pickerList {\n list-style: none;\n margin: 0;\n padding: 4px 8px;\n overflow-y: auto;\n flex: 1 1 auto;\n min-height: 120px;\n}\n.dsh_atlas_pickerRow {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 5px 8px;\n border: none;\n border-radius: 7px;\n background: none !important;\n color: inherit;\n cursor: pointer;\n text-align: left;\n font: inherit;\n}\n/* The keyboard highlight. It must read as \"this is where Enter goes\", so it uses\n the selected-surface token rather than the hover tint \u2014 a user driving the list\n with the arrow keys is not pointing at anything with a mouse. Rows carry NO\n :hover tint of their own: it stayed painted on whatever sat under a stationary\n pointer, so paging with the arrows lit that row as well as the current one and\n the list showed TWO current items (m05904). Pointer feedback is the same single\n highlight: onPointerEnter moves the cursor onto the row it points at. */\n.dsh_atlas_pickerRowHot {\n background: var(--dsw-alias-interactive-bg-active, rgba(128, 128, 128, 0.28)) !important;\n}\n.dsh_atlas_pickerRow:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4c8dff);\n outline-offset: -2px;\n}\n/* A group header is a row that is also a heading: it toggles, it does not navigate,\n so it reads as a label rather than as a folder. */\n.dsh_atlas_pickerGroup {\n margin-top: 2px;\n font-weight: 600;\n font-size: 12px;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n}\n.dsh_atlas_pickerTag {\n flex: none;\n padding: 1px 6px;\n border-radius: 999px;\n background: var(--dsw-alias-bg-layer-2, rgba(128, 128, 128, 0.18));\n font-size: 11px;\n opacity: 0.75;\n}\n.dsh_atlas_pickerKeys {\n margin: 0;\n padding: 2px 14px 6px;\n font-size: 11px;\n opacity: 0.6;\n}\n.dsh_atlas_pickerGlyph {\n display: inline-flex;\n flex: none;\n align-items: center;\n}\n.dsh_atlas_pickerName {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n/* The absolute path, trailing and dimmed: it is what distinguishes two folders with\n the same name, so it may not push the name out of the row. */\n.dsh_atlas_pickerHint {\n flex: none;\n max-width: 45%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-size: 12px;\n}\n.dsh_atlas_pickerChevron {\n flex: none;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n}\n.dsh_atlas_pickerNote {\n margin: 6px 16px;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-size: 12px;\n}\n.dsh_atlas_pickerNewRow {\n display: flex;\n gap: 6px;\n padding: 0 16px 8px;\n}\n.dsh_atlas_pickerInput {\n flex: 1 1 auto;\n min-width: 0;\n padding: 5px 8px;\n border-radius: 7px;\n border: 1px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.35));\n background: transparent;\n color: inherit;\n font: inherit;\n}\n.dsh_atlas_pickerFoot {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 16px 14px;\n border-top: 1px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.25));\n}\n.dsh_atlas_pickerButton {\n border: 1px solid var(--dsw-alias-border-l1, rgba(128, 128, 128, 0.35));\n border-radius: 7px;\n background: none !important;\n color: inherit;\n cursor: pointer;\n font: inherit;\n padding: 4px 10px;\n}\n.dsh_atlas_pickerButton:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16)) !important;\n}\n.dsh_atlas_pickerButton:disabled {\n opacity: 0.5;\n cursor: default;\n}\n.dsh_atlas_pickerIconButton {\n border: none;\n background: none !important;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n cursor: pointer;\n font: inherit;\n padding: 2px 6px;\n border-radius: 6px;\n}\n.dsh_atlas_pickerIconButton:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(128, 128, 128, 0.16)) !important;\n}\n.dsh_atlas_pickerPrimary {\n border-color: transparent;\n background: var(--dsw-alias-state-business-primary, #5686fe) !important;\n color: #fff;\n}\n.dsh_atlas_pickerToggle {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--dsw-alias-label-secondary, #9aa4b2);\n font-size: 12px;\n}\n.dsh_atlas_pickerSpacer {\n flex: 1 1 auto;\n}\n/* ---- History jump (F2 roaming, F1 palette) ---------------------------------\n Roaming is deliberately quiet: it steps the conversation back a little and\n lifts the frame the cursor is on, so the user sees WHERE they are without the\n page moving. The state arrives as attributes on <html>, which keeps the\n painting out of the component and lets a test assert it without class names. */\nhtml[data-atlas-roaming] [data-conversation-scroll] {\n opacity: 0.72;\n transition: opacity 140ms ease-out;\n}\nhtml[data-atlas-roaming] [data-composer-card] {\n /* The composer keeps full weight: the draft is still what is being edited. */\n opacity: 1;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, transparent);\n}\nhtml[data-atlas-roaming] [data-atlas-frame-hit] {\n /* The cursor's frame: a band plus a left rule, readable in both themes. */\n position: relative;\n opacity: 1;\n background: var(--dsw-alias-bg-layer-2, transparent);\n border-radius: 8px;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, transparent);\n}\nhtml[data-atlas-roaming] [data-atlas-frame-hit]::before {\n content: '';\n position: absolute;\n inset-block: 6px;\n inset-inline-start: 0;\n width: 3px;\n border-radius: 2px;\n background: var(--dsw-alias-brand-primary, currentColor);\n}\n/* The readout naming the frame the cursor is on.\n It renders in the conversation.input.dock slot, NOT as a floating overlay, so it is a\n normal flex row of the composer stack: the stack is a column with a gap, which\n is what makes it stack with the goal and todo docks instead of covering them.\n The old position: fixed + measured-left/width + bottom: 96px arrangement existed\n only because the overlay had no ancestor to take those from.\n\n TWO boxes, matching the framework's own dock cards (GoalBar's .dock > .bar,\n TodoPanel's .root): an OUTER spacer that insets the row from the stack, and an\n INNER surface that is the visible card. Both halves are needed and the split is\n load-bearing, because the two boxes have different widths:\n - the outer width insets by 2 x clearance + 4 x inset from the STACK;\n - the inner max-width caps by card-max-width - 4 x inset, i.e. to the CARD.\n The inner cap is the half that is easy to miss and was missed here first: the\n stack is as wide as the conversation COLUMN, while the input card inside it is\n capped at --dsh-composer-card-max-width and merely centred. So on a wide window\n the stack is much wider than the card (measured live: stack 1390px, card 928px),\n and a row carrying only the outer width came out 1334px \u2014 overhanging the card\n by roughly 200px on each side, which is exactly the overflowing-the-chat-box\n symptom the user reported when this was a fixed overlay. Taking the numbers from\n the variables the framework publishes is what keeps the row aligned with where\n the framework puts its own docks, at every window width, without measuring. */\n.dsh_atlas_roamBar {\n box-sizing: border-box;\n /* The outer spacer is the dock's own inset rule, verbatim from GoalBar.module.css\n .dock: 2 x clearance + 4 x inset off the stack. It is deliberately NOT capped \u2014\n the cap lives on the inner surface, which is what lets the visible card be\n narrower than the row without the row's centring moving. */\n width: calc(\n 100% -\n var(--dsh-composer-side-clearance) -\n var(--dsh-composer-side-clearance) -\n var(--dsh-composer-dock-inset) -\n var(--dsh-composer-dock-inset) -\n var(--dsh-composer-dock-inset) -\n var(--dsh-composer-dock-inset)\n );\n margin: 0 auto;\n}\n/* The visible card. Every value here is the framework's own dock-card recipe\n (GoalBar.module.css .bar), not an approximation of it, so the strip reads as a\n sibling of the goal and todo cards rather than as a plugin-drawn lookalike:\n same 0.5px l1 hairline, same 12px radius, same --dsw-specific-tip surface, same\n 36px height and 4px/12px padding. The earlier version invented its own\n (999px pill, --dsw-alias-bg-layer-2, a drop shadow, an em-based font size),\n which is why it did not match \u2014 those tokens are a different rung of the same\n palette. */\n.dsh_atlas_roamBarInner {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n max-width: calc(var(--dsh-composer-card-max-width) - 4 * var(--dsh-composer-dock-inset));\n height: 36px;\n margin: 0 auto;\n padding: 4px 12px;\n border: 0.5px solid var(--dsw-alias-border-l1);\n border-radius: 12px;\n background: var(--dsw-specific-tip);\n /* Inherit the chat column's own type so the strip matches the conversation it\n annotates; the fallback only applies in a shell that sets no font at all. */\n font: inherit;\n color: var(--dsw-alias-label-primary-dimmed);\n}\n/* The card's leading label, at the family's title metrics (13/24 medium) so the\n three composer-stack cards share one typographic register. */\n.dsh_atlas_roamBarTag {\n flex: none;\n font-size: 13px;\n line-height: 24px;\n font-weight: 500;\n color: var(--dsw-alias-label-primary);\n}\n.dsh_atlas_roamBarCount {\n flex: none;\n font-size: 13px;\n line-height: 20px;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n color: var(--dsw-alias-label-primary-dimmed);\n}\n/* A-20: names the origin of a system-initiated turn. flex: none like the other\n labels, so it never squeezes the message text out of the row. */\n.dsh_atlas_roamBarOrigin {\n flex: none;\n padding: 0 6px;\n border-radius: 4px;\n font-size: 12px;\n line-height: 18px;\n white-space: nowrap;\n color: var(--dsw-alias-label-primary-dimmed);\n background: var(--dsw-alias-bg-layer-2);\n}\n.dsh_atlas_roamBarText {\n /* Takes the leftover room and gives it up first: the position and the label\n are the parts that must stay readable. */\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-size: 13px;\n line-height: 20px;\n color: var(--dsw-alias-label-primary-dimmed);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n/* A hairline between the position readout and the preview, drawn with the same\n border token the card's own edge uses so it reads as part of the surface. */\n.dsh_atlas_roamBarSep {\n flex: none;\n width: 0.5px;\n height: 16px;\n background: var(--dsw-alias-border-l1);\n}\n/* A-05's edge notice: the walk stopped at the oldest LOADED frame. Muted, and it\n never wraps the readout onto a second line \u2014 the card is a glanceable strip. */\n.dsh_atlas_roamBarEdge {\n flex: none;\n overflow: hidden;\n font-size: 12px;\n line-height: 20px;\n color: var(--dsw-alias-label-caption);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n/* F1 \u2014 the history palette. A centred dialog above the composer. */\n.dsh_atlas_paletteLayer {\n position: fixed;\n inset: 0;\n z-index: 60;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 16px;\n}\n.dsh_atlas_paletteBackdrop {\n position: absolute;\n inset: 0;\n background: rgb(0 0 0 / 32%);\n}\n.dsh_atlas_palette {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 42rem;\n max-height: min(70vh, 32rem);\n overflow: hidden;\n border: 1px solid var(--dsw-alias-border-l1, transparent);\n border-radius: 12px;\n /* Opaque on purpose: this dialog floats OVER the transcript, and a themed\n surface that resolved to transparent (there is no bg-elevated token in this\n shell) let the conversation read through the rows. Same surface as the\n roaming bar so the two history surfaces match. */\n background: var(--dsw-specific-tip, var(--dsw-alias-bg-layer-1, #1b1f2a));\n backdrop-filter: blur(1px);\n box-shadow: 0 16px 48px rgb(0 0 0 / 32%);\n color: var(--dsw-alias-label-primary, inherit);\n}\n.dsh_atlas_paletteHead {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 10px 14px 6px;\n font-size: 12px;\n color: var(--dsw-alias-label-tertiary, #9aa4b2);\n}\n.dsh_atlas_paletteTitle {\n font-weight: 600;\n color: var(--dsw-alias-label-primary, inherit);\n}\n.dsh_atlas_paletteCount {\n font-variant-numeric: tabular-nums;\n}\n.dsh_atlas_paletteFilter {\n margin: 0 14px 8px;\n padding: 8px 10px;\n border: 1px solid var(--dsw-alias-border-l1, transparent);\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-2, transparent);\n color: inherit;\n font: inherit;\n}\n.dsh_atlas_paletteList {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n margin: 0;\n padding: 0 6px;\n list-style: none;\n}\n.dsh_atlas_paletteRow {\n display: flex;\n flex-direction: column;\n gap: 2px;\n width: 100%;\n padding: 8px 10px;\n border: 0;\n border-radius: 8px;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n.dsh_atlas_paletteRow[data-atlas-history-active] {\n background: var(--dsw-alias-bg-layer-2, rgb(127 127 127 / 14%));\n}\n.dsh_atlas_paletteRowText {\n display: flex;\n align-items: baseline;\n gap: 6px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.dsh_atlas_paletteRowAnswer {\n display: flex;\n align-items: baseline;\n gap: 6px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 12px;\n color: var(--dsw-alias-label-tertiary, #9aa4b2);\n}\n.dsh_atlas_paletteTag {\n flex: none;\n padding: 1px 5px;\n border-radius: 4px;\n background: var(--dsw-alias-bg-layer-2, transparent);\n color: var(--dsw-alias-label-tertiary, #9aa4b2);\n font-size: 11px;\n}\n.dsh_atlas_paletteEmpty {\n padding: 24px 14px;\n text-align: center;\n color: var(--dsw-alias-label-tertiary, #9aa4b2);\n}\n.dsh_atlas_paletteFoot {\n padding: 8px 14px;\n border-top: 1px solid var(--dsw-alias-border-l1, transparent);\n font-size: 12px;\n color: var(--dsw-alias-label-tertiary, #9aa4b2);\n}\n";
12
12
  /**
13
13
  * Inject the dock stylesheet once (stable id; HMR-safe).
14
14
  */
@@ -106,6 +106,11 @@ export interface ExternalAccessScope {
106
106
  export interface DirectoryEntry {
107
107
  readonly name: string;
108
108
  readonly kind: 'file' | 'dir';
109
+ /**
110
+ * True on the ONE row a caller asked for by name when the entry cap had cut it
111
+ * away (the first row of the page). Absent on every ordinary row.
112
+ */
113
+ readonly pinned?: true;
109
114
  }
110
115
  /** Why a directory could not be listed (the browser says which, in its own words). */
111
116
  export type DirectoryRefusal = 'outside' | 'missing' | 'notDirectory';
@@ -126,6 +131,24 @@ export interface DirectoryListing {
126
131
  readonly drives?: readonly string[];
127
132
  readonly error?: DirectoryRefusal;
128
133
  }
134
+ /** One row of a chooser listing: a directory entry that says whether it opens. */
135
+ export interface BrowseEntry extends DirectoryEntry {
136
+ /** Whether this folder has a subdirectory; absent when the probe ran out of budget. */
137
+ readonly hasChildren?: boolean;
138
+ }
139
+ /**
140
+ * One listing for the folder chooser, which browses as the user types.
141
+ *
142
+ * `path` is the directory actually listed; `requested` is the asked-for path in the
143
+ * same canonical spelling (so it always starts with `path` and the caller can slice
144
+ * the remainder off), present ONLY when the two differ — a path that does not exist
145
+ * is answered with its longest valid directory prefix, so the chooser keeps showing
146
+ * that prefix's children while the remainder of the typed path becomes its filter.
147
+ */
148
+ export interface BrowseListing extends Omit<DirectoryListing, 'entries'> {
149
+ readonly entries: readonly BrowseEntry[];
150
+ readonly requested?: string;
151
+ }
129
152
  /** One file filter. Legacy string values remain accepted as exact, insensitive rules. */
130
153
  export interface FileIgnoreRule {
131
154
  readonly kind: 'exact' | 'regex';
@@ -191,7 +214,33 @@ export interface AtFileSettings {
191
214
  * the local opener is the behaviour that came first.
192
215
  */
193
216
  readonly folderOpen?: FolderOpenTarget;
217
+ /** Whether the session history jump (palette + roaming) is active. */
218
+ readonly historyJump?: boolean;
219
+ /** History frame granularity: one per user message, or one per turn. */
220
+ readonly historyJumpFrames?: HistoryFrameMode;
221
+ /** Whether reusing a history message replaces the draft or appends to it. */
222
+ readonly historyJumpReuseMode?: HistoryReuseMode;
223
+ /**
224
+ * Whether the history walk follows where the user is actually looking (A-19).
225
+ *
226
+ * Off by default: each feature keeps its own position, so scrolling the chat or
227
+ * jumping with the ruler changes what is on screen without silently redefining
228
+ * "the previous message". Turning it on makes a manual move — a scroll, or a
229
+ * ruler jump, which is itself a scroll — re-seat the internal position on
230
+ * whatever is at the reading line.
231
+ */
232
+ readonly historyJumpSmartFollow?: boolean;
194
233
  }
234
+ /** How reusing a history message treats the composer's current draft. */
235
+ export type HistoryReuseMode = 'replace' | 'append';
236
+ /**
237
+ * History frame granularity.
238
+ *
239
+ * `message` is the default: every user message — including a mid-turn
240
+ * `steering` interjection — gets its own frame, because each is independently
241
+ * worth reusing. `turn` keeps only a turn's first user message.
242
+ */
243
+ export type HistoryFrameMode = 'message' | 'turn';
195
244
  /** How a folder reference opens when it is clicked. */
196
245
  export type FolderOpenTarget = 'both' | 'sidebar' | 'native';
197
246
  /** One field update sent through the plugin-owned settings Remote. */
@@ -231,6 +280,18 @@ export type AtFileSettingsUpdate = {
231
280
  } | {
232
281
  readonly field: 'folderOpen';
233
282
  readonly value: FolderOpenTarget;
283
+ } | {
284
+ readonly field: 'historyJump';
285
+ readonly value: boolean;
286
+ } | {
287
+ readonly field: 'historyJumpFrames';
288
+ readonly value: HistoryFrameMode;
289
+ } | {
290
+ readonly field: 'historyJumpReuseMode';
291
+ readonly value: HistoryReuseMode;
292
+ } | {
293
+ readonly field: 'historyJumpSmartFollow';
294
+ readonly value: boolean;
234
295
  };
235
296
  /** Wire codec: one session identity (branded string on the wire). */
236
297
  export declare const sessionIdSchema: z.ZodString;
@@ -304,6 +365,7 @@ export declare const directoryEntrySchema: z.ZodReadonly<z.ZodObject<{
304
365
  file: "file";
305
366
  dir: "dir";
306
367
  }>;
368
+ pinned: z.ZodOptional<z.ZodLiteral<true>>;
307
369
  }, z.core.$strip>>;
308
370
  /** Wire schema of one one-level directory listing. */
309
371
  export declare const directoryListingSchema: z.ZodReadonly<z.ZodObject<{
@@ -315,6 +377,7 @@ export declare const directoryListingSchema: z.ZodReadonly<z.ZodObject<{
315
377
  file: "file";
316
378
  dir: "dir";
317
379
  }>;
380
+ pinned: z.ZodOptional<z.ZodLiteral<true>>;
318
381
  }, z.core.$strip>>>;
319
382
  truncated: z.ZodOptional<z.ZodLiteral<true>>;
320
383
  drives: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -324,8 +387,73 @@ export declare const directoryListingSchema: z.ZodReadonly<z.ZodObject<{
324
387
  notDirectory: "notDirectory";
325
388
  }>>;
326
389
  }, z.core.$strip>>;
390
+ /** Wire schema of one chooser row. */
391
+ export declare const browseEntrySchema: z.ZodReadonly<z.ZodObject<{
392
+ name: z.ZodString;
393
+ kind: z.ZodEnum<{
394
+ file: "file";
395
+ dir: "dir";
396
+ }>;
397
+ hasChildren: z.ZodOptional<z.ZodBoolean>;
398
+ }, z.core.$strip>>;
399
+ /** Wire schema of one chooser listing. */
400
+ export declare const browseListingSchema: z.ZodReadonly<z.ZodObject<{
401
+ path: z.ZodString;
402
+ parent: z.ZodOptional<z.ZodString>;
403
+ requested: z.ZodOptional<z.ZodString>;
404
+ entries: z.ZodArray<z.ZodReadonly<z.ZodObject<{
405
+ name: z.ZodString;
406
+ kind: z.ZodEnum<{
407
+ file: "file";
408
+ dir: "dir";
409
+ }>;
410
+ hasChildren: z.ZodOptional<z.ZodBoolean>;
411
+ }, z.core.$strip>>>;
412
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
413
+ drives: z.ZodOptional<z.ZodArray<z.ZodString>>;
414
+ error: z.ZodOptional<z.ZodEnum<{
415
+ outside: "outside";
416
+ missing: "missing";
417
+ notDirectory: "notDirectory";
418
+ }>>;
419
+ }, z.core.$strip>>;
420
+ /** Why one candidate folder is offered (the chooser groups and orders by this). */
421
+ export type RecentFolderReason = 'sibling' | 'parent' | 'child' | 'recent' | 'family';
422
+ /** One folder the chooser offers before browsing: where it is, and why. */
423
+ export interface RecentFolder {
424
+ /** Absolute path, forward slashes (the wire spelling used everywhere else). */
425
+ readonly path: string;
426
+ /** Last path segment, for the row label. */
427
+ readonly name: string;
428
+ /** The strongest reason this folder is in the list. */
429
+ readonly reason: RecentFolderReason;
430
+ }
431
+ /** Wire schema of one offered folder. */
432
+ export declare const recentFolderSchema: z.ZodReadonly<z.ZodObject<{
433
+ path: z.ZodString;
434
+ name: z.ZodString;
435
+ reason: z.ZodEnum<{
436
+ parent: "parent";
437
+ sibling: "sibling";
438
+ child: "child";
439
+ recent: "recent";
440
+ family: "family";
441
+ }>;
442
+ }, z.core.$strip>>;
327
443
  /** Wire schema of one directory target (`''` means the session workspace root). */
328
444
  export declare const directoryTargetSchema: z.ZodString;
445
+ /**
446
+ * Wire schema of the ONE child name a listing caller wants present (`''` means
447
+ * no preference).
448
+ *
449
+ * A `list` page is capped by entry count, and the cap is applied before the
450
+ * sort, so on a folder with thousands of children the page can miss the exact
451
+ * entry the caller cares about. The folder tab passes the object it must select
452
+ * here; the Host re-checks that ONE name and puts it first when the page dropped
453
+ * it. Empty is the "no preference" spelling, matching `''` = workspace root
454
+ * above, so the parameter stays a plain required string.
455
+ */
456
+ export declare const directoryEntryNameSchema: z.ZodString;
329
457
  /** Strict wire codec for one structured file filter. */
330
458
  export declare const fileIgnoreRuleSchema: z.ZodReadonly<z.ZodObject<{
331
459
  kind: z.ZodEnum<{
@@ -412,6 +540,16 @@ export declare const atFileSettingsSchema: z.ZodReadonly<z.ZodObject<{
412
540
  sidebar: "sidebar";
413
541
  native: "native";
414
542
  }>>;
543
+ historyJump: z.ZodDefault<z.ZodBoolean>;
544
+ historyJumpFrames: z.ZodDefault<z.ZodEnum<{
545
+ message: "message";
546
+ turn: "turn";
547
+ }>>;
548
+ historyJumpReuseMode: z.ZodDefault<z.ZodEnum<{
549
+ replace: "replace";
550
+ append: "append";
551
+ }>>;
552
+ historyJumpSmartFollow: z.ZodDefault<z.ZodBoolean>;
415
553
  }, z.core.$strip>>;
416
554
  /** Strict wire codec for one field update. */
417
555
  export declare const atFileSettingsUpdateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
@@ -475,6 +613,24 @@ export declare const atFileSettingsUpdateSchema: z.ZodDiscriminatedUnion<[z.ZodR
475
613
  sidebar: "sidebar";
476
614
  native: "native";
477
615
  }>;
616
+ }, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
617
+ field: z.ZodLiteral<"historyJump">;
618
+ value: z.ZodBoolean;
619
+ }, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
620
+ field: z.ZodLiteral<"historyJumpFrames">;
621
+ value: z.ZodEnum<{
622
+ message: "message";
623
+ turn: "turn";
624
+ }>;
625
+ }, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
626
+ field: z.ZodLiteral<"historyJumpReuseMode">;
627
+ value: z.ZodEnum<{
628
+ replace: "replace";
629
+ append: "append";
630
+ }>;
631
+ }, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
632
+ field: z.ZodLiteral<"historyJumpSmartFollow">;
633
+ value: z.ZodBoolean;
478
634
  }, z.core.$strip>>], "field">;
479
635
  /**
480
636
  * The built-in `@git` provider's shared facts.
@@ -51,6 +51,8 @@ export declare function listSubdirectories(dir: string, options: {
51
51
  export interface DirectoryEntryInfo {
52
52
  readonly name: string;
53
53
  readonly kind: 'file' | 'dir';
54
+ /** True only on the one row {@link pinEntry} put back; absent on ordinary rows. */
55
+ readonly pinned?: true;
54
56
  }
55
57
  /** One directory's direct children, name-sorted with directories first. */
56
58
  export interface DirectoryContents {
@@ -74,3 +76,47 @@ export interface DirectoryContents {
74
76
  * @returns the entries and whether the cap was reached.
75
77
  */
76
78
  export declare function readDirectory(dir: string, limit: number, signal?: AbortSignal, openDirectory?: OpenWorkspaceDirectory): Promise<DirectoryContents>;
79
+ /**
80
+ * Put ONE named child back into a listing whose cap already cut it away.
81
+ *
82
+ * {@link readDirectory} stops at its cap BEFORE it sorts, so on a folder with
83
+ * thousands of children the returned page can simply not contain the entry the
84
+ * caller asked about — measured on a real share: a 2093-entry folder answered
85
+ * 200 rows that held neither the file whose folder was opened nor 10 of its
86
+ * siblings. The folder tab has exactly one such entry (the object the user just
87
+ * clicked) and "open the folder with it selected" is a promise it cannot keep
88
+ * from a page that never included it. Re-checking that ONE name by path costs a
89
+ * single `stat`, and the row goes FIRST so it needs no scrolling to be seen.
90
+ *
91
+ * The name is re-validated against the filesystem rather than trusted, so a
92
+ * reference to something that no longer exists adds no row (the listing stays
93
+ * honest), and only a single path segment is accepted, so a caller cannot walk
94
+ * out of the listed directory through this seam.
95
+ * @param dir - absolute directory the listing came from.
96
+ * @param contents - the capped listing to complete.
97
+ * @param name - the one child name to ensure; empty or multi-segment means none.
98
+ * @param signal - caller lifetime; the filesystem awaits race it.
99
+ * @returns the listing, with the named child first when it exists and was cut.
100
+ */
101
+ export declare function pinEntry(dir: string, contents: DirectoryContents, name: string, signal?: AbortSignal): Promise<DirectoryContents>;
102
+ /**
103
+ * Answer "does this directory have at least one subdirectory?" and stop there.
104
+ *
105
+ * The folder chooser draws an expander only on rows that open, so it needs this
106
+ * per candidate row — and {@link readDirectory} cannot answer it cheaply: its cap
107
+ * cuts the listing BEFORE the sort, so `readDirectory(dir, 1)` may well return a
108
+ * file and say nothing about the directories below. This walks the same handle
109
+ * one entry at a time and returns on the FIRST directory, so the cost is one
110
+ * `opendir` and as many reads as it takes to meet a folder (usually one).
111
+ *
112
+ * A link is judged by what it points at, exactly like {@link readDirectory}, so a
113
+ * junction to a folder counts; `skipHidden` drops dot-names before they count.
114
+ * @param dir - absolute directory to probe.
115
+ * @param options - whether hidden children are ignored.
116
+ * @param signal - caller lifetime; the filesystem awaits race it.
117
+ * @param openDirectory - directory opener; defaults to node:fs.
118
+ * @returns true when at least one subdirectory (or link to one) is present.
119
+ */
120
+ export declare function hasSubdirectory(dir: string, options?: {
121
+ readonly skipHidden?: boolean;
122
+ }, signal?: AbortSignal, openDirectory?: OpenWorkspaceDirectory): Promise<boolean>;
@@ -42,15 +42,15 @@ export interface Config {
42
42
  * partial input, so `Config({})` yields the defaults (what the Loader does
43
43
  * for Loader compositions).
44
44
  */
45
- export declare const Config: z<Schemastery.ObjectS<{
46
- maxIndexedFiles: z<number, number>;
47
- ignoreDirs: z<string[], string[]>;
48
- injectSkillBody: z<boolean, boolean>;
49
- }>, Schemastery.ObjectT<{
50
- maxIndexedFiles: z<number, number>;
51
- ignoreDirs: z<string[], string[]>;
52
- injectSkillBody: z<boolean, boolean>;
53
- }>>;
45
+ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
46
+ maxIndexedFiles: z<number, number, "defined">;
47
+ ignoreDirs: z<string[], string[], "defined">;
48
+ injectSkillBody: z<boolean, boolean, "defined">;
49
+ }>>, Schemastery.ObjectT<NoInfer<{
50
+ maxIndexedFiles: z<number, number, "defined">;
51
+ ignoreDirs: z<string[], string[], "defined">;
52
+ injectSkillBody: z<boolean, boolean, "defined">;
53
+ }>>, "plain">;
54
54
  /** Providers whose bundled skills are system skills (same set as the sidebar Skill Manager). */
55
55
  export declare const SYSTEM_BUNDLED_PROVIDERS: Set<string>;
56
56
  /**
@@ -0,0 +1,52 @@
1
+ /** Why one candidate folder is being offered (the client groups by this). */
2
+ export type RecentFolderReason = 'sibling' | 'parent' | 'child' | 'recent' | 'family';
3
+ /** One offered folder: its absolute path, a display name, and why it is offered. */
4
+ export interface RecentFolder {
5
+ /** Absolute path, forward slashes (the wire spelling used everywhere else). */
6
+ readonly path: string;
7
+ /** Last path segment, for the row label. */
8
+ readonly name: string;
9
+ /** The strongest reason this folder is in the list. */
10
+ readonly reason: RecentFolderReason;
11
+ }
12
+ /** How many candidates are offered at most (a bounded menu, like every other list here). */
13
+ export declare const RECENT_FOLDER_LIMIT = 8;
14
+ /**
15
+ * Where the workspace ledger lives.
16
+ *
17
+ * `DSH_HOME` wins when set, because that is the same override the Harness itself
18
+ * honours; otherwise the ledger sits under the account's own `.dsh`. A test needs
19
+ * to point this somewhere it can control without touching the real home, which is
20
+ * why it is a function rather than a constant.
21
+ * @returns the absolute path of `workspace.json`.
22
+ */
23
+ export declare function ledgerPath(): string;
24
+ /**
25
+ * Every workspace path the ledger records, with its recency and session count.
26
+ *
27
+ * A missing, unreadable, or malformed ledger answers `[]` rather than throwing:
28
+ * the folder chooser must stay usable on a machine that has never recorded a
29
+ * workspace, and "no candidates" is a legitimate state the UI already renders.
30
+ * @param signal - caller lifetime.
31
+ * @returns the recorded workspaces, or `[]` when there is no usable ledger.
32
+ */
33
+ export declare function readWorkspaces(signal: AbortSignal): Promise<readonly RecentFolder[]>;
34
+ /**
35
+ * Parse the ledger document's workspace table.
36
+ *
37
+ * Split from the read so the shape handling is testable without a file: the
38
+ * ledger is a versioned store the Harness owns, so each field is treated as
39
+ * untrusted and a row missing its path is dropped instead of producing a row
40
+ * that browses nowhere.
41
+ * @param text - the raw ledger document.
42
+ * @returns the usable workspace rows.
43
+ */
44
+ export declare function parseWorkspaces(text: string): readonly RecentFolder[];
45
+ /**
46
+ * Order the ledger's workspaces for one current workspace.
47
+ *
48
+ * @param all - every recorded workspace (see {@link readWorkspaces}).
49
+ * @param cwd - the session's current workspace, or '' when it has none.
50
+ * @returns the offered candidates, nearest-relevant first, at most {@link RECENT_FOLDER_LIMIT}.
51
+ */
52
+ export declare function rankRecentFolders(all: readonly RecentFolder[], cwd: string): readonly RecentFolder[];
@@ -6,7 +6,9 @@ import { type ExternalAccess } from './external.ts';
6
6
  *
7
7
  * Paths that escape the workspace, are external without access, or do not exist
8
8
  * come back with `exists: false` rather than being dropped, so the dock can
9
- * attribute the failure to the exact token the user typed.
9
+ * attribute the failure to the exact token the user typed. An absolute path that
10
+ * lands inside the workspace is a workspace path, not an external one, so it is
11
+ * inspected exactly like its relative spelling.
10
12
  * @param cwd - the session workspace root (absolute).
11
13
  * @param targets - paths as typed, already stripped of line ranges.
12
14
  * @param signal - caller lifetime.
@@ -12,11 +12,16 @@
12
12
  import type { Agent } from '@deepseek-ai/dsh-agent';
13
13
  import type { ContentBlock, UserMessage } from '@deepseek-ai/dsh-llm';
14
14
  import type { AtlasCallContext, AtlasRegistration } from './atlas.ts';
15
+ import { PLUGIN_MENTION_PATTERN } from './tokens.ts';
15
16
  import { type SessionReferenceInput } from '@deepseek-ai/dsh-session-reference';
16
17
  /** The `@skill:name` mention token: `@skill:` then a whitespace/@-free name. */
17
18
  export declare const SKILL_MENTION_PATTERN: RegExp;
18
- /** The `@plugin:name` mention token: `@plugin:` then a whitespace/@-free module name. */
19
- export declare const PLUGIN_MENTION_PATTERN: RegExp;
19
+ /**
20
+ * The `@plugin:<module>` mention token. A plugin is named by its npm MODULE
21
+ * name, which may be scoped (`@plugin:@sidequest-007/dsh-atlas`); the grammar
22
+ * lives in `./tokens.ts` so the Host and the client agree on it (m05904).
23
+ */
24
+ export { PLUGIN_MENTION_PATTERN };
20
25
  /** The source tag skill reference messages carry (transcript consumers use it). */
21
26
  declare module '@deepseek-ai/dsh-llm' {
22
27
  interface MessageSourceMap {
@@ -11,10 +11,11 @@ import type { Context } from '@deepseek-ai/cordis';
11
11
  import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
12
12
  import type { Agent } from '@deepseek-ai/dsh-agent';
13
13
  import { type ExternalAccess } from './external.ts';
14
- import type { DirectoryListing, ExternalAccessScope } from './contract.ts';
14
+ import type { BrowseListing, DirectoryListing, ExternalAccessScope } from './contract.ts';
15
15
  import type { AtFileSettings, AtFileSettingsUpdate, ChatCandidate, FileEntry, GitChange, PluginCandidate, ReferenceInfo, SkillCandidate } from './contract.ts';
16
16
  import type { ResolvedConfig } from './types.ts';
17
17
  import { type AtlasRegistration, type AtlasRuntimeInfo } from './atlas.ts';
18
+ import { type RecentFolder } from './recent-folders.ts';
18
19
  /** At-file workspace service: search the cwd index for the browser picker. */
19
20
  export declare class AtFileRuntime extends TypertRemoteService {
20
21
  private readonly config;
@@ -80,7 +81,10 @@ export declare class AtFileRuntime extends TypertRemoteService {
80
81
  * One bounded, one-level listing of one directory, for the folder browser and
81
82
  * the folder tab.
82
83
  *
83
- * `''` means the session's workspace root, which is where a browser starts. A
84
+ * `''` means the layer the chooser opens at, which `browseRoot` picks so that
85
+ * this session can actually browse it: the top of the file system when the
86
+ * session may reach it, and the workspace itself when it may not — a browser
87
+ * that opens where it is refused shows no options at all. A
84
88
  * workspace path is always allowed; an out-of-workspace one goes through the
85
89
  * SAME gate as a reference (`allowsExternal`), so browsing can never see a path
86
90
  * the session may not reference — and the refusal comes back as a reason rather
@@ -88,10 +92,56 @@ export declare class AtFileRuntime extends TypertRemoteService {
88
92
  * the browser has to say in its own words instead of an exception.
89
93
  * @param agent - the live agent; its session header owns the workspace cwd.
90
94
  * @param path - absolute path, workspace-relative path, or `''` for the root.
95
+ * @param include - ONE child name to guarantee in the page (`''` = no preference);
96
+ * the folder tab passes the object it must select, because the entry cap can cut
97
+ * a page that does not contain it (see {@link pinEntry}).
91
98
  * @param signal - caller lifetime.
92
99
  * @returns the listing, or the reason it could not be produced.
93
100
  */
94
- list(agent: Agent, path: string, signal: AbortSignal): Promise<DirectoryListing>;
101
+ list(agent: Agent, path: string, include: string, signal: AbortSignal): Promise<DirectoryListing>;
102
+ /**
103
+ * One listing for the folder chooser, which browses while the user types.
104
+ *
105
+ * Where {@link list} answers "what is in this directory", this answers "what is
106
+ * in the nearest directory that can be shown": a path that does not exist — a
107
+ * half-typed folder name is the NORMAL case while the editor is typed into — is
108
+ * answered with its longest valid directory prefix, and `requested` carries the
109
+ * asked-for path (canonical spelling, so it always starts with `path`) so the
110
+ * chooser filters that prefix's children by the remaining segment instead of
111
+ * showing an error for every keystroke. The same walk-up covers a path that names
112
+ * a file: the file's folder is listed, and the name becomes the filter.
113
+ *
114
+ * Every row also says whether it opens (`hasChildren`), which is what lets a row
115
+ * be a group the user expands in place instead of a leap of faith. The probes run
116
+ * in parallel under a deadline; a row left without the flag is a row the chooser
117
+ * may still probe, whereas a WRONG flag would hide a folder the user asked to
118
+ * see.
119
+ * @param agent - the live agent; its session header owns the workspace cwd.
120
+ * @param path - absolute path, typed text, or `''` for the default layer.
121
+ * @param signal - caller lifetime.
122
+ * @returns the listing, or the reason it could not be produced.
123
+ */
124
+ browse(agent: Agent, path: string, signal: AbortSignal): Promise<BrowseListing>;
125
+ /**
126
+ * Folders to OFFER the folder chooser before it browses anywhere.
127
+ *
128
+ * The chooser's hard question is not how to browse but where the folder is, and
129
+ * the most likely answers are already recorded: the workspaces this machine has
130
+ * opened (`~/.dsh/storages/workspace.json`), ranked so that the current
131
+ * workspace's siblings come first. Reading that ledger is a table lookup, where
132
+ * searching for the same folder means walking file systems (measured: a bounded
133
+ * whole-drive walk cost 36 s at depth 3 and did not finish unbounded), so the
134
+ * candidates are the cheap form of the same answer.
135
+ *
136
+ * Not gated by `allowsExternal`: these are folders the user has ALREADY opened
137
+ * as a workspace on this machine, so offering them reveals nothing the ledger
138
+ * did not already hold, and the chooser re-checks every path it actually
139
+ * browses or adopts through the normal reference gate.
140
+ * @param agent - the live agent; its session header owns the workspace cwd.
141
+ * @param signal - caller lifetime.
142
+ * @returns the ranked candidates (possibly empty; never an error).
143
+ */
144
+ recentFolders(agent: Agent, signal: AbortSignal): Promise<readonly RecentFolder[]>;
95
145
  }
96
146
  /** Host-side capability faces the atMention service forwards to. */
97
147
  export interface MentionRuntimeDeps {