@wwwfz/dsh-agent-bridge 0.8.3 → 0.10.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.
- package/README.md +132 -194
- package/THIRD_PARTY_NOTICES.md +67 -0
- package/cordis.patch.yml +4 -4
- package/package.json +40 -40
- package/src/assets.js +405 -348
- package/src/catalog.js +999 -605
- package/src/client.js +883 -4
- package/src/config.js +88 -88
- package/src/conversation-readers.js +198 -0
- package/src/conversation-store.js +583 -0
- package/src/export.js +273 -12
- package/src/index.js +282 -136
- package/src/native-transcript.js +217 -0
- package/src/project-archive.js +145 -145
- package/src/projects.js +1837 -980
- package/src/session-import.js +138 -93
- package/src/session-trace.js +121 -0
- package/src/skill-handoff.js +1327 -0
- package/src/skill-package.js +417 -0
- package/src/skill-provider.js +249 -0
- package/src/watch.js +319 -309
- package/web/Geist-OFL.txt +93 -93
- package/web/agent-icons/NOTICE.md +19 -19
- package/web/agent-icons/antigravity.svg +76 -76
- package/web/agent-icons/claude.svg +3 -3
- package/web/agent-icons/dsh.svg +58 -58
- package/web/agent-icons/licenses/copilot.txt +21 -21
- package/web/agent-icons/licenses/dsh.txt +21 -21
- package/web/agent-icons/licenses/gemini.txt +201 -201
- package/web/agent-icons/licenses/opencode.txt +21 -21
- package/web/agent-icons/licenses/qoder-notice.txt +18 -18
- package/web/agent-icons/licenses/qoder.txt +22 -22
- package/web/agent-icons/licenses/qwen.txt +202 -202
- package/web/agent-icons/qoder.svg +4 -4
- package/web/agent-icons/qwen.svg +5 -5
- package/web/agent-icons/workbuddy.svg +29 -29
- package/web/inline-process.css +22 -0
- package/web/markdown.js +225 -0
- package/web/panel.css +168 -151
- package/web/panel.html +82 -43
- package/web/panel.js +1316 -93
- package/web/project-context.js +25 -25
- package/web/reader.css +259 -0
- package/web/vendor/markdown-it-LICENSE.txt +156 -0
- package/web/vendor/markdown-it.mjs +3064 -0
package/web/project-context.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const currentStatus = /^(?:当前状态|最新交接|current[- _]state|latest[- _]handoff)(?:$|[\s:_-])/i
|
|
2
|
-
|
|
3
|
-
export function describeProjectContext({ memories, skills }) {
|
|
4
|
-
const entries = [...memories.map(asset => describe(asset, 'memory')), ...skills.map(asset => describe(asset, 'skill'))]
|
|
5
|
-
const candidates = entries.filter(item => !item.global && item.group === 'progress' && item.agent !== 'export')
|
|
6
|
-
const named = candidates.filter(item => currentStatus.test(item.name))
|
|
7
|
-
const preferred = named.length ? named : candidates
|
|
8
|
-
const suggestedIds = [
|
|
9
|
-
...(preferred.length === 1 ? [preferred[0].id] : []),
|
|
10
|
-
...entries.filter(item => item.group === 'used').slice(0, 3).map(item => item.id),
|
|
11
|
-
]
|
|
12
|
-
return { entries, suggestedIds }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function describe(asset, kind) {
|
|
16
|
-
// The project registry has already verified WorkspaceHub notes against this working directory.
|
|
17
|
-
const hubNote = kind === 'memory' && asset.agent === 'workspacehub' && asset.scope === 'shared'
|
|
18
|
-
const global = asset.scope !== 'project' && !hubNote
|
|
19
|
-
let group
|
|
20
|
-
if (kind === 'skill') group = !global && asset.used ? 'used' : 'skills'
|
|
21
|
-
else if (!global && (asset.detail === '项目交接' || (hubNote && asset.detail?.endsWith(' · 交接')) || currentStatus.test(asset.name))) group = 'progress'
|
|
22
|
-
else if (['用户指引', '项目指引'].includes(asset.detail) && !/^memory$/i.test(asset.name)) group = 'guides'
|
|
23
|
-
else group = 'notes'
|
|
24
|
-
return { ...asset, kind, global, group }
|
|
25
|
-
}
|
|
1
|
+
const currentStatus = /^(?:当前状态|最新交接|current[- _]state|latest[- _]handoff)(?:$|[\s:_-])/i
|
|
2
|
+
|
|
3
|
+
export function describeProjectContext({ memories, skills }) {
|
|
4
|
+
const entries = [...memories.map(asset => describe(asset, 'memory')), ...skills.map(asset => describe(asset, 'skill'))]
|
|
5
|
+
const candidates = entries.filter(item => !item.global && item.group === 'progress' && item.agent !== 'export')
|
|
6
|
+
const named = candidates.filter(item => currentStatus.test(item.name))
|
|
7
|
+
const preferred = named.length ? named : candidates
|
|
8
|
+
const suggestedIds = [
|
|
9
|
+
...(preferred.length === 1 ? [preferred[0].id] : []),
|
|
10
|
+
...entries.filter(item => item.group === 'used').slice(0, 3).map(item => item.id),
|
|
11
|
+
]
|
|
12
|
+
return { entries, suggestedIds }
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function describe(asset, kind) {
|
|
16
|
+
// The project registry has already verified WorkspaceHub notes against this working directory.
|
|
17
|
+
const hubNote = kind === 'memory' && asset.agent === 'workspacehub' && asset.scope === 'shared'
|
|
18
|
+
const global = asset.scope !== 'project' && !hubNote
|
|
19
|
+
let group
|
|
20
|
+
if (kind === 'skill') group = !global && asset.used ? 'used' : 'skills'
|
|
21
|
+
else if (!global && (asset.detail === '项目交接' || (hubNote && asset.detail?.endsWith(' · 交接')) || currentStatus.test(asset.name))) group = 'progress'
|
|
22
|
+
else if (['用户指引', '项目指引'].includes(asset.detail) && !/^memory$/i.test(asset.name)) group = 'guides'
|
|
23
|
+
else group = 'notes'
|
|
24
|
+
return { ...asset, kind, global, group }
|
|
25
|
+
}
|
package/web/reader.css
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/* Shared by the workbench iframe and the native conversation reader. */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Bridge Geist';
|
|
4
|
+
src: url('./geist-latin-wght-normal.woff2') format('woff2');
|
|
5
|
+
font-weight: 100 900;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
}
|
|
8
|
+
.bridge-ui, .bridge-reader-dialog {
|
|
9
|
+
color-scheme: light;
|
|
10
|
+
--paper: #fdfdf9; --canvas: #eeefeb; --field: #f0f1ea; --hover: #e9ebe3;
|
|
11
|
+
--ink: #29352f; --muted: #58645d; --line: #dbded7; --line-strong: #afb6ab;
|
|
12
|
+
--accent: #3e604f; --selected: #dfe6d5; --selected-line: #b6c4b0; --focus: #496c53;
|
|
13
|
+
--primary: #334e40; --primary-hover: #253a30; --primary-line: #354b3c; --primary-ink: white;
|
|
14
|
+
--amber: #805321; --danger: #944448; --shadow: #30362925; --veil: #262a266b; --mark-surface: #f0f1eb;
|
|
15
|
+
--rail: #e5e5dc; --desk: #f1f1ea; --active-row: #fffefb; --history-tint: #e4ddee; --history-ink: #53455f;
|
|
16
|
+
--material-tint: #dce6c9; --material-ink: #45583d; --file-tint: #f0e1d3; --file-ink: #71573e;
|
|
17
|
+
--frame: linear-gradient(138deg, #f5f5f2 8%, #edede8 54%, #e1e2db);
|
|
18
|
+
--index-surface: linear-gradient(150deg, #e8e6e0, #eeefe7 66%, #e1e5db);
|
|
19
|
+
--reading-surface: linear-gradient(145deg, #fffefa, #f9faf5 90%);
|
|
20
|
+
--surface-shadow: 0 4px 14px -8px #39453640; --edge: #ffffffa6;
|
|
21
|
+
}
|
|
22
|
+
:is(.bridge-ui, .bridge-reader-dialog)[data-theme='mist'] {
|
|
23
|
+
--paper: #f5f9fc; --canvas: #dee9ef; --field: #e4eef4; --hover: #d6e4ec;
|
|
24
|
+
--ink: #20283e; --muted: #4e6273; --line: #cddbe5; --line-strong: #a0b3c0;
|
|
25
|
+
--accent: #354d65; --selected: #d6e4ef; --selected-line: #acbfcd; --focus: #496b88;
|
|
26
|
+
--primary: #202940; --primary-hover: #151e31; --primary-line: #273749;
|
|
27
|
+
--shadow: #293a552f; --veil: #26334970; --mark-surface: #edf3f7;
|
|
28
|
+
--rail: #d3e0e9; --desk: #e3edf3; --active-row: #f9fcff; --history-tint: #d8deed; --history-ink: #425670;
|
|
29
|
+
--material-tint: #d7e7e4; --material-ink: #355a52; --file-tint: #e3e2ed; --file-ink: #56516d;
|
|
30
|
+
--frame: linear-gradient(125deg, #f2f7f8, #deebef 49%, #c8d6e2);
|
|
31
|
+
--index-surface: linear-gradient(148deg, #cddde5, #deebf0 56%, #d1dce8);
|
|
32
|
+
--reading-surface: linear-gradient(126deg, #f8fbfc 10%, #eff5f9 65%, #e9f0f6);
|
|
33
|
+
--surface-shadow: 0 5px 18px -9px #3c50674f; --edge: #ffffffc4;
|
|
34
|
+
}
|
|
35
|
+
:is(.bridge-ui, .bridge-reader-dialog)[data-theme='blue'] {
|
|
36
|
+
color-scheme: dark;
|
|
37
|
+
--paper: #202c36; --canvas: #1a242d; --field: #24323d; --hover: #2b3c48;
|
|
38
|
+
--ink: #e8eef0; --muted: #b2c1c9; --line: #384852; --line-strong: #5d7180;
|
|
39
|
+
--accent: #b1d3dd; --selected: #30444f; --selected-line: #587582; --focus: #a1d1de;
|
|
40
|
+
--primary: #bdd7dd; --primary-hover: #cee6eb; --primary-line: #bdd7dd; --primary-ink: #1b3036;
|
|
41
|
+
--amber: #e8c28e; --danger: #f3adab; --shadow: #07121a48; --veil: #081016a6; --mark-surface: #e0e8eb;
|
|
42
|
+
}
|
|
43
|
+
:is(.bridge-ui, .bridge-reader-dialog)[data-theme='black'] {
|
|
44
|
+
color-scheme: dark;
|
|
45
|
+
--paper: #212522; --canvas: #191d1b; --field: #272c28; --hover: #303832;
|
|
46
|
+
--ink: #e9eeea; --muted: #b4c0b8; --line: #39433c; --line-strong: #606f64;
|
|
47
|
+
--accent: #b1d1bd; --selected: #304036; --selected-line: #526f5c; --focus: #a8d5b9;
|
|
48
|
+
--primary: #b9d5c1; --primary-hover: #cee5d4; --primary-line: #b9d5c1; --primary-ink: #1b3021;
|
|
49
|
+
--amber: #e8c28e; --danger: #f3adab; --shadow: #080d084d; --veil: #090d0aa6; --mark-surface: #e4eae6;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:is(.bridge-ui, .bridge-reader-dialog):is([data-theme='blue'], [data-theme='black']) {
|
|
53
|
+
--frame: var(--canvas); --index-surface: var(--rail); --reading-surface: var(--paper); --edge: var(--line); --surface-shadow: none;
|
|
54
|
+
--rail: var(--canvas); --desk: var(--field); --active-row: var(--selected);
|
|
55
|
+
--history-tint: var(--hover); --history-ink: var(--ink); --material-tint: var(--selected); --material-ink: var(--accent);
|
|
56
|
+
--file-tint: var(--field); --file-ink: var(--muted);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.bridge-reader-dialog {
|
|
60
|
+
position: fixed; inset: 0; box-sizing: border-box; margin: auto; padding: 0;
|
|
61
|
+
width: min(990px, calc(100vw - 40px)); height: min(76dvh, 695px); max-width: none; max-height: none;
|
|
62
|
+
overflow: hidden; border: 1px solid var(--edge); border-radius: 20px;
|
|
63
|
+
background: var(--frame); color: var(--ink); box-shadow: 0 20px 60px -14px var(--shadow);
|
|
64
|
+
font: 14px/1.55 'Bridge Geist', 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
|
|
65
|
+
}
|
|
66
|
+
.bridge-reader-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
|
|
67
|
+
.bridge-reader-dialog [hidden] { display: none !important; }
|
|
68
|
+
.bridge-reader-dialog::backdrop { background: var(--veil); }
|
|
69
|
+
.bridge-reader-dialog *, .bridge-reader-dialog *::before { box-sizing: border-box; }
|
|
70
|
+
.bridge-reader-dialog :focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
|
|
71
|
+
.bridge-reader-dialog :is(button, input, select, summary) { font: inherit; }
|
|
72
|
+
.bridge-reader-dialog button { cursor: pointer; }
|
|
73
|
+
.bridge-reader-dialog button:disabled { cursor: default; opacity: .4; }
|
|
74
|
+
.bridge-reader .reader-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px 16px; }
|
|
75
|
+
.reader-header .reader-emblem { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--primary); color: var(--primary-ink); }
|
|
76
|
+
.reader-emblem svg { width: 20px; height: 20px; }
|
|
77
|
+
.record-identity { flex: 1; min-width: 0; }
|
|
78
|
+
.bridge-reader .record-identity h2 { font-family: inherit; font-weight: 650; font-size: 19px; line-height: 1.3; margin: 0; }
|
|
79
|
+
.record-identity span { display: inline-block; white-space: nowrap; font-size: 12px; color: var(--muted); }
|
|
80
|
+
.record-identity .record-partial { margin-inline-start: 8px; color: var(--amber); }
|
|
81
|
+
.bridge-reader .reader-content { overflow-y: auto; margin: 0 12px 12px; padding: clamp(16px, 3vw, 30px); border-radius: 12px; background: var(--reading-surface); }
|
|
82
|
+
.record-export { padding: 16px 0 20px; }
|
|
83
|
+
.record-export h3 { font-size: 15px; margin: 0; }
|
|
84
|
+
.record-export .reader-downloads { margin-top: 12px; }
|
|
85
|
+
.bridge-stats { margin: 0 0 8px; padding-inline: 12px; background: var(--field); border-radius: 5px; color: var(--ink); }
|
|
86
|
+
.bridge-stats[open] { padding-bottom: 12px; }
|
|
87
|
+
.bridge-stats[open] dl { padding-top: 6px; }
|
|
88
|
+
.bridge-stats dl { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; }
|
|
89
|
+
.bridge-stats dl > div { padding-inline: 15px; border-inline-start: 1px solid var(--line); }
|
|
90
|
+
.bridge-stats dl > div:first-child { border: 0; padding-inline-start: 0; }
|
|
91
|
+
.bridge-stats dt { font-size: 12px; color: var(--muted); }
|
|
92
|
+
.bridge-stats dd { margin: 0; font: 580 20px/1.3 'Bridge Geist', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
|
|
93
|
+
.bridge-stats p, .bridge-reader .reader-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
|
|
94
|
+
.bridge-reader .reader-note:empty { display: none; }
|
|
95
|
+
.bridge-reader .reader-summary {
|
|
96
|
+
display: flex; align-items: center; gap: 8px; min-height: 36px; list-style: none;
|
|
97
|
+
color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 620; overflow-wrap: anywhere;
|
|
98
|
+
}
|
|
99
|
+
.bridge-reader .reader-summary::-webkit-details-marker { display: none; }
|
|
100
|
+
.bridge-reader .reader-summary::before {
|
|
101
|
+
content: ''; width: 7px; height: 7px; flex: none; border: solid var(--muted);
|
|
102
|
+
border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg);
|
|
103
|
+
}
|
|
104
|
+
.bridge-reader details[open] > .reader-summary::before, details.bridge-reader[open] > .reader-summary::before { transform: rotate(45deg); }
|
|
105
|
+
.bridge-reader .reader-toolbar, .bridge-reader .reader-pager, .bridge-reader .reader-jump, .bridge-reader .reader-downloads {
|
|
106
|
+
display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin: 0;
|
|
107
|
+
}
|
|
108
|
+
.bridge-reader .reader-toolbar { justify-content: space-between; margin-block: 10px 5px; padding: 7px 0; border-block: 1px solid var(--line); }
|
|
109
|
+
.bridge-reader .reader-button, .bridge-reader .reader-jump input {
|
|
110
|
+
display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 3px 9px;
|
|
111
|
+
border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink);
|
|
112
|
+
text-decoration: none; font: inherit; font-size: 12px; line-height: 1.4;
|
|
113
|
+
}
|
|
114
|
+
.bridge-reader .reader-button:hover:not(:disabled) { color: var(--accent); background: var(--hover); border-color: var(--line-strong); }
|
|
115
|
+
.bridge-reader .reader-jump input { width: 6em; }
|
|
116
|
+
.bridge-reader .reader-pager span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
117
|
+
.bridge-reader .reader-list {
|
|
118
|
+
display: block; max-height: min(49dvh, 460px); overflow: auto; overscroll-behavior: contain;
|
|
119
|
+
margin: 0; padding: 0 6px 0 0; scrollbar-width: thin;
|
|
120
|
+
}
|
|
121
|
+
.bridge-reader .reader-row {
|
|
122
|
+
display: grid; grid-template-columns: minmax(64px, 13%) minmax(0, 1fr); align-items: start;
|
|
123
|
+
gap: 4px 14px; padding: 12px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line);
|
|
124
|
+
border-radius: 0; background: transparent;
|
|
125
|
+
}
|
|
126
|
+
.bridge-reader .reader-meta { grid-column: 1; grid-row: 1 / span 2; display: grid; gap: 1px; overflow-wrap: anywhere; }
|
|
127
|
+
.bridge-reader .reader-meta small { color: var(--muted); font: inherit; font-size: 11px; font-variant-numeric: tabular-nums; }
|
|
128
|
+
.bridge-reader .reader-following-file { padding-block: 4px; }
|
|
129
|
+
.bridge-reader .reader-row:has(+ .reader-following-file) { border-bottom: 0; padding-bottom: 2px; }
|
|
130
|
+
.bridge-reader .reader-following-file .reader-meta { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
|
|
131
|
+
.bridge-reader .reader-meta strong { font-size: 13px; font-weight: 620; color: var(--ink); }
|
|
132
|
+
.bridge-reader [data-role='user'] .reader-meta strong { color: var(--history-ink); }
|
|
133
|
+
.bridge-reader [data-role='assistant'] .reader-meta strong { color: var(--material-ink); }
|
|
134
|
+
.bridge-reader .reader-row:has(.archive-attachment) .reader-meta strong { color: var(--file-ink); }
|
|
135
|
+
.bridge-reader .reader-body, .bridge-reader .reader-row > .archive-attachment { grid-column: 2; margin: 0; min-width: 0; }
|
|
136
|
+
.bridge-reader .reader-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; color: var(--ink); font-size: 14px; }
|
|
137
|
+
.bridge-reader .reader-body[data-format='markdown'] { white-space: normal; }
|
|
138
|
+
.bridge-reader .reader-actions { grid-column: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
|
|
139
|
+
.bridge-reader .reader-actions .reader-button { min-height: 24px; padding: 1px 3px; background: transparent; border-color: transparent; color: var(--muted); }
|
|
140
|
+
.bridge-reader .reader-process { margin: 4px 0; border: 0; border-radius: 5px; background: var(--field); padding-inline: 10px; }
|
|
141
|
+
.bridge-reader .reader-process > summary { padding: 0; font-size: 12px; font-weight: 550; color: var(--muted); }
|
|
142
|
+
.bridge-reader .reader-summary small { margin-inline-start: auto; font-size: 11px; font-weight: 400; color: var(--muted); }
|
|
143
|
+
.bridge-reader .reader-process-items { padding: 0; display: block; }
|
|
144
|
+
.bridge-reader .reader-process-items article:last-child { border-bottom: 0; }
|
|
145
|
+
.bridge-reader .reader-extra { margin-top: 8px; border-top: 1px solid var(--line); }
|
|
146
|
+
.bridge-reader .reader-extra > summary { font-weight: 500; color: var(--muted); font-size: 13px; }
|
|
147
|
+
.bridge-reader .reader-downloads label { color: var(--muted); font-size: 12px; }
|
|
148
|
+
.bridge-reader .reader-downloads input { accent-color: var(--primary); }
|
|
149
|
+
.bridge-reader .archive-attachment { display: grid; justify-items: start; gap: 5px; min-width: 0; }
|
|
150
|
+
.bridge-reader .archive-attachment :is(.reader-body, .muted) { grid-column: auto; color: var(--muted); font-size: 12px; }
|
|
151
|
+
.bridge-reader .archive-attachment-name { color: var(--accent); overflow-wrap: anywhere; text-align: start; font-size: 13px; }
|
|
152
|
+
.bridge-reader a.archive-attachment-name { text-decoration: underline; text-decoration-color: var(--selected-line); text-underline-offset: 3px; }
|
|
153
|
+
.bridge-reader .archive-attachment-preview {
|
|
154
|
+
display: block; width: min(176px, 100%); height: 112px; padding: 0; border: 1px solid var(--line);
|
|
155
|
+
border-radius: 6px; background: var(--field); overflow: hidden; cursor: zoom-in;
|
|
156
|
+
}
|
|
157
|
+
.bridge-reader .archive-attachment-preview[aria-pressed='true'] { width: min(576px, 100%); height: min(38dvh, 352px); cursor: zoom-out; }
|
|
158
|
+
.bridge-reader .archive-attachment-preview img { display: block; height: 100%; width: 100%; object-fit: contain; }
|
|
159
|
+
.bridge-reader .reader-detail { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; }
|
|
160
|
+
.bridge-reader .reader-excerpt { padding: 8px 0; border-top: 1px solid var(--line); }
|
|
161
|
+
.bridge-reader .reader-excerpt-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 4px; font-size: 12px; }
|
|
162
|
+
.bridge-reader .reader-kind { font-weight: 600; }
|
|
163
|
+
.bridge-reader .reader-name { overflow-wrap: anywhere; }
|
|
164
|
+
.bridge-reader .reader-alert { color: var(--danger); }
|
|
165
|
+
/* The native reader has one scroll area for the transcript, separate from its index. */
|
|
166
|
+
.bridge-reader-dialog .history-browser {
|
|
167
|
+
display: grid; grid-template-columns: clamp(190px, 25%, 242px) minmax(0, 1fr); min-height: 0; gap: 10px;
|
|
168
|
+
padding: 0 12px 12px;
|
|
169
|
+
}
|
|
170
|
+
.bridge-reader-dialog :is(.turn-index, .turn-sheet) { min-width: 0; min-height: 0; border-radius: 13px; }
|
|
171
|
+
.bridge-reader-dialog .turn-index {
|
|
172
|
+
display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 12px 9px 6px;
|
|
173
|
+
background: var(--index-surface);
|
|
174
|
+
}
|
|
175
|
+
.bridge-reader-dialog .index-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 8px; gap: 5px; }
|
|
176
|
+
.bridge-reader-dialog .index-heading h3 { margin: 0; font-size: 14px; font-weight: 620; }
|
|
177
|
+
.bridge-reader-dialog .index-jump { position: relative; }
|
|
178
|
+
.bridge-reader-dialog .index-jump > summary { color: var(--muted); cursor: pointer; font-size: 12px; list-style: none; padding: 5px; }
|
|
179
|
+
.bridge-reader-dialog .index-jump > summary::-webkit-details-marker { display: none; }
|
|
180
|
+
.bridge-reader-dialog .index-jump form {
|
|
181
|
+
position: absolute; top: 100%; right: 0; z-index: 2; padding: 10px;
|
|
182
|
+
width: max-content; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--surface-shadow);
|
|
183
|
+
}
|
|
184
|
+
.bridge-reader-dialog .index-list { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
|
|
185
|
+
.bridge-reader-dialog .index-list button {
|
|
186
|
+
display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: baseline; gap: 5px; width: 100%;
|
|
187
|
+
padding: 10px 8px; text-align: left; color: var(--ink); background: transparent; border: 1px solid transparent;
|
|
188
|
+
border-radius: 8px; font-size: 13px; line-height: 1.4;
|
|
189
|
+
}
|
|
190
|
+
.bridge-reader-dialog .index-list button:hover { background: var(--hover); }
|
|
191
|
+
.bridge-reader-dialog .index-list button[aria-current] { background: var(--active-row); font-weight: 630; }
|
|
192
|
+
.index-list .index-number { color: var(--muted); font: 11px/1.4 'Bridge Geist', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
|
|
193
|
+
.index-list button > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
194
|
+
.bridge-reader-dialog .index-pages { display: flex; align-items: center; gap: 3px; padding: 8px 4px 0; color: var(--muted); font-size: 12px; }
|
|
195
|
+
.index-pages span { margin-right: auto; }
|
|
196
|
+
.index-pages .reader-button { border: 0; background: transparent; }
|
|
197
|
+
.bridge-reader-dialog .compact-turns { display: none; }
|
|
198
|
+
.bridge-reader-dialog .turn-sheet {
|
|
199
|
+
overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
|
|
200
|
+
padding: 24px clamp(18px, 3.1vw, 40px); background: var(--reading-surface); border: 1px solid var(--edge); box-shadow: var(--surface-shadow);
|
|
201
|
+
}
|
|
202
|
+
.bridge-reader-dialog .turn-page { max-width: 72ch; margin: 0 auto; }
|
|
203
|
+
.bridge-reader-dialog .turn-heading { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 550; }
|
|
204
|
+
.bridge-reader-dialog .turn-entry {
|
|
205
|
+
display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; padding: 0; margin: 0 0 16px;
|
|
206
|
+
}
|
|
207
|
+
.bridge-reader-dialog .entry-label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 550; }
|
|
208
|
+
.bridge-reader-dialog .turn-entry .reader-body { grid-column: 1 / -1; grid-row: auto; margin: 0; font-size: 15px; line-height: 1.75; min-width: 0; }
|
|
209
|
+
.bridge-reader-dialog .turn-entry .turn-question { font-size: clamp(19px, 2vw, 24px); font-weight: 590; line-height: 1.45; letter-spacing: -.02em; }
|
|
210
|
+
.bridge-reader-dialog .turn-entry .reader-detail { grid-column: 1 / -1; line-height: 1.5; }
|
|
211
|
+
.bridge-reader-dialog .turn-entry .reader-actions { grid-column: 2; grid-row: 1; gap: 1px; }
|
|
212
|
+
.bridge-reader-dialog .record-icon, .bridge-reader-dialog .record-mode {
|
|
213
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 30px; height: 30px; padding: 4px;
|
|
214
|
+
color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 7px;
|
|
215
|
+
}
|
|
216
|
+
.bridge-reader-dialog .record-mode { padding: 4px 8px; font-size: 13px; color: var(--ink); }
|
|
217
|
+
.bridge-reader-dialog :is(.record-icon,.record-mode):hover:not(:disabled), .bridge-reader-dialog .record-mode[aria-expanded='true'] { background: var(--active-row); color: var(--ink); }
|
|
218
|
+
.bridge-reader-dialog .reader-actions .record-icon { width: 26px; min-width: 26px; height: 25px; }
|
|
219
|
+
.bridge-reader-dialog .reader-actions .record-icon svg { width: 14px; height: 14px; }
|
|
220
|
+
.bridge-reader-dialog .turn-files { margin: 6px 0 14px; }
|
|
221
|
+
.bridge-reader-dialog .turn-files h4 { margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 550; }
|
|
222
|
+
.bridge-reader-dialog .file-gallery { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
|
|
223
|
+
.bridge-reader-dialog .file-images { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
|
|
224
|
+
.bridge-reader-dialog .file-images:has([aria-pressed='true']) { width: 100%; }
|
|
225
|
+
.bridge-reader-dialog .file-documents { display: grid; gap: 4px; align-content: start; min-width: 0; max-width: 100%; }
|
|
226
|
+
.bridge-reader-dialog .record-image { flex: 0 0 auto; max-width: 100%; min-width: 0; gap: 4px; }
|
|
227
|
+
.bridge-reader-dialog .record-image:has([aria-pressed='true']) { width: 100%; }
|
|
228
|
+
.bridge-reader-dialog .record-image a { max-width: 180px; }
|
|
229
|
+
.bridge-reader-dialog .archive-attachment-preview { width: min(170px, 100%); height: 98px; border-radius: 7px; }
|
|
230
|
+
.bridge-reader-dialog .archive-attachment-preview[aria-pressed='true'] { width: min(100%, 576px); }
|
|
231
|
+
.bridge-reader-dialog .record-file {
|
|
232
|
+
display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: center; gap: 2px 6px;
|
|
233
|
+
max-width: 100%; padding: 7px 9px; border-radius: 7px; background: var(--field);
|
|
234
|
+
}
|
|
235
|
+
.bridge-reader-dialog .record-file svg { color: var(--file-ink); width: 17px; height: 17px; }
|
|
236
|
+
.bridge-reader-dialog .record-file .archive-attachment-name { font-size: 12px; font-weight: 500; }
|
|
237
|
+
.bridge-reader-dialog .record-file.unavailable { background: transparent; }
|
|
238
|
+
.bridge-reader-dialog .record-file.unavailable .reader-body { grid-column: 2; }
|
|
239
|
+
.bridge-reader-dialog .turn-process { margin: 8px 0 16px; padding: 0; background: transparent; }
|
|
240
|
+
.bridge-reader-dialog .turn-process > summary { width: fit-content; min-height: 30px; padding: 0 6px; }
|
|
241
|
+
.bridge-reader-dialog .turn-process[open] .reader-process-items { padding: 12px; border-radius: 8px; background: var(--field); }
|
|
242
|
+
.bridge-reader-dialog .turn-process .turn-entry:last-child { margin-bottom: 0; }
|
|
243
|
+
@media (hover: hover) {
|
|
244
|
+
.turn-entry:not(:hover, :focus-within) .reader-actions { opacity: 0; }
|
|
245
|
+
}
|
|
246
|
+
@media (max-width: 640px) {
|
|
247
|
+
.bridge-reader-dialog { width: calc(100vw - 12px); height: min(88dvh, 745px); border-radius: 14px; }
|
|
248
|
+
.bridge-reader .reader-header { padding: 12px 14px; gap: 8px; }
|
|
249
|
+
.bridge-reader-dialog .history-browser { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0,1fr); gap: 6px; padding: 0 6px 6px; }
|
|
250
|
+
.bridge-reader-dialog .turn-index { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; padding: 7px 10px; }
|
|
251
|
+
.bridge-reader-dialog .index-heading { padding: 0; order: 2; }
|
|
252
|
+
.bridge-reader-dialog .index-heading h3, .bridge-reader-dialog .index-list { display: none; }
|
|
253
|
+
.bridge-reader-dialog .compact-turns { display: block; flex: 1 1 110px; width: 0; min-width: 85px; max-width: 100%; padding: 4px 2px; color: var(--ink); border: 0; border-radius: 4px; background: transparent; font-size: 13px; text-overflow: ellipsis; }
|
|
254
|
+
.bridge-reader-dialog .compact-turns option { background: var(--paper); }
|
|
255
|
+
.bridge-reader-dialog .index-pages { order: 3; padding: 0; }
|
|
256
|
+
.bridge-reader-dialog .index-jump form { right: -40px; }
|
|
257
|
+
.bridge-reader-dialog .turn-sheet { padding: 16px; }
|
|
258
|
+
.bridge-stats dl > div { padding-inline: 8px; }
|
|
259
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
Copyright (c) 2014 Vitaly Puzrin, Alex Kocharin.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
|
4
|
+
obtaining a copy of this software and associated documentation
|
|
5
|
+
files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use,
|
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the
|
|
9
|
+
Software is furnished to do so, subject to the following
|
|
10
|
+
conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
entities-8.1.0
|
|
26
|
+
|
|
27
|
+
Copyright (c) Felix Böhm
|
|
28
|
+
All rights reserved.
|
|
29
|
+
|
|
30
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
31
|
+
|
|
32
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
33
|
+
|
|
34
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
35
|
+
|
|
36
|
+
THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
|
|
37
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
38
|
+
|
|
39
|
+
linkify-it-6.1.0
|
|
40
|
+
|
|
41
|
+
Copyright (c) 2015 Vitaly Puzrin.
|
|
42
|
+
|
|
43
|
+
Permission is hereby granted, free of charge, to any person
|
|
44
|
+
obtaining a copy of this software and associated documentation
|
|
45
|
+
files (the "Software"), to deal in the Software without
|
|
46
|
+
restriction, including without limitation the rights to use,
|
|
47
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
48
|
+
copies of the Software, and to permit persons to whom the
|
|
49
|
+
Software is furnished to do so, subject to the following
|
|
50
|
+
conditions:
|
|
51
|
+
|
|
52
|
+
The above copyright notice and this permission notice shall be
|
|
53
|
+
included in all copies or substantial portions of the Software.
|
|
54
|
+
|
|
55
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
56
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
57
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
58
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
59
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
60
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
61
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
62
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
63
|
+
|
|
64
|
+
mdurl-2.1.0
|
|
65
|
+
|
|
66
|
+
Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.
|
|
67
|
+
|
|
68
|
+
Permission is hereby granted, free of charge, to any person
|
|
69
|
+
obtaining a copy of this software and associated documentation
|
|
70
|
+
files (the "Software"), to deal in the Software without
|
|
71
|
+
restriction, including without limitation the rights to use,
|
|
72
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
73
|
+
copies of the Software, and to permit persons to whom the
|
|
74
|
+
Software is furnished to do so, subject to the following
|
|
75
|
+
conditions:
|
|
76
|
+
|
|
77
|
+
The above copyright notice and this permission notice shall be
|
|
78
|
+
included in all copies or substantial portions of the Software.
|
|
79
|
+
|
|
80
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
81
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
82
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
83
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
84
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
85
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
86
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
87
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
88
|
+
|
|
89
|
+
--------------------------------------------------------------------------------
|
|
90
|
+
|
|
91
|
+
.parse() is based on Joyent's node.js `url` code:
|
|
92
|
+
|
|
93
|
+
Copyright Joyent, Inc. and other Node contributors. All rights reserved.
|
|
94
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
95
|
+
of this software and associated documentation files (the "Software"), to
|
|
96
|
+
deal in the Software without restriction, including without limitation the
|
|
97
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
98
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
99
|
+
furnished to do so, subject to the following conditions:
|
|
100
|
+
|
|
101
|
+
The above copyright notice and this permission notice shall be included in
|
|
102
|
+
all copies or substantial portions of the Software.
|
|
103
|
+
|
|
104
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
105
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
106
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
107
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
108
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
109
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
110
|
+
IN THE SOFTWARE.
|
|
111
|
+
|
|
112
|
+
punycode.js-2.3.1
|
|
113
|
+
|
|
114
|
+
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
115
|
+
|
|
116
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
117
|
+
a copy of this software and associated documentation files (the
|
|
118
|
+
"Software"), to deal in the Software without restriction, including
|
|
119
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
120
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
121
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
122
|
+
the following conditions:
|
|
123
|
+
|
|
124
|
+
The above copyright notice and this permission notice shall be
|
|
125
|
+
included in all copies or substantial portions of the Software.
|
|
126
|
+
|
|
127
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
128
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
129
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
130
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
131
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
132
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
133
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
134
|
+
|
|
135
|
+
uc.micro-3.0.0
|
|
136
|
+
|
|
137
|
+
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
138
|
+
|
|
139
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
140
|
+
a copy of this software and associated documentation files (the
|
|
141
|
+
"Software"), to deal in the Software without restriction, including
|
|
142
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
143
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
144
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
145
|
+
the following conditions:
|
|
146
|
+
|
|
147
|
+
The above copyright notice and this permission notice shall be
|
|
148
|
+
included in all copies or substantial portions of the Software.
|
|
149
|
+
|
|
150
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
151
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
152
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
153
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
154
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
155
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
156
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|