@fish-under-sea/magpie-purge 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -8
- package/package.json +10 -9
- package/page/app.js +167 -43
- package/page/card.png +0 -0
- package/page/icon.png +0 -0
- package/page/icon.svg +6 -5
- package/page/index.html +69 -54
- package/page/style.css +307 -110
- package/personas/prompt-forge.md +3 -3
- package/preview/catalog.demo.js +5 -5
- package/preview/host.html +17 -4
- package/preview/purge-preview.html +1564 -0
- package/skills/credential-breaker.md +2 -2
- package/skills/engagement-lead.md +2 -2
- package/skills/entry-hunter.md +1 -1
- package/skills/intranet-pivot.md +1 -1
- package/skills/nsfw-prompt-smith.md +2 -2
- package/skills/payload-delivery.md +1 -1
- package/skills/recon-specialist.md +3 -3
- package/skills/tunnel-engineer.md +1 -1
- package/skills/vuln-striker.md +7 -6
- package/tools/build-preview.mjs +115 -0
- package/tools/card-icon.mjs +36 -0
package/page/style.css
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/* 破甲 · Purge 的页面样式。
|
|
2
2
|
颜色一律吃 magpie 自己的主题变量(--magpie-*),没给就用中和的回落值:
|
|
3
|
-
页面在 magpie
|
|
3
|
+
页面在 magpie 窗口里,跟随宿主明暗是硬要求。
|
|
4
|
+
|
|
5
|
+
没有按「六种类型各给一个颜色」上色——那会变成彩虹。
|
|
6
|
+
只留三类语义色(人设 / 技能 / 素材),其余全部让给墨色与分隔线。 */
|
|
4
7
|
:root {
|
|
5
8
|
--ink: var(--magpie-fg, #1c1d21);
|
|
6
9
|
--muted: var(--magpie-muted, #6b7280);
|
|
@@ -10,12 +13,11 @@
|
|
|
10
13
|
--accent: var(--magpie-accent, #3563e9);
|
|
11
14
|
--accent-soft: var(--magpie-accent-soft, #e6edfd);
|
|
12
15
|
--mono: var(--magpie-code, ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace);
|
|
16
|
+
|
|
13
17
|
--kind-persona: #6f5bd6;
|
|
14
18
|
--kind-skill: #1f8f9c;
|
|
15
|
-
--kind-
|
|
16
|
-
--
|
|
17
|
-
--kind-manifest: #757a85;
|
|
18
|
-
--kind-text: #8a6a2f;
|
|
19
|
+
--kind-material: #8a7f70;
|
|
20
|
+
--ok: #2f8f5b;
|
|
19
21
|
--danger: #c25556;
|
|
20
22
|
}
|
|
21
23
|
|
|
@@ -23,39 +25,73 @@
|
|
|
23
25
|
html { background: var(--bg); color: var(--ink); }
|
|
24
26
|
body {
|
|
25
27
|
margin: 0;
|
|
26
|
-
padding:
|
|
27
|
-
font: 13px/1.
|
|
28
|
-
max-width:
|
|
28
|
+
padding: 20px 24px calc(40px + env(safe-area-inset-bottom));
|
|
29
|
+
font: 13px/1.55 var(--magpie-font, -apple-system, "Segoe UI", "Noto Sans SC", system-ui, sans-serif);
|
|
30
|
+
max-width: 1160px;
|
|
29
31
|
touch-action: manipulation;
|
|
32
|
+
-webkit-font-smoothing: antialiased;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
/* ---------- 顶部 ---------- */
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
.
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
.top {
|
|
37
|
+
display: grid;
|
|
38
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
39
|
+
gap: 8px 20px;
|
|
40
|
+
align-items: center;
|
|
41
|
+
}
|
|
42
|
+
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
|
|
43
|
+
.mark { width: 28px; height: 28px; flex: none; border-radius: 8px; }
|
|
44
|
+
.brand-text { min-width: 0; }
|
|
45
|
+
h1 {
|
|
46
|
+
margin: 0;
|
|
47
|
+
font-size: 21px;
|
|
48
|
+
font-weight: 620;
|
|
49
|
+
letter-spacing: .005em;
|
|
50
|
+
line-height: 1.2;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
}
|
|
53
|
+
.brand-tail {
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
color: var(--muted);
|
|
56
|
+
margin-left: 2px;
|
|
57
|
+
}
|
|
58
|
+
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
|
|
59
|
+
|
|
60
|
+
.top-controls { display: grid; gap: 4px; justify-items: end; min-width: 0; }
|
|
61
|
+
.controls-row { display: flex; align-items: flex-end; gap: 10px; }
|
|
62
|
+
.field { display: grid; gap: 4px; }
|
|
63
|
+
.field-label { font-size: 12px; color: var(--muted); }
|
|
64
|
+
#mode { min-width: 196px; }
|
|
65
|
+
/* 模式说明跟着下拉走:它解释的是这个选择,不该飘到页面左边去。
|
|
66
|
+
max-width 用 100% 而不是固定值:窄屏上固定值会让这一行把整页撑出横向滚动。 */
|
|
67
|
+
.top-hint {
|
|
68
|
+
margin: 0;
|
|
69
|
+
max-width: 100%;
|
|
70
|
+
text-align: right;
|
|
71
|
+
color: var(--muted);
|
|
72
|
+
font-size: 12px;
|
|
73
|
+
line-height: 1.5;
|
|
74
|
+
overflow-wrap: anywhere;
|
|
75
|
+
}
|
|
43
76
|
|
|
77
|
+
/* ---------- 控件 ---------- */
|
|
44
78
|
button {
|
|
45
79
|
font: inherit;
|
|
46
80
|
color: var(--ink);
|
|
47
81
|
background: var(--card);
|
|
48
82
|
border: 1px solid var(--line);
|
|
49
83
|
border-radius: 8px;
|
|
50
|
-
padding: 5px
|
|
51
|
-
min-height:
|
|
84
|
+
padding: 5px 12px;
|
|
85
|
+
min-height: 30px;
|
|
52
86
|
cursor: pointer;
|
|
87
|
+
transition: border-color .12s ease, background-color .12s ease;
|
|
53
88
|
}
|
|
54
89
|
button:hover:not(:disabled) { border-color: var(--muted); }
|
|
55
90
|
button:disabled { opacity: .5; cursor: default; }
|
|
56
91
|
button.primary { background: var(--accent); border-color: transparent; color: #fff; }
|
|
57
|
-
button.
|
|
92
|
+
button.quiet { background: transparent; }
|
|
58
93
|
button.danger { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 40%, var(--line)); }
|
|
94
|
+
|
|
59
95
|
select, input[type="search"], input[type="text"], textarea {
|
|
60
96
|
font: inherit;
|
|
61
97
|
color: var(--ink);
|
|
@@ -66,165 +102,326 @@ select, input[type="search"], input[type="text"], textarea {
|
|
|
66
102
|
}
|
|
67
103
|
@media (max-width: 620px) { select, input, textarea { font-size: 16px; } }
|
|
68
104
|
textarea { width: 100%; resize: vertical; font-family: var(--mono); font-size: 12px; line-height: 1.6; }
|
|
69
|
-
:focus-visible { outline: 2px solid var(--accent); outline-offset:
|
|
70
|
-
|
|
71
|
-
.boundary {
|
|
72
|
-
margin: 12px 0 16px;
|
|
73
|
-
padding: 8px 12px;
|
|
74
|
-
border-left: 2px solid var(--accent);
|
|
75
|
-
background: color-mix(in oklab, var(--accent-soft) 60%, transparent);
|
|
76
|
-
color: var(--ink);
|
|
77
|
-
font-size: 12.5px;
|
|
78
|
-
border-radius: 0 8px 8px 0;
|
|
79
|
-
}
|
|
105
|
+
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
80
106
|
|
|
81
|
-
/*
|
|
107
|
+
/* ---------- 注入状态:整页最该被看见的一行 ---------- */
|
|
82
108
|
.plan {
|
|
83
109
|
display: grid;
|
|
84
110
|
grid-template-columns: max-content minmax(0, 1fr) max-content;
|
|
85
|
-
gap: 4px
|
|
111
|
+
gap: 4px 14px;
|
|
86
112
|
align-items: center;
|
|
87
|
-
margin:
|
|
88
|
-
padding:
|
|
113
|
+
margin: 16px 0 20px;
|
|
114
|
+
padding: 14px 16px;
|
|
89
115
|
border: 1px solid var(--line);
|
|
90
|
-
border-radius:
|
|
116
|
+
border-radius: 12px;
|
|
91
117
|
background: var(--card);
|
|
92
118
|
}
|
|
93
|
-
.plan[data-state="ready"] { border-color: color-mix(in oklab, var(--
|
|
94
|
-
.plan[data-state="blocked"] { border-color: color-mix(in oklab, var(--danger)
|
|
95
|
-
.plan .dot { width:
|
|
96
|
-
.plan[data-state="ready"] .dot { background: var(--
|
|
119
|
+
.plan[data-state="ready"] { border-color: color-mix(in oklab, var(--ok) 42%, var(--line)); }
|
|
120
|
+
.plan[data-state="blocked"] { border-color: color-mix(in oklab, var(--danger) 34%, var(--line)); }
|
|
121
|
+
.plan .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
|
|
122
|
+
.plan[data-state="ready"] .dot { background: var(--ok); }
|
|
97
123
|
.plan[data-state="blocked"] .dot { background: var(--danger); }
|
|
98
|
-
.plan .who { font-weight:
|
|
99
|
-
.plan .
|
|
124
|
+
.plan .who { font-size: 15px; font-weight: 560; }
|
|
125
|
+
.plan .who.is-empty { color: var(--muted); font-weight: 400; }
|
|
126
|
+
.plan .why { grid-column: 2 / -1; color: var(--muted); font-size: 12.5px; }
|
|
127
|
+
.plan .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
|
|
100
128
|
.plan .tag {
|
|
101
129
|
font-size: 12px;
|
|
102
|
-
padding:
|
|
130
|
+
padding: 2px 9px;
|
|
103
131
|
border-radius: 999px;
|
|
104
132
|
border: 1px solid var(--line);
|
|
105
133
|
color: var(--muted);
|
|
106
134
|
white-space: nowrap;
|
|
107
135
|
}
|
|
108
|
-
.plan .
|
|
109
|
-
.plan .empty { color: var(--muted); }
|
|
136
|
+
.plan .tag b { color: var(--ink); font-weight: 560; }
|
|
110
137
|
|
|
111
|
-
/* ---------- 主体:左列表 /
|
|
112
|
-
.
|
|
138
|
+
/* ---------- 主体:左列表 / 右组装 ---------- */
|
|
139
|
+
.work {
|
|
113
140
|
display: grid;
|
|
114
|
-
grid-template-columns: minmax(
|
|
115
|
-
gap:
|
|
141
|
+
grid-template-columns: minmax(300px, 352px) minmax(0, 1fr);
|
|
142
|
+
gap: 26px;
|
|
116
143
|
align-items: start;
|
|
117
144
|
}
|
|
118
|
-
@media (max-width:
|
|
145
|
+
@media (max-width: 900px) { .work { grid-template-columns: minmax(0, 1fr); } }
|
|
119
146
|
|
|
120
|
-
.rail
|
|
121
|
-
.rail-
|
|
147
|
+
.rail { min-width: 0; }
|
|
148
|
+
.rail-tools { display: grid; gap: 10px; }
|
|
149
|
+
.rail-tools input { width: 100%; }
|
|
122
150
|
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
123
151
|
.chip {
|
|
124
152
|
font-size: 12px;
|
|
125
|
-
padding:
|
|
126
|
-
min-height:
|
|
153
|
+
padding: 3px 10px;
|
|
154
|
+
min-height: 26px;
|
|
127
155
|
border-radius: 999px;
|
|
128
156
|
border: 1px solid var(--line);
|
|
129
157
|
background: transparent;
|
|
130
158
|
color: var(--muted);
|
|
131
159
|
}
|
|
132
160
|
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
|
|
133
|
-
.count { margin: 0; color: var(--muted); font-size: 12px; }
|
|
161
|
+
.rail-count { margin: 12px 0 8px; color: var(--muted); font-size: 12px; }
|
|
134
162
|
|
|
135
163
|
.list { display: grid; gap: 1px; border-top: 1px solid var(--line); }
|
|
164
|
+
/* 桌面端列表自己滚:条目多时不让整页跟着长,右栏也不会剩一大片空白。
|
|
165
|
+
窄屏不做嵌套滚动——那比页面滚动难用。
|
|
166
|
+
底部加一层淡出:滚动区硬切会把最后一行切成半截,看起来像坏了。 */
|
|
167
|
+
@media (min-width: 901px) {
|
|
168
|
+
.list {
|
|
169
|
+
max-height: min(58vh, 540px);
|
|
170
|
+
overflow-y: auto;
|
|
171
|
+
overscroll-behavior: contain;
|
|
172
|
+
padding-bottom: 4px;
|
|
173
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent);
|
|
174
|
+
}
|
|
175
|
+
.list:has(> .row:last-child:first-child) { mask-image: none; }
|
|
176
|
+
}
|
|
177
|
+
.group-head {
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: baseline;
|
|
180
|
+
justify-content: space-between;
|
|
181
|
+
gap: 8px;
|
|
182
|
+
padding: 14px 2px 6px;
|
|
183
|
+
font-size: 12px;
|
|
184
|
+
color: var(--muted);
|
|
185
|
+
}
|
|
186
|
+
.group-head:first-child { padding-top: 8px; }
|
|
187
|
+
.group-head .n { font-variant-numeric: tabular-nums; }
|
|
188
|
+
|
|
136
189
|
.row {
|
|
137
190
|
display: grid;
|
|
138
191
|
grid-template-columns: 3px minmax(0, 1fr) auto;
|
|
139
|
-
gap:
|
|
140
|
-
align-items:
|
|
192
|
+
gap: 10px;
|
|
193
|
+
align-items: center;
|
|
141
194
|
width: 100%;
|
|
142
195
|
text-align: left;
|
|
143
|
-
padding: 9px
|
|
196
|
+
padding: 9px 10px 9px 0;
|
|
144
197
|
border: 0;
|
|
145
198
|
border-bottom: 1px solid var(--line);
|
|
146
199
|
border-radius: 0;
|
|
147
200
|
background: transparent;
|
|
148
201
|
}
|
|
149
|
-
.row
|
|
150
|
-
.row:hover { background: color-mix(in oklab, var(--card) 70%, transparent); }
|
|
202
|
+
.row:hover { background: color-mix(in oklab, var(--card) 78%, transparent); }
|
|
151
203
|
.row[aria-selected="true"] { background: var(--accent-soft); }
|
|
204
|
+
.row > span { min-width: 0; }
|
|
152
205
|
.row .spine { align-self: stretch; border-radius: 2px; background: var(--spine, var(--line)); }
|
|
153
|
-
.row .title {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
206
|
+
.row .title {
|
|
207
|
+
display: block;
|
|
208
|
+
font-weight: 520;
|
|
209
|
+
overflow: hidden;
|
|
210
|
+
text-overflow: ellipsis;
|
|
211
|
+
white-space: nowrap;
|
|
212
|
+
}
|
|
213
|
+
.row .meta {
|
|
214
|
+
display: block;
|
|
215
|
+
color: var(--muted);
|
|
216
|
+
font-size: 12px;
|
|
217
|
+
overflow: hidden;
|
|
218
|
+
text-overflow: ellipsis;
|
|
219
|
+
white-space: nowrap;
|
|
220
|
+
}
|
|
221
|
+
.row .side {
|
|
222
|
+
text-align: right;
|
|
223
|
+
color: var(--muted);
|
|
224
|
+
font-size: 12px;
|
|
225
|
+
white-space: nowrap;
|
|
226
|
+
font-variant-numeric: tabular-nums;
|
|
227
|
+
}
|
|
228
|
+
/* 状态胶囊跟名字同行:放右侧会把行高撑到 70px,十条就多出一屏 */
|
|
229
|
+
.row .badge {
|
|
230
|
+
display: inline-block;
|
|
231
|
+
vertical-align: 1px;
|
|
232
|
+
font-size: 12px;
|
|
233
|
+
padding: 0 7px;
|
|
234
|
+
margin-left: 8px;
|
|
235
|
+
border-radius: 999px;
|
|
236
|
+
border: 1px solid currentColor;
|
|
237
|
+
}
|
|
157
238
|
.badge.reject { color: var(--danger); }
|
|
158
|
-
.badge.dup { color: var(--kind-manifest); }
|
|
159
239
|
.badge.off { color: var(--muted); }
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
240
|
+
.badge.on { color: var(--ok); }
|
|
241
|
+
|
|
242
|
+
/* ---------- 右栏:组装 / 详情 ---------- */
|
|
243
|
+
.panel { min-width: 0; min-height: 320px; }
|
|
244
|
+
|
|
245
|
+
.panel h2 {
|
|
246
|
+
margin: 0 0 14px;
|
|
247
|
+
font-size: 15px;
|
|
248
|
+
font-weight: 580;
|
|
249
|
+
letter-spacing: .005em;
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
gap: 12px;
|
|
253
|
+
flex-wrap: wrap;
|
|
254
|
+
}
|
|
255
|
+
.panel .h2-sub { color: var(--muted); font-size: 12px; font-weight: 400; }
|
|
256
|
+
|
|
257
|
+
/* 组装预览:把「会拼成什么」摊开成按顺序的积木,这是本页最有辨识度的一块 */
|
|
258
|
+
.stack-view { display: grid; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
|
|
259
|
+
.stack-row {
|
|
260
|
+
display: grid;
|
|
261
|
+
grid-template-columns: max-content minmax(0, 1fr) max-content;
|
|
262
|
+
gap: 12px;
|
|
263
|
+
align-items: baseline;
|
|
264
|
+
padding: 11px 14px;
|
|
265
|
+
background: var(--card);
|
|
266
|
+
border-bottom: 1px solid var(--line);
|
|
267
|
+
}
|
|
268
|
+
.stack-row:last-child { border-bottom: 0; }
|
|
269
|
+
.stack-row .ord {
|
|
270
|
+
font-family: var(--mono);
|
|
271
|
+
font-size: 12px;
|
|
272
|
+
color: var(--muted);
|
|
273
|
+
font-variant-numeric: tabular-nums;
|
|
274
|
+
}
|
|
275
|
+
.stack-row .body { min-width: 0; }
|
|
276
|
+
.stack-row .name { font-weight: 520; display: block; }
|
|
277
|
+
.stack-row .desc {
|
|
278
|
+
display: block;
|
|
279
|
+
color: var(--muted);
|
|
280
|
+
font-size: 12px;
|
|
281
|
+
overflow: hidden;
|
|
282
|
+
text-overflow: ellipsis;
|
|
283
|
+
white-space: nowrap;
|
|
284
|
+
}
|
|
285
|
+
.stack-row .size { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
286
|
+
.stack-row.is-persona { box-shadow: inset 3px 0 0 var(--kind-persona); }
|
|
287
|
+
.stack-row.is-skill { box-shadow: inset 3px 0 0 var(--kind-skill); }
|
|
288
|
+
.stack-row.is-host { box-shadow: inset 3px 0 0 var(--line); color: var(--muted); }
|
|
289
|
+
.stack-row.is-empty { color: var(--muted); }
|
|
290
|
+
|
|
291
|
+
.stack-foot {
|
|
292
|
+
display: flex;
|
|
293
|
+
justify-content: space-between;
|
|
294
|
+
gap: 12px;
|
|
295
|
+
margin-top: 10px;
|
|
296
|
+
color: var(--muted);
|
|
297
|
+
font-size: 12px;
|
|
298
|
+
font-variant-numeric: tabular-nums;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/* 一键启用:把九个专家的开关摊平,点一下即生效 */
|
|
302
|
+
.picker { margin-top: 28px; }
|
|
303
|
+
.picker h3 {
|
|
304
|
+
margin: 0 0 10px;
|
|
305
|
+
font-size: 13px;
|
|
306
|
+
font-weight: 560;
|
|
307
|
+
display: flex;
|
|
308
|
+
align-items: baseline;
|
|
309
|
+
gap: 10px;
|
|
310
|
+
flex-wrap: wrap;
|
|
311
|
+
}
|
|
312
|
+
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
313
|
+
.pick {
|
|
314
|
+
font-size: 12.5px;
|
|
315
|
+
padding: 4px 12px;
|
|
316
|
+
min-height: 28px;
|
|
317
|
+
border-radius: 999px;
|
|
318
|
+
border: 1px solid var(--line);
|
|
319
|
+
background: transparent;
|
|
320
|
+
color: var(--muted);
|
|
321
|
+
}
|
|
322
|
+
.pick:hover:not(:disabled) { color: var(--ink); }
|
|
323
|
+
.pick.is-on {
|
|
324
|
+
background: color-mix(in oklab, var(--kind-skill) 14%, transparent);
|
|
325
|
+
border-color: color-mix(in oklab, var(--kind-skill) 45%, var(--line));
|
|
326
|
+
color: var(--ink);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* 详情 */
|
|
169
330
|
.kind { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
|
|
170
|
-
.
|
|
331
|
+
.kind.persona { color: var(--kind-persona); }
|
|
332
|
+
.kind.skill { color: var(--kind-skill); }
|
|
333
|
+
.kind.material { color: var(--kind-material); }
|
|
334
|
+
.sub-note { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
|
|
335
|
+
|
|
336
|
+
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 16px 0 0; font-size: 12.5px; }
|
|
171
337
|
.facts dt { color: var(--muted); }
|
|
172
338
|
.facts dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
|
|
173
339
|
.facts code { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
|
|
174
340
|
|
|
175
|
-
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin:
|
|
176
|
-
.
|
|
177
|
-
.
|
|
341
|
+
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
|
|
342
|
+
.warn { color: var(--danger); font-size: 12.5px; margin: 10px 0 0; }
|
|
343
|
+
.note { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
|
|
178
344
|
|
|
179
|
-
.budget { margin:
|
|
345
|
+
.budget { margin: 16px 0 0; }
|
|
180
346
|
.budget .track { height: 4px; border-radius: 2px; background: var(--line); }
|
|
181
347
|
.budget .fill { height: 100%; min-width: 3px; border-radius: 2px; background: var(--accent); }
|
|
182
|
-
.budget .label { font-size: 12px; color: var(--muted); margin-top:
|
|
348
|
+
.budget .label { font-size: 12px; color: var(--muted); margin-top: 6px; }
|
|
183
349
|
|
|
184
350
|
pre.text {
|
|
185
|
-
margin:
|
|
186
|
-
padding:
|
|
187
|
-
max-height:
|
|
351
|
+
margin: 14px 0 0;
|
|
352
|
+
padding: 12px 14px;
|
|
353
|
+
max-height: 280px;
|
|
188
354
|
overflow: auto;
|
|
189
355
|
font-family: var(--mono);
|
|
190
356
|
font-size: 12px;
|
|
191
|
-
line-height: 1.
|
|
357
|
+
line-height: 1.6;
|
|
192
358
|
background: var(--card);
|
|
193
359
|
border: 1px solid var(--line);
|
|
194
360
|
border-radius: 10px;
|
|
195
361
|
white-space: pre-wrap;
|
|
196
362
|
}
|
|
197
363
|
|
|
198
|
-
|
|
364
|
+
.empty {
|
|
365
|
+
color: var(--muted);
|
|
366
|
+
font-size: 12.5px;
|
|
367
|
+
padding: 16px 2px;
|
|
368
|
+
margin: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/* ---------- 底部:四块可折叠,平时只占一行 ---------- */
|
|
199
372
|
.foot {
|
|
200
373
|
display: grid;
|
|
201
|
-
grid-template-columns: repeat(
|
|
202
|
-
gap:
|
|
203
|
-
margin-top:
|
|
374
|
+
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
375
|
+
gap: 12px 24px;
|
|
376
|
+
margin-top: 30px;
|
|
204
377
|
padding-top: 16px;
|
|
205
378
|
border-top: 1px solid var(--line);
|
|
379
|
+
align-items: start;
|
|
206
380
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
.
|
|
220
|
-
.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
381
|
+
.fold { min-width: 0; }
|
|
382
|
+
.fold > summary {
|
|
383
|
+
cursor: pointer;
|
|
384
|
+
color: var(--muted);
|
|
385
|
+
font-size: 12px;
|
|
386
|
+
padding: 6px 0;
|
|
387
|
+
min-height: 32px;
|
|
388
|
+
list-style: none;
|
|
389
|
+
display: flex;
|
|
390
|
+
align-items: center;
|
|
391
|
+
gap: 6px;
|
|
392
|
+
}
|
|
393
|
+
.fold > summary::-webkit-details-marker { display: none; }
|
|
394
|
+
.fold > summary::before {
|
|
395
|
+
content: "";
|
|
396
|
+
width: 0; height: 0;
|
|
397
|
+
border-left: 4px solid currentColor;
|
|
398
|
+
border-top: 3.5px solid transparent;
|
|
399
|
+
border-bottom: 3.5px solid transparent;
|
|
400
|
+
transition: transform .12s ease;
|
|
401
|
+
}
|
|
402
|
+
.fold[open] > summary { color: var(--ink); }
|
|
403
|
+
.fold[open] > summary::before { transform: rotate(90deg); }
|
|
404
|
+
.fold-count { color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
405
|
+
.fold-body { display: grid; gap: 8px; padding: 6px 0 4px; }
|
|
406
|
+
.fold-body .inline-row { display: flex; gap: 8px; }
|
|
407
|
+
.fold-body .inline-row input { flex: 1; min-width: 0; }
|
|
408
|
+
.fold-body ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 12px; }
|
|
409
|
+
.fold-body li { margin-bottom: 5px; overflow-wrap: anywhere; }
|
|
410
|
+
.fold-body code { font-family: var(--mono); }
|
|
411
|
+
.stack { display: grid; gap: 6px; }
|
|
412
|
+
|
|
413
|
+
.status { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
|
|
224
414
|
.status[data-tone="bad"] { color: var(--danger); }
|
|
225
|
-
.status[data-tone="good"] { color: var(--
|
|
415
|
+
.status[data-tone="good"] { color: var(--ok); }
|
|
226
416
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
417
|
+
/* 右栏不加「入场淡入」:这一栏每次点条目、每次改设置都整块重画,
|
|
418
|
+
动画会跟着重放一遍,读起来像页面在闪。工作台的动效预算留给真正的状态变化(比如状态点变色)。 */
|
|
419
|
+
|
|
420
|
+
@media (max-width: 620px) {
|
|
421
|
+
body { padding: 16px 16px 32px; }
|
|
422
|
+
.top { grid-template-columns: minmax(0, 1fr); }
|
|
423
|
+
.top-controls { justify-content: flex-start; }
|
|
424
|
+
.plan { grid-template-columns: max-content minmax(0, 1fr); }
|
|
425
|
+
.plan .actions { grid-column: 1 / -1; justify-content: flex-start; }
|
|
426
|
+
.plan .why { grid-column: 1 / -1; }
|
|
230
427
|
}
|
package/personas/prompt-forge.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
name: Prompt Forge
|
|
3
3
|
id: prompt-forge
|
|
4
4
|
kind: persona
|
|
5
|
-
description: Danbooru
|
|
6
|
-
whenToUse:
|
|
5
|
+
description: 只写成年角色的 Danbooru 标签编译器:一句话描述进,POSITIVE / NEGATIVE / STYLE_VARIANTS 三块出,不带解释。
|
|
6
|
+
whenToUse: 要一段能直接粘进 SD / ComfyUI / NovelAI 出图的标签串,或想把画面描述压成 danbooru 风格 tag 时
|
|
7
7
|
version: 1.0.0
|
|
8
|
-
source:
|
|
8
|
+
source: 内化自 DSH 会话导出包里的提示词编译器人设,角色范围收窄为成年
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
你现在是 Prompt Forge,一个 Danbooru 风格的图像提示词编译器。你的唯一输出是可直接粘贴进
|
package/preview/catalog.demo.js
CHANGED
|
@@ -21,7 +21,7 @@ window.PURGE_CATALOG = {
|
|
|
21
21
|
digest: 'a1b2c3d4e5f60718',
|
|
22
22
|
importedAt: 0,
|
|
23
23
|
version: 1,
|
|
24
|
-
meta: { format: 'bundled', description: 'Danbooru
|
|
24
|
+
meta: { format: 'bundled', description: '只写成年角色的 Danbooru 标签编译器:一句话描述进,POSITIVE / NEGATIVE / STYLE_VARIANTS 三块出,不带解释。', version: '1.0.0', whenToUse: '要一段能直接粘进 SD / ComfyUI / NovelAI 出图的标签串,或想把画面描述压成 danbooru 风格 tag 时', source: 'DSH 会话导出包里的提示词编译器人设,角色范围收窄为成年' },
|
|
25
25
|
chars: 480,
|
|
26
26
|
injectable: true,
|
|
27
27
|
builtin: true,
|
|
@@ -37,7 +37,7 @@ window.PURGE_CATALOG = {
|
|
|
37
37
|
digest: 'b7e1c09a34d5f218',
|
|
38
38
|
importedAt: 0,
|
|
39
39
|
version: 1,
|
|
40
|
-
meta: { format: 'bundled', description: '
|
|
40
|
+
meta: { format: 'bundled', description: '把「一个单位名」铺成「带端口、指纹、标题的资产全景」,覆盖被动公开源、FOFA 测绘与 ProjectDiscovery 流水线。', version: '1.0.0', whenToUse: '拿到域名/单位名要铺资产面;需要确认某 IP 的开放端口与服务版本', source: 'dsh-purge 的 passive-recon、active-scan、web-fingerprint、asset-correlation、recon-pipeline、fofa-recon 六份技能' },
|
|
41
41
|
chars: 2259,
|
|
42
42
|
injectable: true,
|
|
43
43
|
builtin: true,
|
|
@@ -53,7 +53,7 @@ window.PURGE_CATALOG = {
|
|
|
53
53
|
digest: 'c2d3e4f506172839',
|
|
54
54
|
importedAt: 0,
|
|
55
55
|
version: 1,
|
|
56
|
-
meta: { format: 'bundled', description: '
|
|
56
|
+
meta: { format: 'bundled', description: '从「站点活着」走到「找到一个能进的门」:目录与文件爆破找后台/备份/源码/配置泄露,浏览器自动化抓 SPA 与接口清单。', version: '1.0.0', whenToUse: '已确认 Web 存活但指纹没有直接 Nday 线索;页面是 SPA、curl 抓不到内容', source: 'dsh-purge 的 dir-bruteforce、browser-automation、kimi-webbridge 三份技能' },
|
|
57
57
|
chars: 1887,
|
|
58
58
|
injectable: true,
|
|
59
59
|
builtin: true,
|
|
@@ -69,7 +69,7 @@ window.PURGE_CATALOG = {
|
|
|
69
69
|
digest: 'd4e5f60718293a4b',
|
|
70
70
|
importedAt: 0,
|
|
71
71
|
version: 1,
|
|
72
|
-
meta: { format: 'bundled', description: 'nuclei
|
|
72
|
+
meta: { format: 'bundled', description: '已知漏洞这一侧的打击手:nuclei 模板化检测,按指纹选模板、按严重度限流、按回显判真伪。', version: '1.0.0', whenToUse: '拿到存活资产清单要做 Nday/1day 批量检测', source: 'dsh-purge 的 nuclei-scan 技能' },
|
|
73
73
|
chars: 1623,
|
|
74
74
|
injectable: true,
|
|
75
75
|
builtin: true,
|
|
@@ -85,7 +85,7 @@ window.PURGE_CATALOG = {
|
|
|
85
85
|
digest: 'e5f60718293a4b5c',
|
|
86
86
|
importedAt: 0,
|
|
87
87
|
version: 1,
|
|
88
|
-
meta: { format: 'bundled', description: '
|
|
88
|
+
meta: { format: 'bundled', description: '成人向 NSFW 提示词的编译专家:出图交付参数头 + 正向标签栈 + 全量负向词 + A/B/C 变体,出文交付 system + 场景卡 + 节拍表。角色一律成年。', version: '1.0.0', whenToUse: '要写 NSFW 出图提示词、色情文本的场景卡与节拍表', source: 'dsh-purge 的 nsfw-prompt-gen 技能(角色范围收窄为成年)' },
|
|
89
89
|
chars: 3151,
|
|
90
90
|
injectable: true,
|
|
91
91
|
builtin: true,
|
package/preview/host.html
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
<style>
|
|
6
6
|
:root { color-scheme: dark; }
|
|
7
7
|
html, body { margin: 0; height: 100%; background: #0f1115; }
|
|
8
|
+
/* 预览壳也跟着主题走:只看插件页也会点浅色,壳一直黑着会误判对比度。 */
|
|
9
|
+
html[data-theme="light"], html[data-theme="light"] body { background: #f4f4f2; }
|
|
10
|
+
html[data-theme="light"] .chrome { background: #ffffff; color: #3a3f4b; border-bottom-color: #e3e3e6; }
|
|
11
|
+
html[data-theme="light"] .chrome b { color: #16181d; }
|
|
12
|
+
html[data-theme="light"] .chrome span { color: #6b7280; }
|
|
13
|
+
html[data-theme="light"] .chrome .right { color: #8a8f9a; }
|
|
14
|
+
html[data-theme="light"] iframe { background: #fbfbf9; }
|
|
8
15
|
body { display: grid; grid-template-rows: 38px 1fr; font: 12.5px/1.4 -apple-system, "Segoe UI", "Noto Sans SC", system-ui, sans-serif; }
|
|
9
16
|
.chrome {
|
|
10
17
|
display: flex; align-items: center; gap: 10px; padding: 0 14px;
|
|
@@ -14,7 +21,10 @@
|
|
|
14
21
|
.chrome span { color: #7f8696; }
|
|
15
22
|
.chrome .dot { width: 8px; height: 8px; border-radius: 50%; background: #7c8cff; }
|
|
16
23
|
.chrome .right { margin-left: auto; color: #6d7484; }
|
|
17
|
-
iframe { width: 100%; height: 100%; border: 0; background: #15171c; }
|
|
24
|
+
iframe { width: 100%; height: 100%; border: 0; background: #15171c; display: block; }
|
|
25
|
+
/* 预览壳自己不许撑宽:它一横向溢出,iframe 会跟着变宽,页面右边就被裁掉了。 */
|
|
26
|
+
.chrome { min-width: 0; overflow: hidden; }
|
|
27
|
+
.chrome .right { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
18
28
|
</style>
|
|
19
29
|
<div class="chrome">
|
|
20
30
|
<i class="dot"></i><b>magpie</b><span>· 扩展 → 插件 → 破甲 · Purge</span>
|
|
@@ -23,16 +33,19 @@
|
|
|
23
33
|
<iframe id="frame" src="/page/index.html" title="Purge in Magpie 插件页"></iframe>
|
|
24
34
|
<script>
|
|
25
35
|
const theme = new URLSearchParams(location.search).get('theme') || 'dark'
|
|
36
|
+
document.documentElement.dataset.theme = theme
|
|
26
37
|
const frame = document.getElementById('frame')
|
|
27
38
|
frame.src = `/page/index.html?theme=${encodeURIComponent(theme)}`
|
|
28
39
|
document.getElementById('mode').textContent = `预览:mock 宿主 · ${theme === 'light' ? '浅色' : '深色'}`
|
|
29
|
-
//
|
|
30
|
-
|
|
40
|
+
// 默认不选任何条目:右栏默认就是「注入组装」,那是最该看的一屏。
|
|
41
|
+
// ?row=0 起指定第几条,用来看检查器(真机里由人点)。
|
|
42
|
+
const rowParam = new URLSearchParams(location.search).get('row')
|
|
31
43
|
frame.addEventListener('load', () => {
|
|
44
|
+
if (rowParam === null) return
|
|
32
45
|
setTimeout(() => {
|
|
33
46
|
try {
|
|
34
47
|
const rows = frame.contentDocument?.querySelectorAll('.row')
|
|
35
|
-
;(rows?.[
|
|
48
|
+
;(rows?.[Number(rowParam)] || rows?.[0])?.click()
|
|
36
49
|
} catch { /* 跨域就当没有 */ }
|
|
37
50
|
}, 400)
|
|
38
51
|
})
|