dsh-procedures 0.0.0-stage → 1.0.1
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/CHANGELOG.md +51 -0
- package/LICENSE +21 -0
- package/PRO.md +47 -0
- package/README.en.md +106 -0
- package/README.md +369 -2
- package/bench/search.mjs +74 -0
- package/bin/hint.mjs +115 -0
- package/bin/procedures.mjs +295 -0
- package/cordis.patch.yml +6 -0
- package/icon.svg +10 -0
- package/index.js +374 -0
- package/lib/cards.mjs +619 -0
- package/lib/hint.mjs +17 -0
- package/lib/hook-text.mjs +26 -0
- package/lib/llm.mjs +243 -0
- package/lib/stats.mjs +103 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +55 -4
- package/portable/AGENTS-snippet.md +17 -0
- package/portable/README.md +121 -0
- package/portable/setup.mjs +115 -0
- package/portable/templates/INDEX.md +9 -0
- package/portable/templates/_inbox.md +5 -0
- package/portable/templates/_/346/250/241/346/235/277-spell.md +38 -0
- package/portable/templates/_/346/250/241/346/235/277.md +43 -0
package/bin/hint.mjs
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Harness-agnostic hint adapter. A hook can call this with the failed tool name
|
|
4
|
+
* and error text; stdout is the one-line hint (empty when nothing matches).
|
|
5
|
+
*/
|
|
6
|
+
import { readFileSync } from 'node:fs';
|
|
7
|
+
import { resolve } from 'node:path';
|
|
8
|
+
|
|
9
|
+
import { appendInbox, searchCards } from '../lib/cards.mjs';
|
|
10
|
+
import { buildHint } from '../lib/hint.mjs';
|
|
11
|
+
|
|
12
|
+
const USAGE = `hint — print the one-line procedures hint for a tool error
|
|
13
|
+
|
|
14
|
+
Usage:
|
|
15
|
+
hint --error "..." [--tool pwsh] [--dir procedures] [--global-dir DIR] [--global-penalty 1] [--inbox] [--json]
|
|
16
|
+
echo '{"tool":"pwsh","error":"..."}' | hint --stdin [--inbox] [--json]
|
|
17
|
+
|
|
18
|
+
Exit code is 0 even when nothing matches; hooks should not break the turn.`;
|
|
19
|
+
|
|
20
|
+
function parseArgs(argv) {
|
|
21
|
+
const positional = [];
|
|
22
|
+
const flags = {};
|
|
23
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
24
|
+
const arg = argv[index];
|
|
25
|
+
if (!arg.startsWith('--')) {
|
|
26
|
+
positional.push(arg);
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
const body = arg.slice(2);
|
|
30
|
+
const equals = body.indexOf('=');
|
|
31
|
+
if (equals >= 0) {
|
|
32
|
+
flags[body.slice(0, equals)] = body.slice(equals + 1);
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
if (index + 1 < argv.length && !argv[index + 1].startsWith('--')) {
|
|
36
|
+
flags[body] = argv[index + 1];
|
|
37
|
+
index += 1;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
flags[body] = true;
|
|
41
|
+
}
|
|
42
|
+
return { positional, flags };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function printJson(value) {
|
|
46
|
+
process.stdout.write(`${JSON.stringify(value, null, 2)}\n`);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function fail(message) {
|
|
50
|
+
process.stderr.write(`${message}\n`);
|
|
51
|
+
process.exitCode = 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const { flags } = parseArgs(process.argv.slice(2));
|
|
55
|
+
if (flags.help) {
|
|
56
|
+
process.stdout.write(`${USAGE}\n`);
|
|
57
|
+
process.exit(0);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
let payload = {};
|
|
61
|
+
if (flags.stdin) {
|
|
62
|
+
try {
|
|
63
|
+
payload = JSON.parse(readFileSync(0, 'utf8'));
|
|
64
|
+
} catch (error) {
|
|
65
|
+
fail(`cannot parse stdin JSON: ${String(error)}`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const rawTool = flags.tool ?? payload.tool ?? payload.tool_name ?? 'tool';
|
|
70
|
+
const tool = String(rawTool).trim() || 'tool';
|
|
71
|
+
const rawError = flags.error ?? payload.error ?? payload.error_message ?? payload.message ?? '';
|
|
72
|
+
const error = typeof rawError === 'string' ? rawError : JSON.stringify(rawError);
|
|
73
|
+
|
|
74
|
+
if (!error.trim()) {
|
|
75
|
+
fail('hint needs --error or --stdin JSON {tool,error}');
|
|
76
|
+
} else {
|
|
77
|
+
const dir = resolve(process.cwd(), typeof flags.dir === 'string' ? flags.dir : 'procedures');
|
|
78
|
+
const globalDir = typeof flags['global-dir'] === 'string'
|
|
79
|
+
? resolve(process.cwd(), flags['global-dir'])
|
|
80
|
+
: undefined;
|
|
81
|
+
const globalPenalty = Number.isFinite(Number(flags['global-penalty']))
|
|
82
|
+
? Number(flags['global-penalty'])
|
|
83
|
+
: 1;
|
|
84
|
+
const max = Number.parseInt(String(flags.max ?? '3'), 10) || 3;
|
|
85
|
+
const hits = searchCards(dir, `${tool}\n${error}`, {
|
|
86
|
+
max,
|
|
87
|
+
strict: true,
|
|
88
|
+
globalDir,
|
|
89
|
+
globalPenalty,
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
if (hits.length > 0) {
|
|
93
|
+
const hit = hits[0];
|
|
94
|
+
const hint = buildHint(hit, process.cwd());
|
|
95
|
+
if (flags.json) {
|
|
96
|
+
printJson({
|
|
97
|
+
hit: {
|
|
98
|
+
id: hit.id,
|
|
99
|
+
file: hit.scope === 'global' ? `global:${hit.file}` : hit.path,
|
|
100
|
+
scope: hit.scope,
|
|
101
|
+
type: hit.type,
|
|
102
|
+
language: hit.language || null,
|
|
103
|
+
},
|
|
104
|
+
hint,
|
|
105
|
+
});
|
|
106
|
+
} else {
|
|
107
|
+
process.stdout.write(`${hint}\n`);
|
|
108
|
+
}
|
|
109
|
+
} else if (flags.inbox) {
|
|
110
|
+
const inbox = appendInbox(dir, { tool, message: error });
|
|
111
|
+
if (flags.json) printJson({ hit: null, inbox });
|
|
112
|
+
} else if (flags.json) {
|
|
113
|
+
printJson({ hit: null });
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { homedir } from 'node:os';
|
|
4
|
+
import { join, resolve } from 'node:path';
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
appendInbox,
|
|
8
|
+
auditCards,
|
|
9
|
+
loadCards,
|
|
10
|
+
searchCards,
|
|
11
|
+
synthesizeDrafts,
|
|
12
|
+
} from '../lib/cards.mjs';
|
|
13
|
+
import { synthesizeWithLlm } from '../lib/llm.mjs';
|
|
14
|
+
import { hitsOf, outcomesOf, readStats } from '../lib/stats.mjs';
|
|
15
|
+
|
|
16
|
+
const USAGE = `procedures — file-based experience cards
|
|
17
|
+
|
|
18
|
+
Usage:
|
|
19
|
+
procedures search "<task words or error text>" [--dir procedures] [--global-dir DIR] [--global-penalty 1] [--max 3] [--include-expired] [--json]
|
|
20
|
+
procedures audit [--dir procedures] [--global-dir DIR] [--global-stats FILE] [--stale-days 90] [--json]
|
|
21
|
+
procedures list [--dir procedures] [--json]
|
|
22
|
+
procedures inbox add "<one line>" [--tool pwsh] [--dir procedures] [--json]
|
|
23
|
+
procedures synthesize [--dir procedures] [--out procedures/_drafts] [--max 20] [--json]
|
|
24
|
+
procedures synthesize --llm [--dry-run] [--context chat.md] [--max 5] [--base-url URL] [--model NAME] [--api-key KEY] [--json]
|
|
25
|
+
|
|
26
|
+
--llm uses an OpenAI-compatible /chat/completions endpoint (DeepSeek by default).
|
|
27
|
+
Key is read from DEEPSEEK_API_KEY or DSH_PROCEDURES_API_KEY; --dry-run needs no key.
|
|
28
|
+
|
|
29
|
+
Examples:
|
|
30
|
+
procedures search "app.asar ENOENT"
|
|
31
|
+
procedures audit
|
|
32
|
+
procedures inbox add "web_fetch 只返回 SPA 外壳" --tool web_fetch
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
function parseArgs(argv) {
|
|
36
|
+
const positional = [];
|
|
37
|
+
const flags = {};
|
|
38
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
39
|
+
const arg = argv[index];
|
|
40
|
+
if (!arg.startsWith('--')) {
|
|
41
|
+
positional.push(arg);
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
const body = arg.slice(2);
|
|
45
|
+
const equals = body.indexOf('=');
|
|
46
|
+
if (equals >= 0) {
|
|
47
|
+
flags[body.slice(0, equals)] = body.slice(equals + 1);
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (index + 1 < argv.length && !argv[index + 1].startsWith('--')) {
|
|
51
|
+
flags[body] = argv[index + 1];
|
|
52
|
+
index += 1;
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
flags[body] = true;
|
|
56
|
+
}
|
|
57
|
+
return { positional, flags };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function dataDir(flags) {
|
|
61
|
+
return resolve(process.cwd(), typeof flags.dir === 'string' ? flags.dir : 'procedures');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function relativePath(path) {
|
|
65
|
+
return path.startsWith(process.cwd())
|
|
66
|
+
? path.slice(process.cwd().length + 1).replaceAll('\\', '/')
|
|
67
|
+
: path;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function printJson(value) {
|
|
71
|
+
process.stdout.write(`${JSON.stringify(value, null, 2)}\n`);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function fail(message, code = 2) {
|
|
75
|
+
process.stderr.write(`${message}\n`);
|
|
76
|
+
process.exitCode = code;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function displayPath(card) {
|
|
80
|
+
if (card.scope === 'global') return `global:${card.file}`;
|
|
81
|
+
return relativePath(card.path);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function commandSearch(positional, flags) {
|
|
85
|
+
const query = positional.slice(1).join(' ').trim();
|
|
86
|
+
if (!query) return fail('search needs a query, e.g. procedures search "app.asar"');
|
|
87
|
+
const globalDir = typeof flags['global-dir'] === 'string'
|
|
88
|
+
? resolve(process.cwd(), flags['global-dir'])
|
|
89
|
+
: undefined;
|
|
90
|
+
const hits = searchCards(dataDir(flags), query, {
|
|
91
|
+
max: Number.parseInt(String(flags.max ?? '3'), 10) || 3,
|
|
92
|
+
includeExpired: flags['include-expired'] === true,
|
|
93
|
+
globalDir,
|
|
94
|
+
globalPenalty: Number.isFinite(Number(flags['global-penalty']))
|
|
95
|
+
? Number(flags['global-penalty'])
|
|
96
|
+
: 0,
|
|
97
|
+
});
|
|
98
|
+
if (flags.json) {
|
|
99
|
+
printJson({
|
|
100
|
+
query,
|
|
101
|
+
hits: hits.map((card) => ({
|
|
102
|
+
id: card.id,
|
|
103
|
+
title: card.title,
|
|
104
|
+
file: displayPath(card),
|
|
105
|
+
scope: card.scope,
|
|
106
|
+
rarity: card.rarity,
|
|
107
|
+
score: card.score,
|
|
108
|
+
expired: card.expired,
|
|
109
|
+
validUntil: card.validUntil,
|
|
110
|
+
matched: card.matched,
|
|
111
|
+
})),
|
|
112
|
+
});
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
if (hits.length === 0) {
|
|
116
|
+
process.stdout.write('no card matched\n');
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
for (const card of hits) {
|
|
120
|
+
const reasons = card.matched.map((match) => `${match.on}:${match.value}`).join(', ');
|
|
121
|
+
const tags = [
|
|
122
|
+
card.scope === 'global' ? 'global' : '',
|
|
123
|
+
card.rarity === 'rare' ? 'rare' : '',
|
|
124
|
+
card.expired ? 'expired' : '',
|
|
125
|
+
].filter(Boolean).join(',');
|
|
126
|
+
process.stdout.write(`${card.score}\t${displayPath(card)}\n`);
|
|
127
|
+
process.stdout.write(`\t${card.title}\n`);
|
|
128
|
+
process.stdout.write(`\t${reasons}${tags ? ` [${tags}]` : ''}\n`);
|
|
129
|
+
}
|
|
130
|
+
return undefined;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function commandAudit(flags) {
|
|
134
|
+
const globalDir = typeof flags['global-dir'] === 'string'
|
|
135
|
+
? resolve(process.cwd(), flags['global-dir'])
|
|
136
|
+
: undefined;
|
|
137
|
+
const globalStatsFile = globalDir
|
|
138
|
+
? (typeof flags['global-stats'] === 'string'
|
|
139
|
+
? resolve(process.cwd(), flags['global-stats'])
|
|
140
|
+
: join(homedir(), '.dsh', 'procedures', 'global-stats.json'))
|
|
141
|
+
: undefined;
|
|
142
|
+
const staleDays = Number.parseInt(String(flags['stale-days'] ?? '90'), 10) || 90;
|
|
143
|
+
const result = auditCards(dataDir(flags), { globalDir, globalStatsFile, staleDays });
|
|
144
|
+
if (flags.json) {
|
|
145
|
+
printJson(result);
|
|
146
|
+
} else {
|
|
147
|
+
process.stdout.write(
|
|
148
|
+
`cards: ${result.cards} (workspace ${result.scopes?.workspace ?? 0}, global ${result.scopes?.global ?? 0})`
|
|
149
|
+
+ ` stats: ${result.stats?.tracked ?? 0} globalStats: ${result.stats?.globalTracked ?? 0}`
|
|
150
|
+
+ ` issues: ${result.issues.length}\n`,
|
|
151
|
+
);
|
|
152
|
+
for (const issue of result.issues) {
|
|
153
|
+
process.stdout.write(
|
|
154
|
+
`${issue.severity.toUpperCase()}\t[${issue.scope ?? 'workspace'}]\t${issue.file}\t${issue.code}\t${issue.message}\n`,
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if (!result.ok) process.exitCode = 1;
|
|
159
|
+
return undefined;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function commandList(flags) {
|
|
163
|
+
const dir = dataDir(flags);
|
|
164
|
+
const cards = loadCards(dir, { refresh: true });
|
|
165
|
+
const stats = readStats(dir);
|
|
166
|
+
if (flags.json) {
|
|
167
|
+
printJson(cards.map((card) => {
|
|
168
|
+
const outcomes = outcomesOf(stats, card);
|
|
169
|
+
return {
|
|
170
|
+
id: card.id,
|
|
171
|
+
title: card.title,
|
|
172
|
+
file: relativePath(card.path),
|
|
173
|
+
type: card.type,
|
|
174
|
+
rarity: card.rarity,
|
|
175
|
+
hits: hitsOf(stats, card),
|
|
176
|
+
repeated: outcomes.repeated,
|
|
177
|
+
noRepeat: outcomes.noRepeat,
|
|
178
|
+
lastOutcome: outcomes.lastOutcome,
|
|
179
|
+
anchors: card.anchors,
|
|
180
|
+
triggers: card.triggers,
|
|
181
|
+
validUntil: card.validUntil,
|
|
182
|
+
size: card.size,
|
|
183
|
+
};
|
|
184
|
+
}));
|
|
185
|
+
return undefined;
|
|
186
|
+
}
|
|
187
|
+
for (const card of cards) {
|
|
188
|
+
const outcomes = outcomesOf(stats, card);
|
|
189
|
+
process.stdout.write(
|
|
190
|
+
`${card.id}\t${hitsOf(stats, card)} hits\t${outcomes.repeated} rep\t${outcomes.noRepeat} clear`
|
|
191
|
+
+ `\t${card.rarity}\t${card.size} B\t${relativePath(card.path)}\n`,
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
process.stdout.write(`${cards.length} card(s)\n`);
|
|
195
|
+
return undefined;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function commandInbox(positional, flags) {
|
|
199
|
+
if (positional[1] !== 'add') {
|
|
200
|
+
return fail('inbox needs the "add" subcommand: procedures inbox add "<line>"');
|
|
201
|
+
}
|
|
202
|
+
const message = positional.slice(2).join(' ').trim();
|
|
203
|
+
if (!message) return fail('inbox add needs a message');
|
|
204
|
+
const result = appendInbox(dataDir(flags), {
|
|
205
|
+
tool: typeof flags.tool === 'string' ? flags.tool : 'manual',
|
|
206
|
+
message,
|
|
207
|
+
});
|
|
208
|
+
if (flags.json) {
|
|
209
|
+
printJson(result);
|
|
210
|
+
} else if (result.added) {
|
|
211
|
+
process.stdout.write(`added: ${result.line}\n`);
|
|
212
|
+
} else {
|
|
213
|
+
process.stdout.write(`skipped: ${result.reason}\n`);
|
|
214
|
+
}
|
|
215
|
+
return undefined;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
async function commandSynthesize(flags) {
|
|
219
|
+
const dir = dataDir(flags);
|
|
220
|
+
const outDir = typeof flags.out === 'string' ? resolve(process.cwd(), flags.out) : undefined;
|
|
221
|
+
|
|
222
|
+
if (flags.llm) {
|
|
223
|
+
let context = '';
|
|
224
|
+
if (typeof flags.context === 'string') {
|
|
225
|
+
try {
|
|
226
|
+
context = readFileSync(resolve(process.cwd(), flags.context), 'utf8');
|
|
227
|
+
} catch (error) {
|
|
228
|
+
return fail(`cannot read context: ${String(error)}`);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
let result;
|
|
232
|
+
try {
|
|
233
|
+
result = await synthesizeWithLlm({
|
|
234
|
+
dir,
|
|
235
|
+
outDir,
|
|
236
|
+
max: Number.parseInt(String(flags.max ?? '5'), 10) || 5,
|
|
237
|
+
context,
|
|
238
|
+
dryRun: flags['dry-run'] === true,
|
|
239
|
+
baseUrl: typeof flags['base-url'] === 'string' ? flags['base-url'] : undefined,
|
|
240
|
+
model: typeof flags.model === 'string' ? flags.model : undefined,
|
|
241
|
+
apiKey: typeof flags['api-key'] === 'string' ? flags['api-key'] : undefined,
|
|
242
|
+
});
|
|
243
|
+
} catch (error) {
|
|
244
|
+
return fail(String(error));
|
|
245
|
+
}
|
|
246
|
+
if (flags.json) {
|
|
247
|
+
printJson(result);
|
|
248
|
+
return undefined;
|
|
249
|
+
}
|
|
250
|
+
if (result.dryRun) {
|
|
251
|
+
process.stdout.write(`${result.prompt}\n`);
|
|
252
|
+
process.stdout.write(`\n[dry-run] entries: ${result.entries}, model: ${result.config.model}, hasKey: ${result.config.hasKey}\n`);
|
|
253
|
+
return undefined;
|
|
254
|
+
}
|
|
255
|
+
for (const file of result.created) process.stdout.write(`draft: ${relativePath(file)}\n`);
|
|
256
|
+
for (const item of result.rejected) {
|
|
257
|
+
process.stdout.write(`rejected: ${item.reason}${item.file ? ` (${relativePath(item.file)})` : ''}\n`);
|
|
258
|
+
}
|
|
259
|
+
if (result.created.length === 0) process.stdout.write('no valid draft\n');
|
|
260
|
+
process.stdout.write(`out: ${relativePath(result.outDir)}\n`);
|
|
261
|
+
return undefined;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const result = synthesizeDrafts(dir, {
|
|
265
|
+
outDir,
|
|
266
|
+
max: Number.parseInt(String(flags.max ?? '20'), 10) || 20,
|
|
267
|
+
});
|
|
268
|
+
if (flags.json) {
|
|
269
|
+
printJson(result);
|
|
270
|
+
return undefined;
|
|
271
|
+
}
|
|
272
|
+
for (const file of result.created) process.stdout.write(`draft: ${relativePath(file)}\n`);
|
|
273
|
+
if (result.created.length === 0) process.stdout.write('no new draft\n');
|
|
274
|
+
process.stdout.write(`out: ${relativePath(result.outDir)}\n`);
|
|
275
|
+
return undefined;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const { positional, flags } = parseArgs(process.argv.slice(2));
|
|
279
|
+
const command = positional[0];
|
|
280
|
+
|
|
281
|
+
if (!command || flags.help || command === 'help') {
|
|
282
|
+
process.stdout.write(USAGE);
|
|
283
|
+
} else if (command === 'search') {
|
|
284
|
+
commandSearch(positional, flags);
|
|
285
|
+
} else if (command === 'audit') {
|
|
286
|
+
commandAudit(flags);
|
|
287
|
+
} else if (command === 'list') {
|
|
288
|
+
commandList(flags);
|
|
289
|
+
} else if (command === 'inbox') {
|
|
290
|
+
commandInbox(positional, flags);
|
|
291
|
+
} else if (command === 'synthesize') {
|
|
292
|
+
await commandSynthesize(flags);
|
|
293
|
+
} else {
|
|
294
|
+
fail(`unknown command: ${command}\n\n${USAGE}`);
|
|
295
|
+
}
|
package/cordis.patch.yml
ADDED
package/icon.svg
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Procedures">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#1D4ED8"/>
|
|
3
|
+
<rect x="13" y="19" width="30" height="34" rx="4" fill="#93C5FD" transform="rotate(-8 13 19)"/>
|
|
4
|
+
<rect x="20" y="13" width="30" height="36" rx="4" fill="#FFFFFF"/>
|
|
5
|
+
<rect x="26" y="21" width="18" height="3" rx="1.5" fill="#1E3A8A"/>
|
|
6
|
+
<rect x="26" y="28" width="14" height="3" rx="1.5" fill="#60A5FA"/>
|
|
7
|
+
<rect x="26" y="35" width="16" height="3" rx="1.5" fill="#60A5FA"/>
|
|
8
|
+
<circle cx="46" cy="46" r="9" fill="#F59E0B"/>
|
|
9
|
+
<path d="M42 46l3 3 5-6" fill="none" stroke="#FFFFFF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
+
</svg>
|