@kud/ai-conventional-commit-cli 3.2.8 → 3.2.9

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.
@@ -1,562 +0,0 @@
1
- // src/prompt.ts
2
- var matchesPattern = (filePath, pattern) => {
3
- const regexPattern = pattern.replace(/\*\*/g, "\xA7DOUBLESTAR\xA7").replace(/\*/g, "[^/]*").replace(/§DOUBLESTAR§/g, ".*").replace(/\./g, "\\.").replace(/\?/g, ".");
4
- const regex = new RegExp(`^${regexPattern}$`);
5
- return regex.test(filePath);
6
- };
7
- var summarizeDiffForPrompt = (files, privacy, maxFileLines, skipFilePatterns) => {
8
- const getTotalLines = (f) => {
9
- return f.hunks.reduce((sum, h) => sum + h.lines.length, 0);
10
- };
11
- const shouldSkipFile = (filePath) => {
12
- return skipFilePatterns.some((pattern) => matchesPattern(filePath, pattern));
13
- };
14
- if (privacy === "high") {
15
- return files.map((f) => {
16
- const totalLines = getTotalLines(f);
17
- const patternSkipped = shouldSkipFile(f.file);
18
- const sizeSkipped = totalLines > maxFileLines;
19
- const skipped = patternSkipped || sizeSkipped;
20
- const reason = patternSkipped ? "generated/lock file" : "large file";
21
- return `file: ${f.file} (+${f.additions} -${f.deletions}) hunks:${f.hunks.length}${skipped ? ` [${reason}, content skipped]` : ""}`;
22
- }).join("\n");
23
- }
24
- if (privacy === "medium") {
25
- return files.map((f) => {
26
- const totalLines = getTotalLines(f);
27
- const patternSkipped = shouldSkipFile(f.file);
28
- const sizeSkipped = totalLines > maxFileLines;
29
- if (patternSkipped || sizeSkipped) {
30
- const reason = patternSkipped ? "generated/lock file" : "large file";
31
- return `file: ${f.file} (+${f.additions} -${f.deletions}) hunks:${f.hunks.length} [${reason}, content skipped]`;
32
- }
33
- return `file: ${f.file}
34
- ` + f.hunks.map(
35
- (h) => ` hunk ${h.hash} context:${h.functionContext || ""} +${h.added} -${h.removed}`
36
- ).join("\n");
37
- }).join("\n");
38
- }
39
- return files.map((f) => {
40
- const totalLines = getTotalLines(f);
41
- const patternSkipped = shouldSkipFile(f.file);
42
- const sizeSkipped = totalLines > maxFileLines;
43
- if (patternSkipped || sizeSkipped) {
44
- const reason = patternSkipped ? "generated/lock file" : "large file";
45
- return `file: ${f.file} (+${f.additions} -${f.deletions}) hunks:${f.hunks.length} [${reason}, content skipped]`;
46
- }
47
- return `file: ${f.file}
48
- ` + f.hunks.map(
49
- (h) => `${h.header}
50
- ${h.lines.slice(0, 40).join("\n")}${h.lines.length > 40 ? "\n[truncated]" : ""}`
51
- ).join("\n");
52
- }).join("\n");
53
- };
54
- var buildGenerationMessages = (opts) => {
55
- const { files, style, config, mode, desiredCommits } = opts;
56
- const diff = summarizeDiffForPrompt(
57
- files,
58
- config.privacy,
59
- config.maxFileLines,
60
- config.skipFilePatterns
61
- );
62
- const TYPE_MAP = {
63
- feat: "A new feature or capability added for the user",
64
- fix: "A bug fix resolving incorrect behavior",
65
- chore: "Internal change with no user-facing impact",
66
- docs: "Documentation-only changes",
67
- refactor: "Code change that neither fixes a bug nor adds a feature",
68
- test: "Adding or improving tests only",
69
- ci: "Changes to CI configuration or scripts",
70
- perf: "Performance improvement",
71
- style: "Formatting or stylistic change (no logic)",
72
- build: "Build system or dependency changes",
73
- revert: "Revert a previous commit",
74
- merge: "Merge branches (rare; only if truly a merge commit)",
75
- security: "Security-related change or hardening",
76
- release: "Version bump or release meta change"
77
- };
78
- const specLines = [];
79
- specLines.push(
80
- "Purpose: Generate high-quality Conventional Commit messages for the provided git diff."
81
- );
82
- specLines.push("Locale: en");
83
- specLines.push(
84
- 'Output JSON Schema: { "commits": [ { "title": string, "body": string, "score": 0-100, "reasons": string[], "files"?: string[] } ], "meta": { "splitRecommended": boolean } }'
85
- );
86
- specLines.push("Primary Output Field: commits[ ].title");
87
- specLines.push("Title Format (REQUIRED): <type>(<scope>): <subject>");
88
- specLines.push(
89
- "Title Length Guidance: Aim for <=50 chars ideal; absolute max 72 (do not exceed)."
90
- );
91
- specLines.push("Types (JSON mapping follows on next line)");
92
- specLines.push("TypeMap: " + JSON.stringify(TYPE_MAP));
93
- specLines.push(
94
- "Scope Rules: ALWAYS include a concise lowercase kebab-case scope (derive from dominant directory, package, or feature); never omit."
95
- );
96
- specLines.push(
97
- "Subject Rules: imperative mood, present tense, no leading capital unless proper noun, no trailing period."
98
- );
99
- specLines.push(
100
- "Length Rule: Keep titles concise; prefer 50 or fewer chars; MUST be <=72 including type/scope."
101
- );
102
- specLines.push(
103
- "Emoji Rule: " + (config.style === "gitmoji" || config.style === "gitmoji-pure" ? "OPTIONAL single leading gitmoji BEFORE the type only if confidently adds clarity; do not invent or stack; omit if unsure." : "Disallow all emojis and gitmoji codes; output must start directly with the type.")
104
- );
105
- specLines.push(
106
- "Forbidden: breaking changes notation, exclamation mark after type unless truly semver-major (avoid unless diff clearly indicates)."
107
- );
108
- specLines.push("Fallback Type: use chore when no other type clearly fits.");
109
- specLines.push("Consistency: prefer existing top prefixes: " + style.topPrefixes.join(", "));
110
- specLines.push("Provide score (0-100) measuring clarity & specificity (higher is better).");
111
- specLines.push(
112
- "Provide reasons array citing concrete diff elements: filenames, functions, tests, metrics."
113
- );
114
- specLines.push(
115
- 'When mode is split, WHERE POSSIBLE add a "files" array per commit listing the most relevant changed file paths (1-6, minimize overlap across commits).'
116
- );
117
- specLines.push("Return ONLY the JSON object. No surrounding text or markdown.");
118
- specLines.push("Do not add fields not listed in schema.");
119
- specLines.push("Never fabricate content not present or implied by the diff.");
120
- specLines.push(
121
- "If mode is split and multiple logical changes exist, set meta.splitRecommended=true."
122
- );
123
- return [
124
- {
125
- role: "system",
126
- content: specLines.join("\n")
127
- },
128
- {
129
- role: "user",
130
- content: `Mode: ${mode}
131
- RequestedCommitCount: ${desiredCommits || (mode === "split" ? "2-6" : 1)}
132
- StyleFingerprint: ${JSON.stringify(style)}
133
- Diff:
134
- ${diff}
135
- Generate commit candidates now.`
136
- }
137
- ];
138
- };
139
- var buildRefineMessages = (opts) => {
140
- const { originalPlan, index, instructions, config } = opts;
141
- const target = originalPlan.commits[index];
142
- const spec = [];
143
- spec.push("Purpose: Refine a single Conventional Commit message while preserving intent.");
144
- spec.push("Locale: en");
145
- spec.push("Input: one existing commit JSON object.");
146
- spec.push(
147
- 'Output JSON Schema: { "commits": [ { "title": string, "body": string, "score": 0-100, "reasons": string[] } ] }'
148
- );
149
- spec.push("Title Format (REQUIRED): <type>(<scope>): <subject> (<=72 chars)");
150
- spec.push("Subject: imperative, present tense, no trailing period.");
151
- spec.push(
152
- "Emoji Rule: " + (config.style === "gitmoji" || config.style === "gitmoji-pure" ? "OPTIONAL single leading gitmoji BEFORE type if it adds clarity; omit if unsure." : "Disallow all emojis; start directly with the type.")
153
- );
154
- spec.push(
155
- "Preserve semantic meaning; ensure a scope is present (infer one if missing); only improve clarity, brevity, conformity."
156
- );
157
- spec.push("If instructions request scope or emoji, incorporate only if justified by content.");
158
- spec.push("Return ONLY JSON (commits array length=1).");
159
- return [
160
- { role: "system", content: spec.join("\n") },
161
- {
162
- role: "user",
163
- content: `Current commit object:
164
- ${JSON.stringify(target, null, 2)}
165
- Instructions:
166
- ${instructions.join("\n") || "None"}
167
- Refine now.`
168
- }
169
- ];
170
- };
171
-
172
- // src/model/provider.ts
173
- import { z } from "zod";
174
- import { createOpencode } from "@opencode-ai/sdk";
175
- var OpenCodeProvider = class {
176
- constructor(model = "github-copilot/gpt-4.1") {
177
- this.model = model;
178
- }
179
- name() {
180
- return "opencode";
181
- }
182
- async chat(messages, _opts) {
183
- const debug = process.env.AICC_DEBUG === "true";
184
- const mockMode = process.env.AICC_DEBUG_PROVIDER === "mock";
185
- const timeoutMs = parseInt(process.env.AICC_MODEL_TIMEOUT_MS || "120000", 10);
186
- if (mockMode) {
187
- if (debug) console.error("[ai-cc][mock] Returning deterministic mock response");
188
- return JSON.stringify({
189
- commits: [
190
- {
191
- title: "chore: mock commit from provider",
192
- body: "",
193
- score: 80,
194
- reasons: ["mock mode"]
195
- }
196
- ],
197
- meta: { splitRecommended: false }
198
- });
199
- }
200
- const userAggregate = messages.map((m) => `${m.role.toUpperCase()}: ${m.content}`).join("\n\n");
201
- const fullPrompt = `Generate high-quality commit message candidates based on the staged git diff.
202
-
203
- Context:
204
- ${userAggregate}`;
205
- const slashIdx = this.model.indexOf("/");
206
- const providerID = slashIdx !== -1 ? this.model.slice(0, slashIdx) : this.model;
207
- const modelID = slashIdx !== -1 ? this.model.slice(slashIdx + 1) : this.model;
208
- const ac = new AbortController();
209
- const timer = setTimeout(() => ac.abort(), timeoutMs);
210
- const start = Date.now();
211
- let server;
212
- try {
213
- const opencode = await createOpencode({ signal: ac.signal });
214
- server = opencode.server;
215
- const { client } = opencode;
216
- const session = await client.session.create({ body: { title: "aicc" } });
217
- if (!session.data) throw new Error("Failed to create opencode session");
218
- const result = await client.session.prompt({
219
- path: { id: session.data.id },
220
- body: {
221
- model: { providerID, modelID },
222
- parts: [{ type: "text", text: fullPrompt }]
223
- }
224
- });
225
- if (debug) {
226
- const elapsed = Date.now() - start;
227
- console.error(
228
- `[ai-cc][provider] model=${this.model} elapsedMs=${elapsed} promptChars=${fullPrompt.length}`
229
- );
230
- }
231
- const text = result.data.parts?.filter((p) => p.type === "text").map((p) => p.data ?? p.text ?? "").join("") ?? "";
232
- return text;
233
- } catch (e) {
234
- if (ac.signal.aborted) {
235
- throw new Error(`Model call timed out after ${timeoutMs}ms`);
236
- }
237
- if (debug) console.error("[ai-cc][provider] failure", e.message);
238
- throw new Error(e.message || "opencode SDK call failed");
239
- } finally {
240
- clearTimeout(timer);
241
- server?.close();
242
- }
243
- }
244
- };
245
- var CommitSchema = z.object({
246
- title: z.string().min(5).max(150),
247
- body: z.string().optional().default(""),
248
- score: z.number().min(0).max(100),
249
- reasons: z.array(z.string()).optional().default([]),
250
- files: z.array(z.string()).optional().default([])
251
- });
252
- var PlanSchema = z.object({
253
- commits: z.array(CommitSchema).min(1),
254
- meta: z.object({
255
- splitRecommended: z.boolean().optional()
256
- }).optional()
257
- });
258
- var extractJSON = (raw) => {
259
- const trimmed = raw.trim();
260
- let jsonText = null;
261
- if (trimmed.startsWith("{") && trimmed.endsWith("}")) {
262
- jsonText = trimmed;
263
- } else {
264
- const match = raw.match(/\{[\s\S]*\}$/m);
265
- if (match) jsonText = match[0];
266
- }
267
- if (!jsonText) throw new Error("No JSON object detected.");
268
- let parsed;
269
- try {
270
- parsed = JSON.parse(jsonText);
271
- } catch {
272
- throw new Error("Invalid JSON parse");
273
- }
274
- return PlanSchema.parse(parsed);
275
- };
276
-
277
- // src/guardrails.ts
278
- var SECRET_PATTERNS = [
279
- /AWS_[A-Z0-9_]+/i,
280
- /BEGIN RSA PRIVATE KEY/,
281
- /-----BEGIN PRIVATE KEY-----/,
282
- /ssh-rsa AAAA/
283
- ];
284
- var CONVENTIONAL_RE = /^(?:([\p{Emoji}\p{So}\p{Sk}]+)\s+(feat|fix|chore|docs|refactor|test|ci|perf|style|build|revert|merge|security|release)(\(.+\))?:\s|([\p{Emoji}\p{So}\p{Sk}]+):\s.*|([\p{Emoji}\p{So}\p{Sk}]+):\s*$|(feat|fix|chore|docs|refactor|test|ci|perf|style|build|revert|merge|security|release)(\(.+\))?:\s)/u;
285
- var sanitizeTitle = (title, allowEmoji) => {
286
- let t = title.trim();
287
- if (allowEmoji) {
288
- const multi = t.match(/^((?:[\p{Emoji}\p{So}\p{Sk}]+)[\p{Emoji}\p{So}\p{Sk}\s]*)+/u);
289
- if (multi) {
290
- const first = Array.from(multi[0].trim())[0];
291
- t = first + " " + t.slice(multi[0].length).trimStart();
292
- }
293
- } else {
294
- t = t.replace(/^([\p{Emoji}\p{So}\p{Sk}\p{P}]+\s*)+/u, "").trimStart();
295
- }
296
- return t;
297
- };
298
- var normalizeConventionalTitle = (title) => {
299
- let original = title.trim();
300
- let leadingEmoji = "";
301
- const emojiCluster = original.match(/^[\p{Emoji}\p{So}\p{Sk}]+/u);
302
- if (emojiCluster) {
303
- leadingEmoji = Array.from(emojiCluster[0])[0];
304
- }
305
- let t = original.replace(/^([\p{Emoji}\p{So}\p{Sk}\p{P}]+\s*)+/u, "").trim();
306
- const m = t.match(/^(\w+)(\(.+\))?:\s+(.*)$/);
307
- let result;
308
- if (m) {
309
- const type = m[1].toLowerCase();
310
- const scope = m[2] || "";
311
- let subject = m[3].trim();
312
- subject = subject.replace(/\.$/, "");
313
- subject = subject.charAt(0).toLowerCase() + subject.slice(1);
314
- result = `${type}${scope}: ${subject}`;
315
- } else if (!/^\w+\(.+\)?: /.test(t)) {
316
- t = t.replace(/\.$/, "");
317
- t = t.charAt(0).toLowerCase() + t.slice(1);
318
- result = `chore: ${t}`;
319
- } else {
320
- result = t;
321
- }
322
- if (leadingEmoji) {
323
- result = `${leadingEmoji} ${result}`;
324
- }
325
- return result;
326
- };
327
- var checkCandidate = (candidate) => {
328
- const errs = [];
329
- if (!CONVENTIONAL_RE.test(candidate.title)) {
330
- errs.push("Not a valid conventional commit title.");
331
- }
332
- if (/^[A-Z]/.test(candidate.title)) {
333
- }
334
- const body = candidate.body || "";
335
- for (const pat of SECRET_PATTERNS) {
336
- if (pat.test(body)) {
337
- errs.push("Potential secret detected.");
338
- break;
339
- }
340
- }
341
- return errs;
342
- };
343
-
344
- // src/title-format.ts
345
- var EMOJI_MAP = {
346
- feat: "\u2728",
347
- fix: "\u{1F41B}",
348
- chore: "\u{1F9F9}",
349
- docs: "\u{1F4DD}",
350
- refactor: "\u267B\uFE0F",
351
- test: "\u2705",
352
- ci: "\u{1F916}",
353
- perf: "\u26A1\uFE0F",
354
- style: "\u{1F3A8}",
355
- build: "\u{1F3D7}\uFE0F",
356
- revert: "\u23EA",
357
- merge: "\u{1F500}",
358
- security: "\u{1F512}",
359
- release: "\u{1F3F7}\uFE0F"
360
- };
361
- var EMOJI_TYPE_RE = /^([\p{Emoji}\p{So}\p{Sk}])\s+(\w+)(\(.+\))?:\s+(.*)$/u;
362
- var TYPE_RE = /^(\w+)(\(.+\))?:\s+(.*)$/;
363
- var formatCommitTitle = (raw, opts) => {
364
- const { allowGitmoji, mode = "standard" } = opts;
365
- let norm = normalizeConventionalTitle(sanitizeTitle(raw, allowGitmoji));
366
- if (!allowGitmoji || mode !== "gitmoji" && mode !== "gitmoji-pure") {
367
- return norm;
368
- }
369
- if (mode === "gitmoji-pure") {
370
- let m2 = norm.match(EMOJI_TYPE_RE);
371
- if (m2) {
372
- const emoji = m2[1];
373
- const subject = m2[4];
374
- norm = `${emoji}: ${subject}`;
375
- } else if (m2 = norm.match(TYPE_RE)) {
376
- const type = m2[1];
377
- const subject = m2[3];
378
- const em = EMOJI_MAP[type] || "\u{1F527}";
379
- norm = `${em}: ${subject}`;
380
- } else if (!/^([\p{Emoji}\p{So}\p{Sk}])+:/u.test(norm)) {
381
- norm = `\u{1F527}: ${norm}`;
382
- }
383
- return norm;
384
- }
385
- let m = norm.match(EMOJI_TYPE_RE);
386
- if (m) {
387
- return norm;
388
- }
389
- if (m = norm.match(TYPE_RE)) {
390
- const type = m[1];
391
- const scope = m[2] || "";
392
- const subject = m[3];
393
- const em = EMOJI_MAP[type] || "\u{1F527}";
394
- norm = `${em} ${type}${scope}: ${subject}`;
395
- } else if (!/^([\p{Emoji}\p{So}\p{Sk}])+\s+\w+.*:/u.test(norm)) {
396
- norm = `\u{1F527} chore: ${norm}`;
397
- }
398
- return norm;
399
- };
400
-
401
- // src/workflow/ui.ts
402
- import chalk from "chalk";
403
- function animateHeaderBase(text = "ai-conventional-commit", modelSegment) {
404
- const mainText = text;
405
- const modelSeg = modelSegment ? ` (using ${modelSegment})` : "";
406
- if (!process.stdout.isTTY || process.env.AICC_NO_ANIMATION) {
407
- if (modelSeg) console.log("\n\u250C " + chalk.bold(mainText) + chalk.dim(modelSeg));
408
- else console.log("\n\u250C " + chalk.bold(mainText));
409
- return Promise.resolve();
410
- }
411
- const palette = [
412
- "#3a0d6d",
413
- "#5a1ea3",
414
- "#7a32d6",
415
- "#9a4dff",
416
- "#b267ff",
417
- "#c37dff",
418
- "#b267ff",
419
- "#9a4dff",
420
- "#7a32d6",
421
- "#5a1ea3"
422
- ];
423
- process.stdout.write("\n");
424
- return palette.reduce(async (p, color) => {
425
- await p;
426
- const frame = chalk.bold.hex(color)(mainText);
427
- if (modelSeg) process.stdout.write("\r\u250C " + frame + chalk.dim(modelSeg));
428
- else process.stdout.write("\r\u250C " + frame);
429
- await new Promise((r) => setTimeout(r, 60));
430
- }, Promise.resolve()).then(() => process.stdout.write("\n"));
431
- }
432
- function borderLine(content) {
433
- if (!content) console.log("\u2502");
434
- else console.log("\u2502 " + content);
435
- }
436
- function sectionTitle(label) {
437
- console.log("\u2299 " + chalk.bold(label));
438
- }
439
- function abortMessage() {
440
- console.log("\u2514 \u{1F645}\u200D\u2640\uFE0F No commit created.");
441
- console.log();
442
- }
443
- function finalSuccess(opts) {
444
- const elapsedMs = Date.now() - opts.startedAt;
445
- const seconds = elapsedMs / 1e3;
446
- const dur = seconds >= 0.1 ? seconds.toFixed(1) + "s" : elapsedMs + "ms";
447
- const plural = opts.count !== 1;
448
- if (plural) console.log(`\u2514 \u2728 ${opts.count} commits created in ${dur}.`);
449
- else console.log(`\u2514 \u2728 commit created in ${dur}.`);
450
- console.log();
451
- }
452
- function createPhasedSpinner(oraLib) {
453
- const useAnim = process.stdout.isTTY && !process.env.AICC_NO_ANIMATION && !process.env.AICC_NO_SPINNER_ANIM;
454
- const palette = [
455
- "#3a0d6d",
456
- "#5a1ea3",
457
- "#7a32d6",
458
- "#9a4dff",
459
- "#b267ff",
460
- "#c37dff",
461
- "#b267ff",
462
- "#9a4dff",
463
- "#7a32d6",
464
- "#5a1ea3"
465
- ];
466
- let label = "Starting";
467
- let i = 0;
468
- const spinner = oraLib({ text: chalk.bold(label), spinner: "dots" }).start();
469
- let interval = null;
470
- function frame() {
471
- if (!useAnim) return;
472
- spinner.text = chalk.bold.hex(palette[i])(label);
473
- i = (i + 1) % palette.length;
474
- }
475
- if (useAnim) {
476
- frame();
477
- interval = setInterval(frame, 80);
478
- }
479
- function setLabel(next) {
480
- label = next;
481
- if (useAnim) {
482
- i = 0;
483
- frame();
484
- } else {
485
- spinner.text = chalk.bold(label);
486
- }
487
- }
488
- function stopAnim() {
489
- if (interval) {
490
- clearInterval(interval);
491
- interval = null;
492
- }
493
- }
494
- return {
495
- spinner,
496
- async step(l, fn) {
497
- setLabel(l);
498
- try {
499
- return await fn();
500
- } catch (e) {
501
- stopAnim();
502
- const msg = `${l} failed: ${e?.message || e}`.replace(/^\s+/, "");
503
- spinner.fail(msg);
504
- throw e;
505
- }
506
- },
507
- phase(l) {
508
- setLabel(l);
509
- },
510
- stop() {
511
- stopAnim();
512
- spinner.stop();
513
- }
514
- };
515
- }
516
- function renderCommitBlock(opts) {
517
- const dim = (s) => chalk.dim(s);
518
- const white = (s) => chalk.white(s);
519
- const msgColor = opts.messageLabelColor || dim;
520
- const descColor = opts.descriptionLabelColor || dim;
521
- const titleColor = opts.titleColor || white;
522
- const bodyFirst = opts.bodyFirstLineColor || white;
523
- const bodyRest = opts.bodyLineColor || white;
524
- if (opts.fancy) {
525
- const heading = opts.heading ? chalk.hex("#9a4dff").bold(opts.heading) : void 0;
526
- if (heading) borderLine(heading);
527
- borderLine(msgColor("Title:") + " " + titleColor(`${opts.indexPrefix || ""}${opts.title}`));
528
- } else {
529
- if (opts.heading) borderLine(chalk.bold(opts.heading));
530
- if (!opts.hideMessageLabel)
531
- borderLine(msgColor("Message:") + " " + titleColor(`${opts.indexPrefix || ""}${opts.title}`));
532
- else
533
- borderLine(msgColor("Title:") + " " + titleColor(`${opts.indexPrefix || ""}${opts.title}`));
534
- }
535
- borderLine();
536
- if (opts.body) {
537
- const lines = opts.body.split("\n");
538
- lines.forEach((line, i) => {
539
- if (line.trim().length === 0) borderLine();
540
- else if (i === 0) {
541
- borderLine(descColor("Description:"));
542
- borderLine(bodyFirst(line));
543
- } else borderLine(bodyRest(line));
544
- });
545
- }
546
- }
547
-
548
- export {
549
- buildGenerationMessages,
550
- buildRefineMessages,
551
- OpenCodeProvider,
552
- extractJSON,
553
- checkCandidate,
554
- formatCommitTitle,
555
- animateHeaderBase,
556
- borderLine,
557
- sectionTitle,
558
- abortMessage,
559
- finalSuccess,
560
- createPhasedSpinner,
561
- renderCommitBlock
562
- };