mapwright-agent 0.2.0__py3-none-any.whl
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.
- mapwright/__init__.py +3 -0
- mapwright/__main__.py +3 -0
- mapwright/analyze.py +809 -0
- mapwright/brief.py +208 -0
- mapwright/cli.py +596 -0
- mapwright/concepts.py +190 -0
- mapwright/config.py +204 -0
- mapwright/connect.py +337 -0
- mapwright/export.py +42 -0
- mapwright/firestore.py +168 -0
- mapwright/flow.py +238 -0
- mapwright/hooks.py +111 -0
- mapwright/ignore.py +248 -0
- mapwright/infra.py +253 -0
- mapwright/mcp.py +153 -0
- mapwright/noise.py +80 -0
- mapwright/redact.py +39 -0
- mapwright/render.py +428 -0
- mapwright/routes_js.py +282 -0
- mapwright/server.py +388 -0
- mapwright/titles.py +111 -0
- mapwright/track.py +715 -0
- mapwright/ui/app.css +277 -0
- mapwright/ui/app.js +1025 -0
- mapwright/ui/icons.svg +73 -0
- mapwright/ui/index.html +35 -0
- mapwright/ui/mark.svg +1 -0
- mapwright/ui/vendor/mermaid.LICENSE +21 -0
- mapwright/ui/vendor/mermaid.min.js +2029 -0
- mapwright_agent-0.2.0.dist-info/METADATA +179 -0
- mapwright_agent-0.2.0.dist-info/RECORD +34 -0
- mapwright_agent-0.2.0.dist-info/WHEEL +4 -0
- mapwright_agent-0.2.0.dist-info/entry_points.txt +3 -0
- mapwright_agent-0.2.0.dist-info/licenses/LICENSE +21 -0
mapwright/ui/app.css
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/* Mapwright UI: modern IDE look (flat, quiet panels, one accent). Dark and light themes. */
|
|
2
|
+
:root, [data-theme=dark] {
|
|
3
|
+
--bg: #1e1f22; --editor: #1e1f22; --panel: #2b2d30; --panel-2: #26282b; --raised: #323438; --line: #393b40; --line-soft: #2f3135;
|
|
4
|
+
--hover: #3c3f44; --sel: #2e436e; --sel-soft: rgba(53,116,240,.18); --text: #dfe1e5; --text-2: #b4b8bf; --muted: #868a91; --faint: #6f737a;
|
|
5
|
+
--accent: #3574f0; --accent-2: #548af7; --accent-text: #fff; --ok: #5fb865; --mod: #5a9cf8; --del: #db5c5c; --warn: #e5a13e; --purple: #c77dbb;
|
|
6
|
+
--code-kw: #cf8e6d; --code-str: #6aab73; --code-num: #2aacb8; --code-com: #7a7e85; --code-fn: #56a8f5; --code-dec: #b3ae60;
|
|
7
|
+
--shadow: 0 12px 40px -10px rgba(0,0,0,.6); --ui: 13px;
|
|
8
|
+
--ctl: 28px; --ctl-sm: 24px; --ic: 16px; --gap: 6px; --pad: 8px; --rad: 6px; --bar: 36px;
|
|
9
|
+
color-scheme: dark;
|
|
10
|
+
}
|
|
11
|
+
[data-theme=light] {
|
|
12
|
+
--bg: #f7f8fa; --editor: #ffffff; --panel: #f7f8fa; --panel-2: #f2f3f5; --raised: #ffffff; --line: #e1e3e8; --line-soft: #ebecf0;
|
|
13
|
+
--hover: #dfe1e5; --sel: #d4e2ff; --sel-soft: rgba(53,116,240,.12); --text: #1e1f22; --text-2: #404249; --muted: #6c707e; --faint: #8c8f99;
|
|
14
|
+
--accent: #3574f0; --accent-2: #2e64d9; --ok: #3d8f45; --mod: #3574f0; --del: #c94141; --warn: #c27d10; --purple: #9b4fa2;
|
|
15
|
+
--code-kw: #0033b3; --code-str: #067d17; --code-num: #1750eb; --code-com: #8c8c8c; --code-fn: #00627a; --code-dec: #9e880d;
|
|
16
|
+
--shadow: 0 12px 40px -12px rgba(30,31,34,.25);
|
|
17
|
+
color-scheme: light;
|
|
18
|
+
}
|
|
19
|
+
* { box-sizing: border-box; margin: 0; padding: 0 }
|
|
20
|
+
html, body { height: 100% }
|
|
21
|
+
body { background: var(--bg); color: var(--text); font: var(--ui)/1.45 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden }
|
|
22
|
+
button, input, select, textarea { font: inherit; color: inherit }
|
|
23
|
+
button { background: none; border: 0; cursor: pointer }
|
|
24
|
+
a { color: var(--accent-2); text-decoration: none }
|
|
25
|
+
code, .mono, pre { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace }
|
|
26
|
+
svg.i { width: var(--ic); height: var(--ic); flex: none; display: block }
|
|
27
|
+
[hidden] { display: none !important }
|
|
28
|
+
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent }
|
|
29
|
+
::-webkit-scrollbar { width: 8px; height: 8px } ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box }
|
|
30
|
+
::-webkit-scrollbar-thumb:hover { background-color: var(--faint) } ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent }
|
|
31
|
+
:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px }
|
|
32
|
+
|
|
33
|
+
/* ---- frame */
|
|
34
|
+
.ide { display: grid; height: 100vh; grid-template-rows: 40px 1fr auto 24px; grid-template-columns: 40px auto 1fr auto 40px;
|
|
35
|
+
grid-template-areas: "top top top top top" "ls left main right rs" "ls bottom bottom bottom rs" "status status status status status" }
|
|
36
|
+
.toolbar { grid-area: top; display: flex; align-items: center; gap: var(--gap); padding: 0 var(--pad); background: var(--panel); border-bottom: 1px solid var(--line) }
|
|
37
|
+
.stripe { background: var(--panel); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 }
|
|
38
|
+
.stripe.l { grid-area: ls; border-right: 1px solid var(--line) } .stripe.r { grid-area: rs; border-left: 1px solid var(--line) }
|
|
39
|
+
.stripe .sep { width: 20px; height: 1px; background: var(--line); margin: 6px 0 } .stripe .grow { flex: 1 }
|
|
40
|
+
.sbtn { width: 32px; height: 32px; flex: none; border-radius: var(--rad); display: grid; place-items: center; color: var(--text-2); position: relative }
|
|
41
|
+
.sbtn:hover { background: var(--hover) } .sbtn.on { background: var(--sel); color: var(--text) }
|
|
42
|
+
.sbtn .dot { position: absolute; top: 4px; right: 4px; min-width: 8px; height: 8px; border-radius: 4px; background: var(--warn) }
|
|
43
|
+
.left { grid-area: left; width: var(--lw, 280px); background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; position: relative }
|
|
44
|
+
.right { grid-area: right; width: var(--rw, 320px); background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; position: relative }
|
|
45
|
+
.main { grid-area: main; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--editor) }
|
|
46
|
+
.bottom { grid-area: bottom; height: var(--bh, 220px); background: var(--panel); border-top: 1px solid var(--line); display: flex; flex-direction: column; position: relative; min-height: 0 }
|
|
47
|
+
.status { grid-area: status; display: flex; align-items: center; gap: 14px; padding: 0 10px; background: var(--panel); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden }
|
|
48
|
+
.status .crumbs { display: flex; gap: 4px; align-items: center; overflow: hidden; text-overflow: ellipsis; flex: 1 } .status .crumbs b { color: var(--text-2); font-weight: 500 }
|
|
49
|
+
.status .it { display: flex; align-items: center; gap: var(--gap); line-height: 1 } .status .it:hover { color: var(--text) }
|
|
50
|
+
.ldot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--faint) } .ldot.on { background: var(--ok) } .ldot.off { background: var(--del) }
|
|
51
|
+
.resize { position: absolute; z-index: 3 } .left .resize { right: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize }
|
|
52
|
+
.right .resize { left: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize } .bottom .resize { top: -3px; left: 0; right: 0; height: 6px; cursor: row-resize }
|
|
53
|
+
|
|
54
|
+
/* ---- toolbar widgets */
|
|
55
|
+
.logo { width: 22px; height: 22px; flex: none; display: block; margin: 0 2px 0 2px }
|
|
56
|
+
.widget { display: flex; align-items: center; gap: var(--gap); height: var(--ctl); padding: 0 var(--pad); border-radius: var(--rad); line-height: 1; flex: none; color: var(--text); font-weight: 500; max-width: 320px }
|
|
57
|
+
.widget:hover { background: var(--hover) } .widget .sub { color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
|
|
58
|
+
.widget .badge { font: 600 10px/1 Inter, sans-serif; padding: 4px 5px; border-radius: 4px; background: var(--sel-soft); color: var(--accent-2) }
|
|
59
|
+
.widget.live .badge { background: rgba(95,184,101,.16); color: var(--ok) }
|
|
60
|
+
.searchbox { margin: 0 auto; display: flex; align-items: center; gap: var(--gap); width: min(420px, 38vw); height: var(--ctl); padding: 0 var(--pad); line-height: 1; border-radius: var(--rad); background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); cursor: text }
|
|
61
|
+
.searchbox:hover { border-color: var(--faint) } .searchbox kbd { margin-left: auto }
|
|
62
|
+
kbd { font: 11px/1 "JetBrains Mono", ui-monospace, monospace; padding: 2px 5px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); background: var(--panel) }
|
|
63
|
+
.tbtn { height: var(--ctl); min-width: var(--ctl); padding: 0 6px; flex: none; line-height: 1; border-radius: var(--rad); display: inline-flex; align-items: center; justify-content: center; gap: var(--gap); color: var(--text-2) }
|
|
64
|
+
.tbtn:hover { background: var(--hover); color: var(--text) } .tbtn.on { background: var(--sel); color: var(--text) } .tbtn:disabled { opacity: .45; cursor: default; background: none }
|
|
65
|
+
.agent-pill { display: flex; align-items: center; gap: var(--gap); height: var(--ctl); padding: 0 10px; flex: none; line-height: 1; border-radius: calc(var(--ctl) / 2); border: 1px solid var(--line); color: var(--text-2); font-size: 12px }
|
|
66
|
+
.agent-pill:hover { border-color: var(--faint) }
|
|
67
|
+
|
|
68
|
+
/* ---- panels */
|
|
69
|
+
.phead { height: var(--bar); flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-soft) }
|
|
70
|
+
.phead .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .phead .tbtn { height: var(--ctl-sm); min-width: var(--ctl-sm); padding: 0 }
|
|
71
|
+
.pbody { flex: 1; overflow: auto; min-height: 0 }
|
|
72
|
+
.filter { margin: 8px; display: flex; align-items: center; gap: var(--gap); padding: 0 var(--pad); height: var(--ctl); border: 1px solid var(--line); border-radius: var(--rad); background: var(--panel-2); color: var(--muted) }
|
|
73
|
+
.filter input { border: 0; outline: 0; background: none; width: 100%; color: var(--text) }
|
|
74
|
+
.tree { padding: 2px 4px 12px; user-select: none }
|
|
75
|
+
.row { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px; border-radius: 4px; cursor: pointer; white-space: nowrap; color: var(--text) }
|
|
76
|
+
.row:hover { background: var(--hover) } .row.sel { background: var(--sel) } .row .tw { width: 12px; color: var(--muted); display: grid; place-items: center }
|
|
77
|
+
.row .nm { overflow: hidden; text-overflow: ellipsis } .row .meta { margin-left: auto; color: var(--faint); font-size: 11.5px; padding-left: 8px }
|
|
78
|
+
.row.A .nm { color: var(--ok) } .row.M .nm { color: var(--mod) } .row.D .nm { color: var(--faint); text-decoration: line-through } .row.secret .nm { color: var(--faint) }
|
|
79
|
+
.ficon { width: 16px; height: 16px; border-radius: 3px; display: grid; place-items: center; font: 700 8.5px/1 Inter, sans-serif; color: #fff; flex: none; letter-spacing: -.02em }
|
|
80
|
+
.ficon.py { background: #3d7ab5 } .ficon.js { background: #c9a227; color: #1e1f22 } .ficon.ts { background: #2f74c0 } .ficon.sql, .ficon.prisma { background: #a35fa5 }
|
|
81
|
+
.ficon.md { background: #6c707e } .ficon.json, .ficon.yaml, .ficon.yml, .ficon.toml { background: #6f8a3c } .ficon.css, .ficon.html { background: #c4573a }
|
|
82
|
+
.ficon.dir { background: none; color: var(--muted) } .ficon.other { background: var(--faint) } .ficon.docker, .ficon.tf { background: #2d8fd5 }
|
|
83
|
+
.section { padding: 10px 12px 4px; font: 600 11px/1 Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center }
|
|
84
|
+
.empty { padding: 18px 14px; color: var(--muted); font-size: 12.5px; line-height: 1.55 }
|
|
85
|
+
|
|
86
|
+
/* ---- editor tabs */
|
|
87
|
+
.tabs { height: var(--bar); flex: none; display: flex; align-items: stretch; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none }
|
|
88
|
+
.tabs::-webkit-scrollbar { display: none }
|
|
89
|
+
.tab { display: flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; color: var(--text-2); border-right: 1px solid var(--line-soft); white-space: nowrap; position: relative; cursor: pointer }
|
|
90
|
+
.tab:hover { background: var(--hover) } .tab.on { color: var(--text); background: var(--editor) } .tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent) }
|
|
91
|
+
.tab .x { width: var(--ic); height: var(--ic); flex: none; border-radius: 4px; display: grid; place-items: center; color: var(--faint); visibility: hidden } .tab:hover .x, .tab.on .x { visibility: visible } .tab .x:hover { background: var(--hover); color: var(--text) }
|
|
92
|
+
.tab .pinned { color: var(--faint) }
|
|
93
|
+
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden }
|
|
94
|
+
.vbar { height: var(--bar); flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line-soft) }
|
|
95
|
+
.vbar .title { font-weight: 600; margin-right: 8px; white-space: nowrap } .vbar .note { color: var(--muted); font-size: 12px; margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
|
|
96
|
+
.vbar .spacer { flex: 1 } .vbar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px }
|
|
97
|
+
.select { height: var(--ctl); padding: 0 24px 0 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23868a91' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 6px center/12px; appearance: none; color: var(--text); max-width: 240px }
|
|
98
|
+
.select:hover { border-color: var(--faint) }
|
|
99
|
+
.chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11.5px; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap }
|
|
100
|
+
.chip.new { color: var(--ok); border-color: rgba(95,184,101,.4) } .chip.changed { color: var(--mod); border-color: rgba(90,156,248,.4) } .chip.removed { color: var(--del); border-color: rgba(219,92,92,.4) }
|
|
101
|
+
.chip.warn { color: var(--warn); border-color: rgba(229,161,62,.45) } .chip.ok { color: var(--ok); border-color: rgba(95,184,101,.4) } .chip.acc { color: var(--accent-2); border-color: rgba(53,116,240,.45) }
|
|
102
|
+
.legend { display: flex; gap: 6px }
|
|
103
|
+
|
|
104
|
+
/* ---- diagram canvas */
|
|
105
|
+
.canvas { flex: 1; position: relative; overflow: hidden; cursor: grab; background-color: var(--editor);
|
|
106
|
+
background-image: radial-gradient(var(--line-soft) 1px, transparent 1px); background-size: 18px 18px }
|
|
107
|
+
.canvas.drag { cursor: grabbing } .canvas .stage { position: absolute; left: 0; top: 0; transform-origin: 0 0 }
|
|
108
|
+
.canvas svg { display: block; max-width: none !important; height: auto }
|
|
109
|
+
.canvas .node, .canvas [id^=classId-], .canvas [id^=entity-] { cursor: pointer }
|
|
110
|
+
.canvas .node:hover rect, .canvas .node:hover polygon, .canvas .node:hover path, .canvas .node:hover circle { filter: brightness(1.25) }
|
|
111
|
+
.canvas .picked rect, .canvas .picked polygon, .canvas .picked path.basic, .canvas .picked circle { stroke: var(--accent) !important; stroke-width: 2.5px !important }
|
|
112
|
+
.canvas pre.src { position: absolute; inset: 0; overflow: auto; padding: 16px; font-size: 12.5px; color: var(--text-2); background: var(--editor); cursor: text; white-space: pre }
|
|
113
|
+
.canvas .msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted) }
|
|
114
|
+
.zoomlbl { min-width: 46px; text-align: center; color: var(--muted); font-size: 12px }
|
|
115
|
+
|
|
116
|
+
/* ---- overview & cards */
|
|
117
|
+
.scroll { flex: 1; overflow: auto; padding: 18px 22px 28px }
|
|
118
|
+
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px }
|
|
119
|
+
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0 }
|
|
120
|
+
[data-theme=light] .card { background: #fff }
|
|
121
|
+
.card h3 { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; display: flex; align-items: center; gap: 6px }
|
|
122
|
+
.card h3 .grow { flex: 1 } .card h3 a { text-transform: none; letter-spacing: 0; font-weight: 500 }
|
|
123
|
+
.hero { display: flex; align-items: center; gap: 16px; margin-bottom: 16px }
|
|
124
|
+
.hero h1 { font-size: 20px; font-weight: 600 } .hero .path { color: var(--muted); font-size: 12px; margin-top: 2px } .hero .grow { flex: 1 }
|
|
125
|
+
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 14px }
|
|
126
|
+
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer }
|
|
127
|
+
[data-theme=light] .stat { background: #fff } .stat:hover { border-color: var(--faint) }
|
|
128
|
+
.stat b { display: block; font-size: 20px; font-weight: 600; line-height: 1.2 } .stat span { color: var(--muted); font-size: 12px }
|
|
129
|
+
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 12.5px } .kv dt { color: var(--muted) } .kv dd { overflow-wrap: anywhere }
|
|
130
|
+
.layerbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 6px 0 10px; background: var(--line-soft) }
|
|
131
|
+
.layerbar i { display: block; height: 100% }
|
|
132
|
+
.lkeys { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2) } .lkeys span { display: inline-flex; align-items: center; gap: 6px } .lkeys i { width: 9px; height: 9px; border-radius: 3px; display: inline-block }
|
|
133
|
+
.list { display: flex; flex-direction: column } .li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 6px; cursor: pointer; min-width: 0; font-size: 12.5px }
|
|
134
|
+
.li:hover { background: var(--hover) } .li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .li .meta { margin-left: auto; color: var(--muted); white-space: nowrap; font-size: 12px; padding-left: 8px }
|
|
135
|
+
.li .mono { font-size: 12px }
|
|
136
|
+
.cx { font: 600 11px/1 "JetBrains Mono", monospace; padding: 2px 5px; border-radius: 4px; background: var(--line-soft); color: var(--text-2) } .cx.h { color: var(--warn) } .cx.vh { color: var(--del) }
|
|
137
|
+
.concepts { display: flex; flex-wrap: wrap; gap: 8px }
|
|
138
|
+
.cpill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 12.5px }
|
|
139
|
+
.cpill:hover { border-color: var(--faint) } .cpill svg { color: var(--accent-2) }
|
|
140
|
+
.ccard { display: flex; flex-direction: column; gap: 8px } .ccard .top { display: flex; gap: 10px; align-items: flex-start }
|
|
141
|
+
.cic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--sel-soft); color: var(--accent-2); flex: none } .cic svg { width: 18px; height: 18px }
|
|
142
|
+
.ccard h4 { font-size: 14px; font-weight: 600 } .ccard p { color: var(--muted); font-size: 12.5px }
|
|
143
|
+
.ev { display: flex; gap: 8px; font-size: 12px; align-items: baseline; padding: 3px 0; cursor: pointer; min-width: 0 } .ev:hover .f { text-decoration: underline }
|
|
144
|
+
.ev .f { color: var(--accent-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .ev .s { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
|
|
145
|
+
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font: 600 10.5px/1 Inter, sans-serif; letter-spacing: .02em; white-space: nowrap }
|
|
146
|
+
.badge.verified, .badge.ok, .badge.agent { background: rgba(95,184,101,.15); color: var(--ok) } .badge.weak, .badge.auto { background: rgba(90,156,248,.15); color: var(--mod) }
|
|
147
|
+
.badge.unverified, .badge.missing, .badge.stale, .badge.mismatch, .badge.error { background: rgba(229,161,62,.16); color: var(--warn) } .badge.user { background: rgba(199,125,187,.16); color: var(--purple) }
|
|
148
|
+
.badge.baseline { background: var(--line-soft); color: var(--muted) }
|
|
149
|
+
.section-title { font-size: 13px; font-weight: 600; margin: 22px 0 10px; color: var(--text); display: flex; align-items: center; gap: 8px } .section-title:first-child { margin-top: 0 }
|
|
150
|
+
|
|
151
|
+
/* ---- timeline */
|
|
152
|
+
.tl { position: relative; padding-left: 26px } .tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line) }
|
|
153
|
+
.tstep { position: relative; padding: 10px 14px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); margin-bottom: 10px; cursor: pointer }
|
|
154
|
+
[data-theme=light] .tstep { background: #fff } .tstep:hover { border-color: var(--faint) } .tstep.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset }
|
|
155
|
+
.tstep::before { content: ""; position: absolute; left: -22px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent) }
|
|
156
|
+
.tstep.live::before { border-color: var(--ok); background: var(--ok) } .tstep .h { display: flex; gap: 8px; align-items: center } .tstep .n { font: 600 12px "JetBrains Mono", monospace; color: var(--muted) }
|
|
157
|
+
.tstep .ttl { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .tstep .when { color: var(--muted); font-size: 12px }
|
|
158
|
+
.tstep .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px } .tstep .files { margin-top: 8px; display: flex; flex-direction: column; gap: 1px }
|
|
159
|
+
.tstep .prompt { margin-top: 6px; color: var(--muted); font-size: 12px; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
|
|
160
|
+
.fchg { display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 2px 6px; margin: 0 -6px; border-radius: 4px } .fchg:hover { background: var(--hover) }
|
|
161
|
+
.fchg .k { font: 700 10px "JetBrains Mono", monospace; width: 12px } .fchg .k.added { color: var(--ok) } .fchg .k.modified { color: var(--mod) } .fchg .k.deleted { color: var(--del) }
|
|
162
|
+
.fchg .p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .fchg .c { margin-left: auto; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 11px }
|
|
163
|
+
.fchg .c .a { color: var(--ok) } .fchg .c .r { color: var(--del) }
|
|
164
|
+
|
|
165
|
+
/* ---- code view */
|
|
166
|
+
.code { flex: 1; overflow: auto; font: 12.5px/20px "JetBrains Mono", ui-monospace, monospace; background: var(--editor); counter-reset: ln }
|
|
167
|
+
.code .ln { display: flex; min-width: max-content } .code .ln:hover { background: var(--line-soft) } .code .ln.hl { background: var(--sel-soft) }
|
|
168
|
+
.code .g { width: 58px; flex: none; text-align: right; padding-right: 8px; color: var(--faint); user-select: none; position: sticky; left: 0; background: var(--editor); display: flex; justify-content: flex-end; gap: 4px; align-items: center }
|
|
169
|
+
.code .g .mk { width: 3px; height: 20px; border-radius: 1px } .code .ln.add .g .mk { background: var(--ok) } .code .ln.chg .g .mk { background: var(--mod) }
|
|
170
|
+
.code .g .fn { width: 14px; color: var(--accent-2); cursor: pointer; font-size: 11px; visibility: hidden } .code .ln.def .g .fn { visibility: visible }
|
|
171
|
+
.code .t { padding: 0 18px 0 10px; white-space: pre } .tok-k { color: var(--code-kw) } .tok-s { color: var(--code-str) } .tok-n { color: var(--code-num) } .tok-c { color: var(--code-com); font-style: italic } .tok-f { color: var(--code-fn) } .tok-d { color: var(--code-dec) }
|
|
172
|
+
.diffv { flex: 1; overflow: auto; font: 12.5px/20px "JetBrains Mono", monospace; padding: 8px 0 } .diffv div { white-space: pre; padding: 0 14px; min-width: max-content }
|
|
173
|
+
.diffv .a { background: rgba(95,184,101,.12); color: var(--ok) } .diffv .r { background: rgba(219,92,92,.12); color: var(--del) } .diffv .h { color: var(--purple); margin-top: 8px } .diffv .m { color: var(--muted) }
|
|
174
|
+
|
|
175
|
+
/* ---- logic view */
|
|
176
|
+
.split { flex: 1; display: grid; grid-template-columns: 300px 1fr; min-height: 0 } .split > .side { border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; min-height: 0; background: var(--panel-2) }
|
|
177
|
+
[data-theme=light] .split > .side { background: var(--panel) } .split > .side .pbody { padding: 2px 4px 10px }
|
|
178
|
+
.split > .content { display: flex; flex-direction: column; min-height: 0; min-width: 0 }
|
|
179
|
+
.fnrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer } .fnrow:hover { background: var(--hover) } .fnrow.sel { background: var(--sel) }
|
|
180
|
+
.fnrow .nm { font: 12.5px "JetBrains Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .fnrow .sub { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
|
|
181
|
+
.hints { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px } .hint { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: rgba(199,125,187,.14); color: var(--purple) }
|
|
182
|
+
|
|
183
|
+
/* ---- inspector */
|
|
184
|
+
.insp { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px } .insp .kind { font: 600 10.5px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--muted) }
|
|
185
|
+
.insp h2 { font-size: 15px; font-weight: 600; overflow-wrap: anywhere } .insp .loc { font-size: 12px; color: var(--accent-2); cursor: pointer; overflow-wrap: anywhere }
|
|
186
|
+
.insp pre.cardtxt { font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px }
|
|
187
|
+
[data-theme=light] .insp pre.cardtxt { background: #fff }
|
|
188
|
+
.actions { display: flex; flex-wrap: wrap; gap: 6px }
|
|
189
|
+
.btn { height: var(--ctl); padding: 0 12px; line-height: 1; border-radius: var(--rad); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap }
|
|
190
|
+
[data-theme=light] .btn { background: #fff } .btn:hover { border-color: var(--faint) } .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff } .btn.primary:hover { background: var(--accent-2) }
|
|
191
|
+
.btn.danger { color: var(--del) } .btn:disabled { opacity: .5; cursor: default } .btn.sm { height: var(--ctl-sm); padding: 0 9px; font-size: 12px }
|
|
192
|
+
.input { height: var(--ctl); padding: 0 var(--pad); border-radius: var(--rad); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); outline: 0; min-width: 0 }
|
|
193
|
+
[data-theme=light] .input { background: #fff } .input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) }
|
|
194
|
+
|
|
195
|
+
/* ---- bottom panel */
|
|
196
|
+
.btabs { height: var(--bar); flex: none; display: flex; align-items: center; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line-soft) }
|
|
197
|
+
.btab { height: var(--ctl-sm); padding: 0 10px; line-height: 1; border-radius: var(--rad); color: var(--text-2); display: inline-flex; align-items: center; gap: 6px } .btab:hover { background: var(--hover) } .btab.on { background: var(--sel); color: var(--text) }
|
|
198
|
+
.btab .n { font-size: 11px; color: var(--muted) } .btabs .grow { flex: 1 }
|
|
199
|
+
.blist { flex: 1; overflow: auto; padding: 4px 8px } .bl { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; font-size: 12.5px; min-width: 0 } .bl:hover { background: var(--hover) }
|
|
200
|
+
.bl .when { color: var(--faint); font: 11.5px "JetBrains Mono", monospace; white-space: nowrap } .bl .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 } .bl .tag { color: var(--muted); font-size: 12px; white-space: nowrap }
|
|
201
|
+
.bl svg { color: var(--muted) } .bl.warn svg { color: var(--warn) } .bl.ok svg { color: var(--ok) }
|
|
202
|
+
.addrow { display: flex; gap: 6px; padding: 8px } .addrow .input { flex: 1 }
|
|
203
|
+
|
|
204
|
+
/* ---- popups: menus, palette, modal, toast */
|
|
205
|
+
.menu { position: fixed; z-index: 40; min-width: 240px; max-width: 420px; max-height: 60vh; overflow: auto; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 4px }
|
|
206
|
+
.menu .mi { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 5px; cursor: pointer; white-space: nowrap } .menu .mi:hover, .menu .mi.act { background: var(--accent); color: #fff }
|
|
207
|
+
.menu .mi .meta { margin-left: auto; color: var(--muted); font-size: 12px; padding-left: 16px } .menu .mi:hover .meta, .menu .mi.act .meta { color: rgba(255,255,255,.75) }
|
|
208
|
+
.menu .mh { padding: 8px 10px 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em } .menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0 }
|
|
209
|
+
.palette { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); z-index: 50; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh }
|
|
210
|
+
.palette .ph { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line) } .palette input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px }
|
|
211
|
+
.palette .pr { overflow: auto; padding: 6px } .palette .mi { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer } .palette .mi.act { background: var(--accent); color: #fff }
|
|
212
|
+
.palette .mi .meta { margin-left: auto; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50% } .palette .mi.act .meta { color: rgba(255,255,255,.75) }
|
|
213
|
+
.palette .grp { padding: 8px 10px 3px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em }
|
|
214
|
+
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.35) } [data-theme=light] .scrim { background: rgba(30,31,34,.2) }
|
|
215
|
+
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 50; width: min(880px, calc(100vw - 32px)); height: min(600px, calc(100vh - 40px)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: grid; grid-template-rows: 44px 1fr 52px; overflow: hidden }
|
|
216
|
+
.modal .mh2 { display: flex; align-items: center; padding: 0 10px 0 16px; font-weight: 600; border-bottom: 1px solid var(--line) } .modal .mh2 .grow { flex: 1 }
|
|
217
|
+
.modal .mb { display: grid; grid-template-columns: 210px 1fr; min-height: 0 } .modal .nav { border-right: 1px solid var(--line); padding: 8px; overflow: auto; background: var(--panel-2) }
|
|
218
|
+
[data-theme=light] .modal .nav { background: var(--panel) } [data-theme=light] .modal { background: #fff }
|
|
219
|
+
.modal .nav .row { height: 28px } .modal .pane { padding: 18px 22px; overflow: auto } .modal .pane h3 { font-size: 15px; margin-bottom: 14px }
|
|
220
|
+
.modal .mf { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 16px; border-top: 1px solid var(--line) } .modal .mf .msg { margin-right: auto; color: var(--muted); font-size: 12px }
|
|
221
|
+
.field { display: grid; grid-template-columns: 200px 1fr; gap: 6px 14px; align-items: center; margin-bottom: 14px } .field label { color: var(--text-2) } .field .help { grid-column: 2; color: var(--muted); font-size: 12px; margin-top: -2px }
|
|
222
|
+
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden } .seg button { padding: 4px 12px; color: var(--text-2) } .seg button.on { background: var(--accent); color: #fff } .seg button + button { border-left: 1px solid var(--line) }
|
|
223
|
+
.toggle { appearance: none; width: 32px; height: 18px; border-radius: 9px; background: var(--line); position: relative; cursor: pointer; transition: background .15s } .toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s }
|
|
224
|
+
.toggle:checked { background: var(--accent) } .toggle:checked::after { transform: translateX(14px) }
|
|
225
|
+
.toasts { position: fixed; right: 16px; bottom: 36px; z-index: 60; display: flex; flex-direction: column; gap: 8px; pointer-events: none }
|
|
226
|
+
.toast { pointer-events: auto; min-width: 260px; max-width: 420px; padding: 10px 14px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; display: flex; gap: 10px; align-items: flex-start; animation: pop .15s ease both }
|
|
227
|
+
.toast b { display: block; font-weight: 600 } .toast span { color: var(--muted) } .toast.ok svg { color: var(--ok) } .toast.warn svg { color: var(--warn) } .toast.err svg { color: var(--del) }
|
|
228
|
+
@keyframes pop { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
|
|
229
|
+
|
|
230
|
+
/* ---- setup */
|
|
231
|
+
.steps-h { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap } .steps-h .s { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px }
|
|
232
|
+
.steps-h .s b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--text); font-size: 11px } .steps-h .s.done b { background: var(--ok); color: #fff } .steps-h .s.done { color: var(--text-2) }
|
|
233
|
+
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px } .agent { display: flex; flex-direction: column; gap: 8px }
|
|
234
|
+
.agent .h { display: flex; align-items: center; gap: 10px } .agent .h b { font-size: 14px } .agent .how { color: var(--muted); font-size: 12px; min-height: 34px }
|
|
235
|
+
.agent .st { display: flex; gap: 6px; flex-wrap: wrap } .snip { position: relative } .snip pre { font-size: 11.5px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px; overflow: auto; max-height: 180px; color: var(--text-2) }
|
|
236
|
+
[data-theme=light] .snip pre { background: var(--panel) } .snip .btn { position: absolute; top: 6px; right: 6px }
|
|
237
|
+
.welcome { flex: 1; display: grid; place-items: center; padding: 24px } .welcome .box { width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px }
|
|
238
|
+
.welcome h1 { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 12px } .welcome p { color: var(--muted) }
|
|
239
|
+
|
|
240
|
+
@media (max-width: 1100px) { .ide { grid-template-columns: 40px auto 1fr 0 40px } .right { display: none } .searchbox { width: 220px } }
|
|
241
|
+
@media (max-width: 760px) { .ide { grid-template-columns: 0 0 1fr 0 0 } .stripe, .left { display: none } .searchbox kbd { display: none } .widget .sub { display: none } }
|
|
242
|
+
|
|
243
|
+
/* ---- shared alignment helpers and auth / offline states */
|
|
244
|
+
.tbtn svg, .btn svg, .btab svg, .sbtn svg, .widget svg, .agent-pill svg, .searchbox svg, .tab svg, .row svg { margin: 0 }
|
|
245
|
+
.widget:disabled, .tbtn:disabled, .agent-pill:disabled, .gated { opacity: .45; cursor: default; pointer-events: none }
|
|
246
|
+
.welcome .actions { display: flex; align-items: center; gap: var(--gap) }
|
|
247
|
+
.welcome .cmd { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding: 0 var(--pad); height: 36px; border: 1px solid var(--line); border-radius: var(--rad); background: var(--panel-2) }
|
|
248
|
+
.welcome .cmd code { color: var(--text); font-size: 12.5px }
|
|
249
|
+
.seg button { height: calc(var(--ctl) - 2px); padding: 0 12px; line-height: 1 }
|
|
250
|
+
.modal .mh2 .tbtn { height: var(--ctl-sm); min-width: var(--ctl-sm); padding: 0 }
|
|
251
|
+
@media (max-width: 1100px) { .agent-pill #w-agents-txt { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } }
|
|
252
|
+
@media (max-width: 760px) { .toolbar { gap: 4px; padding: 0 4px } .searchbox { width: auto; flex: 1; margin: 0 } .agent-pill { display: none } }
|
|
253
|
+
|
|
254
|
+
/* ---- system view */
|
|
255
|
+
.sys { padding: 18px 20px; display: block }
|
|
256
|
+
.sysmap { display: block; max-width: none }
|
|
257
|
+
.systier { fill: var(--faint); font: 600 10.5px/1 Inter, sans-serif; letter-spacing: .08em }
|
|
258
|
+
.sysrule { stroke: var(--line); stroke-width: 1 }
|
|
259
|
+
.sysedge { fill: none; stroke: var(--faint); stroke-width: 1.4; opacity: .55 }
|
|
260
|
+
.sysarrowhead { fill: var(--faint) }
|
|
261
|
+
.sysnode { cursor: pointer; outline: none }
|
|
262
|
+
.sysbox { fill: var(--panel); stroke: var(--line); stroke-width: 1.2; transition: stroke .12s, fill .12s }
|
|
263
|
+
.sysnode:hover .sysbox, .sysnode:focus-visible .sysbox { stroke: var(--accent-2) }
|
|
264
|
+
.sysnode.on .sysbox { stroke: var(--accent); stroke-width: 2; fill: var(--sel-soft) }
|
|
265
|
+
.sysdisc { fill: var(--sel-soft) } .sysicon { color: var(--accent-2); fill: none; pointer-events: none }
|
|
266
|
+
.systitle { fill: var(--text); font: 600 13px/1 Inter, sans-serif } .syssub { fill: var(--muted); font: 400 11.5px/1 Inter, sans-serif }
|
|
267
|
+
.sysdot.new { fill: var(--ok) } .sysdot.changed { fill: var(--mod) }
|
|
268
|
+
.syshint { margin-top: 14px; color: var(--muted); font-size: 12px }
|
|
269
|
+
.sysdesc { color: var(--muted); font-size: 12.5px; margin: 2px 0 10px }
|
|
270
|
+
.ev.link { cursor: pointer } .ev.link:hover { background: var(--hover) } .ev .meta { margin-left: auto; color: var(--faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55% }
|
|
271
|
+
|
|
272
|
+
/* ---- fixes: segmented controls hug their content; button labels optically centred */
|
|
273
|
+
.seg { width: max-content; max-width: 100%; justify-self: start; align-self: start }
|
|
274
|
+
.seg button { flex: none; white-space: nowrap }
|
|
275
|
+
.btn, .seg button, .agent-pill { padding-top: 1px }
|
|
276
|
+
.btn.sm { padding-top: 1px }
|
|
277
|
+
.tbtn svg.i, .sbtn svg.i, .btn svg.i { margin-top: 0 }
|