@skill-map/cli 0.28.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/cli/tutorial/sm-tutorial.md +94 -20
  2. package/dist/cli.js +1561 -1214
  3. package/dist/cli.js.map +1 -1
  4. package/dist/index.js +116 -99
  5. package/dist/index.js.map +1 -1
  6. package/dist/kernel/index.d.ts +903 -1004
  7. package/dist/kernel/index.js +116 -99
  8. package/dist/kernel/index.js.map +1 -1
  9. package/dist/ui/chunk-3SI3TVER.js +7 -0
  10. package/dist/ui/{chunk-4GTCV7V4.js → chunk-47OZB7LR.js} +1 -1
  11. package/dist/ui/{chunk-JMP2LDMI.js → chunk-5JBW2LUN.js} +1 -1
  12. package/dist/ui/{chunk-Y7MXGXU3.js → chunk-DZBSELHN.js} +1 -1
  13. package/dist/ui/{chunk-Z2667C3S.js → chunk-FEPH4VNB.js} +1 -1
  14. package/dist/ui/{chunk-PY2R7LHN.js → chunk-FQOZBFJ5.js} +1 -1
  15. package/dist/ui/chunk-HOJFYUH4.js +123 -0
  16. package/dist/ui/{chunk-WOLLYGGL.js → chunk-KJQEO6P3.js} +1 -1
  17. package/dist/ui/chunk-LNRQ7VKE.js +1 -0
  18. package/dist/ui/{chunk-VO6NF24F.js → chunk-LS2NXZQZ.js} +1 -1
  19. package/dist/ui/{chunk-J3YWUNFO.js → chunk-LTQTJU54.js} +1 -1
  20. package/dist/ui/{chunk-6BG7PBUN.js → chunk-NGIFGXW7.js} +1 -1
  21. package/dist/ui/{chunk-5W6J6H76.js → chunk-SBCO7ZSP.js} +1 -1
  22. package/dist/ui/chunk-VB56BUGO.js +1 -0
  23. package/dist/ui/{chunk-UXCAEDR6.js → chunk-VDQLDTTR.js} +1 -1
  24. package/dist/ui/{chunk-AD7RBRD3.js → chunk-WJLIYGWJ.js} +5 -5
  25. package/dist/ui/chunk-YQIWQVJ6.js +317 -0
  26. package/dist/ui/favicon-matrix.svg +15 -0
  27. package/dist/ui/index.html +12 -2
  28. package/dist/ui/main-X5YGJFU6.js +2 -0
  29. package/dist/ui/{styles-IKG3B6AM.css → styles-2WO3KNOY.css} +1 -1
  30. package/package.json +10 -7
  31. package/dist/ui/chunk-BGDH7CDV.js +0 -1
  32. package/dist/ui/chunk-H2J55DNK.js +0 -7
  33. package/dist/ui/chunk-Q7L6LLAK.js +0 -1
  34. package/dist/ui/chunk-VH5GRUT7.js +0 -255
  35. package/dist/ui/chunk-XCUOAV77.js +0 -123
  36. package/dist/ui/main-TZL26MZU.js +0 -2
@@ -1,123 +0,0 @@
1
- import{b as Lt,c as w,d as Rt,e as Ie}from"./chunk-BGDH7CDV.js";import{a as wt,b as kt,c as Se,d as Pe,e as St,f as Pt,g as Ot}from"./chunk-AD7RBRD3.js";import{a as Te,b as Me,c as Ft,d as Dt,e as At,f as jt,g as Nt,h as Vt,i as re,j as ae}from"./chunk-UXCAEDR6.js";import{e as Et,f as Ee,h as ne,i as ie,j as oe,l as Tt,m as Mt,n as It}from"./chunk-VO6NF24F.js";import{$ as nt,Aa as at,Ba as Q,Bc as ee,Hb as Z,I as Ye,Ic as Ce,J as Je,Jb as ut,Jc as we,K as Ze,Ka as u,Lc as xt,M as et,Na as _,O as k,Oa as b,Oc as yt,Pa as st,Qa as X,Qb as mt,Ra as O,S as tt,Sa as F,T as S,Ta as m,Tb as C,U as P,Ua as l,Uc as vt,Va as a,Vc as me,Wa as M,Wb as ve,Wc as Ct,Xa as f,Xb as V,Ya as x,Yb as ht,Za as J,ab as lt,bd as ke,cc as ze,cd as te,da as y,db as I,dc as _t,ea as N,eb as Y,fb as v,ga as Re,hb as s,id as G,jd as z,ka as it,kb as dt,la as pe,lb as ct,mb as fe,nb as xe,oa as r,oc as bt,pb as gt,pc as ft,qb as pt,sb as Be,tb as $,ub as ye,vb as ue,wa as A,wb as d,xa as ot,xb as h,yb as p,za as rt,zb as R}from"./chunk-J3YWUNFO.js";import"./chunk-H2J55DNK.js";import{a as q,b as W}from"./chunk-Q7L6LLAK.js";function gn(t,n){if(t&1&&(f(0,"p",6),d(1),x()),t&2){let e=s();r(),R(" ",e.texts.aboutErrorPrefix," ",e.loadError()," ")}}var Oe=class t{dataSource=k(G);updateCheck=k(Lt);theme=k(Ie);visible=V.required();texts=w;health=y(null);loadError=y(null);markSrc=C(()=>this.theme.resolved()==="dark"?"skill-map-mark-light.svg":"skill-map-mark-dark.svg");cliVersion=C(()=>this.updateCheck.current()??this.health()?.implVersion??this.texts.aboutUnknown);specVersion=C(()=>this.health()?.specVersion??this.texts.aboutLoading);schemaVersion=C(()=>this.health()?.schemaVersion??this.texts.aboutLoading);cwd=C(()=>this.health()?.cwd??this.texts.aboutLoading);dbDisplay=C(()=>{let n=this.health();return n?this.texts.aboutDbValue(n.db,pn(n.dbPath,n.cwd)):this.texts.aboutLoading});constructor(){N(()=>{this.visible()&&this.health()===null&&this.load()})}async load(){this.loadError.set(null);try{let n=await this.dataSource.health();this.health.set(n)}catch(n){let e=n instanceof z||n instanceof Error?n.message:String(n);this.loadError.set(e)}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["sm-settings-about"]],inputs:{visible:[1,"visible"]},decls:57,vars:25,consts:[["aria-labelledby","settings-about-heading","data-testid","settings-about",1,"settings-about"],[1,"settings-about__header"],["alt","","aria-hidden","true","data-testid","settings-about-logo",1,"settings-about__logo",3,"src"],[1,"settings-about__heading-text"],["id","settings-about-heading",1,"settings-about__title"],[1,"settings-about__intro"],["data-testid","settings-about-error",1,"settings-about__error"],["target","_blank","rel","noopener noreferrer","data-testid","settings-about-star",1,"settings-about__star",3,"href"],["aria-hidden","true",1,"fa-solid","fa-star","settings-about__star-icon"],[1,"settings-about__star-text"],[1,"settings-about__star-heading"],[1,"settings-about__star-body"],[1,"settings-about__star-cta"],["aria-hidden","true",1,"fa-solid","fa-star"],[1,"settings-about__list"],[1,"settings-about__row"],[1,"settings-about__label"],[1,"settings-about__value"],["target","_blank","rel","noopener noreferrer","data-testid","settings-about-website",1,"settings-about__link",3,"href"],["target","_blank","rel","noopener noreferrer","data-testid","settings-about-github",1,"settings-about__link",3,"href"],["data-testid","settings-about-cli",1,"settings-about__value"],["data-testid","settings-about-spec",1,"settings-about__value"],["data-testid","settings-about-schema",1,"settings-about__value"],["data-testid","settings-about-cwd",1,"settings-about__value"],["data-testid","settings-about-db",1,"settings-about__value"]],template:function(e,i){e&1&&(f(0,"section",0)(1,"header",1),J(2,"img",2),f(3,"div",3)(4,"h2",4),d(5),x(),f(6,"p",5),d(7),x()()(),_(8,gn,2,2,"p",6),f(9,"a",7),J(10,"i",8),f(11,"span",9)(12,"span",10),d(13),x(),f(14,"span",11),d(15),x()(),f(16,"span",12),J(17,"i",13),d(18),x()(),f(19,"dl",14)(20,"div",15)(21,"dt",16),d(22),x(),f(23,"dd",17)(24,"a",18),d(25),x()()(),f(26,"div",15)(27,"dt",16),d(28),x(),f(29,"dd",17)(30,"a",19),d(31),x()()(),f(32,"div",15)(33,"dt",16),d(34),x(),f(35,"dd",20),d(36),x()(),f(37,"div",15)(38,"dt",16),d(39),x(),f(40,"dd",21),d(41),x()(),f(42,"div",15)(43,"dt",16),d(44),x(),f(45,"dd",22),d(46),x()(),f(47,"div",15)(48,"dt",16),d(49),x(),f(50,"dd",23),d(51),x()(),f(52,"div",15)(53,"dt",16),d(54),x(),f(55,"dd",24),d(56),x()()()()),e&2&&(r(2),Y("src",i.markSrc(),pe),r(3),p(" ",i.texts.aboutHeading," "),r(2),h(i.texts.aboutIntro),r(),b(i.loadError()?8:-1),r(),Y("href",i.texts.aboutGithubUrl,pe),u("aria-label",i.texts.aboutStarA11y),r(4),h(i.texts.aboutStarHeading),r(2),h(i.texts.aboutStarBody),r(3),p(" ",i.texts.aboutStarCta," "),r(4),h(i.texts.aboutWebsiteLabel),r(2),Y("href",i.texts.aboutWebsiteUrl,pe),r(),h(i.texts.aboutWebsiteUrl),r(3),h(i.texts.aboutGithubLabel),r(2),Y("href",i.texts.aboutGithubUrl,pe),r(),h(i.texts.aboutGithubUrl),r(3),h(i.texts.aboutCliLabel),r(2),p(" ",i.cliVersion()," "),r(3),h(i.texts.aboutSpecLabel),r(2),p(" ",i.specVersion()," "),r(3),h(i.texts.aboutSchemaLabel),r(2),p(" ",i.schemaVersion()," "),r(3),h(i.texts.aboutFolderLabel),r(2),p(" ",i.cwd()," "),r(3),h(i.texts.aboutDbLabel),r(2),p(" ",i.dbDisplay()," "))},styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-about[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.settings-about__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.settings-about__logo[_ngcontent-%COMP%]{width:64px;height:64px;flex-shrink:0}.settings-about__heading-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:0}.settings-about__title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;margin:0}.settings-about__intro[_ngcontent-%COMP%]{margin:0;color:var(--p-text-muted-color);font-size:.875rem}.settings-about__error[_ngcontent-%COMP%]{margin:0;padding:.5rem .75rem;border-radius:var(--p-border-radius);background:var(--p-message-error-background);color:var(--p-message-error-color);font-size:.875rem}.settings-about__list[_ngcontent-%COMP%]{margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.settings-about__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:180px 1fr;align-items:baseline;gap:.75rem;padding:.5rem .75rem;border-radius:var(--p-border-radius)}.settings-about__row[_ngcontent-%COMP%]:nth-child(odd){background:var(--p-content-hover-background)}.settings-about__label[_ngcontent-%COMP%]{margin:0;font-size:.875rem;color:var(--p-text-muted-color)}.settings-about__value[_ngcontent-%COMP%]{margin:0;font-family:var(--p-monospace-font-family);font-size:.875rem;word-break:break-all}.settings-about__link[_ngcontent-%COMP%]{color:var(--p-primary-color);text-decoration:none}.settings-about__link[_ngcontent-%COMP%]:hover, .settings-about__link[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}.settings-about__star[_ngcontent-%COMP%]{--star-accent: #f4b400;display:flex;align-items:center;gap:.875rem;padding:.875rem 1rem;border-radius:var(--p-border-radius);border:1px solid color-mix(in oklab,var(--star-accent) 45%,transparent);background:color-mix(in oklab,var(--star-accent) 12%,transparent);color:var(--p-text-color);text-decoration:none;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}.settings-about__star[_ngcontent-%COMP%]:hover, .settings-about__star[_ngcontent-%COMP%]:focus-visible{background:color-mix(in oklab,var(--star-accent) 22%,transparent);border-color:color-mix(in oklab,var(--star-accent) 70%,transparent);transform:translateY(-1px);outline:none}.app-dark[_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--star-accent) 18%,transparent);border-color:color-mix(in oklab,var(--star-accent) 55%,transparent)}.app-dark[_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:hover, .app-dark [_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:hover, .app-dark[_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:focus-visible, .app-dark [_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:focus-visible{background:color-mix(in oklab,var(--star-accent) 30%,transparent);border-color:var(--star-accent)}.settings-about__star-icon[_ngcontent-%COMP%]{font-size:1.5rem;color:var(--star-accent);flex-shrink:0}.settings-about__star-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-about__star-heading[_ngcontent-%COMP%]{font-weight:600;font-size:.95rem}.settings-about__star-body[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--p-text-muted-color);line-height:1.4}.settings-about__star-cta[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .75rem;border-radius:var(--sm-radius-pill);background:var(--star-accent);color:#1a1a1a;font-weight:600;font-size:.8125rem;white-space:nowrap;flex-shrink:0}.settings-about__star[_ngcontent-%COMP%]:hover .settings-about__star-cta[_ngcontent-%COMP%], .settings-about__star[_ngcontent-%COMP%]:focus-visible .settings-about__star-cta[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--star-accent) 88%,white)}"],changeDetection:0})};function pn(t,n){if(!t||!n)return t;let e=n.replace(/[/\\]+$/,"");return t.startsWith(e)?t.slice(e.length).replace(/^[/\\]+/,""):t}var Bt={schemaVersion:1,entries:[{version:"0.28.0",date:"2026-05-15",kind:"user-facing",highlights:[{body:"A new **Matrix** theme is now available in Settings \u2192 General \u2192 Theme. Once enabled it overrides the topbar dark/light toggle; click that toggle to exit Matrix and return to your previous dark/light mode in one step.",packages:["@skill-map/cli"]},{body:"`sm plugins show core` (and the same verb against any user plugin) now groups extensions by kind in pipeline order, **provider, extractor, analyzer, action, formatter, hook**, with each group sorted by id. The JSON output is unchanged.",packages:["@skill-map/cli"]},{body:'The `Update available` banner now leads with a **down arrow** (`\u2B07`) instead of the previous up arrow, reading as "an update is coming in" rather than "upgrade outward".',packages:["@skill-map/cli"]}]},{version:"0.26.2",date:"2026-05-15",kind:"user-facing",highlights:[{body:"`sm plugins show <bundle>/<ext>` now shows the requested extension's own detail (Kind, Version, Stability, Description, Preconditions, Entry) instead of dumping the parent bundle. `--json` returns just that extension. Bare bundle ids (`sm plugins show core`) are unchanged.",packages:["@skill-map/cli"]}]},{version:"0.26.0",date:"2026-05-15",kind:"user-facing",highlights:[{body:"**Bidirectional `.sm` relations no longer double-count.** A relation declared from both sides (e.g. `supersedes` + `supersededBy`) now tallies as `1` in the `linksIn` / `linksOut` chips and the graph. Before, the count was inflated on cold start and dropped on the next save.",packages:["@skill-map/cli"]},{body:"The `.sm` annotation catalog shrinks from 13 to 10 fields. `requires`, `related`, and `conflictsWith` were dropped, their edges all rendered as plain `references` and added no extra meaning. Existing sidecars keep working; the three keys are now flagged by `unknown-field`.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"**Broken frontmatter now lights up on the graph.** Vendor agent/skill nodes missing `name` or `description` show a red alert badge and a matching footer chip, same chassis as broken references. Trigger-style links (`/cmd`, `@handle`) now also tally into the target's `linksIn`.",packages:["@skill-map/cli"]}]},{version:"0.25.0",date:"2026-05-14",kind:"user-facing",highlights:[{body:"**`sm list` and `sm show` now report tokens, not bytes.** The `BYTES` column on `sm list` is now `TOKENS` (cl100k_base, frontmatter + body), and `sm show` lists `Tokens:` instead of `Bytes:`. Sort with `--sort-by tokens_total`. `--json` is unchanged.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"**`sm tutorial master`** materializes the advanced tester walkthrough (`sm-master.md`) in your cwd. Trigger it from Claude Code with `ejecut\xE1 @sm-master.md`. Bare `sm tutorial` keeps its previous behaviour and writes `sm-tutorial.md`.",packages:["@skill-map/cli","@skill-map/spec"]}]},{version:"0.24.5",date:"2026-05-14",kind:"internal",highlights:[]},{version:"0.24.4",date:"2026-05-13",kind:"internal",highlights:[]},{version:"0.24.3",date:"2026-05-13",kind:"internal",highlights:[]},{version:"0.24.2",date:"2026-05-13",kind:"user-facing",highlights:[{body:'**Graph edge style picker** \u2014 Settings \u2192 General now has an "Edge style" control. Pick **Orthogonal**, **Straight**, **Bezier**, or **Adaptive curve** (new default) and the graph re-renders immediately. The choice is remembered in this browser only.',packages:["@skill-map/cli"]},{body:"**Edge look refresh** \u2014 graph edges now show a small **dot at the start** and arrow at the end, with thinner strokes and softer colors. Kind colors (invokes / references / mentions / supersedes) are still distinct but no longer compete with the node cards for attention.",packages:["@skill-map/cli"]},{body:"**Click an edge to highlight it** \u2014 clicking a connection in the graph now selects it: the line grows a touch thicker and saturates to its full colour (same hue as the base, just louder). Click elsewhere on the canvas to clear the selection.",packages:["@skill-map/cli"]},{body:"**Footer link icons refresh** \u2014 the incoming / outgoing link counters on each node card now use the classic **download / upload** glyphs instead of plain up / down arrows. The arrow shape stays exclusive to the graph's edges, which keeps the visual vocabulary clearer.",packages:["@skill-map/cli"]}]},{version:"0.24.1",date:"2026-05-13",kind:"user-facing",highlights:[{body:'**Graph edge style picker** \u2014 Settings \u2192 General now has an "Edge style" control. Pick **Orthogonal** (default), **Straight**, **Bezier**, or **Adaptive curve** and the graph re-renders immediately. The choice is remembered in this browser only.',packages:["@skill-map/cli"]}]},{version:"0.24.0",date:"2026-05-13",kind:"user-facing",highlights:[{body:"**CLI flags fixed.** `sm refresh`, `sm watch`, `sm jobs prune` now honor `--db` / `-g`. `sm watch` and `sm scan --watch` honor `--no-color`. `sm scan --watch` names the conflicting flag on combo errors. `sm conformance run` progress moved to stderr; `--quiet` silences it.",packages:["@skill-map/cli"]}]},{version:"0.23.1",date:"2026-05-12",kind:"user-facing",highlights:[{body:"Inspector chips and the hero card now render their variant styling (link, warn, broken, danger, hero accent border). They had silently been rendering as bare defaults since PrimeNG 21 changed how `[styleClass]` is applied to chip and card hosts.",packages:["@skill-map/cli"]}]},{version:"0.23.0",date:"2026-05-12",kind:"user-facing",highlights:[{body:'Node inspector will split actions into "Applicable" (always available) and "Recommended" (per finding). First pairing: stale sidecar recommends running `bump`. UI hookup lands in the next iteration; the spec field ships first.',packages:["@skill-map/cli","@skill-map/spec"]},{body:"`sm plugins create <id> -g` now scaffolds under `~/.skill-map/plugins/<id>` instead of the project dir. The flag was advertised in `--help` but previously ignored.",packages:["@skill-map/cli"]},{body:"`sm refresh`, `sm plugins doctor`, and `sm conformance run` now respect `--json` for machine-readable output. `sm graph --format json` is a new format that emits the full ScanResult. CI / scripts can parse these instead of the human text.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"`sm serve` now rejects browser requests whose `Host` or `Origin` is not a loopback name. Closes a DNS-rebinding lane where a malicious page could trigger scans or settings writes. `--dev-cors` still works for Vite-style dev UIs on a different loopback port.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"`sm` now refuses to grant the `.sm` write consent (or apply `scan.extraFolders` / `scan.referencePaths`) from user-level config. The first prompt re-appears per project. Move stray values into `<project>/.skill-map/settings.local.json` (gitignored).",packages:["@skill-map/cli"]}]},{version:"0.22.0",date:"2026-05-12",kind:"user-facing",highlights:[{body:'The "include HOME" toggle is gone. To scan paths outside the project, list them in **Extra folders to scan** (renamed from *Extra roots*). If you had `scan.includeHome: true`, add the paths you actually need (e.g. `~/.claude/agents`), not one click anymore.',packages:["@skill-map/cli","@skill-map/spec"]}]},{version:"0.21.0",date:"2026-05-10",kind:"user-facing",highlights:[{body:"Expanded node cards now show the file path above the description and a provider chip (Claude, Gemini, Open Skills). Favorite toggle uses a star instead of a heart.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"Disabling a plugin now removes its card chips from the UI immediately. Previously the chips lingered until the next `sm scan`, making the toggle look broken.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"The card footer is cleaner: the three outgoing counters (`@`-mentions, markdown links, `/`-commands) share a single `\u2193` arrow glyph on the left, and the URL counter keeps its link glyph on the right. Three legacy hardcoded chips (in / out links, external URLs) were removed.",packages:["@skill-map/cli"]},{body:"`sm plugins show core/<ext>` now resolves like `enable`/`disable` do, and `sm plugins list` marks individually-disabled extensions with `\u2715`. The `sm tutorial` content is realigned with the v0.20.0 verbs (no more `sm graph --root` / `sm export --kind` / `kind: hook` claims).",packages:["@skill-map/cli"]},{body:"The view slot `card.footer.left.counter` was renamed to `card.footer.left`, symmetrical with `card.footer.right`. Plugin authors using the old literal in `plugin.json` need to update it; the scaffolder emits the new name automatically.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"The topbar now shows the full project path under the **skill-map** wordmark, so a screenshot or a quick glance at the UI is always self-identifying. Previously only the last folder segment was shown, and projects scanned from their own root saw no path at all.",packages:["@skill-map/cli"]}]},{version:"0.20.0",date:"2026-05-10",kind:"user-facing",highlights:[{body:'**Update-check is now a user preference.** Whether you see "Update available" notifications no longer depends on the project you are scanning. The toggle moved to **Settings \u2192 General**; the CLI equivalent is `sm config set -g updateCheck.enabled <bool>`.',packages:["@skill-map/cli"]},{body:"**`sm scan` now flags orphan job files.** A new check scans `.skill-map/jobs/` for MD files that no DB row references and reports each as a `warn` issue. To delete the files, run `sm bump prune --orphan-files` (unchanged).",packages:["@skill-map/cli"]},{body:"**`sm scan -g` now scans your HOME directory.** Run `sm scan -g` (without positional roots) to walk every active provider's HOME dir, typically `~/.claude`, `~/.gemini`, `~/.agents`, using the global config + DB.",packages:["@skill-map/cli"]},{body:"**Three new privacy-sensitive project settings** in Settings \u2192 Project: *include HOME provider directories*, *extra scan roots*, and *reference paths for link validation*. Every change that expands disk access beyond your project root requires explicit confirmation.",packages:["@skill-map/cli"]},{body:'**Reset Layout uses a proper dialog.** The "Reset all node positions" action used to fire a browser-native `confirm()` popup; it now uses the in-app dialog style with a destructive-styled "Reset" button and a "Cancel" escape.',packages:["@skill-map/cli"]},{body:'**Plugins can be locked by the host.** Settings \u2192 Plugins shows a "Locked" pill on plugins marked as mandatory (today only `core/markdown`, the universal `.md` fallback). The toggle stays visible but disabled, with a tooltip explaining why.',packages:["@skill-map/cli"]}]},{version:"0.19.0",date:"2026-05-09",kind:"user-facing",highlights:[{body:"**Settings \u2192 Changelog.** The Changelog tab in Settings now lists what's new in skill-map: one entry per release, newest first, bullet points for the user-facing changes. Bundled with the demo so it's available offline too.",packages:["@skill-map/cli"]},{body:"**Tags zoom-to-matching.** Clicking a tag chip in the inspector now pans + zooms the graph to fit every node that carries the tag. Click the same chip again to clear the selection and return to the previous view.",packages:["@skill-map/cli"]}]},{version:"0.18.0",date:"2026-05-07",kind:"user-facing",highlights:[{body:"**Bump sidecars in batch.** New `sm bump --pending` walks every node whose `.sm` sidecar reports drift and refreshes them in one pass. Single-node `sm bump <path>` also lands.",packages:["@skill-map/cli"]},{body:'**Annotation field dropped: `released`.** Redundant with `audit.lastBumpedAt`. The inspector and node card now read the activity timestamp from the `audit:` block, no more confusion between "officially released" and "last bumped".',packages:["@skill-map/cli"]}]},{version:"0.17.0",date:"2026-04-29",kind:"user-facing",highlights:[{body:"**Per-node chips in the graph card and inspector.** Plugins can now decorate nodes with counters, alerts, and key-value rows. Two come built-in: external-URL count per node, and in/out link counts.",packages:["@skill-map/cli"]},{body:"**Multi-provider graphs.** Claude, Gemini, and the open-standard `agent-skills` flavour now coexist in the same graph. Cards paint with each Provider's accent; the kind palette in the graph view filters on the actual node kind names.",packages:["@skill-map/cli"]}]}]};var zt=Bt;var mn=(t,n)=>n.version;function hn(t,n){if(t&1&&(f(0,"p",3),d(1),x()),t&2){let e=s();r(),p(" ",e.texts.changelogEmpty," ")}}function _n(t,n){if(t&1&&(f(0,"p",10),d(1),x()),t&2){let e=s(3);r(),p(" ",e.texts.changelogInternalRelease," ")}}function bn(t,n){if(t&1&&(f(0,"li",15),d(1),x()),t&2){let e=n.$implicit;r(),h(e)}}function fn(t,n){if(t&1&&(f(0,"ul",14),O(1,bn,2,1,"li",15,X),x()),t&2){let e=s().$implicit,i=s(4);u("aria-label",i.texts.changelogAffectedPackages),r(),F(e.packages)}}function xn(t,n){if(t&1&&(f(0,"li",12),J(1,"div",13),_(2,fn,3,1,"ul",14),x()),t&2){let e=n.$implicit;r(),Y("innerHTML",e.bodyHtml,it),r(),b(e.packages.length?2:-1)}}function yn(t,n){if(t&1&&(f(0,"ul",11),O(1,xn,3,2,"li",12,st),x()),t&2){let e=s().$implicit;r(),F(e.highlights)}}function vn(t,n){if(t&1&&(f(0,"li",6)(1,"header",7)(2,"span",8),d(3),x(),f(4,"span",9),d(5),x()(),_(6,_n,2,1,"p",10)(7,yn,3,0,"ul",11),x()),t&2){let e=n.$implicit;$("settings-changelog__entry--internal",e.kind==="internal"),u("data-testid","settings-changelog-entry-"+e.version),r(3),p("v",e.version),r(2),h(e.date),r(),b(e.kind==="internal"?6:7)}}function Cn(t,n){if(t&1&&(f(0,"ol",4),O(1,vn,8,6,"li",5,mn),x()),t&2){let e=s();r(),F(e.entries())}}var Fe=class t{markdown=k(Ot);texts=w;entries=y([]);hasEntries=C(()=>this.entries().length>0);ngOnInit(){this.renderAll()}async renderAll(){let n=[];for(let e of zt.entries){let i=[];for(let o of e.highlights)i.push({bodyHtml:await this.markdown.render(o.body),packages:o.packages});n.push({version:e.version,date:this.formatDate(e.date),kind:e.kind,highlights:i})}this.entries.set(n)}formatDate(n){let e=new Date(n+"T00:00:00Z");return Number.isNaN(e.getTime())?n:new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(e)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["sm-settings-changelog"]],decls:7,vars:4,consts:[["data-testid","settings-changelog",1,"settings-changelog"],["id","settings-changelog-heading",1,"settings-changelog__title"],[1,"settings-changelog__intro"],["data-testid","settings-changelog-empty",1,"settings-changelog__empty"],["role","list",1,"settings-changelog__list"],[1,"settings-changelog__entry",3,"settings-changelog__entry--internal"],[1,"settings-changelog__entry"],[1,"settings-changelog__entry-header"],[1,"settings-changelog__version"],[1,"settings-changelog__date"],[1,"settings-changelog__internal-body"],["role","list",1,"settings-changelog__highlights"],[1,"settings-changelog__highlight"],[1,"settings-changelog__highlight-body",3,"innerHTML"],["role","list",1,"settings-changelog__packages"],[1,"settings-changelog__package"]],template:function(e,i){e&1&&(f(0,"section",0)(1,"h2",1),d(2),x(),f(3,"p",2),d(4),x(),_(5,hn,2,1,"p",3)(6,Cn,3,0,"ol",4),x()),e&2&&(u("aria-labelledby","settings-changelog-heading"),r(2),p(" ",i.texts.changelogHeading," "),r(2),h(i.texts.changelogIntro),r(),b(i.hasEntries()?6:5))},styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-changelog__title[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:1.05rem;font-weight:600;color:var(--p-text-color)}.settings-changelog__intro[_ngcontent-%COMP%]{margin:0 0 1.25rem;font-size:.85rem;color:var(--sm-text-muted);line-height:1.5}.settings-changelog__empty[_ngcontent-%COMP%]{margin:1.5rem 0 0;font-size:.9rem;color:var(--sm-text-muted);font-style:italic}.settings-changelog__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1.25rem}.settings-changelog__entry[_ngcontent-%COMP%]{border-left:2px solid var(--p-primary-color);padding:.25rem 0 .25rem .85rem}.settings-changelog__entry--internal[_ngcontent-%COMP%]{border-left-color:var(--sm-border)}.settings-changelog__entry-header[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:.6rem;margin-bottom:.45rem}.settings-changelog__version[_ngcontent-%COMP%]{font-family:var(--sm-font-mono);font-size:.95rem;font-weight:600;color:var(--p-text-color)}.settings-changelog__date[_ngcontent-%COMP%]{font-size:.78rem;color:var(--sm-text-muted)}.settings-changelog__internal-body[_ngcontent-%COMP%]{margin:0;font-size:.85rem;color:var(--sm-text-muted);font-style:italic}.settings-changelog__highlights[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem}.settings-changelog__highlight[_ngcontent-%COMP%]{font-size:.88rem;line-height:1.5;color:var(--p-text-color)}.settings-changelog__highlight-body[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] .settings-changelog__highlight-body p{margin:0}[_nghost-%COMP%] .settings-changelog__highlight-body p+p{margin-top:.45rem}[_nghost-%COMP%] .settings-changelog__highlight-body code{font-family:var(--sm-font-mono);font-size:.82rem;padding:.05rem .3rem;border-radius:var(--sm-radius-sm);background:var(--sm-bg-hover);color:var(--p-text-color)}[_nghost-%COMP%] .settings-changelog__highlight-body a{color:var(--p-primary-color);text-decoration:underline}[_nghost-%COMP%] .settings-changelog__highlight-body strong{font-weight:600}.settings-changelog__packages[_ngcontent-%COMP%]{list-style:none;margin:.4rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem}.settings-changelog__package[_ngcontent-%COMP%]{font-family:var(--sm-font-mono);font-size:.7rem;padding:.1rem .4rem;border-radius:var(--sm-radius-sm);background:var(--sm-bg-hover);color:var(--sm-text-muted);border:1px solid var(--sm-border);line-height:1.4}"],changeDetection:0})};var Kt=`
2
- .p-toggleswitch {
3
- display: inline-block;
4
- width: dt('toggleswitch.width');
5
- height: dt('toggleswitch.height');
6
- }
7
-
8
- .p-toggleswitch-input {
9
- cursor: pointer;
10
- appearance: none;
11
- position: absolute;
12
- top: 0;
13
- inset-inline-start: 0;
14
- width: 100%;
15
- height: 100%;
16
- padding: 0;
17
- margin: 0;
18
- opacity: 0;
19
- z-index: 1;
20
- outline: 0 none;
21
- border-radius: dt('toggleswitch.border.radius');
22
- }
23
-
24
- .p-toggleswitch-slider {
25
- cursor: pointer;
26
- width: 100%;
27
- height: 100%;
28
- border-width: dt('toggleswitch.border.width');
29
- border-style: solid;
30
- border-color: dt('toggleswitch.border.color');
31
- background: dt('toggleswitch.background');
32
- transition:
33
- background dt('toggleswitch.transition.duration'),
34
- color dt('toggleswitch.transition.duration'),
35
- border-color dt('toggleswitch.transition.duration'),
36
- outline-color dt('toggleswitch.transition.duration'),
37
- box-shadow dt('toggleswitch.transition.duration');
38
- border-radius: dt('toggleswitch.border.radius');
39
- outline-color: transparent;
40
- box-shadow: dt('toggleswitch.shadow');
41
- }
42
-
43
- .p-toggleswitch-handle {
44
- position: absolute;
45
- top: 50%;
46
- display: flex;
47
- justify-content: center;
48
- align-items: center;
49
- background: dt('toggleswitch.handle.background');
50
- color: dt('toggleswitch.handle.color');
51
- width: dt('toggleswitch.handle.size');
52
- height: dt('toggleswitch.handle.size');
53
- inset-inline-start: dt('toggleswitch.gap');
54
- margin-block-start: calc(-1 * calc(dt('toggleswitch.handle.size') / 2));
55
- border-radius: dt('toggleswitch.handle.border.radius');
56
- transition:
57
- background dt('toggleswitch.transition.duration'),
58
- color dt('toggleswitch.transition.duration'),
59
- inset-inline-start dt('toggleswitch.slide.duration'),
60
- box-shadow dt('toggleswitch.slide.duration');
61
- }
62
-
63
- .p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {
64
- background: dt('toggleswitch.checked.background');
65
- border-color: dt('toggleswitch.checked.border.color');
66
- }
67
-
68
- .p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle {
69
- background: dt('toggleswitch.handle.checked.background');
70
- color: dt('toggleswitch.handle.checked.color');
71
- inset-inline-start: calc(dt('toggleswitch.width') - calc(dt('toggleswitch.handle.size') + dt('toggleswitch.gap')));
72
- }
73
-
74
- .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {
75
- background: dt('toggleswitch.hover.background');
76
- border-color: dt('toggleswitch.hover.border.color');
77
- }
78
-
79
- .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle {
80
- background: dt('toggleswitch.handle.hover.background');
81
- color: dt('toggleswitch.handle.hover.color');
82
- }
83
-
84
- .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {
85
- background: dt('toggleswitch.checked.hover.background');
86
- border-color: dt('toggleswitch.checked.hover.border.color');
87
- }
88
-
89
- .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle {
90
- background: dt('toggleswitch.handle.checked.hover.background');
91
- color: dt('toggleswitch.handle.checked.hover.color');
92
- }
93
-
94
- .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {
95
- box-shadow: dt('toggleswitch.focus.ring.shadow');
96
- outline: dt('toggleswitch.focus.ring.width') dt('toggleswitch.focus.ring.style') dt('toggleswitch.focus.ring.color');
97
- outline-offset: dt('toggleswitch.focus.ring.offset');
98
- }
99
-
100
- .p-toggleswitch.p-invalid > .p-toggleswitch-slider {
101
- border-color: dt('toggleswitch.invalid.border.color');
102
- }
103
-
104
- .p-toggleswitch.p-disabled {
105
- opacity: 1;
106
- }
107
-
108
- .p-toggleswitch.p-disabled .p-toggleswitch-slider {
109
- background: dt('toggleswitch.disabled.background');
110
- }
111
-
112
- .p-toggleswitch.p-disabled .p-toggleswitch-handle {
113
- background: dt('toggleswitch.handle.disabled.background');
114
- }
115
- `;var wn=["handle"],kn=["input"],Sn=t=>({checked:t});function Pn(t,n){t&1&&lt(0)}function En(t,n){if(t&1&&Q(0,Pn,1,0,"ng-container",3),t&2){let e=s();m("ngTemplateOutlet",e.handleTemplate||e._handleTemplate)("ngTemplateOutletContext",ut(2,Sn,e.checked()))}}var Tn=`
116
- ${Kt}
117
-
118
- p-toggleswitch.ng-invalid.ng-dirty > .p-toggleswitch-slider {
119
- border-color: dt('toggleswitch.invalid.border.color');
120
- }
121
- `,Mn={root:{position:"relative"}},In={root:({instance:t})=>["p-toggleswitch p-component",{"p-toggleswitch p-component":!0,"p-toggleswitch-checked":t.checked(),"p-disabled":t.$disabled(),"p-invalid":t.invalid()}],input:"p-toggleswitch-input",slider:"p-toggleswitch-slider",handle:"p-toggleswitch-handle"},$t=(()=>{class t extends xt{name="toggleswitch";style=Tn;classes=In;inlineStyles=Mn;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Re(t)))(o||t)}})();static \u0275prov=Je({token:t,factory:t.\u0275fac})}return t})();var Gt=new et("TOGGLESWITCH_INSTANCE"),On={provide:Et,useExisting:Ye(()=>le),multi:!0},le=(()=>{class t extends Tt{componentName="ToggleSwitch";$pcToggleSwitch=k(Gt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=k(me,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;tabindex;inputId;readonly;trueValue=!0;falseValue=!1;ariaLabel;size=V();ariaLabelledBy;autofocus;onChange=new nt;input;handleTemplate;_handleTemplate;focused=!1;_componentStyle=k($t);templates;onHostClick(e){this.onClick(e)}onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="handle"?this._handleTemplate=e.template:this._handleTemplate=e.template})}onClick(e){!this.$disabled()&&!this.readonly&&(this.writeModelValue(this.checked()?this.falseValue:this.trueValue),this.onModelChange(this.modelValue()),this.onChange.emit({originalEvent:e,checked:this.modelValue()}),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}checked(){return this.modelValue()===this.trueValue}writeControlValue(e,i){i(e),this.cd.markForCheck()}get dataP(){return this.cn({checked:this.checked(),disabled:this.$disabled(),invalid:this.invalid()})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Re(t)))(o||t)}})();static \u0275cmp=A({type:t,selectors:[["p-toggleswitch"],["p-toggleSwitch"],["p-toggle-switch"]],contentQueries:function(i,o,c){if(i&1&&dt(c,wn,4)(c,Ce,4),i&2){let g;fe(g=xe())&&(o.handleTemplate=g.first),fe(g=xe())&&(o.templates=g)}},viewQuery:function(i,o){if(i&1&&ct(kn,5),i&2){let c;fe(c=xe())&&(o.input=c.first)}},hostVars:7,hostBindings:function(i,o){i&1&&v("click",function(g){return o.onHostClick(g)}),i&2&&(u("data-p-checked",o.checked())("data-p-disabled",o.$disabled())("data-p",o.dataP),ye(o.sx("root")),ue(o.cn(o.cx("root"),o.styleClass)))},inputs:{styleClass:"styleClass",tabindex:[2,"tabindex","tabindex",_t],inputId:"inputId",readonly:[2,"readonly","readonly",ze],trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",size:[1,"size"],ariaLabelledBy:"ariaLabelledBy",autofocus:[2,"autofocus","autofocus",ze]},outputs:{onChange:"onChange"},features:[Z([On,$t,{provide:Gt,useExisting:t},{provide:yt,useExisting:t}]),rt([me]),at],decls:5,vars:22,consts:[["input",""],["type","checkbox","role","switch",3,"focus","blur","checked","pAutoFocus","pBind"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(l(0,"input",1,0),v("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),a(),l(2,"div",2)(3,"div",2),_(4,En,1,4,"ng-container"),a()()),i&2&&(ue(o.cx("input")),m("checked",o.checked())("pAutoFocus",o.autofocus)("pBind",o.ptm("input")),u("id",o.inputId)("required",o.required()?"":void 0)("disabled",o.$disabled()?"":void 0)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name())("tabindex",o.tabindex),r(2),ue(o.cx("slider")),m("pBind",o.ptm("slider")),u("data-p",o.dataP),r(),ue(o.cx("handle")),m("pBind",o.ptm("handle")),u("data-p",o.dataP),r(),b(o.handleTemplate||o._handleTemplate?4:-1))},dependencies:[ft,bt,vt,we,Ct,me],encapsulation:2,changeDetection:0})}return t})(),De=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ot({type:t});static \u0275inj=Ze({imports:[le,we,we]})}return t})();var Fn=(t,n)=>n.key;function Dn(t,n){if(t&1&&(l(0,"p-message",3),d(1),a()),t&2){let e=s();m("closable",!1),r(),R(" ",e.texts.general.loadErrorPrefix," ",n," ")}}function An(t,n){if(t&1&&(l(0,"p-message",4),d(1),a()),t&2){let e=s();m("closable",!1),r(),R(" ",e.texts.general.saveErrorPrefix," ",n," ")}}function jn(t,n){if(t&1){let e=I();l(0,"li",6)(1,"div",9)(2,"div",10),d(3),a(),l(4,"div",11),d(5),a()(),l(6,"p-toggleswitch",16),v("ngModelChange",function(o){let c=S(e).$implicit,g=s();return P(g.onToggle(c,o))}),a()()}if(t&2){let e=n.$implicit,i=s();u("data-testid","settings-general-row-"+e.key),r(3),h(i.toggleLabel(e.key)),r(2),p(" ",i.toggleDescription(e.key)," "),r(),m("ngModel",i.valueOf(e))("disabled",i.loading()||i.isPending(e.key)||i.preferences()===null),u("data-testid","settings-general-toggle-"+e.key)}}function Nn(t,n){if(t&1&&(l(0,"span",17),d(1),a()),t&2){let e=n.$implicit,i=s();r(),p(" ",i.connectionTypeLabel(e.labelKey)," ")}}function Vn(t,n){if(t&1&&(l(0,"span",18),d(1),a()),t&2){let e=n.$implicit,i=s();r(),p(" ",i.extraThemeLabel(e.labelKey)," ")}}var Ln=[{key:"updateCheck.enabled",read:t=>t.updateCheck.enabled,patch:t=>({updateCheck:{enabled:t}})}],Rn=St.map(t=>({value:t,labelKey:t})),Bn=[{value:"none",labelKey:"none"},{value:"matrix",labelKey:"matrix"}];function zn(t){return t==="matrix"?"matrix":"none"}function Kn(t){return t==="matrix"?"matrix":null}var Ae=class t{dataSource=k(G);graphPreferences=k(Pt);themeService=k(Ie);visible=V.required();texts=w;toggles=Ln;connectionTypeOptions=Rn;extraThemeOptions=Bn;connectionType=this.graphPreferences.connectionType;extraThemeWire=C(()=>zn(this.themeService.extraTheme()));loading=y(!1);loadError=y(null);saveError=y(null);preferences=y(null);pending=y(new Set);constructor(){N(()=>{this.visible()&&this.refresh()})}toggleLabel(n){return w.general.toggles[n].label}toggleDescription(n){return w.general.toggles[n].description}valueOf(n){let e=this.preferences();return e?n.read(e):!1}isPending(n){return this.pending().has(n)}onToggle(n,e){this.runToggle(n,e)}onConnectionTypeChange(n){n!==null&&this.graphPreferences.setConnectionType(n)}connectionTypeLabel(n){return w.general.connectionType.options[n].label}onExtraThemeChange(n){this.themeService.setExtraTheme(Kn(n??"none"))}extraThemeLabel(n){return w.general.extraTheme.options[n].label}async refresh(){this.loading.set(!0),this.loadError.set(null),this.saveError.set(null);try{let n=await this.dataSource.getPreferences();this.preferences.set(n)}catch(n){this.loadError.set(Ut(n)),this.preferences.set(null)}finally{this.loading.set(!1)}}async runToggle(n,e){if(this.pending().has(n.key))return;let i=new Set(this.pending());i.add(n.key),this.pending.set(i),this.saveError.set(null);try{let o=await this.dataSource.setPreferences(n.patch(e));this.preferences.set(o)}catch(o){this.saveError.set(Ut(o))}finally{let o=new Set(this.pending());o.delete(n.key),this.pending.set(o)}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["sm-settings-general"]],inputs:{visible:[1,"visible"]},decls:31,vars:17,consts:[["data-testid","settings-general",1,"settings-general"],["id","settings-general-heading",1,"settings-general__title"],[1,"settings-general__intro"],["severity","error","data-testid","settings-general-load-error",3,"closable"],["severity","error","data-testid","settings-general-save-error",3,"closable"],["role","list",1,"settings-general__list"],[1,"settings-general__row"],[1,"settings-general__subheading"],["data-testid","settings-general-row-connection-type",1,"settings-general__row","settings-general__row--stacked"],[1,"settings-general__row-text"],[1,"settings-general__row-label"],[1,"settings-general__row-description"],["optionLabel","labelKey","optionValue","value","data-testid","settings-general-connection-type",3,"ngModelChange","options","ngModel","allowEmpty"],["pTemplate","item"],["data-testid","settings-general-row-extra-theme",1,"settings-general__row","settings-general__row--stacked"],["optionLabel","labelKey","optionValue","value","data-testid","settings-general-extra-theme",3,"ngModelChange","options","ngModel","allowEmpty"],[3,"ngModelChange","ngModel","disabled"],["data-testid","settings-general-connection-type-option"],["data-testid","settings-general-extra-theme-option"]],template:function(e,i){if(e&1&&(l(0,"section",0)(1,"h2",1),d(2),a(),l(3,"p",2),d(4),a(),_(5,Dn,2,3,"p-message",3),_(6,An,2,3,"p-message",4),l(7,"ul",5),O(8,jn,7,6,"li",6,Fn),a(),l(10,"h3",7),d(11),a(),l(12,"p",2),d(13),a(),l(14,"ul",5)(15,"li",8)(16,"div",9)(17,"div",10),d(18),a(),l(19,"div",11),d(20),a()(),l(21,"p-selectbutton",12),v("ngModelChange",function(c){return i.onConnectionTypeChange(c)}),Q(22,Nn,2,1,"ng-template",13),a()(),l(23,"li",14)(24,"div",9)(25,"div",10),d(26),a(),l(27,"div",11),d(28),a()(),l(29,"p-selectbutton",15),v("ngModelChange",function(c){return i.onExtraThemeChange(c)}),Q(30,Vn,2,1,"ng-template",13),a()()()()),e&2){let o,c;u("aria-labelledby","settings-general-heading"),r(2),p(" ",i.texts.general.heading," "),r(2),h(i.texts.general.intro),r(),b((o=i.loadError())?5:-1,o),r(),b((c=i.saveError())?6:-1,c),r(2),F(i.toggles),r(3),p(" ",i.texts.general.localPreferences.heading," "),r(2),p(" ",i.texts.general.localPreferences.intro," "),r(5),p(" ",i.texts.general.connectionType.label," "),r(2),p(" ",i.texts.general.connectionType.description," "),r(),m("options",i.connectionTypeOptions)("ngModel",i.connectionType())("allowEmpty",!1),r(5),p(" ",i.texts.general.extraTheme.label," "),r(2),p(" ",i.texts.general.extraTheme.description," "),r(),m("options",i.extraThemeOptions)("ngModel",i.extraThemeWire())("allowEmpty",!1)}},dependencies:[oe,ne,ie,ae,re,Ce,Vt,Nt,De,le],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-general__title[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:1.05rem;font-weight:600;color:var(--p-text-color)}.settings-general__intro[_ngcontent-%COMP%]{margin:0 0 1.25rem;font-size:.85rem;color:var(--sm-text-muted);line-height:1.5}.settings-general__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1rem}.settings-general__row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid var(--p-content-border-color);border-radius:.5rem;background:var(--p-content-background)}.settings-general__row-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 1 auto;min-width:0}.settings-general__row-label[_ngcontent-%COMP%]{font-size:.9rem;font-weight:600;color:var(--p-text-color)}.settings-general__row-description[_ngcontent-%COMP%]{font-size:.8rem;color:var(--sm-text-muted);line-height:1.45}.settings-general__subheading[_ngcontent-%COMP%]{margin:1.75rem 0 .25rem;font-size:.95rem;font-weight:600;color:var(--p-text-color)}.settings-general__row--stacked[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:.65rem}"],changeDetection:0})};function Ut(t){return t instanceof z||t instanceof Error?t.message:String(t)}var Ke={provider:"#7C3AED",extractor:"#A78BFA",analyzer:"#5FD17C",action:"#00C853",formatter:"#5BC0EB",hook:"#FFB627"};function Qt(t){let n=t.toLowerCase();return Ke[n]??"currentColor"}var Ve=["all",...Object.keys(Ke)],je=["claude","gemini","agent-skills","core"],Ne=["provider","extractor","analyzer","action","formatter","hook"];function de(t,n){return`${t}/${n}`}function $e(t){let n=new Map;for(let e of t)if(!ce(e.status)){if(e.granularity==="bundle"){n.set(e.id,e.status==="enabled");continue}if(e.granularity==="extension"&&e.extensions)for(let i of e.extensions)n.set(de(e.id,i.id),i.enabled)}return n}function Ge(t){let n=t.target;return!n||typeof n.closest!="function"?!1:n.closest('label, button, input, [role="switch"], p-toggleswitch')!==null}function Xt(t,n){if($n(t,n))return[t];if(t.granularity!=="extension"||!t.extensions)return[];let e=t.extensions.filter(i=>Gn(i,n));return e.length===0?[]:[W(q({},t),{extensions:e})]}function Yt(t,n){if(t.granularity==="bundle")return t.kinds.some(i=>i.toLowerCase()===n)?[t]:[];if(!t.extensions)return[];let e=t.extensions.filter(i=>i.kind.toLowerCase()===n);return e.length===0?[]:[W(q({},t),{extensions:e})]}function Jt(t){if(t.locked)return[];if(t.granularity!=="extension"||!t.extensions)return[t];let n=t.extensions.filter(e=>!e.locked);return n.length===0?[]:[W(q({},t),{extensions:n})]}function Zt(t){return t.slice().sort((e,i)=>{let o=je.indexOf(e.id),c=je.indexOf(i.id),g=o>=0?o:je.length,E=c>=0?c:je.length;return g!==E?g-E:e.id.localeCompare(i.id)}).map(e=>{if(e.granularity!=="extension"||!e.extensions)return e;let i=e.extensions.slice().sort((o,c)=>{let g=Ne.indexOf(o.kind.toLowerCase()),E=Ne.indexOf(c.kind.toLowerCase()),K=g>=0?g:Ne.length,L=E>=0?E:Ne.length;return K!==L?K-L:o.id.localeCompare(c.id)});return W(q({},e),{extensions:i})})}function $n(t,n){return!!(t.id.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n))}function Gn(t,n){return!!(t.id.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n))}function ce(t){return t==="incompatible-spec"||t==="invalid-manifest"||t==="load-error"||t==="id-collision"}function He(t){return t instanceof z||t instanceof Error?t.message:String(t)}function en(t,n){return ce(t.status)?n.statusFailure[t.status]??t.status:t.status==="enabled"?n.enabledLabel:n.disabledLabel}function tn(t,n){switch(t){case"built-in":return n.sourceBuiltIn;case"project":return n.sourceProject}}var Ue="sm.settings.plugins.collapsed",qe="sm.settings.plugins.kind-filter";function nn(){let t=null;try{t=localStorage.getItem(Ue)}catch{return new Set}if(!t)return new Set;let n;try{n=JSON.parse(t)}catch{return new Set}if(!Array.isArray(n))return new Set;let e=new Set;for(let i of n)typeof i=="string"&&i.length>0&&e.add(i);return e}function on(t){try{if(t.size===0){localStorage.removeItem(Ue);return}localStorage.setItem(Ue,JSON.stringify([...t]))}catch{}}function rn(){let t=null;try{t=localStorage.getItem(qe)}catch{return"all"}return t&&Ve.includes(t)?t:"all"}function an(t){try{if(t==="all"){localStorage.removeItem(qe);return}localStorage.setItem(qe,t)}catch{}}function We(){tt(We);let t=y(nn());N(()=>on(t()));let n=i=>{let o=new Set(t());o.has(i)?o.delete(i):o.add(i),t.set(o)},e=i=>!t().has(i);return{collapsed:t.asReadonly(),toggleExpanded:n,isExpanded:e}}function sn(t){let n=y(""),e=C(()=>n().trim().length>0),i=y(rn()),o=C(()=>i()!=="all");N(()=>an(i()));let c=C(()=>Zt(t.plugins().flatMap(Jt))),g=C(()=>{let L=n().trim().toLowerCase(),_e=i(),H=c();return _e!=="all"&&(H=H.flatMap(be=>Yt(be,_e))),L.length>0&&(H=H.flatMap(be=>Xt(be,L))),H});return{searchText:n,searchActive:e,kindFilter:i,setKindFilter:L=>{i.set(L)},isKindFilterActive:L=>i()===L,kindFilterActive:o,kindFilterOptions:Ve,visiblePlugins:c,filteredPlugins:g}}function ln(t){let n=y(!1),e=y(null),i=y(null),o=y([]),c=y(new Map),g=y(new Map),E=y(!1),K=C(()=>{let T=c(),D=g(),B=new Set;for(let[U,j]of D)T.get(U)!==j&&B.add(U);return B}),L=C(()=>K().size>0),_e=C(()=>o().some(T=>ce(T.status))),H=C(()=>{let T=g();for(let D of o())if(D.startsAsDisabled===!0&&T.get(D.id)===!0)return!0;return!1});return{plugins:o,loading:n,loadError:e,toggleError:i,applying:E,hasFailureRows:_e,originalState:c,pendingState:g,dirtyIds:K,hasPendingChanges:L,restartRecommended:H,pendingEnabled:T=>g().get(T)??!1,isDirty:T=>K().has(T),refresh:async()=>{n.set(!0),e.set(null),i.set(null);try{let T=await t.dataSource.listPlugins();o.set([...T.items]);let D=$e(T.items);c.set(D),g.set(new Map(D))}catch(T){e.set(He(T)),o.set([]),c.set(new Map),g.set(new Map)}finally{n.set(!1)}},onBundleToggle:(T,D)=>{if(E())return;let B=new Map(g());B.set(T.id,D),g.set(B)},onExtensionToggle:(T,D,B)=>{if(E())return;let U=de(T,D.id),j=new Map(g());j.set(U,B),g.set(j)},applyChanges:async()=>{if(E())return{ok:!1};let T=K();if(T.size===0)return{ok:!1};let D=[],B=g();for(let j of T)D.push({id:j,enabled:B.get(j)??!1});E.set(!0),i.set(null);let U=!1;try{let j=await t.dataSource.applyPluginChanges(D);o.set([...j.items]);let Xe=$e(j.items);c.set(Xe),g.set(new Map(Xe)),t.scanTrigger.run(),U=!0}catch(j){i.set(He(j))}finally{E.set(!1)}return{ok:U}},discardChanges:()=>{g.set(new Map(c())),i.set(null)}}}var dn=(t,n)=>n.id;function qn(t,n){if(t&1&&d(0),t&2){let e=s().$implicit,i=s();p(" ",e==="all"?i.texts.pluginsKindFilterAll:e," ")}}function Wn(t,n){if(t&1){let e=I();l(0,"p-togglebutton",16),v("ngModelChange",function(){let o=S(e).$implicit,c=s();return P(c.setKindFilter(o))}),Q(1,qn,1,1,"ng-template",null,0,mt),a()}if(t&2){let e=n.$implicit,i=s();Be("--kind-color",e==="all"?null:i.kindTint(e)),m("ngModel",i.isKindFilterActive(e))("styleClass","settings-plugins__kind-chip"+(e==="all"?" is-all":""))("ariaLabel",i.texts.pluginsKindFilterOptionA11y(e,!i.isKindFilterActive(e))),u("data-testid","settings-plugins-kind-chip-"+e)}}function Qn(t,n){if(t&1&&(l(0,"p-message",11),d(1),a()),t&2){let e=s();m("closable",!1),r(),p(" ",e.texts.unsavedChangesMessage(e.dirtyIds().size)," ")}}function Xn(t,n){if(t&1&&(l(0,"p",12),M(1,"i",17),d(2),a()),t&2){let e=s();r(2),p(" ",e.texts.loading," ")}}function Yn(t,n){if(t&1&&(l(0,"p-message",13),d(1),a()),t&2){let e=s();m("closable",!1),r(),R(" ",e.texts.errorPrefix," ",e.loadError()," ")}}function Jn(t,n){if(t&1&&(l(0,"p",14),d(1),a()),t&2){let e=s();r(),p(" ",e.texts.empty," ")}}function Zn(t,n){if(t&1){let e=I();l(0,"p-message",22),v("onClose",function(){S(e);let o=s(2);return P(o.toggleError.set(null))}),d(1),a()}if(t&2){let e=s(2);m("closable",!0),r(),R(" ",e.texts.toggleErrorPrefix," ",e.toggleError()," ")}}function ei(t,n){if(t&1&&(l(0,"p",19),M(1,"i",23),d(2),a()),t&2){let e=s(2);r(2),p(" ",e.texts.pluginsSearchEmpty(e.searchText())," ")}}function ti(t,n){if(t&1){let e=I();l(0,"button",41),v("click",function(o){S(e);let c=s().$implicit;return s(2).toggleExpanded(c.id),P(o.stopPropagation())}),M(1,"i",42),a()}if(t&2){let e=s().$implicit,i=s(2);u("aria-expanded",i.isExpanded(e.id))("aria-label",i.isExpanded(e.id)?i.texts.collapseLabel:i.texts.expandLabel)("data-testid","settings-bundle-expand-"+e.id),r(),$("fa-chevron-down",i.isExpanded(e.id))("fa-chevron-right",!i.isExpanded(e.id))}}function ni(t,n){t&1&&M(0,"span",27)}function ii(t,n){if(t&1&&M(0,"span",30),t&2){let e=s().$implicit;u("data-testid","settings-row-dirty-"+e.id)}}function oi(t,n){if(t&1&&(l(0,"span",33),d(1),a()),t&2){let e=s().$implicit;r(),p("v",e.version)}}function ri(t,n){if(t&1&&(l(0,"span",34),M(1,"i",43),d(2),a()),t&2){let e=s().$implicit,i=s(2);m("title",i.texts.lockedTooltip),u("data-testid","settings-row-locked-"+e.id),r(2),p(" ",i.texts.lockedLabel," ")}}function ai(t,n){if(t&1&&(l(0,"span",35),d(1),a()),t&2){let e=s().$implicit,i=s(2);r(),h(i.statusLabel(e))}}function si(t,n){if(t&1&&(l(0,"p",36),d(1),a()),t&2){let e=s().$implicit;r(),h(e.description)}}function li(t,n){if(t&1&&(l(0,"span",37),d(1),a()),t&2){let e=s().$implicit;r(),h(e.reason)}}function di(t,n){if(t&1&&(l(0,"p",38),M(1,"i",44),d(2),a()),t&2){let e=s().$implicit,i=s(2);u("data-testid","settings-row-starts-disabled-"+e.id),r(2),p(" ",i.texts.startsAsDisabledRowHint," ")}}function ci(t,n){if(t&1){let e=I();l(0,"p-toggleswitch",45),v("ngModelChange",function(o){S(e);let c=s().$implicit,g=s(2);return P(g.onBundleToggle(c,o))}),a()}if(t&2){let e=s().$implicit,i=s(2);m("ngModel",i.pendingEnabled(e.id))("disabled",i.applying()||!!e.locked)("ariaLabel",i.texts.a11y.pluginToggle(e.id,!i.pendingEnabled(e.id))),u("data-testid","settings-toggle-"+e.id)}}function gi(t,n){if(t&1&&M(0,"span",30),t&2){let e=s().$implicit,i=s(2).$implicit;u("data-testid","settings-extrow-dirty-"+i.id+"-"+e.id)}}function pi(t,n){if(t&1&&(l(0,"span",34),M(1,"i",43),d(2),a()),t&2){let e=s().$implicit,i=s(2).$implicit,o=s(2);m("title",o.texts.lockedTooltip),u("data-testid","settings-extrow-locked-"+i.id+"-"+e.id),r(2),p(" ",o.texts.lockedLabel," ")}}function ui(t,n){if(t&1&&(l(0,"p",53),d(1),a()),t&2){let e=s().$implicit;r(),h(e.description)}}function mi(t,n){if(t&1){let e=I();l(0,"li",47),v("click",function(o){let c=S(e).$implicit,g=s(2).$implicit,E=s(2);return P(E.onSubrowClick(g.id,c,o))})("keydown.enter",function(o){let c=S(e).$implicit,g=s(2).$implicit,E=s(2);return P(E.onSubrowClick(g.id,c,o))})("keydown.space",function(o){let c=S(e).$implicit,g=s(2).$implicit,E=s(2);return o.preventDefault(),P(E.onSubrowClick(g.id,c,o))}),l(1,"div",48)(2,"div",49),_(3,gi,1,1,"span",30),l(4,"span",50),d(5),a(),l(6,"span",51),d(7),a(),l(8,"span",52),d(9),a(),_(10,pi,3,3,"span",34),a(),_(11,ui,2,1,"p",53),a(),l(12,"p-toggleswitch",45),v("ngModelChange",function(o){let c=S(e).$implicit,g=s(2).$implicit,E=s(2);return P(E.onExtensionToggle(g.id,c,o))}),a()()}if(t&2){let e=n.$implicit,i=s(2).$implicit,o=s(2);$("is-clickable",o.extensionToggleInteractive(e))("is-dirty",o.isDirty(o.qualifiedExt(i.id,e.id))),u("aria-label",o.texts.a11y.extensionRow(o.qualifiedExt(i.id,e.id)))("data-testid","settings-extrow-"+i.id+"-"+e.id),r(3),b(o.isDirty(o.qualifiedExt(i.id,e.id))?3:-1),r(2),h(e.id),r(),Be("--kind-color",o.kindTint(e.kind)),r(),h(e.kind),r(2),p("v",e.version),r(),b(e.locked?10:-1),r(),b(e.description?11:-1),r(),m("ngModel",o.pendingEnabled(o.qualifiedExt(i.id,e.id)))("disabled",o.applying()||!!e.locked)("ariaLabel",o.texts.a11y.extensionToggle(o.qualifiedExt(i.id,e.id),!o.pendingEnabled(o.qualifiedExt(i.id,e.id)))),u("data-testid","settings-ext-toggle-"+i.id+"-"+e.id)}}function hi(t,n){if(t&1&&(l(0,"ul",40),O(1,mi,13,18,"li",46,dn),a()),t&2){let e=s().$implicit;u("data-testid","settings-extensions-"+e.id),r(),F(e.extensions)}}function _i(t,n){if(t&1){let e=I();l(0,"li",24)(1,"div",25),v("click",function(o){let c=S(e).$implicit,g=s(2);return P(g.onRowClick(c,o))})("keydown.enter",function(o){let c=S(e).$implicit,g=s(2);return P(g.onRowClick(c,o))})("keydown.space",function(o){let c=S(e).$implicit,g=s(2);return o.preventDefault(),P(g.onRowClick(c,o))}),_(2,ti,2,7,"button",26)(3,ni,1,0,"span",27),l(4,"div",28)(5,"div",29),_(6,ii,1,1,"span",30),l(7,"span",31),d(8),a(),l(9,"span",32),d(10),a(),_(11,oi,2,1,"span",33),_(12,ri,3,3,"span",34),_(13,ai,2,1,"span",35),a(),_(14,si,2,1,"p",36),_(15,li,2,1,"span",37),_(16,di,3,2,"p",38),a(),_(17,ci,1,4,"p-toggleswitch",39),a(),_(18,hi,3,1,"ul",40),a()}if(t&2){let e=n.$implicit,i=s(2);$("is-extension-bundle",e.granularity==="extension")("is-failed",!i.canToggleBundle(e)&&e.granularity==="bundle")("is-clickable",i.rowIsClickable(e))("is-dirty",e.granularity==="bundle"&&i.isDirty(e.id)),u("data-testid","settings-row-"+e.id),r(),u("aria-label",i.texts.a11y.pluginRow(e.id)),r(),b(e.granularity==="extension"&&(e.extensions!=null&&e.extensions.length)?2:3),r(4),b(e.granularity==="bundle"&&i.isDirty(e.id)?6:-1),r(2),h(e.id),r(2),h(i.sourceLabel(e.source)),r(),b(e.version?11:-1),r(),b(e.locked?12:-1),r(),b(!i.canToggleBundle(e)&&e.granularity==="bundle"?13:-1),r(),b(e.description?14:-1),r(),b(e.reason?15:-1),r(),b(i.showStartsAsDisabledHint(e)?16:-1),r(),b(i.canToggleBundle(e)?17:-1),r(),b(e.granularity==="extension"&&(e.extensions!=null&&e.extensions.length)&&i.isExpanded(e.id)?18:-1)}}function bi(t,n){if(t&1&&(_(0,Zn,2,3,"p-message",18),_(1,ei,3,1,"p",19),l(2,"ul",20),O(3,_i,19,22,"li",21,dn),a()),t&2){let e=s();b(e.toggleError()?0:-1),r(),b(e.searchActive()&&e.filteredPlugins().length===0?1:-1),r(2),F(e.filteredPlugins())}}function fi(t,n){if(t&1&&(l(0,"em",54),d(1),a()),t&2){let e=s(2);r(),p(" ",e.texts.startsAsDisabledFooterHint," ")}}function xi(t,n){if(t&1){let e=I();l(0,"footer",15),_(1,fi,2,1,"em",54),l(2,"p-button",55),v("onClick",function(){S(e);let o=s();return P(o.discardChanges())}),a(),l(3,"p-button",56),v("onClick",function(){S(e);let o=s();return P(o.applyChanges())}),a()()}if(t&2){let e=s();r(),b(e.restartRecommended()?1:-1),r(),m("text",!0)("label",e.texts.discardChanges)("ariaLabel",e.texts.discardA11y)("disabled",e.applying()),r(),m("label",e.texts.applyAndClose)("ariaLabel",e.texts.applyA11y)("disabled",e.applying())("loading",e.applying())}}var ge=class t{dataSource=k(G);scanTrigger=k(Rt);visible=V.required();applied=ve();texts=w;pluginState=ln({dataSource:this.dataSource,scanTrigger:this.scanTrigger});plugins=this.pluginState.plugins;loading=this.pluginState.loading;loadError=this.pluginState.loadError;toggleError=this.pluginState.toggleError;applying=this.pluginState.applying;hasFailureRows=this.pluginState.hasFailureRows;originalState=this.pluginState.originalState;pendingState=this.pluginState.pendingState;dirtyIds=this.pluginState.dirtyIds;hasPendingChanges=this.pluginState.hasPendingChanges;restartRecommended=this.pluginState.restartRecommended;pluginCollapse=We();collapsed=this.pluginCollapse.collapsed;pluginFilter=sn({plugins:this.plugins});searchText=this.pluginFilter.searchText;searchActive=this.pluginFilter.searchActive;kindFilter=this.pluginFilter.kindFilter;kindFilterActive=this.pluginFilter.kindFilterActive;kindFilterOptions=this.pluginFilter.kindFilterOptions;visiblePlugins=this.pluginFilter.visiblePlugins;filteredPlugins=this.pluginFilter.filteredPlugins;constructor(){N(()=>{this.visible()&&this.pluginState.refresh()})}setKindFilter(n){this.pluginFilter.setKindFilter(n)}isKindFilterActive(n){return this.pluginFilter.isKindFilterActive(n)}toggleExpanded(n){this.pluginCollapse.toggleExpanded(n)}isExpanded(n){return this.pluginCollapse.isExpanded(n)}pendingEnabled(n){return this.pluginState.pendingEnabled(n)}isDirty(n){return this.pluginState.isDirty(n)}showStartsAsDisabledHint(n){return n.startsAsDisabled?this.pendingEnabled(n.id):!1}onBundleToggle(n,e){this.pluginState.onBundleToggle(n,e)}onExtensionToggle(n,e,i){this.pluginState.onExtensionToggle(n,e,i)}async applyChanges(){(await this.pluginState.applyChanges()).ok&&this.applied.emit()}discardChanges(){this.pluginState.discardChanges()}canToggleBundle(n){return n.granularity==="extension"?!1:!ce(n.status)}bundleToggleInteractive(n){return this.canToggleBundle(n)&&!n.locked}extensionToggleInteractive(n){return!n.locked}rowIsClickable(n){return!!(this.bundleToggleInteractive(n)||n.granularity==="extension"&&(n.extensions?.length??0)>0)}onRowClick(n,e){if(!Ge(e)){if(this.bundleToggleInteractive(n)){this.onBundleToggle(n,!this.pendingEnabled(n.id));return}n.granularity==="extension"&&(n.extensions?.length??0)>0&&this.toggleExpanded(n.id)}}onSubrowClick(n,e,i){if(Ge(i)||!this.extensionToggleInteractive(e))return;let o=de(n,e.id);this.onExtensionToggle(n,e,!this.pendingEnabled(o))}statusLabel(n){return en(n,this.texts)}sourceLabel(n){return tn(n,this.texts)}qualifiedExt(n,e){return de(n,e)}kindTint(n){return Qt(n)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["sm-settings-plugins"]],inputs:{visible:[1,"visible"]},outputs:{applied:"applied"},decls:19,vars:9,consts:[["content",""],["aria-labelledby","settings-plugins-heading",1,"settings-plugins"],[1,"settings-plugins__scroll"],[1,"settings-plugins__header"],["id","settings-plugins-heading",1,"settings-plugins__title"],[1,"settings-plugins__intro"],["iconPosition","left",1,"settings-plugins__search"],["styleClass","fa-solid fa-magnifying-glass"],["pInputText","","type","text","data-testid","settings-plugins-search",3,"ngModelChange","placeholder","ngModel"],["role","group","data-testid","settings-plugins-kind-filter",1,"settings-plugins__kind-filter"],[3,"ngModel","styleClass","--kind-color","ariaLabel"],["severity","warn","styleClass","settings-plugins__banner","data-testid","settings-banner-unsaved",3,"closable"],["data-testid","settings-loading",1,"settings-plugins__hint"],["severity","error","data-testid","settings-error",3,"closable"],["data-testid","settings-empty",1,"settings-plugins__hint"],["data-testid","settings-plugins-footer",1,"settings-plugins__footer"],[3,"ngModelChange","ngModel","styleClass","ariaLabel"],["aria-hidden","true",1,"fa-solid","fa-spinner","fa-spin"],["severity","error","data-testid","settings-toggle-error",3,"closable"],["data-testid","settings-search-empty",1,"settings-plugins__hint"],["role","list",1,"settings-plugins__list"],[1,"settings-plugins__row",3,"is-extension-bundle","is-failed","is-clickable","is-dirty"],["severity","error","data-testid","settings-toggle-error",3,"onClose","closable"],["aria-hidden","true",1,"fa-solid","fa-magnifying-glass"],[1,"settings-plugins__row"],["role","button","tabindex","0",1,"settings-plugins__row-main",3,"click","keydown.enter","keydown.space"],["type","button",1,"settings-plugins__expand"],["aria-hidden","true",1,"settings-plugins__expand-spacer"],[1,"settings-plugins__row-text"],[1,"settings-plugins__row-headline"],["aria-hidden","true",1,"settings-plugins__dirty-dot"],[1,"settings-plugins__row-id"],[1,"settings-plugins__row-source"],[1,"settings-plugins__row-version"],[1,"settings-plugins__row-locked",3,"title"],[1,"settings-plugins__row-status"],[1,"settings-plugins__row-description"],[1,"settings-plugins__row-reason"],[1,"settings-plugins__row-hint"],[3,"ngModel","disabled","ariaLabel"],["role","list",1,"settings-plugins__sublist"],["type","button",1,"settings-plugins__expand",3,"click"],["aria-hidden","true",1,"fa-solid"],["aria-hidden","true",1,"fa-solid","fa-lock"],["aria-hidden","true",1,"fa-solid","fa-triangle-exclamation"],[3,"ngModelChange","ngModel","disabled","ariaLabel"],["role","button","tabindex","0",1,"settings-plugins__subrow",3,"is-clickable","is-dirty"],["role","button","tabindex","0",1,"settings-plugins__subrow",3,"click","keydown.enter","keydown.space"],[1,"settings-plugins__subrow-text"],[1,"settings-plugins__subrow-headline"],[1,"settings-plugins__subrow-id"],[1,"settings-plugins__subrow-kind"],[1,"settings-plugins__subrow-version"],[1,"settings-plugins__subrow-description"],["data-testid","settings-plugins-restart-hint",1,"settings-plugins__footer-hint"],["severity","secondary","data-testid","settings-plugins-discard",3,"onClick","text","label","ariaLabel","disabled"],["data-testid","settings-plugins-apply",3,"onClick","label","ariaLabel","disabled","loading"]],template:function(e,i){e&1&&(l(0,"section",1)(1,"div",2)(2,"header",3)(3,"h2",4),d(4),a(),l(5,"p",5),d(6),a()(),l(7,"p-iconfield",6),M(8,"p-inputicon",7),l(9,"input",8),v("ngModelChange",function(c){return i.searchText.set(c)}),a()(),l(10,"div",9),O(11,Wn,3,6,"p-togglebutton",10,X),a(),_(13,Qn,2,2,"p-message",11),_(14,Xn,3,1,"p",12)(15,Yn,2,3,"p-message",13)(16,Jn,2,1,"p",14)(17,bi,5,2),a(),_(18,xi,4,9,"footer",15),a()),e&2&&(r(4),p(" ",i.texts.pluginsHeading," "),r(2),h(i.texts.pluginsIntro),r(3),m("placeholder",i.texts.pluginsSearchPlaceholder)("ngModel",i.searchText()),u("aria-label",i.texts.pluginsSearchA11y),r(),u("aria-label",i.texts.pluginsKindFilterA11y),r(),F(i.kindFilterOptions),r(2),b(i.hasPendingChanges()?13:-1),r(),b(i.loading()?14:i.loadError()?15:i.plugins().length===0?16:17),r(4),b(i.hasPendingChanges()?18:-1))},dependencies:[oe,Ee,ne,ie,te,ke,Dt,Ft,jt,At,Me,Te,ae,re,It,Mt,De,le],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.settings-plugins[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0}.settings-plugins__scroll[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:.75rem;min-height:0}.settings-plugins__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.settings-plugins__title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;margin:0}.settings-plugins__intro[_ngcontent-%COMP%]{margin:0;color:var(--p-text-muted-color);font-size:.875rem}.settings-plugins__search[_ngcontent-%COMP%]{display:block;width:100%}.settings-plugins__search[_ngcontent-%COMP%] :where(input[_ngcontent-%COMP%]){width:100%}.settings-plugins__kind-filter[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.375rem}.settings-plugins__kind-chip[_ngcontent-%COMP%]{--chip-accent: var(--kind-color, var(--p-text-color));--p-togglebutton-padding: .25rem .625rem;--p-togglebutton-content-padding: 0;--p-togglebutton-content-checked-background: transparent;--p-togglebutton-content-checked-shadow: none;--p-togglebutton-border-radius: var(--sm-radius-pill);--p-togglebutton-background: color-mix(in oklab, var(--chip-accent) 8%, transparent);--p-togglebutton-hover-background: color-mix(in oklab, var(--chip-accent) 18%, transparent);--p-togglebutton-checked-background: color-mix(in oklab, var(--chip-accent) 80%, transparent);--p-togglebutton-border-color: color-mix(in oklab, var(--chip-accent) 35%, transparent);--p-togglebutton-hover-border-color: color-mix(in oklab, var(--chip-accent) 55%, transparent);--p-togglebutton-checked-border-color: var(--chip-accent);--p-togglebutton-color: color-mix(in oklab, var(--chip-accent) 70%, var(--p-text-color));--p-togglebutton-hover-color: color-mix(in oklab, var(--chip-accent) 70%, var(--p-text-color));--p-togglebutton-checked-color: var(--p-surface-50);font-size:.75rem;font-weight:500;letter-spacing:.02em;text-transform:lowercase}.app-dark[_nghost-%COMP%] .settings-plugins__kind-chip[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__kind-chip[_ngcontent-%COMP%]{--p-togglebutton-background: color-mix(in oklab, var(--chip-accent) 14%, transparent);--p-togglebutton-hover-background: color-mix(in oklab, var(--chip-accent) 26%, transparent);--p-togglebutton-checked-background: color-mix(in oklab, var(--chip-accent) 70%, transparent);--p-togglebutton-border-color: color-mix(in oklab, var(--chip-accent) 50%, transparent);--p-togglebutton-hover-border-color: color-mix(in oklab, var(--chip-accent) 70%, transparent);--p-togglebutton-color: color-mix(in oklab, var(--chip-accent) 80%, var(--p-text-color));--p-togglebutton-hover-color: color-mix(in oklab, var(--chip-accent) 80%, var(--p-text-color));--p-togglebutton-checked-color: var(--p-surface-900)}.settings-plugins__banner[_ngcontent-%COMP%]{display:block}.settings-plugins__banner-body[_ngcontent-%COMP%]{font-weight:400}.settings-plugins__hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin:0;padding:1rem 0;color:var(--p-text-muted-color);font-size:.875rem}.settings-plugins__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.settings-plugins__row[_ngcontent-%COMP%]{border:1px solid var(--p-content-border-color);border-radius:var(--p-border-radius);background:var(--p-content-background);padding:.75rem .875rem;display:flex;flex-direction:column;gap:.5rem}.settings-plugins__row.is-clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background .12s ease}.settings-plugins__row.is-clickable[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-plugins__row.is-failed[_ngcontent-%COMP%]{border-color:var(--p-message-error-border-color);background:var(--p-message-error-background)}.settings-plugins__row.is-extension-bundle[_ngcontent-%COMP%]{background:var(--p-content-background)}.settings-plugins__row-main[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.settings-plugins__expand[_ngcontent-%COMP%], .settings-plugins__expand-spacer[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.settings-plugins__expand[_ngcontent-%COMP%]{border:none;background:transparent;cursor:pointer;color:var(--p-text-muted-color);border-radius:var(--p-border-radius)}.settings-plugins__expand[_ngcontent-%COMP%]:hover{color:var(--p-text-color);background:var(--p-content-hover-background)}.settings-plugins__row-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-plugins__row-headline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .75rem}.settings-plugins__row-id[_ngcontent-%COMP%]{font-weight:600;font-family:var(--p-monospace-font-family)}.settings-plugins__row-source[_ngcontent-%COMP%], .settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__subrow-kind[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-size:.7rem;font-weight:500;letter-spacing:.02em;padding:.125rem .5rem;border-radius:var(--sm-radius-pill);white-space:nowrap}.settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{font-family:var(--p-monospace-font-family)}.settings-plugins__row-source[_ngcontent-%COMP%], .settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-text-color) 8%,transparent);border:1px solid color-mix(in oklab,var(--p-text-color) 18%,transparent);color:var(--p-text-color)}.app-dark[_nghost-%COMP%] .settings-plugins__row-source[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__row-source[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .settings-plugins__row-version[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__row-version[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .settings-plugins__subrow-version[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__subrow-version[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-text-color) 14%,transparent);border-color:color-mix(in oklab,var(--p-text-color) 28%,transparent)}.settings-plugins__subrow-kind[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 14%,transparent);border:1px solid color-mix(in oklab,var(--kind-color, var(--p-text-color)) 38%,transparent);color:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 70%,var(--p-surface-900))}.app-dark[_nghost-%COMP%] .settings-plugins__subrow-kind[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__subrow-kind[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 22%,transparent);border-color:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 55%,transparent);color:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 80%,var(--p-surface-50))}.settings-plugins__row-status[_ngcontent-%COMP%]{font-weight:500}.settings-plugins__row-locked[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;font-size:.7rem;font-weight:500;letter-spacing:.02em;padding:.125rem .5rem;border-radius:var(--sm-radius-pill);white-space:nowrap;background:color-mix(in oklab,var(--p-message-warn-color) 14%,transparent);border:1px solid color-mix(in oklab,var(--p-message-warn-color) 35%,transparent);color:color-mix(in oklab,var(--p-message-warn-color) 70%,var(--p-surface-900))}.settings-plugins__row-locked[_ngcontent-%COMP%] > .pi[_ngcontent-%COMP%]{font-size:.7rem}.app-dark[_nghost-%COMP%] .settings-plugins__row-locked[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__row-locked[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-message-warn-color) 22%,transparent);border-color:color-mix(in oklab,var(--p-message-warn-color) 55%,transparent);color:color-mix(in oklab,var(--p-message-warn-color) 85%,var(--p-surface-50))}.settings-plugins__row-description[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.8125rem;line-height:1.4;color:var(--p-text-muted-color)}.settings-plugins__row-reason[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--p-message-error-color);font-family:var(--p-monospace-font-family);margin-top:.25rem}.settings-plugins__sublist[_ngcontent-%COMP%]{list-style:none;margin:0;padding:.5rem 0 0 1.75rem;display:flex;flex-direction:column;gap:.25rem;border-top:1px dashed var(--p-content-border-color)}.settings-plugins__subrow[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.375rem .5rem;border-radius:var(--p-border-radius)}.settings-plugins__subrow.is-clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background .12s ease}.settings-plugins__subrow.is-clickable[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-plugins__subrow-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-plugins__subrow-headline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .75rem}.settings-plugins__subrow-id[_ngcontent-%COMP%]{font-family:var(--p-monospace-font-family);font-size:.875rem}.settings-plugins__subrow-description[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.75rem;line-height:1.4;color:var(--p-text-muted-color)}.settings-plugins__dirty-dot[_ngcontent-%COMP%]{display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:var(--p-warn-color);flex-shrink:0}.settings-plugins__row-hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;margin:.25rem 0 0;font-size:.75rem;line-height:1.4;color:var(--p-warn-color)}.settings-plugins__row-hint[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-top:.125rem}.settings-plugins__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:.5rem;padding:.75rem 1.5rem;border-top:1px solid var(--p-content-border-color);background:var(--p-content-background)}.settings-plugins__footer-hint[_ngcontent-%COMP%]{font-style:italic;font-size:.75rem;line-height:1.4;color:var(--p-warn-color);margin-right:auto}"],changeDetection:0})};function vi(t,n){if(t&1&&(l(0,"p-message",3),d(1),a()),t&2){let e=s();m("closable",!1),r(),R(" ",e.texts.project.loadErrorPrefix," ",n," ")}}function Ci(t,n){if(t&1&&(l(0,"p-message",4),d(1),a()),t&2){let e=s();m("closable",!1),r(),R(" ",e.texts.project.saveErrorPrefix," ",n," ")}}function wi(t,n){if(t&1){let e=I();l(0,"li",10)(1,"span",17),d(2),a(),l(3,"p-button",18),v("onClick",function(){let o=S(e).$implicit,c=s();return P(c.onExtraFolderRemove(o))}),a()()}if(t&2){let e=n.$implicit,i=s();r(2),h(e),r(),m("label",i.texts.project.removePathLabel)("outlined",!0)("disabled",i.isPending("scan.extraFolders")),u("data-testid","settings-project-extra-folders-remove")}}function ki(t,n){if(t&1){let e=I();l(0,"li",10)(1,"span",17),d(2),a(),l(3,"p-button",18),v("onClick",function(){let o=S(e).$implicit,c=s();return P(c.onReferencePathRemove(o))}),a()()}if(t&2){let e=n.$implicit,i=s();r(2),h(e),r(),m("label",i.texts.project.removePathLabel)("outlined",!0)("disabled",i.isPending("scan.referencePaths")),u("data-testid","settings-project-reference-paths-remove")}}var Le=class t{dataSource=k(G);confirmation=k(ee);visible=V.required();texts=w;loading=y(!1);loadError=y(null);saveError=y(null);preferences=y(null);pending=y(new Set);newExtraFolder=y("");newReferencePath=y("");extraFolders=C(()=>this.preferences()?.scan.extraFolders??[]);referencePaths=C(()=>this.preferences()?.scan.referencePaths??[]);constructor(){N(()=>{this.visible()&&this.refresh()})}isPending(n){return this.pending().has(n)}onExtraFolderAdd(){let n=this.newExtraFolder().trim();if(n.length===0)return;let e=[...this.extraFolders(),n];this.runPatch("scan.extraFolders",{scan:{extraFolders:e}}).then(()=>{this.newExtraFolder.set("")})}onExtraFolderRemove(n){let e=this.extraFolders().filter(i=>i!==n);this.runPatch("scan.extraFolders",{scan:{extraFolders:[...e]}})}onReferencePathAdd(){let n=this.newReferencePath().trim();if(n.length===0)return;let e=[...this.referencePaths(),n];this.runPatch("scan.referencePaths",{scan:{referencePaths:e}}).then(()=>{this.newReferencePath.set("")})}onReferencePathRemove(n){let e=this.referencePaths().filter(i=>i!==n);this.runPatch("scan.referencePaths",{scan:{referencePaths:[...e]}})}async refresh(){this.loading.set(!0),this.loadError.set(null),this.saveError.set(null);try{let n=await this.dataSource.getProjectPreferences();this.preferences.set(n)}catch(n){this.loadError.set(Qe(n)),this.preferences.set(null)}finally{this.loading.set(!1)}}async runPatch(n,e){if(this.pending().has(n))return;let i=new Set(this.pending());i.add(n),this.pending.set(i),this.saveError.set(null);try{let o=await this.dataSource.setProjectPreferences(e);this.preferences.set(o)}catch(o){if(o instanceof z&&o.code==="confirm-required"){let c=o.paths??[];this.confirmDialog(c,async()=>{try{let g=await this.dataSource.setProjectPreferences(W(q({},e),{confirm:!0}));this.preferences.set(g)}catch(g){this.saveError.set(Qe(g))}})}else this.saveError.set(Qe(o))}finally{let o=new Set(this.pending());o.delete(n),this.pending.set(o)}}confirmDialog(n,e){this.confirmation.confirm({header:w.project.confirmDialogHeader,message:w.project.confirmDialogIntro+`
122
- `+n.map(i=>`\u2022 ${i}`).join(`
123
- `),acceptLabel:w.project.confirmDialogAccept,rejectLabel:w.project.confirmDialogReject,acceptButtonProps:{severity:"primary"},rejectButtonProps:{severity:"secondary"},accept:()=>{e()}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["sm-settings-project"]],inputs:{visible:[1,"visible"]},features:[Z([ee])],decls:32,vars:19,consts:[["data-testid","settings-project",1,"settings-project"],["id","settings-project-heading",1,"settings-project__title"],[1,"settings-project__intro"],["severity","error","data-testid","settings-project-load-error",3,"closable"],["severity","error","data-testid","settings-project-save-error",3,"closable"],["data-testid","settings-project-extra-folders-row",1,"settings-project__list-row"],[1,"settings-project__row-text"],[1,"settings-project__row-label"],[1,"settings-project__row-description"],["role","list",1,"settings-project__path-list"],[1,"settings-project__path-item"],[1,"settings-project__add-row"],["type","text","pInputText","","data-testid","settings-project-extra-folders-input",3,"ngModelChange","ngModel","placeholder","disabled"],["severity","primary","size","small","data-testid","settings-project-extra-folders-add",3,"onClick","label","disabled"],["data-testid","settings-project-reference-paths-row",1,"settings-project__list-row"],["type","text","pInputText","","data-testid","settings-project-reference-paths-input",3,"ngModelChange","ngModel","placeholder","disabled"],["severity","primary","size","small","data-testid","settings-project-reference-paths-add",3,"onClick","label","disabled"],[1,"settings-project__path-text"],["severity","secondary","size","small",3,"onClick","label","outlined","disabled"]],template:function(e,i){if(e&1&&(l(0,"section",0)(1,"h2",1),d(2),a(),l(3,"p",2),d(4),a(),_(5,vi,2,3,"p-message",3),_(6,Ci,2,3,"p-message",4),l(7,"div",5)(8,"div",6)(9,"div",7),d(10),a(),l(11,"div",8),d(12),a()(),l(13,"ul",9),O(14,wi,4,5,"li",10,X),a(),l(16,"div",11)(17,"input",12),v("ngModelChange",function(c){return i.newExtraFolder.set(c)}),a(),l(18,"p-button",13),v("onClick",function(){return i.onExtraFolderAdd()}),a()()(),l(19,"div",14)(20,"div",6)(21,"div",7),d(22),a(),l(23,"div",8),d(24),a()(),l(25,"ul",9),O(26,ki,4,5,"li",10,X),a(),l(28,"div",11)(29,"input",15),v("ngModelChange",function(c){return i.newReferencePath.set(c)}),a(),l(30,"p-button",16),v("onClick",function(){return i.onReferencePathAdd()}),a()()(),M(31,"p-confirmdialog"),a()),e&2){let o,c;u("aria-labelledby","settings-project-heading"),r(2),p(" ",i.texts.project.heading," "),r(2),h(i.texts.project.intro),r(),b((o=i.loadError())?5:-1,o),r(),b((c=i.saveError())?6:-1,c),r(4),h(i.texts.project.extraFoldersLabel),r(2),p(" ",i.texts.project.extraFoldersDescription," "),r(2),F(i.extraFolders()),r(3),m("ngModel",i.newExtraFolder())("placeholder",i.texts.project.extraFoldersPlaceholder)("disabled",i.isPending("scan.extraFolders")),r(),m("label",i.texts.project.addPathLabel)("disabled",i.isPending("scan.extraFolders")||i.newExtraFolder().trim().length===0),r(4),h(i.texts.project.referencePathsLabel),r(2),p(" ",i.texts.project.referencePathsDescription," "),r(2),F(i.referencePaths()),r(3),m("ngModel",i.newReferencePath())("placeholder",i.texts.project.referencePathsPlaceholder)("disabled",i.isPending("scan.referencePaths")),r(),m("label",i.texts.project.addPathLabel)("disabled",i.isPending("scan.referencePaths")||i.newReferencePath().trim().length===0)}},dependencies:[oe,Ee,ne,ie,te,ke,Pe,Se,Me,Te,ae,re],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-project__title[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:1.05rem;font-weight:600;color:var(--p-text-color)}.settings-project__intro[_ngcontent-%COMP%]{margin:0 0 1.25rem;font-size:.85rem;color:var(--sm-text-muted);line-height:1.5}.settings-project__row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid var(--p-content-border-color);border-radius:.5rem;background:var(--p-content-background);margin-bottom:1rem}.settings-project__row[_ngcontent-%COMP%] > p-toggleswitch[_ngcontent-%COMP%]{flex:0 0 auto;align-self:center}.settings-project__list-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:.85rem 1rem;border:1px solid var(--p-content-border-color);border-radius:.5rem;background:var(--p-content-background);margin-bottom:1rem}.settings-project__row-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 1 auto;min-width:0}.settings-project__row-label[_ngcontent-%COMP%]{font-size:.9rem;font-weight:600;color:var(--p-text-color)}.settings-project__row-description[_ngcontent-%COMP%]{font-size:.8rem;color:var(--sm-text-muted);line-height:1.45}.settings-project__path-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}.settings-project__path-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.4rem .6rem;border-radius:.35rem;background:var(--p-content-hover-background)}.settings-project__path-text[_ngcontent-%COMP%]{font-family:var(--p-font-family-mono);font-size:.8rem;word-break:break-all;flex:1 1 auto}.settings-project__add-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.settings-project__add-row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1 1 auto;font-family:var(--p-font-family-mono);font-size:.8rem}"],changeDetection:0})};function Qe(t){return t instanceof z||t instanceof Error?t.message:String(t)}var Si=(t,n)=>n.id;function Pi(t,n){if(t&1){let e=I();l(0,"li")(1,"button",6),v("click",function(){let o=S(e).$implicit,c=s();return P(c.selectSection(o.id))}),l(2,"span",7),d(3),a()()()}if(t&2){let e=n.$implicit,i=s();r(),$("is-active",i.activeSection()===e.id),u("aria-current",i.activeSection()===e.id?"page":null)("data-testid","settings-nav-"+e.id),r(2),h(e.label)}}function Ei(t,n){if(t&1){let e=I();l(0,"sm-settings-plugins",8),v("applied",function(){S(e);let o=s();return P(o.onPluginsApplied())}),a()}if(t&2){let e=s();m("visible",e.pluginsVisible())}}function Ti(t,n){if(t&1&&M(0,"sm-settings-general",5),t&2){let e=s();m("visible",e.generalVisible())}}function Mi(t,n){if(t&1&&M(0,"sm-settings-project",5),t&2){let e=s();m("visible",e.projectVisible())}}function Ii(t,n){if(t&1&&M(0,"sm-settings-about",5),t&2){let e=s();m("visible",e.aboutVisible())}}function Oi(t,n){t&1&&M(0,"sm-settings-changelog")}var Fi=[{id:"general",label:w.sections.general},{id:"project",label:w.sections.project},{id:"plugins",label:w.sections.plugins},{id:"changelog",label:w.sections.changelog},{id:"about",label:w.sections.about}],cn=class t{visible=V.required();visibleChange=ve();confirmation=k(ee);pluginsPanel=ht(ge);texts=w;sections=Fi;activeSection=y("plugins");dialogStyle={width:"1024px",height:"720px",maxWidth:"92vw",maxHeight:"90vh"};pluginsVisible=C(()=>this.visible()&&this.activeSection()==="plugins");generalVisible=C(()=>this.visible()&&this.activeSection()==="general");projectVisible=C(()=>this.visible()&&this.activeSection()==="project");aboutVisible=C(()=>this.visible()&&this.activeSection()==="about");onVisibleChange(n){if(n){this.visibleChange.emit(!0);return}let e=this.pluginsPanel(),i=e?.dirtyIds().size??0;if(i===0){this.visibleChange.emit(!1);return}this.confirmation.confirm({header:this.texts.confirmCloseTitle,message:this.texts.confirmCloseBody(i),acceptLabel:this.texts.applyAndClose,rejectLabel:this.texts.discardChanges,acceptButtonProps:{severity:"primary"},rejectButtonProps:{severity:"secondary"},accept:()=>{e?.applyChanges()},reject:()=>{e?.discardChanges(),this.visibleChange.emit(!1)}})}selectSection(n){this.activeSection.set(n)}onPluginsApplied(){this.visibleChange.emit(!1)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["sm-settings-modal"]],viewQuery:function(e,i){e&1&&gt(i.pluginsPanel,ge,5),e&2&&pt()},inputs:{visible:[1,"visible"]},outputs:{visibleChange:"visibleChange"},features:[Z([ee])],decls:13,vars:12,consts:[["contentStyleClass","settings-modal__content","data-testid","settings-modal",3,"visibleChange","visible","modal","draggable","resizable","closable","closeOnEscape","dismissableMask","header"],[1,"settings-modal__layout"],["data-testid","settings-modal-sidebar",1,"settings-modal__sidebar"],["role","list",1,"settings-modal__sidebar-list"],["data-testid","settings-modal-main",1,"settings-modal__main"],[3,"visible"],["type","button",1,"settings-modal__sidebar-item",3,"click"],[1,"settings-modal__sidebar-label"],[3,"applied","visible"]],template:function(e,i){if(e&1&&(l(0,"p-dialog",0),v("visibleChange",function(c){return i.onVisibleChange(c)}),l(1,"div",1)(2,"nav",2)(3,"ul",3),O(4,Pi,4,5,"li",null,Si),a()(),l(6,"div",4),_(7,Ei,1,1,"sm-settings-plugins",5)(8,Ti,1,1,"sm-settings-general",5)(9,Mi,1,1,"sm-settings-project",5)(10,Ii,1,1,"sm-settings-about",5)(11,Oi,1,0,"sm-settings-changelog"),a()(),M(12,"p-confirmdialog"),a()),e&2){let o;ye(i.dialogStyle),m("visible",i.visible())("modal",!0)("draggable",!1)("resizable",!1)("closable",!0)("closeOnEscape",!0)("dismissableMask",!0)("header",i.texts.modalTitle),r(2),u("aria-label",i.texts.modalTitle),r(2),F(i.sections),r(3),b((o=i.activeSection())==="plugins"?7:o==="general"?8:o==="project"?9:o==="about"?10:o==="changelog"?11:-1)}},dependencies:[te,Pe,Se,kt,wt,Oe,Fe,Ae,ge,Le],styles:["[_nghost-%COMP%]{display:contents}[_nghost-%COMP%] .settings-modal__content{padding:0;height:100%;display:flex;flex-direction:column;overflow:hidden}.settings-modal__layout[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:200px 1fr;min-height:0}.settings-modal__sidebar[_ngcontent-%COMP%]{border-right:1px solid var(--p-content-border-color);background:var(--p-content-background);padding:.5rem;overflow-y:auto}.settings-modal__sidebar-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.125rem}.settings-modal__sidebar-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;padding:.5rem .75rem;border:none;border-radius:var(--p-border-radius);background:transparent;color:var(--p-text-color);font:inherit;text-align:left;cursor:pointer;transition:background .15s ease,color .15s ease}.settings-modal__sidebar-item[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-modal__sidebar-item.is-active[_ngcontent-%COMP%]{background:var(--p-highlight-background);color:var(--p-highlight-color)}.settings-modal__sidebar-label[_ngcontent-%COMP%]{flex:1;font-size:.9rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-modal__main[_ngcontent-%COMP%]{min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column}.settings-modal__main[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;min-height:0}"],changeDetection:0})};export{cn as SettingsModal};
@@ -1,2 +0,0 @@
1
- import{a as ze,b as ee,c as He}from"./chunk-WOLLYGGL.js";import{a as we,b as Te,c as Ce,d as G,e as Re,f as xe,g as Ee,h as Me,i as Le,j as Ne,k as je,u as T,v as Ke,w as Ue,x as Be}from"./chunk-PY2R7LHN.js";import{a as M,b as te,c as Je,d as Qe,e as Ve}from"./chunk-BGDH7CDV.js";import{Ca as fe,Fa as Q,Ia as ye,J as S,Ja as ve,Ka as w,Mc as Oe,N as K,Na as D,Nc as De,O as s,Oa as N,T as B,Ta as g,Tb as m,U as z,Ua as l,Va as p,Wa as b,Z as ue,ac as be,bd as W,ca as ge,cd as Y,da as A,db as V,ea as H,f as me,fb as E,gd as $e,hb as I,id as Z,jd as c,kd as $,la as he,ld as Fe,m as O,md as F,nd as q,oa as a,rc as _e,sc as Ie,tb as pe,tc as Pe,uc as j,vc as ke,wa as J,wb as u,wc as Se,xb as h,xc as Ae,yb as X}from"./chunk-J3YWUNFO.js";import"./chunk-H2J55DNK.js";import"./chunk-Q7L6LLAK.js";var de="skill-map",_={brand:de,alpha:"ALPHA - do not use in production",nav:{graph:"Graph",list:"List",searchLabel:"Search nodes (coming soon)",searchTooltip:"Search (coming soon)",listLabel:"List view (coming soon)",listTooltip:"List (coming soon)"},actions:{},badge:{nodes:"nodes",graphInfo:(i,e)=>`Run scan
2
- ${i.toLocaleString()} nodes \xB7 ${e.toLocaleString()} links`,graphInfoA11y:(i,e)=>`Graph contains ${i} nodes and ${e} links`},a11y:{viewSwitcher:"View switcher"},viewportWarning:{title:"Looks like you're on a small screen",subtitle:"skill-map is built for desktop",body:"The graph and inspector need room to breathe. Pop this open on a screen at least 768px wide. See you there."},documentTitle:(i,e)=>e?`${i} - ${de} v${e}`:`${i} - ${de}`};var Xe=[{path:"",pathMatch:"full",redirectTo:"graph"},{path:"graph",loadComponent:()=>import("./chunk-VH5GRUT7.js").then(i=>i.GraphView),title:_.nav.graph},{path:"list",loadComponent:()=>import("./chunk-4GTCV7V4.js").then(i=>i.ListView),title:_.nav.list},{path:"**",redirectTo:"graph"}];var P={errors:{unknownMode:i=>`SKILL_MAP_MODE: unknown value "${i}"`,restPrefix:i=>`BFF error [${i}]: `,malformedResponse:"BFF returned a malformed response",demoFetchFailed:(i,e)=>`Demo bundle fetch failed for "${i}": ${e}`,demoParseFailed:(i,e)=>`Demo bundle parse failed for "${i}": ${e}`,graphFormatNotInDemo:i=>`Graph format "${i}" is not bundled in demo mode (only "ascii").`}};function ie(i){let e=new TextEncoder().encode(i),t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var d="/api",ne=class i{http;ws;kindRegistry;contributionsRegistry;constructor(e,t,n,r){this.http=e??s(j),this.ws=t??s(F),this.kindRegistry=n??s(T),this.contributionsRegistry=r??s(ee)}async health(){return this.getJson(`${d}/health`)}async loadScan(){let[e]=await Promise.all([this.getJson(`${d}/scan`),this.listNodes({limit:0}).catch(()=>null)]);return e}async runScan(){return this.patchJson(`${d}/scan`,{},"POST")}async listNodes(e={}){let t=lt(e),n=await this.getJson(`${d}/nodes${t}`);return this.ingestRegistry(n.kindRegistry),this.ingestContributionsRegistry(n.contributionsRegistry),n}async getNode(e,t={}){let n=ie(e),r=t.includeBody?"?include=body":"";try{let o=await this.getJson(`${d}/nodes/${n}${r}`);return this.ingestRegistry(o.kindRegistry),this.ingestContributionsRegistry(o.contributionsRegistry),o}catch(o){if(o instanceof c&&o.code==="not-found")return null;throw o}}async listLinks(e={}){let t=pt(e),n=await this.getJson(`${d}/links${t}`);return this.ingestRegistry(n.kindRegistry),this.ingestContributionsRegistry(n.contributionsRegistry),n}async listIssues(e={}){let t=dt(e),n=await this.getJson(`${d}/issues${t}`);return this.ingestRegistry(n.kindRegistry),this.ingestContributionsRegistry(n.contributionsRegistry),n}async loadGraph(e="ascii"){let t=`${d}/graph?format=${encodeURIComponent(e)}`;try{return await O(this.http.get(t,{responseType:"text"}))}catch(n){throw this.translateError(n)}}async loadConfig(){let e=await this.getJson(`${d}/config`);return this.ingestRegistry(e.kindRegistry),this.ingestContributionsRegistry(e.contributionsRegistry),e.value}async listPlugins(){let e=await this.getJson(`${d}/plugins`);return this.ingestRegistry(e.kindRegistry),this.ingestContributionsRegistry(e.contributionsRegistry),e}async setPluginEnabled(e,t){let n=await this.patchJson(`${d}/plugins/${encodeURIComponent(e)}`,{enabled:t});return this.ingestRegistry(n.kindRegistry),this.ingestContributionsRegistry(n.contributionsRegistry),n}async setPluginExtensionEnabled(e,t,n){let r=await this.patchJson(`${d}/plugins/${encodeURIComponent(e)}/extensions/${encodeURIComponent(t)}`,{enabled:n});return this.ingestRegistry(r.kindRegistry),this.ingestContributionsRegistry(r.contributionsRegistry),r}async applyPluginChanges(e){let t=await this.patchJson(`${d}/plugins`,{changes:e});return this.ingestRegistry(t.kindRegistry),this.ingestContributionsRegistry(t.contributionsRegistry),t}async getPreferences(){return await this.getJson(`${d}/preferences`)}async setPreferences(e){return await this.patchJson(`${d}/preferences`,e)}async getProjectPreferences(){return await this.getJson(`${d}/project-preferences`)}async setProjectPreferences(e){return await this.patchJson(`${d}/project-preferences`,e)}async setFavorite(e){let t=ie(e);try{await O(this.http.put(`${d}/favorites/${t}`,null))}catch(n){throw this.translateError(n)}}async unsetFavorite(e){let t=ie(e);try{await O(this.http.delete(`${d}/favorites/${t}`))}catch(n){throw this.translateError(n)}}async bumpSidecar(e,t={}){let n={nodePath:e};return t.force!==void 0&&(n.force=t.force),t.confirm!==void 0&&(n.confirm=t.confirm),this.patchJson(`${d}/sidecar/bump`,n,"POST")}async getUpdateStatus(){return this.getJson(`${d}/update-status`)}async getRegisteredAnnotations(){return(await this.getJson(`${d}/annotations/registered`)).items}ingestRegistry(e){e&&this.kindRegistry.ingest(e)}ingestContributionsRegistry(e){this.contributionsRegistry.setRegistry(e)}async lookupContribution(e,t,n){let r=new URLSearchParams({path:n});try{return(await this.getJson(`${d}/contributions/${encodeURIComponent(e)}/${encodeURIComponent(t)}?${r.toString()}`)).items[0]??null}catch{return null}}events(){return this.ws.events$}async getJson(e){try{return await O(this.http.get(e))}catch(t){throw this.translateError(t)}}async patchJson(e,t,n="PATCH"){try{let r=n==="POST"?this.http.post(e,t):this.http.patch(e,t);return await O(r)}catch(r){throw this.translateError(r)}}translateError(e){if(e instanceof c)return e;if(e instanceof Pe){let n=ct(e.error);return n?new c(n.error.code,n.error.message,n.error.details):new c("internal",e.message||P.errors.malformedResponse)}let t=e instanceof Error?e.message:String(e);return new c("internal",t)}static \u0275fac=function(t){return new(t||i)(K(j),K(F),K(T),K(ee))};static \u0275prov=S({token:i,factory:i.\u0275fac,providedIn:"root"})};function lt(i){let e=new URLSearchParams;i.kind&&i.kind.length>0&&e.set("kind",i.kind.join(",")),i.hasIssues!==void 0&&e.set("hasIssues",String(i.hasIssues)),i.path&&e.set("path",i.path),i.limit!==void 0&&e.set("limit",String(i.limit)),i.offset!==void 0&&e.set("offset",String(i.offset));let t=e.toString();return t?`?${t}`:""}function pt(i){let e=new URLSearchParams;i.kind&&i.kind.length>0&&e.set("kind",i.kind.join(",")),i.from&&e.set("from",i.from),i.to&&e.set("to",i.to);let t=e.toString();return t?`?${t}`:""}function dt(i){let e=new URLSearchParams;i.severity&&e.set("severity",i.severity),i.analyzerId&&e.set("analyzerId",i.analyzerId),i.node&&e.set("node",i.node);let t=e.toString();return t?`?${t}`:""}function ct(i){if(typeof i!="object"||i===null)return null;let e=i;if(e.ok!==!1)return null;let t=e.error;if(typeof t!="object"||t===null)return null;let n=t;return typeof n.code!="string"||typeof n.message!="string"?null:{ok:!1,error:{code:n.code,message:n.message,details:n.details}}}var mt="data.json",ut="data.meta.json",re=class{constructor(e=globalThis.fetch.bind(globalThis),t){this.fetchImpl=e;this.kindRegistry=t??s(T)}metaPromise=null;dataPromise=null;kindRegistry;async health(){return(await this.loadMeta()).health}async loadScan(){let[e,t]=await Promise.all([this.loadData(),this.loadMeta()]);return this.kindRegistry.ingest(t.nodes.kindRegistry),e}async listNodes(e={}){let t=await this.loadMeta();if(gt(e))return this.kindRegistry.ingest(t.nodes.kindRegistry),t.nodes;let n=await this.loadData(),r=n.issues,o=n.nodes;if(e.kind&&e.kind.length>0){let R=new Set(e.kind);o=o.filter(x=>R.has(x.kind))}if(e.path){let R=yt(e.path);o=o.filter(x=>R.test(x.path))}if(e.hasIssues===!0){let R=Ge(r);o=o.filter(x=>R.has(x.path))}else if(e.hasIssues===!1){let R=Ge(r);o=o.filter(x=>!R.has(x.path))}let f=o.length,v=e.offset??0,k=e.limit??1e3,y=o.slice(v,v+k);return this.kindRegistry.ingest(t.nodes.kindRegistry),{schemaVersion:"1",kind:"nodes",items:y,filters:{kind:e.kind??null,hasIssues:e.hasIssues??null,path:e.path?[e.path]:null},counts:{total:f,returned:y.length,page:{offset:v,limit:k}},kindRegistry:t.nodes.kindRegistry}}async getNode(e,t={}){let[n,r]=await Promise.all([this.loadData(),this.loadMeta()]),o=n.nodes.find(y=>y.path===e);if(!o)return null;let f=n.links.filter(y=>y.target===e),v=n.links.filter(y=>y.source===e),k=n.issues.filter(y=>y.nodeIds.includes(e));return this.kindRegistry.ingest(r.nodes.kindRegistry),{schemaVersion:"1",kind:"node",item:o,links:{incoming:f,outgoing:v},issues:k,kindRegistry:r.nodes.kindRegistry}}async listLinks(e={}){let t=await this.loadMeta();if(ht(e))return this.kindRegistry.ingest(t.links.kindRegistry),t.links;let r=(await this.loadData()).links;if(e.kind&&e.kind.length>0){let o=new Set(e.kind);r=r.filter(f=>o.has(f.kind))}return e.from&&(r=r.filter(o=>o.source===e.from)),e.to&&(r=r.filter(o=>o.target===e.to)),this.kindRegistry.ingest(t.links.kindRegistry),{schemaVersion:"1",kind:"links",items:r,filters:{kind:e.kind??null,from:e.from??null,to:e.to??null},counts:{total:r.length,returned:r.length},kindRegistry:t.links.kindRegistry}}async listIssues(e={}){let t=await this.loadMeta();if(ft(e))return this.kindRegistry.ingest(t.issues.kindRegistry),t.issues;let r=(await this.loadData()).issues;return e.severity&&(r=r.filter(o=>o.severity===e.severity)),e.analyzerId&&(r=r.filter(o=>o.analyzerId===e.analyzerId)),e.node&&(r=r.filter(o=>o.nodeIds.includes(e.node))),this.kindRegistry.ingest(t.issues.kindRegistry),{schemaVersion:"1",kind:"issues",items:r,filters:{severity:e.severity??null,analyzerId:e.analyzerId??null,node:e.node??null},counts:{total:r.length,returned:r.length},kindRegistry:t.issues.kindRegistry}}async loadGraph(e="ascii"){if(e!=="ascii")throw new c("bad-query",P.errors.graphFormatNotInDemo(e));return(await this.loadMeta()).graph.ascii}async loadConfig(){let e=await this.loadMeta();return this.kindRegistry.ingest(e.config.kindRegistry),e.config.value}async listPlugins(){let e=await this.loadMeta();return this.kindRegistry.ingest(e.plugins.kindRegistry),e.plugins}async setFavorite(e){throw new c("demo-readonly","Favorites are not available in demo mode (static bundle is immutable).")}async unsetFavorite(e){throw new c("demo-readonly","Favorites are not available in demo mode (static bundle is immutable).")}async setPluginEnabled(e,t){throw new c("demo-readonly","Plugin toggles are not available in demo mode (static bundle is immutable).")}async setPluginExtensionEnabled(e,t,n){throw new c("demo-readonly","Plugin toggles are not available in demo mode (static bundle is immutable).")}async applyPluginChanges(e){throw new c("demo-readonly","Plugin toggles are not available in demo mode (static bundle is immutable).")}async runScan(){throw new c("demo-readonly","Manual scan is not available in demo mode (static bundle is immutable).")}async getPreferences(){return{updateCheck:{enabled:!0}}}async setPreferences(e){throw new c("demo-readonly","Preference toggles are not available in demo mode (static bundle is immutable).")}async getProjectPreferences(){return{scan:{extraFolders:[],referencePaths:[]}}}async setProjectPreferences(e){throw new c("demo-readonly","Project preferences are not available in demo mode (static bundle is immutable).")}async lookupContribution(){return null}async bumpSidecar(e,t={}){throw new c("demo-readonly","Sidecar bump is not available in demo mode (static bundle is immutable).")}async getUpdateStatus(){return{current:(await this.loadMeta()).health.implVersion,latest:null,isOutdated:!1,checkedAt:null,shownAt:null}}async getRegisteredAnnotations(){return[]}events(){return me}loadMeta(){return this.metaPromise||(this.metaPromise=this.fetchJson(ut)),this.metaPromise}loadData(){return this.dataPromise||(this.dataPromise=this.fetchJson(mt)),this.dataPromise}async fetchJson(e){let t;try{t=await this.fetchImpl(e)}catch(n){let r=n instanceof Error?n.message:String(n);throw new c("internal",P.errors.demoFetchFailed(e,r))}if(!t.ok)throw new c("internal",P.errors.demoFetchFailed(e,`HTTP ${t.status}`));try{return await t.json()}catch(n){let r=n instanceof Error?n.message:String(n);throw new c("internal",P.errors.demoParseFailed(e,r))}}};function gt(i){return!(i.kind&&i.kind.length>0||i.hasIssues!==void 0||i.path||i.offset!==void 0&&i.offset!==0||i.limit!==void 0)}function ht(i){return!(i.kind&&i.kind.length>0||i.from||i.to)}function ft(i){return!(i.severity||i.analyzerId||i.node)}function Ge(i){let e=new Set;for(let t of i)for(let n of t.nodeIds)e.add(n);return e}function yt(i){let t=i.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${t}$`)}function We(){let i=s($);if(i==="live")return new ne(s(j),s(F));if(i==="demo")return new re;let e=i;throw new Error(P.errors.unknownMode(String(e)))}var Ye="search",Ze="kinds",qe="linkKinds",et="stabilities",tt="hasIssues",it="staleOnly",nt="favoritesOnly",oe=class i{filters=s(Be);router=s(Re);activatedRoute=s(Te);kindRegistry=s(T);destroyRef=s(ue);suppressUrlReadback=!1;constructor(){this.applyUrlToFilters(this.currentParams()),this.router.events.pipe($e(this.destroyRef)).subscribe(e=>{if(e instanceof we){if(this.suppressUrlReadback)return;this.applyUrlToFilters(this.currentParams())}}),H(()=>{let e=this.computeQueryParams();this.writeQueryParams(e)})}currentParams(){let e=this.router.parseUrl(this.router.url),t=new URLSearchParams;for(let[n,r]of Object.entries(e.queryParams))Array.isArray(r)?t.set(n,r.join(",")):r!=null&&t.set(n,String(r));return this.activatedRoute,t}applyUrlToFilters(e){let t=e.get(Ye)??"";t!==this.filters.searchText()&&this.filters.setSearchText(t);let n=vt(e.get(Ze),this.kindRegistry.kinds().map(y=>y.name));ce(n,this.filters.selectedKinds())||this.filters.setKinds(n);let r=bt(e.get(et));ce(r,this.filters.selectedStabilities())||this.filters.setStabilities(r);let o=e.get(tt)==="true";o!==this.filters.hasIssuesOnly()&&this.filters.setHasIssuesOnly(o);let f=e.get(it)==="true";f!==this.filters.staleOnly()&&this.filters.setStaleOnly(f);let v=e.get(nt)==="true";v!==this.filters.favoritesOnly()&&this.filters.setFavoritesOnly(v);let k=_t(e.get(qe));ce(k,this.filters.selectedLinkKinds())||this.filters.setLinkKinds(k)}computeQueryParams(){let e=this.filters.searchText().trim(),t=this.filters.selectedKinds(),n=this.filters.selectedLinkKinds(),r=this.filters.selectedStabilities(),o=this.filters.hasIssuesOnly(),f=this.filters.staleOnly(),v=this.filters.favoritesOnly();return{[Ye]:e.length>0?e:null,[Ze]:t.length>0?t.join(","):null,[qe]:n.length>0?n.join(","):null,[et]:r.length>0?r.join(","):null,[tt]:o?"true":null,[it]:f?"true":null,[nt]:v?"true":null}}writeQueryParams(e){let t=this.currentParams(),n=new Map(Object.entries(e)),r=!1;for(let[o,f]of n)if((t.get(o)??null)!==f){r=!0;break}r&&(this.suppressUrlReadback=!0,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:e,queryParamsHandling:"merge",replaceUrl:!0}).finally(()=>{setTimeout(()=>{this.suppressUrlReadback=!1},0)}))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=S({token:i,factory:i.\u0275fac,providedIn:"root"})};function vt(i,e){if(!i)return[];let t=new Set(e);return i.split(",").map(n=>n.trim()).filter(n=>t.has(n))}function bt(i){if(!i)return[];let e=new Set(Ke);return i.split(",").map(t=>t.trim()).filter(t=>e.has(t))}function _t(i){if(!i)return[];let e=new Set(Ue);return i.split(",").map(t=>t.trim()).filter(t=>e.has(t))}function ce(i,e){if(i.length!==e.length)return!1;for(let t=0;t<i.length;t++)if(i[t]!==e[t])return!1;return!0}var rt={healthFailed:i=>`ProjectInfoService: /api/health probe failed (${i})`};var C=class i{dataSource=s(Z);status=A(null);cwd=m(()=>this.status()?.cwd??null);implVersion=m(()=>this.status()?.implVersion??null);async load(){try{let e=await this.dataSource.health();this.status.set(e)}catch(e){let t=e instanceof Error?e.message:String(e);console.warn(rt.healthFailed(t))}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=S({token:i,factory:i.\u0275fac,providedIn:"root"})};var se=class i extends G{title=s(Ae);projectInfo=s(C);lastSnapshot=A(null);constructor(){super(),H(()=>{let e=this.lastSnapshot();this.projectInfo.implVersion(),e&&this.applyTitle(e)})}updateTitle(e){this.lastSnapshot.set(e),this.applyTitle(e)}applyTitle(e){let t=this.buildTitle(e),n=this.projectInfo.implVersion();if(!t){this.title.setTitle(n?`${_.brand} v${n}`:_.brand);return}this.title.setTitle(_.documentTitle(t,n))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=S({token:i,factory:i.\u0275fac,providedIn:"root"})};function It(...i){for(let e of i)Promise.resolve(e.load())}var ot={providers:[ge(),Me(Xe,Le()),{provide:G,useClass:se},ke(Se()),De({}),Q(async()=>{let i=s(Oe),[{default:e},{definePreset:t}]=await Promise.all([import("./chunk-Y7MXGXU3.js"),import("./chunk-6BG7PBUN.js")]),n=t(e,{semantic:{primary:{50:"#F5F3FF",100:"#EDE9FE",200:"#DDD6FE",300:"#C4B5FD",400:"#A78BFA",500:"#8B5CF6",600:"#7C3AED",700:"#6D28D9",800:"#4C1D95",900:"#2E1065",950:"#1E0A4D"}}});i.setThemeConfig({theme:{preset:n,options:{darkModeSelector:".app-dark"}}})}),{provide:$,useFactory:Fe},{provide:Z,useFactory:We},Q(()=>{It(s(q),s(te),s(C))}),Q(()=>{s(oe),s(ze)})]};var L={toggleToAuto:"Switch to auto theme (follow system)",toggleToLight:"Switch to light theme",toggleToDark:"Switch to dark theme",currentAuto:"Auto theme (follows system)",currentLight:"Light theme",currentDark:"Dark theme"};var st={body:"You are viewing a static demo of skill-map's UI. Install it:",installCommand:"npm i -g @skill-map/cli",homeCta:"\u2190 Back to skill-map.dev",homeHref:"/",dismissAria:"Dismiss demo banner"};function St(i,e){if(i&1){let t=V();l(0,"div",0),b(1,"span",1),l(2,"p",2),u(3),l(4,"code",3),u(5),p()(),l(6,"a",4),u(7),p(),l(8,"p-button",5),E("onClick",function(){B(t);let r=I();return z(r.dismiss())}),p()()}if(i&2){let t=I();a(3),X(" ",t.texts.body," "),a(2),h(t.texts.installCommand),a(),g("href",t.texts.homeHref,he),a(),h(t.texts.homeCta),a(),g("ariaLabel",t.texts.dismissAria)("text",!0)("rounded",!0)}}var at="sm.demoBannerDismissed",ae=class i{mode=s($);texts=st;dismissed=A(this.readDismissed());visible=m(()=>this.mode==="demo"&&!this.dismissed());dismiss(){this.dismissed.set(!0);try{globalThis.localStorage?.setItem(at,"1")}catch{}}readDismissed(){if(this.mode!=="demo")return!0;try{return globalThis.localStorage?.getItem(at)==="1"}catch{return!1}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=J({type:i,selectors:[["sm-demo-banner"]],decls:1,vars:1,consts:[["role","status","data-testid","demo-banner",1,"demo-banner"],["aria-hidden","true",1,"demo-banner__icon","fa-solid","fa-circle-info"],[1,"demo-banner__body"],["data-testid","demo-banner-install",1,"demo-banner__cmd"],["data-testid","demo-banner-home",1,"demo-banner__home",3,"href"],["icon","fa-solid fa-xmark","severity","secondary","size","small","data-testid","demo-banner-dismiss",3,"onClick","ariaLabel","text","rounded"]],template:function(t,n){t&1&&D(0,St,9,7,"div",0),t&2&&N(n.visible()?0:-1)},dependencies:[Y,W],styles:["[_nghost-%COMP%]{display:block}.demo-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;border-bottom:1px solid var(--p-content-border-color);background:var(--p-highlight-background);color:var(--p-text-color);font-size:.875rem}.demo-banner__icon[_ngcontent-%COMP%]{font-size:1.1rem;color:var(--p-primary-color)}.demo-banner__body[_ngcontent-%COMP%]{flex:1 1 auto;margin:0;line-height:1.4}.demo-banner__cmd[_ngcontent-%COMP%]{font-family:var(--sm-font-mono);background:var(--p-content-background);border:1px solid var(--p-content-border-color);border-radius:var(--sm-radius-md);padding:.05rem .4rem;font-size:.85em;margin-left:.25rem}.demo-banner__home[_ngcontent-%COMP%]{color:var(--p-primary-color);font-weight:500;text-decoration:none;white-space:nowrap}.demo-banner__home[_ngcontent-%COMP%]:hover, .demo-banner__home[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}"],changeDetection:0})};var At=()=>[import("./chunk-XCUOAV77.js").then(i=>i.SettingsModal)];function wt(i,e){if(i&1&&(l(0,"span",10),u(1),p()),i&2){let t=I();g("pTooltip",t.versionTooltip()),w("aria-label",t.versionA11y()),a(),h(t.versionLabel())}}function Tt(i,e){if(i&1&&(l(0,"a",12),b(1,"i",26),l(2,"span"),u(3),p()()),i&2){let t=I();g("pTooltip",t.updateChipTooltip()),w("aria-label",t.updateChipA11y()),a(3),h(t.updateChipText)}}function Ct(i,e){if(i&1&&(l(0,"p",13),u(1),p()),i&2){let t=I();a(),h(t.rootLabel())}}function Rt(i,e){if(i&1){let t=V();l(0,"sm-settings-modal",27),E("visibleChange",function(r){B(t);let o=I();return z(o.settingsOpen.set(r))}),p()}if(i&2){let t=I();g("visible",t.settingsOpen())}}var le=class i{loader=s(q);theme=s(Ve);projectInfo=s(C);scanTrigger=s(Qe);updateCheck=s(te);texts=_;settingsTexts=Je;settingsOpen=A(!1);openSettings(){this.settingsOpen.set(!0)}scanning=this.scanTrigger.scanning;scanError=this.scanTrigger.scanError;triggerScan(){return this.scanTrigger.run()}updateChipText=M.available;updateChipTooltip=m(()=>M.tooltip(this.updateCheck.latest()??""));updateChipA11y=m(()=>M.a11yLabel(this.updateCheck.latest()??""));versionLabel=m(()=>M.versionLabel(this.updateCheck.current()??""));versionTooltip=m(()=>M.versionTooltip(this.updateCheck.current()??""));versionA11y=m(()=>M.versionA11yLabel(this.updateCheck.current()??""));count=this.loader.count;linkCount=m(()=>this.loader.scan()?.links?.length??0);graphInfoTooltip=m(()=>_.badge.graphInfo(this.count(),this.linkCount()));graphInfoA11y=m(()=>_.badge.graphInfoA11y(this.count(),this.linkCount()));rootLabel=m(()=>{let e=this.projectInfo.cwd();if(e&&e!==".")return e;let t=this.loader.scan()?.roots??[];if(t.length===0)return"";let n=t[0].replace(/[\\/]+$/,"");return!n||n==="."?"":n});isDevMode=be();themeMode=this.theme.mode;markSrc=m(()=>this.theme.extraTheme()==="matrix"?"skill-map-mark-matrix.svg":this.theme.resolved()==="dark"?"skill-map-mark-light.svg":"skill-map-mark-dark.svg");themeIcon=m(()=>{switch(this.themeMode()){case"auto":return"pi pi-desktop";case"light":return"pi pi-sun";case"dark":return"fa-regular fa-moon"}});themeLabel=m(()=>{switch(this.themeMode()){case"auto":return L.toggleToLight;case"light":return L.toggleToDark;case"dark":return L.toggleToAuto}});themeTooltip=m(()=>{switch(this.themeMode()){case"auto":return L.currentAuto;case"light":return L.currentLight;case"dark":return L.currentDark}});toggleTheme(){this.theme.toggle()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=J({type:i,selectors:[["sm-root"]],decls:40,vars:35,consts:[["role","alert","data-testid","viewport-warning",1,"viewport-warning"],[1,"viewport-warning__card"],["aria-hidden","true",1,"fa-solid","fa-desktop","viewport-warning__icon"],[1,"viewport-warning__title"],[1,"viewport-warning__subtitle"],[1,"viewport-warning__body"],["data-testid","shell",1,"shell"],["data-testid","shell-topbar",1,"shell__topbar"],[1,"shell__brand"],["width","32","height","32","priority","","alt","","aria-hidden","true",1,"shell__brand-mark",3,"ngSrc"],["tooltipPosition","bottom","data-testid","shell-version",1,"shell__version",3,"pTooltip"],[1,"shell__alpha"],["href","https://www.npmjs.com/package/@skill-map/cli","target","_blank","rel","noopener noreferrer","tooltipPosition","bottom","data-testid","shell-update-chip",1,"shell__update-chip",3,"pTooltip"],[1,"shell__tag"],["data-testid","shell-nav",1,"shell__nav"],["type","button","tooltipPosition","bottom","tabindex","-1","aria-disabled","true","data-testid","nav-search",1,"shell__nav-search",3,"pTooltip"],["aria-hidden","true",1,"pi","pi-search"],["slot","topbar.nav.start",3,"node"],["routerLink","/graph","routerLinkActive","is-active","data-testid","nav-graph"],["type","button","tooltipPosition","bottom","tabindex","-1","aria-disabled","true","data-testid","nav-list",1,"shell__nav-disabled",3,"pTooltip"],[1,"shell__actions"],["type","button","tooltipPosition","bottom","data-testid","shell-refresh",1,"shell__refresh",3,"click","pTooltip","disabled"],["aria-hidden","true",1,"pi","pi-sync"],["severity","secondary","size","small","data-testid","action-theme-toggle",3,"onClick","icon","ariaLabel","pTooltip","text","rounded"],["icon","pi pi-sliders-h","severity","secondary","size","small","data-testid","action-settings",3,"onClick","ariaLabel","pTooltip","text","rounded"],[1,"shell__main"],["aria-hidden","true",1,"pi","pi-download"],[3,"visibleChange","visible"]],template:function(t,n){if(t&1&&(l(0,"div",0)(1,"div",1),b(2,"i",2),l(3,"h2",3),u(4),p(),l(5,"p",4),u(6),p(),l(7,"p",5),u(8),p()()(),l(9,"div",6),b(10,"sm-demo-banner"),l(11,"header",7)(12,"div",8),b(13,"img",9),l(14,"div")(15,"h1"),u(16),D(17,wt,2,3,"span",10),l(18,"span",11),u(19),p(),D(20,Tt,4,3,"a",12),p(),D(21,Ct,2,1,"p",13),p()(),l(22,"nav",14)(23,"button",15),b(24,"i",16),p(),b(25,"sm-view-contributions-host",17),l(26,"a",18),u(27),p(),l(28,"button",19),u(29),p()(),l(30,"div",20)(31,"button",21),E("click",function(){return n.triggerScan()}),b(32,"i",22),p(),l(33,"p-button",23),E("onClick",function(){return n.toggleTheme()}),p(),l(34,"p-button",24),E("onClick",function(){return n.openSettings()}),p()()(),l(35,"main",25),b(36,"router-outlet"),p(),fe(37,Rt,1,1),ye(38,37,At),p()),t&2){let r;a(4),h(n.texts.viewportWarning.title),a(2),h(n.texts.viewportWarning.subtitle),a(2),h(n.texts.viewportWarning.body),a(5),g("ngSrc",n.markSrc()),a(3),X(" ",n.texts.brand," "),a(),N((r=n.updateCheck.current())?17:-1,r),a(),w("aria-label",n.texts.alpha),a(),h(n.texts.alpha),a(),N(n.updateCheck.isOutdated()&&!n.isDevMode?20:-1),a(),N(n.rootLabel()?21:-1),a(),w("aria-label",n.texts.a11y.viewSwitcher),a(),g("pTooltip",n.texts.nav.searchTooltip),w("aria-label",n.texts.nav.searchLabel),a(2),g("node",null),a(2),h(n.texts.nav.graph),a(),g("pTooltip",n.texts.nav.listTooltip),w("aria-label",n.texts.nav.listLabel),a(),h(n.texts.nav.list),a(2),pe("is-spinning",n.scanning()),g("pTooltip",n.graphInfoTooltip())("disabled",n.scanning()),w("aria-label",n.graphInfoA11y()),a(),pe("pi-spin",n.scanning()),a(),g("icon",n.themeIcon())("ariaLabel",n.themeLabel())("pTooltip",n.themeTooltip())("text",!0)("rounded",!0),a(),g("ariaLabel",n.settingsTexts.a11y.triggerLabel)("pTooltip",n.settingsTexts.triggerTooltip)("text",!0)("rounded",!0),a(4),ve(n.settingsOpen())}},dependencies:[Ce,xe,Ee,Y,W,je,Ne,_e,ae,He],styles:["[_nghost-%COMP%]{display:block;height:100dvh;--shell-topbar-bg: #FFFFFF;--shell-topbar-border: var(--sm-violet-100);--shell-topbar-text: var(--sm-violet-800);--shell-topbar-text-strong: var(--sm-violet-900);--shell-topbar-text-muted: var(--sm-violet-600);--shell-topbar-hover-bg: color-mix(in srgb, var(--sm-violet-500) 10%, transparent);--shell-topbar-active-bg: var(--sm-violet-100);--shell-topbar-active-text: var(--sm-violet-800);--shell-topbar-badge-bg: var(--sm-violet-100)}.app-dark[_nghost-%COMP%], .app-dark [_nghost-%COMP%]{--shell-topbar-bg: #1A1B22;--shell-topbar-border: color-mix(in srgb, var(--sm-violet-300) 8%, transparent);--shell-topbar-text: var(--sm-violet-100);--shell-topbar-text-strong: var(--sm-violet-100);--shell-topbar-text-muted: var(--sm-violet-300);--shell-topbar-hover-bg: color-mix(in srgb, var(--sm-violet-400) 12%, transparent);--shell-topbar-active-bg: color-mix(in srgb, var(--sm-violet-500) 22%, transparent);--shell-topbar-active-text: var(--sm-violet-100);--shell-topbar-badge-bg: color-mix(in srgb, var(--sm-violet-500) 14%, transparent)}.shell[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100dvh}.shell__topbar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;padding:.75rem 1.5rem;background:color-mix(in srgb,var(--shell-topbar-bg) 85%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--shell-topbar-border);color:var(--shell-topbar-text)}.shell__brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.shell__brand-mark[_ngcontent-%COMP%]{width:2rem;height:2rem;display:block}.shell__brand[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:1.05rem;font-weight:600;letter-spacing:-.01em;color:var(--shell-topbar-text-strong)}.shell__alpha[_ngcontent-%COMP%]{font-family:var(--sm-font-display-brand);font-weight:600;font-size:10px;line-height:1;letter-spacing:.06em;text-transform:uppercase;color:#ad322b;background:#ad322b14;border-radius:var(--sm-radius-sm);padding:4px 8px;margin-left:8px;-webkit-user-select:none;user-select:none;display:inline-block;vertical-align:middle;white-space:nowrap}.app-dark[_nghost-%COMP%] .shell__alpha[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .shell__alpha[_ngcontent-%COMP%]{color:#e07570;background:#cf464024}.shell__version[_ngcontent-%COMP%]{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:var(--sm-radius-sm);font-family:var(--p-monospace-font-family);font-size:11px;line-height:1;font-weight:500;letter-spacing:.02em;color:var(--p-text-muted-color);background:var(--p-content-hover-background);vertical-align:middle;-webkit-user-select:text;user-select:text}.shell__update-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:3px 8px;font-size:11px;line-height:1;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--p-primary-color);background:var(--p-primary-50);border:1px solid var(--p-primary-200);border-radius:var(--sm-radius-pill);text-decoration:none;transition:background-color .12s ease,color .12s ease;vertical-align:middle}.shell__update-chip[_ngcontent-%COMP%]:hover, .shell__update-chip[_ngcontent-%COMP%]:focus-visible{background:var(--p-primary-100);color:var(--p-primary-700)}.shell__update-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:12px;transform:translateY(1px)}.app-dark[_nghost-%COMP%] .shell__update-chip[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .shell__update-chip[_ngcontent-%COMP%]{color:var(--p-primary-300);background:#ffffff0a;border-color:var(--p-primary-700)}.shell__tag[_ngcontent-%COMP%]{margin:.35rem 0 0;font-size:.72rem;color:var(--shell-topbar-text-muted);letter-spacing:.02em;text-transform:uppercase}.shell__nav[_ngcontent-%COMP%]{display:flex;gap:.25rem;margin-left:auto}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.5rem .9rem;border-radius:.5rem;font-size:.9rem;font-weight:500;color:var(--shell-topbar-text-muted);transition:background .15s ease,color .15s ease}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--shell-topbar-hover-bg);color:var(--shell-topbar-text-strong)}.shell__nav[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%]{background:var(--shell-topbar-active-bg);color:var(--shell-topbar-active-text)}.shell__nav-disabled[_ngcontent-%COMP%]{padding:.5rem .9rem;border:none;background:transparent;border-radius:.5rem;font-size:.9rem;font-weight:500;color:var(--shell-topbar-text-muted);cursor:not-allowed;opacity:.55;font-family:inherit}.shell__nav-search[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;border:none;border-radius:.5rem;background:transparent;color:var(--shell-topbar-text-muted);cursor:not-allowed;opacity:.55;transition:background .15s ease,color .15s ease,opacity .15s ease}.shell__nav-search[_ngcontent-%COMP%]:hover:not([aria-disabled=true]){background:var(--shell-topbar-hover-bg);color:var(--shell-topbar-text-strong);opacity:1}.shell__nav-search[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.95rem}.shell__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;--p-button-text-secondary-color: var(--shell-topbar-text-muted);--p-button-text-secondary-hover-color: var(--shell-topbar-text-strong);--p-button-text-secondary-hover-background: var(--shell-topbar-hover-bg);--p-button-text-secondary-active-color: var(--shell-topbar-text-strong);--p-button-text-secondary-active-background: var(--shell-topbar-hover-bg)}.shell__refresh[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:none;border-radius:var(--sm-radius-pill);background:transparent;color:var(--shell-topbar-text-muted);cursor:pointer;transition:background .15s ease,color .15s ease}.shell__refresh[_ngcontent-%COMP%]:hover:not(:disabled), .shell__refresh[_ngcontent-%COMP%]:focus-visible:not(:disabled){background:var(--shell-topbar-hover-bg);color:var(--shell-topbar-text-strong);outline:none}.shell__refresh[_ngcontent-%COMP%]:disabled{cursor:progress;opacity:.7}.shell__refresh[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.shell__main[_ngcontent-%COMP%]{flex:1;min-height:0;overflow-y:auto;width:100%}@media(max-width:1280px){.shell__topbar[_ngcontent-%COMP%]{gap:1rem;padding:.5rem 1rem}.shell__tag[_ngcontent-%COMP%]{display:none}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.4rem .7rem;font-size:.85rem}}.viewport-warning[_ngcontent-%COMP%]{display:none}@media(max-width:767px){.viewport-warning[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:var(--sm-bg-content)}.viewport-warning__card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.85rem;max-width:22rem}.viewport-warning__icon[_ngcontent-%COMP%]{font-size:3rem;color:var(--p-primary-color);margin-bottom:.25rem}.viewport-warning__title[_ngcontent-%COMP%]{margin:0;font-size:1.35rem;font-weight:700;color:var(--p-text-color);line-height:1.25}.viewport-warning__subtitle[_ngcontent-%COMP%]{margin:0;font-size:1rem;font-weight:500;color:var(--p-primary-color);line-height:1.35}.viewport-warning__body[_ngcontent-%COMP%]{margin:0;color:var(--p-text-muted-color);line-height:1.5;font-size:.9rem}.shell[_ngcontent-%COMP%]{display:none}}"],changeDetection:0})};Ie(le,ot).catch(i=>console.error(i));