@callidescope/output 0.0.9 → 0.0.10
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 +8 -0
- package/README.md +8 -8
- package/dist/src/index.js +79 -79
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -384,13 +384,13 @@ graph LR
|
|
|
384
384
|
### Project
|
|
385
385
|
|
|
386
386
|

|
|
387
|
-

|
|
388
388
|

|
|
389
389
|

|
|
390
390
|
|
|
391
391
|
### Measured Targets
|
|
392
392
|
|
|
393
|
-

|
|
394
394
|
|
|
395
395
|
### TypeScript
|
|
396
396
|
|
|
@@ -572,16 +572,16 @@ graph LR
|
|
|
572
572
|
### Markdown
|
|
573
573
|
|
|
574
574
|

|
|
575
|
-

|
|
576
576
|

|
|
577
|
-

|
|
578
|
+

|
|
579
579
|

|
|
580
580
|

|
|
581
581
|

|
|
582
|
-

|
|
583
|
+

|
|
584
|
+

|
|
585
585
|

|
|
586
586
|

|
|
587
587
|

|
package/dist/src/index.js
CHANGED
|
@@ -4,27 +4,27 @@ import { existsSync as o, mkdirSync as s, readFileSync as c, writeFileSync as l
|
|
|
4
4
|
import u from "node:path";
|
|
5
5
|
import d from "pino";
|
|
6
6
|
import { GraphModule as ee, PathsService as f, SignaturesModule as te, SignaturesService as p } from "@callidescope/graph";
|
|
7
|
-
//#region
|
|
8
|
-
var m = "🚀", h = "└─>", ne = 80, g = "(…)", re = 120, _ = /[!.?](?=\s+[A-Z])/, ie = "…",
|
|
7
|
+
//#region \0rolldown/runtime.js
|
|
8
|
+
var m = "🚀", h = "└─>", ne = 80, g = "(…)", re = 120, _ = /[!.?](?=\s+[A-Z])/, ie = "…", v = "⚠ deprecated", ae = "↳", y = "flowchart LR", oe = 300, se = "n", b = /* @__PURE__ */ new Map([
|
|
9
9
|
["<", "#lt;"],
|
|
10
10
|
[">", "#gt;"],
|
|
11
11
|
["\"", "#quot;"]
|
|
12
|
-
]),
|
|
13
|
-
C,
|
|
14
|
-
w,
|
|
15
|
-
"1",
|
|
12
|
+
]), x = "| Measure | Value |\n| --- | --- |", S = "| Callable | Breadth | Calls directly | Location |\n| --- | --- | --- | --- |", C = "Call stacks over the depth limit", w = "Callables over the breadth limit", ce = ".", le = "| Project | Deepest | Limit | Headroom | Widest |\n| --- | --- | --- | --- | --- |", ue = "| Headroom | Projects |\n| --- | --- |", de = "Limits", fe = "| Limit | Value |\n| --- | --- |", pe = "What this project is judged against, as declared in its own `callidescope.config.ts`.", me = ["maximumDepth", "maximumBreadth"], he = "none", T = "over limit", E = "0 — at limit", ge = "1", D = "2–3", _e = "4+", O = "no stacks", k = [
|
|
16
13
|
T,
|
|
14
|
+
E,
|
|
15
|
+
"1",
|
|
16
|
+
D,
|
|
17
17
|
"4+",
|
|
18
|
-
|
|
18
|
+
O
|
|
19
19
|
];
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorateMetadata.js
|
|
22
|
-
function
|
|
22
|
+
function __decorateMetadata(e, t) {
|
|
23
23
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorate.js
|
|
27
|
-
function
|
|
27
|
+
function __decorate(e, t, n, r) {
|
|
28
28
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
29
29
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
30
30
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
@@ -32,7 +32,7 @@ function k(e, t, n, r) {
|
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/report/mermaid-report.service.ts
|
|
35
|
-
var A = class {
|
|
35
|
+
var A = class MermaidReportService {
|
|
36
36
|
constructor() {}
|
|
37
37
|
addFrame(e) {
|
|
38
38
|
let t = e.diagram.identifiersByCallable.get(e.frame.id);
|
|
@@ -56,14 +56,14 @@ var A = class {
|
|
|
56
56
|
}
|
|
57
57
|
renderLabel(e) {
|
|
58
58
|
let t = e.displayName;
|
|
59
|
-
for (let [e, n] of
|
|
59
|
+
for (let [e, n] of b) t = t.replaceAll(e, n);
|
|
60
60
|
return e.isCycle ? `${t} (cycle)` : t;
|
|
61
61
|
}
|
|
62
62
|
renderDiagram(e) {
|
|
63
63
|
if (e.diagram.nodes.length === 0) return "None.";
|
|
64
64
|
let t = [
|
|
65
65
|
"```mermaid",
|
|
66
|
-
|
|
66
|
+
y,
|
|
67
67
|
...e.diagram.nodes,
|
|
68
68
|
...e.diagram.edges,
|
|
69
69
|
"```"
|
|
@@ -95,10 +95,10 @@ var A = class {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
A =
|
|
98
|
+
A = __decorate([n(), __decorateMetadata("design:paramtypes", [])], A);
|
|
99
99
|
//#endregion
|
|
100
100
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/report/report.service.ts
|
|
101
|
-
var j = class {
|
|
101
|
+
var j = class ReportService {
|
|
102
102
|
constructor() {}
|
|
103
103
|
readFirstSentence(e) {
|
|
104
104
|
let t = _.exec(e);
|
|
@@ -110,7 +110,7 @@ var j = class {
|
|
|
110
110
|
}
|
|
111
111
|
renderMarkers(e) {
|
|
112
112
|
let t = e.isCycle ? " (cycle)" : "";
|
|
113
|
-
return e.documentation?.isDeprecated ?? !1 ? `${t} ${
|
|
113
|
+
return e.documentation?.isDeprecated ?? !1 ? `${t} ${v}` : t;
|
|
114
114
|
}
|
|
115
115
|
renderSignature(e) {
|
|
116
116
|
let { signature: t } = e;
|
|
@@ -130,13 +130,13 @@ var j = class {
|
|
|
130
130
|
})).join("\n");
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
-
j =
|
|
133
|
+
j = __decorate([n(), __decorateMetadata("design:paramtypes", [])], j);
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/report/workspace-report.service.ts
|
|
136
|
-
var M = class {
|
|
136
|
+
var M = class WorkspaceReportService {
|
|
137
137
|
constructor() {}
|
|
138
138
|
bucketFor(e) {
|
|
139
|
-
return e.deepest === 0 ?
|
|
139
|
+
return e.deepest === 0 ? O : e.headroom < 0 ? T : e.headroom === 0 ? E : e.headroom === 1 ? "1" : e.headroom <= 3 ? D : "4+";
|
|
140
140
|
}
|
|
141
141
|
widestBreadth(e) {
|
|
142
142
|
return e.callableBreadths.reduce((e, t) => Math.max(e, t.breadth), 0);
|
|
@@ -161,20 +161,20 @@ var M = class {
|
|
|
161
161
|
}
|
|
162
162
|
renderHeadroom(e) {
|
|
163
163
|
let t = e.map((e) => this.bucketFor(e));
|
|
164
|
-
return [
|
|
164
|
+
return [ue, ...k.map((e) => {
|
|
165
165
|
let n = t.filter((t) => t === e).length;
|
|
166
166
|
return `| ${e} | ${String(n)} |`;
|
|
167
167
|
})].join("\n");
|
|
168
168
|
}
|
|
169
169
|
renderProjectIndex(e) {
|
|
170
170
|
let t = this.buildRows(e);
|
|
171
|
-
return t.length === 0 ? "None." : [
|
|
171
|
+
return t.length === 0 ? "None." : [le, ...t.map((e) => `| \`${e.projectName === "" ? "." : e.projectName}\` | ${String(e.deepest)} | ${String(e.limit)} | ${String(e.headroom)} | ${String(e.widest)} |`)].join("\n");
|
|
172
172
|
}
|
|
173
173
|
};
|
|
174
|
-
M =
|
|
174
|
+
M = __decorate([n(), __decorateMetadata("design:paramtypes", [])], M);
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/report/markdown-report.service.ts
|
|
177
|
-
var N = class {
|
|
177
|
+
var N = class MarkdownReportService {
|
|
178
178
|
mermaidReportService;
|
|
179
179
|
reportService;
|
|
180
180
|
workspaceReportService;
|
|
@@ -182,29 +182,29 @@ var N = class {
|
|
|
182
182
|
this.mermaidReportService = e, this.reportService = t, this.workspaceReportService = n;
|
|
183
183
|
}
|
|
184
184
|
renderCallableBreadths(e) {
|
|
185
|
-
let
|
|
186
|
-
header:
|
|
187
|
-
rows:
|
|
185
|
+
let toRow = (e) => `| \`${e.displayName}\` | ${String(e.breadth)} | ${e.callees.map((e) => `\`${e.displayName}\``).join(", ")} | \`${e.location.filePath}:${String(e.location.line)}\` |`, t = e.reports.slice(0, e.previewCount), n = e.reports.slice(e.previewCount), r = this.renderTable({
|
|
186
|
+
header: S,
|
|
187
|
+
rows: t.map((e) => toRow(e))
|
|
188
188
|
});
|
|
189
|
-
return
|
|
190
|
-
|
|
189
|
+
return n.length === 0 ? r : [
|
|
190
|
+
r,
|
|
191
191
|
"",
|
|
192
192
|
"<details>",
|
|
193
|
-
`<summary>${String(
|
|
193
|
+
`<summary>${String(n.length)} more callables</summary>`,
|
|
194
194
|
"",
|
|
195
195
|
this.renderTable({
|
|
196
|
-
header:
|
|
197
|
-
rows:
|
|
196
|
+
header: S,
|
|
197
|
+
rows: n.map((e) => toRow(e))
|
|
198
198
|
}),
|
|
199
199
|
"",
|
|
200
200
|
"</details>"
|
|
201
201
|
].join("\n");
|
|
202
202
|
}
|
|
203
203
|
renderLimitCell(e) {
|
|
204
|
-
return e === void 0 ?
|
|
204
|
+
return e === void 0 ? he : String(e);
|
|
205
205
|
}
|
|
206
206
|
renderProjectLimits(e) {
|
|
207
|
-
return [
|
|
207
|
+
return [fe, ...me.map((t) => `| \`${t}\` | ${this.renderLimitCell(e[t])} |`)].join("\n");
|
|
208
208
|
}
|
|
209
209
|
renderStack(e) {
|
|
210
210
|
let { stack: t } = e, n = t.frames[0]?.displayName ?? "unknown", r = t.isLowerBound ? `≥ ${String(t.depth)}` : String(t.depth);
|
|
@@ -224,7 +224,7 @@ var N = class {
|
|
|
224
224
|
}
|
|
225
225
|
renderSummaryTable(e) {
|
|
226
226
|
return [
|
|
227
|
-
|
|
227
|
+
x,
|
|
228
228
|
`| Callables | ${String(e.callableCount)} |`,
|
|
229
229
|
`| Files | ${String(e.fileCount)} |`,
|
|
230
230
|
`| Calls traced | ${String(e.edgeCount)} |`,
|
|
@@ -246,14 +246,14 @@ var N = class {
|
|
|
246
246
|
renderFindings(e) {
|
|
247
247
|
let { deepStacks: t, wideCallables: n } = e;
|
|
248
248
|
return [
|
|
249
|
-
`## ${
|
|
249
|
+
`## ${C} (${String(t.length)})`,
|
|
250
250
|
"",
|
|
251
251
|
this.renderStacks({
|
|
252
252
|
previewCount: e.previewCount,
|
|
253
253
|
stacks: t
|
|
254
254
|
}),
|
|
255
255
|
"",
|
|
256
|
-
`## ${
|
|
256
|
+
`## ${w} (${String(n.length)})`,
|
|
257
257
|
"",
|
|
258
258
|
this.renderWideCallableLines(n)
|
|
259
259
|
].join("\n");
|
|
@@ -267,9 +267,9 @@ var N = class {
|
|
|
267
267
|
"",
|
|
268
268
|
this.renderSummaryTable(t.summary),
|
|
269
269
|
"",
|
|
270
|
-
`### ${
|
|
270
|
+
`### ${de}`,
|
|
271
271
|
"",
|
|
272
|
-
|
|
272
|
+
pe,
|
|
273
273
|
"",
|
|
274
274
|
this.renderProjectLimits(this.workspaceReportService.limitsFor({
|
|
275
275
|
limits: e.limits,
|
|
@@ -314,7 +314,7 @@ var N = class {
|
|
|
314
314
|
"",
|
|
315
315
|
this.workspaceReportService.renderHeadroom(r),
|
|
316
316
|
"",
|
|
317
|
-
`${n} ${
|
|
317
|
+
`${n} ${C} (${String(t.deepStacks.length)})`,
|
|
318
318
|
"",
|
|
319
319
|
this.renderStacksAs({
|
|
320
320
|
previewCount: e.previewCount,
|
|
@@ -322,7 +322,7 @@ var N = class {
|
|
|
322
322
|
stacks: t.deepStacks
|
|
323
323
|
}),
|
|
324
324
|
"",
|
|
325
|
-
`${n} ${
|
|
325
|
+
`${n} ${w} (${String(t.wideCallables.length)})`,
|
|
326
326
|
"",
|
|
327
327
|
this.renderCallableBreadths({
|
|
328
328
|
previewCount: e.previewCount,
|
|
@@ -349,15 +349,15 @@ var N = class {
|
|
|
349
349
|
].join("\n");
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
|
-
N =
|
|
352
|
+
N = __decorate([n(), __decorateMetadata("design:paramtypes", [
|
|
353
353
|
A === void 0 ? Object : A,
|
|
354
354
|
j === void 0 ? Object : j,
|
|
355
355
|
M === void 0 ? Object : M
|
|
356
356
|
])], N);
|
|
357
357
|
//#endregion
|
|
358
358
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/report/report.module.ts
|
|
359
|
-
var P = class {};
|
|
360
|
-
P =
|
|
359
|
+
var P = class ReportModule {};
|
|
360
|
+
P = __decorate([r({
|
|
361
361
|
controllers: [],
|
|
362
362
|
exports: [
|
|
363
363
|
N,
|
|
@@ -375,7 +375,7 @@ P = k([r({
|
|
|
375
375
|
})], P);
|
|
376
376
|
//#endregion
|
|
377
377
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/address-report/address-report.service.ts
|
|
378
|
-
var F = class {
|
|
378
|
+
var F = class AddressReportService {
|
|
379
379
|
mermaidReportService;
|
|
380
380
|
reportService;
|
|
381
381
|
constructor(e, t) {
|
|
@@ -514,11 +514,11 @@ var F = class {
|
|
|
514
514
|
})).join("\n\n");
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
|
-
F =
|
|
517
|
+
F = __decorate([n(), __decorateMetadata("design:paramtypes", [A === void 0 ? Object : A, j === void 0 ? Object : j])], F);
|
|
518
518
|
//#endregion
|
|
519
519
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/address-report/address-report.module.ts
|
|
520
|
-
var I = class {};
|
|
521
|
-
I =
|
|
520
|
+
var I = class AddressReportModule {};
|
|
521
|
+
I = __decorate([r({
|
|
522
522
|
controllers: [],
|
|
523
523
|
exports: [F],
|
|
524
524
|
imports: [P],
|
|
@@ -526,7 +526,7 @@ I = k([r({
|
|
|
526
526
|
})], I);
|
|
527
527
|
//#endregion
|
|
528
528
|
//#region packages/logging/src/modules/logger/logger.constants.ts
|
|
529
|
-
var
|
|
529
|
+
var ve = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s+/u, ye = /^([A-Za-z]+)/, be = /* @__PURE__ */ new Set([
|
|
530
530
|
"built",
|
|
531
531
|
"cut",
|
|
532
532
|
"found",
|
|
@@ -544,7 +544,7 @@ var be = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
544
544
|
"split",
|
|
545
545
|
"took",
|
|
546
546
|
"wrote"
|
|
547
|
-
]),
|
|
547
|
+
]), xe = /* @__PURE__ */ new Set([
|
|
548
548
|
"CommandFactory",
|
|
549
549
|
"ExceptionHandler",
|
|
550
550
|
"GraphQLModule",
|
|
@@ -554,7 +554,7 @@ var be = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
554
554
|
"RouterExplorer",
|
|
555
555
|
"RoutesResolver",
|
|
556
556
|
"TypeOrmModule"
|
|
557
|
-
]), L, R = class extends e {
|
|
557
|
+
]), L, R = class LoggerService extends e {
|
|
558
558
|
static {
|
|
559
559
|
L = this;
|
|
560
560
|
}
|
|
@@ -606,15 +606,15 @@ var be = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
606
606
|
getConventionalMessageViolation(e) {
|
|
607
607
|
let t = e.emoji, n = e.text;
|
|
608
608
|
if (t === void 0) return `Log message must start with an emoji naming its subject, then a verb: "${n}"`;
|
|
609
|
-
let r =
|
|
609
|
+
let r = ye.exec(n)?.[1];
|
|
610
610
|
if (r === void 0 || !this.isConventionalVerb(r)) return `Log message must begin with a verb in present progressive or past tense, got "${r ?? ""}": "${t} ${n}"`;
|
|
611
611
|
}
|
|
612
612
|
isConventionalVerb(e) {
|
|
613
613
|
let t = e.toLowerCase();
|
|
614
|
-
return t.endsWith("ing") || t.endsWith("ed") ||
|
|
614
|
+
return t.endsWith("ing") || t.endsWith("ed") || be.has(t);
|
|
615
615
|
}
|
|
616
616
|
parseMessage(e) {
|
|
617
|
-
let t = String(e), n =
|
|
617
|
+
let t = String(e), n = ve.exec(t), r = n?.[1];
|
|
618
618
|
return r === void 0 ? {
|
|
619
619
|
emoji: void 0,
|
|
620
620
|
text: t
|
|
@@ -624,7 +624,7 @@ var be = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
shouldSkipConventionalMessageValidation(e) {
|
|
627
|
-
return e !== void 0 &&
|
|
627
|
+
return e !== void 0 && xe.has(e);
|
|
628
628
|
}
|
|
629
629
|
static get root() {
|
|
630
630
|
return L.rootLogger ??= L.createRootLogger(), L.rootLogger;
|
|
@@ -690,11 +690,11 @@ var be = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
690
690
|
}), r.text);
|
|
691
691
|
}
|
|
692
692
|
};
|
|
693
|
-
R = L =
|
|
693
|
+
R = L = __decorate([n({ scope: i.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], R);
|
|
694
694
|
//#endregion
|
|
695
695
|
//#region packages/logging/src/modules/logger/logger.module.ts
|
|
696
|
-
var z = class {};
|
|
697
|
-
z =
|
|
696
|
+
var z = class LoggerModule {};
|
|
697
|
+
z = __decorate([t(), r({
|
|
698
698
|
controllers: [],
|
|
699
699
|
exports: [R],
|
|
700
700
|
imports: [],
|
|
@@ -702,7 +702,7 @@ z = k([t(), r({
|
|
|
702
702
|
})], z);
|
|
703
703
|
//#endregion
|
|
704
704
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/output-json/output-json.service.ts
|
|
705
|
-
var B, V = B = class {
|
|
705
|
+
var B, V = B = class OutputJsonService {
|
|
706
706
|
logger;
|
|
707
707
|
constructor(e) {
|
|
708
708
|
this.logger = e, this.logger.setContext(B.name);
|
|
@@ -722,11 +722,11 @@ var B, V = B = class {
|
|
|
722
722
|
return e.check ? this.readExisting(e.destination.path) === n : (s(u.dirname(t), { recursive: !0 }), l(t, n, "utf8"), this.logger.info("🔭 Wrote a report", void 0, { path: t }), !0);
|
|
723
723
|
}
|
|
724
724
|
};
|
|
725
|
-
V = B =
|
|
725
|
+
V = B = __decorate([n(), __decorateMetadata("design:paramtypes", [R === void 0 ? Object : R])], V);
|
|
726
726
|
//#endregion
|
|
727
727
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/output-json/output-json.module.ts
|
|
728
|
-
var H = class {};
|
|
729
|
-
H =
|
|
728
|
+
var H = class OutputJsonModule {};
|
|
729
|
+
H = __decorate([r({
|
|
730
730
|
controllers: [],
|
|
731
731
|
exports: [V],
|
|
732
732
|
imports: [z],
|
|
@@ -734,11 +734,11 @@ H = k([r({
|
|
|
734
734
|
})], H);
|
|
735
735
|
//#endregion
|
|
736
736
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/output-markdown/output-markdown.constants.ts
|
|
737
|
-
var U = /<!--\s*(?:[A-Za-z0-9_-]+:start|[A-Z0-9_]+_START)\b/i,
|
|
737
|
+
var U = /<!--\s*(?:[A-Za-z0-9_-]+:start|[A-Z0-9_]+_START)\b/i, MissingMarkdownPathError = class extends Error {
|
|
738
738
|
constructor() {
|
|
739
739
|
super("No markdown path to write to. Set write.markdown.path, pass --markdown, or give syncAnchoredBlock a path of its own."), this.name = "MissingMarkdownPathError";
|
|
740
740
|
}
|
|
741
|
-
}, W, G = W = class {
|
|
741
|
+
}, W, G = W = class OutputMarkdownService {
|
|
742
742
|
logger;
|
|
743
743
|
constructor(e) {
|
|
744
744
|
this.logger = e, this.logger.setContext(W.name);
|
|
@@ -811,7 +811,7 @@ var U = /<!--\s*(?:[A-Za-z0-9_-]+:start|[A-Z0-9_]+_START)\b/i, we = class extend
|
|
|
811
811
|
}
|
|
812
812
|
syncAnchoredBlock(e) {
|
|
813
813
|
let t = e.path ?? e.destination.path;
|
|
814
|
-
if (t.length === 0) throw new
|
|
814
|
+
if (t.length === 0) throw new MissingMarkdownPathError();
|
|
815
815
|
let n = u.resolve(t), r = this.readExisting(n), i = this.wrapInAnchors(e), a = this.buildBlockPattern(e.destination);
|
|
816
816
|
if (e.check) return a.exec(r)?.[0] === i;
|
|
817
817
|
let o = this.spliceBlock({
|
|
@@ -826,11 +826,11 @@ var U = /<!--\s*(?:[A-Za-z0-9_-]+:start|[A-Z0-9_]+_START)\b/i, we = class extend
|
|
|
826
826
|
return `${e.destination.startMarker}\n\n${e.content}\n${e.destination.endMarker}`;
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
|
-
G = W =
|
|
829
|
+
G = W = __decorate([n(), __decorateMetadata("design:paramtypes", [R === void 0 ? Object : R])], G);
|
|
830
830
|
//#endregion
|
|
831
831
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/output-markdown/output-markdown.module.ts
|
|
832
|
-
var K = class {};
|
|
833
|
-
K =
|
|
832
|
+
var K = class OutputMarkdownModule {};
|
|
833
|
+
K = __decorate([r({
|
|
834
834
|
controllers: [],
|
|
835
835
|
exports: [G],
|
|
836
836
|
imports: [z],
|
|
@@ -838,7 +838,7 @@ K = k([r({
|
|
|
838
838
|
})], K);
|
|
839
839
|
//#endregion
|
|
840
840
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/project-reports/project-reports.constants.ts
|
|
841
|
-
var
|
|
841
|
+
var Se = 2, q = class ProjectReportsService {
|
|
842
842
|
pathsService;
|
|
843
843
|
signaturesService;
|
|
844
844
|
constructor(e, t) {
|
|
@@ -987,11 +987,11 @@ var Te = 2, q = class {
|
|
|
987
987
|
})).toSorted((e, t) => t.breadth - e.breadth);
|
|
988
988
|
}
|
|
989
989
|
};
|
|
990
|
-
q =
|
|
990
|
+
q = __decorate([n(), __decorateMetadata("design:paramtypes", [f === void 0 ? Object : f, p === void 0 ? Object : p])], q);
|
|
991
991
|
//#endregion
|
|
992
992
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/project-reports/project-reports.module.ts
|
|
993
|
-
var J = class {};
|
|
994
|
-
J =
|
|
993
|
+
var J = class ProjectReportsModule {};
|
|
994
|
+
J = __decorate([r({
|
|
995
995
|
controllers: [],
|
|
996
996
|
exports: [q],
|
|
997
997
|
imports: [ee, te],
|
|
@@ -999,7 +999,7 @@ J = k([r({
|
|
|
999
999
|
})], J);
|
|
1000
1000
|
//#endregion
|
|
1001
1001
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/report-findings/report-findings.service.ts
|
|
1002
|
-
var Y = class {
|
|
1002
|
+
var Y = class ReportFindingsService {
|
|
1003
1003
|
logger;
|
|
1004
1004
|
constructor(e) {
|
|
1005
1005
|
this.logger = e;
|
|
@@ -1031,11 +1031,11 @@ var Y = class {
|
|
|
1031
1031
|
(n || i || t || r) && (process.exitCode = 1);
|
|
1032
1032
|
}
|
|
1033
1033
|
};
|
|
1034
|
-
Y =
|
|
1034
|
+
Y = __decorate([n(), __decorateMetadata("design:paramtypes", [R === void 0 ? Object : R])], Y);
|
|
1035
1035
|
//#endregion
|
|
1036
1036
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/report-findings/report-findings.module.ts
|
|
1037
|
-
var X = class {};
|
|
1038
|
-
X =
|
|
1037
|
+
var X = class ReportFindingsModule {};
|
|
1038
|
+
X = __decorate([r({
|
|
1039
1039
|
controllers: [],
|
|
1040
1040
|
exports: [Y],
|
|
1041
1041
|
imports: [z],
|
|
@@ -1043,7 +1043,7 @@ X = k([r({
|
|
|
1043
1043
|
})], X);
|
|
1044
1044
|
//#endregion
|
|
1045
1045
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/write-destinations/write-destinations.constants.ts
|
|
1046
|
-
var Z = [["markdown", "tree"], ["mermaid", "diagram"]], Q = class {
|
|
1046
|
+
var Z = [["markdown", "tree"], ["mermaid", "diagram"]], Q = class WriteDestinationsService {
|
|
1047
1047
|
markdownReportService;
|
|
1048
1048
|
outputJsonService;
|
|
1049
1049
|
outputMarkdownService;
|
|
@@ -1115,15 +1115,15 @@ var Z = [["markdown", "tree"], ["mermaid", "diagram"]], Q = class {
|
|
|
1115
1115
|
return t.push(...this.syncProjectDestinations(e)), t;
|
|
1116
1116
|
}
|
|
1117
1117
|
};
|
|
1118
|
-
Q =
|
|
1118
|
+
Q = __decorate([n(), __decorateMetadata("design:paramtypes", [
|
|
1119
1119
|
N === void 0 ? Object : N,
|
|
1120
1120
|
V === void 0 ? Object : V,
|
|
1121
1121
|
G === void 0 ? Object : G
|
|
1122
1122
|
])], Q);
|
|
1123
1123
|
//#endregion
|
|
1124
1124
|
//#region packages/ic-suite/callidescope/callidescope-output/src/modules/write-destinations/write-destinations.module.ts
|
|
1125
|
-
var $ = class {};
|
|
1126
|
-
$ =
|
|
1125
|
+
var $ = class WriteDestinationsModule {};
|
|
1126
|
+
$ = __decorate([r({
|
|
1127
1127
|
controllers: [],
|
|
1128
1128
|
exports: [Q],
|
|
1129
1129
|
imports: [
|
|
@@ -1134,4 +1134,4 @@ $ = k([r({
|
|
|
1134
1134
|
providers: [Q]
|
|
1135
1135
|
})], $);
|
|
1136
1136
|
//#endregion
|
|
1137
|
-
export { I as AddressReportModule, F as AddressReportService, g as COLLAPSED_PARAMETERS,
|
|
1137
|
+
export { I as AddressReportModule, F as AddressReportService, g as COLLAPSED_PARAMETERS, v as DEPRECATED_MARKER, se as DIAGRAM_NODE_PREFIX, m as ENTRY_FRAME_PREFIX, U as FOREIGN_ANCHOR_PATTERN, E as HEADROOM_BUCKET_AT_LIMIT, _e as HEADROOM_BUCKET_FOUR_PLUS, ge as HEADROOM_BUCKET_ONE, k as HEADROOM_BUCKET_ORDER, T as HEADROOM_BUCKET_OVER_LIMIT, D as HEADROOM_BUCKET_TWO_TO_THREE, O as HEADROOM_BUCKET_UNMEASURED, C as MARKDOWN_DEEP_STACKS_HEADING, Z as MARKDOWN_DESTINATION_RENDERINGS, ue as MARKDOWN_HEADROOM_HEADER, le as MARKDOWN_PROJECT_INDEX_HEADER, x as MARKDOWN_SUMMARY_HEADER, S as MARKDOWN_WIDE_CALLABLES_HEADER, w as MARKDOWN_WIDE_CALLABLES_HEADING, oe as MAXIMUM_DIAGRAM_NODES, y as MERMAID_FLOWCHART_HEADER, b as MERMAID_LABEL_ESCAPES, Se as MINIMUM_STACK_FRAMES, N as MarkdownReportService, A as MermaidReportService, MissingMarkdownPathError, h as NESTED_FRAME_PREFIX, H as OutputJsonModule, V as OutputJsonService, K as OutputMarkdownModule, G as OutputMarkdownService, J as ProjectReportsModule, q as ProjectReportsService, ce as ROOT_PROJECT_LABEL, X as ReportFindingsModule, Y as ReportFindingsService, P as ReportModule, j as ReportService, _ as SENTENCE_END_PATTERN, ne as SIGNATURE_LIMIT, re as SUMMARY_LIMIT, ae as SUMMARY_PREFIX, ie as TRUNCATION_SUFFIX, M as WorkspaceReportService, $ as WriteDestinationsModule, Q as WriteDestinationsService };
|
package/package.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@callidescope/configuration": "0.0.
|
|
8
|
-
"@callidescope/core": "0.0.
|
|
9
|
-
"@callidescope/graph": "0.0.
|
|
7
|
+
"@callidescope/configuration": "0.0.11",
|
|
8
|
+
"@callidescope/core": "0.0.10",
|
|
9
|
+
"@callidescope/graph": "0.0.10",
|
|
10
10
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
11
11
|
"pino": "^10.3.1",
|
|
12
12
|
"pino-pretty": "^13.1.3",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"strict": true
|
|
63
63
|
},
|
|
64
64
|
"types": "./dist/src/index.d.ts",
|
|
65
|
-
"version": "0.0.
|
|
65
|
+
"version": "0.0.10"
|
|
66
66
|
}
|