@callidescope/cli 0.0.8 → 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 +18 -0
- package/README.md +8 -8
- package/dist/{main.module-CmW2laOJ.js → main.module-1pdYmSJ4.js} +296 -293
- package/dist/src/index.js +1 -1
- package/dist/src/main.js +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 0.0.10 (2026-10-08)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated callidescope-configuration to 0.0.11
|
|
6
|
+
- Updated callidescope-output to 0.0.10
|
|
7
|
+
- Updated callidescope-graph to 0.0.10
|
|
8
|
+
- Updated callidescope-core to 0.0.10
|
|
9
|
+
|
|
10
|
+
## 0.0.9 (2026-10-08)
|
|
11
|
+
|
|
12
|
+
### 🧱 Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated callidescope-configuration to 0.0.10
|
|
15
|
+
- Updated callidescope-output to 0.0.9
|
|
16
|
+
- Updated callidescope-graph to 0.0.9
|
|
17
|
+
- Updated callidescope-core to 0.0.9
|
|
18
|
+
|
|
1
19
|
## 0.0.8 (2026-10-08)
|
|
2
20
|
|
|
3
21
|
### 🧱 Updated Dependencies
|
package/README.md
CHANGED
|
@@ -1555,13 +1555,13 @@ graph LR
|
|
|
1555
1555
|
### Project
|
|
1556
1556
|
|
|
1557
1557
|

|
|
1558
|
-

|
|
1559
1559
|

|
|
1560
1560
|

|
|
1561
1561
|
|
|
1562
1562
|
### Measured Targets
|
|
1563
1563
|
|
|
1564
|
-

|
|
1565
1565
|
|
|
1566
1566
|
### TypeScript
|
|
1567
1567
|
|
|
@@ -1743,16 +1743,16 @@ graph LR
|
|
|
1743
1743
|
### Markdown
|
|
1744
1744
|
|
|
1745
1745
|

|
|
1746
|
-

|
|
1747
1747
|

|
|
1748
|
-

|
|
1749
|
+

|
|
1750
1750
|

|
|
1751
1751
|

|
|
1752
1752
|

|
|
1753
|
-

|
|
1754
|
+

|
|
1755
|
+

|
|
1756
1756
|

|
|
1757
1757
|

|
|
1758
1758
|

|
|
@@ -6,11 +6,14 @@ import { existsSync as re, mkdirSync as ie } from "node:fs";
|
|
|
6
6
|
import p from "node:path";
|
|
7
7
|
import m from "pino";
|
|
8
8
|
import { z as ae } from "zod";
|
|
9
|
-
import { AddressDepthService as
|
|
10
|
-
import { AddressReportModule as ve, AddressReportService as S, MarkdownReportService as ye, OutputJsonModule as be, OutputJsonService as xe, OutputMarkdownModule as Se, ProjectReportsModule as Ce, ProjectReportsService as we, ReportFindingsModule as Te, ReportFindingsService as
|
|
11
|
-
import { Command as
|
|
12
|
-
//#region
|
|
13
|
-
var
|
|
9
|
+
import { AddressDepthService as h, AddressService as g, BreadthService as oe, CallablesModule as se, CallablesService as ce, ClassesModule as le, ClassesService as ue, EdgesModule as de, EntriesModule as fe, EntriesService as pe, ExternalService as me, FileFilterService as _, GraphAssemblyService as v, GraphModule as y, ProgramConfigurationError as he, ProgramModule as ge, ProgramService as b, WorkspaceModule as _e, WorkspaceService as x } from "@callidescope/graph";
|
|
10
|
+
import { AddressReportModule as ve, AddressReportService as S, MarkdownReportService as ye, OutputJsonModule as be, OutputJsonService as xe, OutputMarkdownModule as Se, ProjectReportsModule as Ce, ProjectReportsService as we, ReportFindingsModule as Te, ReportFindingsService as C, ReportModule as Ee, WriteDestinationsModule as De, WriteDestinationsService as w } from "@callidescope/output";
|
|
11
|
+
import { Command as T, CommandRunner as E, Option as D } from "nest-commander";
|
|
12
|
+
//#region \0rolldown/runtime.js
|
|
13
|
+
var Oe = Object.defineProperty, __name = (e, t) => Oe(e, "name", {
|
|
14
|
+
value: t,
|
|
15
|
+
configurable: !0
|
|
16
|
+
}), ke = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s+/u, Ae = /^([A-Za-z]+)/, je = /* @__PURE__ */ new Set([
|
|
14
17
|
"built",
|
|
15
18
|
"cut",
|
|
16
19
|
"found",
|
|
@@ -28,7 +31,7 @@ var Ae = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
28
31
|
"split",
|
|
29
32
|
"took",
|
|
30
33
|
"wrote"
|
|
31
|
-
]),
|
|
34
|
+
]), Me = /* @__PURE__ */ new Set([
|
|
32
35
|
"CommandFactory",
|
|
33
36
|
"ExceptionHandler",
|
|
34
37
|
"GraphQLModule",
|
|
@@ -41,12 +44,12 @@ var Ae = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
41
44
|
]);
|
|
42
45
|
//#endregion
|
|
43
46
|
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorateMetadata.js
|
|
44
|
-
function
|
|
47
|
+
function __decorateMetadata(e, t) {
|
|
45
48
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
46
49
|
}
|
|
47
50
|
//#endregion
|
|
48
51
|
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorate.js
|
|
49
|
-
function
|
|
52
|
+
function __decorate(e, t, n, r) {
|
|
50
53
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
51
54
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
52
55
|
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);
|
|
@@ -54,7 +57,7 @@ function D(e, t, n, r) {
|
|
|
54
57
|
}
|
|
55
58
|
//#endregion
|
|
56
59
|
//#region packages/logging/src/modules/logger/logger.service.ts
|
|
57
|
-
var O, k = class extends l {
|
|
60
|
+
var O, k = class LoggerService extends l {
|
|
58
61
|
static {
|
|
59
62
|
O = this;
|
|
60
63
|
}
|
|
@@ -106,15 +109,15 @@ var O, k = class extends l {
|
|
|
106
109
|
getConventionalMessageViolation(e) {
|
|
107
110
|
let t = e.emoji, n = e.text;
|
|
108
111
|
if (t === void 0) return `Log message must start with an emoji naming its subject, then a verb: "${n}"`;
|
|
109
|
-
let r =
|
|
112
|
+
let r = Ae.exec(n)?.[1];
|
|
110
113
|
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}"`;
|
|
111
114
|
}
|
|
112
115
|
isConventionalVerb(e) {
|
|
113
116
|
let t = e.toLowerCase();
|
|
114
|
-
return t.endsWith("ing") || t.endsWith("ed") ||
|
|
117
|
+
return t.endsWith("ing") || t.endsWith("ed") || je.has(t);
|
|
115
118
|
}
|
|
116
119
|
parseMessage(e) {
|
|
117
|
-
let t = String(e), n =
|
|
120
|
+
let t = String(e), n = ke.exec(t), r = n?.[1];
|
|
118
121
|
return r === void 0 ? {
|
|
119
122
|
emoji: void 0,
|
|
120
123
|
text: t
|
|
@@ -124,7 +127,7 @@ var O, k = class extends l {
|
|
|
124
127
|
};
|
|
125
128
|
}
|
|
126
129
|
shouldSkipConventionalMessageValidation(e) {
|
|
127
|
-
return e !== void 0 &&
|
|
130
|
+
return e !== void 0 && Me.has(e);
|
|
128
131
|
}
|
|
129
132
|
static get root() {
|
|
130
133
|
return O.rootLogger ??= O.createRootLogger(), O.rootLogger;
|
|
@@ -190,11 +193,11 @@ var O, k = class extends l {
|
|
|
190
193
|
}), r.text);
|
|
191
194
|
}
|
|
192
195
|
};
|
|
193
|
-
k = O =
|
|
196
|
+
k = O = __decorate([d({ scope: ee.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], k);
|
|
194
197
|
//#endregion
|
|
195
198
|
//#region packages/logging/src/modules/logger/logger.module.ts
|
|
196
|
-
var A = class {};
|
|
197
|
-
A =
|
|
199
|
+
var A = class LoggerModule {};
|
|
200
|
+
A = __decorate([u(), f({
|
|
198
201
|
controllers: [],
|
|
199
202
|
exports: [k],
|
|
200
203
|
imports: [],
|
|
@@ -202,9 +205,9 @@ A = D([u(), f({
|
|
|
202
205
|
})], A);
|
|
203
206
|
//#endregion
|
|
204
207
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/constants.ts
|
|
205
|
-
var
|
|
206
|
-
constructor(
|
|
207
|
-
super(
|
|
208
|
+
var Ne = ae.object({}), j = "Check the file path and the qualified name callidescope prints for it in a stack.", M = "🔭 Rejected a callable address", isRefusedProjectConfiguration = (e) => e instanceof s || e instanceof c, N = "🔭 Rejected the command line", Pe = "🔭 Rejected a project it could not read", Fe = "🔭 Rejected a project configuration", buildUnknownCommandMessage = (e) => `${e} is not a callidescope command, and the trace takes no positional arguments. Run one of depth, breadth, or limits, or drop the argument to trace the workspace.`, readRefusalHeadline = (e) => e instanceof he ? Pe : isRefusedProjectConfiguration(e) || e instanceof Ie ? Fe : e instanceof o ? N : void 0, Ie = class UnresolvedEntryPointAddressError extends Error {
|
|
209
|
+
constructor(e) {
|
|
210
|
+
super(UnresolvedEntryPointAddressError.joinDescriptions(e)), this.name = "UnresolvedEntryPointAddressError";
|
|
208
211
|
}
|
|
209
212
|
static joinDescriptions(e) {
|
|
210
213
|
let [t] = e;
|
|
@@ -212,7 +215,7 @@ var Pe = ae.object({}), Fe = "Check the file path and the qualified name callide
|
|
|
212
215
|
let n = e.map((e, t) => `(${String(t + 1)}) ${e}`).join(" ");
|
|
213
216
|
return `${String(e.length)} declared entry points did not resolve. ${n}`;
|
|
214
217
|
}
|
|
215
|
-
}, P, F = P = class {
|
|
218
|
+
}, P, F = P = class CallidescopeService {
|
|
216
219
|
callablesService;
|
|
217
220
|
classHierarchyService;
|
|
218
221
|
entryPointsService;
|
|
@@ -393,14 +396,14 @@ var Pe = ae.object({}), Fe = "Check the file path and the qualified name callide
|
|
|
393
396
|
};
|
|
394
397
|
}
|
|
395
398
|
};
|
|
396
|
-
F = P =
|
|
399
|
+
F = P = __decorate([d(), __decorateMetadata("design:paramtypes", [
|
|
397
400
|
ce === void 0 ? Object : ce,
|
|
398
401
|
ue === void 0 ? Object : ue,
|
|
399
402
|
pe === void 0 ? Object : pe,
|
|
400
403
|
me === void 0 ? Object : me,
|
|
401
404
|
_ === void 0 ? Object : _,
|
|
402
|
-
|
|
403
|
-
|
|
405
|
+
v === void 0 ? Object : v,
|
|
406
|
+
b === void 0 ? Object : b,
|
|
404
407
|
n === void 0 ? Object : n,
|
|
405
408
|
we === void 0 ? Object : we,
|
|
406
409
|
x === void 0 ? Object : x,
|
|
@@ -408,7 +411,7 @@ F = P = D([d(), E("design:paramtypes", [
|
|
|
408
411
|
])], F);
|
|
409
412
|
//#endregion
|
|
410
413
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/callidescope/callidescope.command.ts
|
|
411
|
-
var I, L = I = class extends
|
|
414
|
+
var I, L = I = class CallidescopeCommand extends E {
|
|
412
415
|
addressService;
|
|
413
416
|
callidescopeService;
|
|
414
417
|
configurationService;
|
|
@@ -422,7 +425,7 @@ var I, L = I = class extends w {
|
|
|
422
425
|
}
|
|
423
426
|
describeUnresolvedAddress(e) {
|
|
424
427
|
let t = e.projectName ?? "the workspace configuration", { address: n, resolution: r } = e;
|
|
425
|
-
return r.kind === "not-found" ? `${t} declares an entryPoints.addresses entry that resolves to nothing: "${n}". ${
|
|
428
|
+
return r.kind === "not-found" ? `${t} declares an entryPoints.addresses entry that resolves to nothing: "${n}". ${j}` : r.kind === "invalid" ? `${t} declares an invalid entryPoints.addresses entry. ${r.reason}` : `${t} declares an entryPoints.addresses entry that matches more than one declaration: "${n}". ${this.addressService.describeCandidates({
|
|
426
429
|
address: n,
|
|
427
430
|
candidates: r.candidates
|
|
428
431
|
})}`;
|
|
@@ -454,7 +457,7 @@ var I, L = I = class extends w {
|
|
|
454
457
|
async traceWorkspace(e) {
|
|
455
458
|
let t = await this.configurationService.resolveFormatOption(e), { errors: n, run: r } = await this.configurationService.prepareRun(t);
|
|
456
459
|
if (r === void 0) {
|
|
457
|
-
this.reject(
|
|
460
|
+
this.reject(N, { reasons: n });
|
|
458
461
|
return;
|
|
459
462
|
}
|
|
460
463
|
this.logger.debug("🔭 Starting a call-stack trace", void 0, {
|
|
@@ -469,7 +472,7 @@ var I, L = I = class extends w {
|
|
|
469
472
|
limitOverrides: c,
|
|
470
473
|
workspaceRoot: u
|
|
471
474
|
});
|
|
472
|
-
if (d.unresolvedAddresses.length > 0) throw new
|
|
475
|
+
if (d.unresolvedAddresses.length > 0) throw new Ie(d.unresolvedAddresses.map((e) => this.describeUnresolvedAddress(e)));
|
|
473
476
|
this.report({
|
|
474
477
|
configuration: a,
|
|
475
478
|
format: s,
|
|
@@ -548,200 +551,200 @@ var I, L = I = class extends w {
|
|
|
548
551
|
async run(e, t) {
|
|
549
552
|
let [n] = e;
|
|
550
553
|
if (n !== void 0) {
|
|
551
|
-
this.reject(
|
|
554
|
+
this.reject(N, { reason: buildUnknownCommandMessage(n) });
|
|
552
555
|
return;
|
|
553
556
|
}
|
|
554
557
|
try {
|
|
555
558
|
await this.traceWorkspace(t);
|
|
556
559
|
} catch (e) {
|
|
557
|
-
let t =
|
|
560
|
+
let t = readRefusalHeadline(e);
|
|
558
561
|
if (t === void 0 || !(e instanceof Error)) throw e;
|
|
559
562
|
this.reject(t, { reason: e.message });
|
|
560
563
|
}
|
|
561
564
|
}
|
|
562
565
|
};
|
|
563
|
-
|
|
564
|
-
|
|
566
|
+
__decorate([
|
|
567
|
+
D({
|
|
565
568
|
description: `Fail on a comma-separated set drawn from ${e.map((e) => `"${e}"`).join(" and ")}`,
|
|
566
569
|
flags: "--check [check]"
|
|
567
570
|
}),
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
], L.prototype, "parseCheck", null),
|
|
572
|
-
|
|
571
|
+
__decorateMetadata("design:type", Function),
|
|
572
|
+
__decorateMetadata("design:paramtypes", [String]),
|
|
573
|
+
__decorateMetadata("design:returntype", String)
|
|
574
|
+
], L.prototype, "parseCheck", null), __decorate([
|
|
575
|
+
D({
|
|
573
576
|
description: "Path to a callidescope configuration file",
|
|
574
577
|
flags: "--config [config]"
|
|
575
578
|
}),
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
], L.prototype, "parseConfig", null),
|
|
580
|
-
|
|
579
|
+
__decorateMetadata("design:type", Function),
|
|
580
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
581
|
+
__decorateMetadata("design:returntype", Object)
|
|
582
|
+
], L.prototype, "parseConfig", null), __decorate([
|
|
583
|
+
D({
|
|
581
584
|
description: "Comma-separated project directories to trace",
|
|
582
585
|
flags: "-d, --directories [directories]"
|
|
583
586
|
}),
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
], L.prototype, "parseDirectories", null),
|
|
588
|
-
|
|
587
|
+
__decorateMetadata("design:type", Function),
|
|
588
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
589
|
+
__decorateMetadata("design:returntype", Array)
|
|
590
|
+
], L.prototype, "parseDirectories", null), __decorate([
|
|
591
|
+
D({
|
|
589
592
|
description: "Comma-separated callable addresses to root stacks at",
|
|
590
593
|
flags: "--entry-point-addresses [entryPointAddresses]"
|
|
591
594
|
}),
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
], L.prototype, "parseEntryPointAddresses", null),
|
|
596
|
-
|
|
595
|
+
__decorateMetadata("design:type", Function),
|
|
596
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
597
|
+
__decorateMetadata("design:returntype", Array)
|
|
598
|
+
], L.prototype, "parseEntryPointAddresses", null), __decorate([
|
|
599
|
+
D({
|
|
597
600
|
description: "Comma-separated decorators whose methods a framework invokes",
|
|
598
601
|
flags: "--entry-point-decorators [entryPointDecorators]"
|
|
599
602
|
}),
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
], L.prototype, "parseEntryPointDecorators", null),
|
|
604
|
-
|
|
603
|
+
__decorateMetadata("design:type", Function),
|
|
604
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
605
|
+
__decorateMetadata("design:returntype", Array)
|
|
606
|
+
], L.prototype, "parseEntryPointDecorators", null), __decorate([
|
|
607
|
+
D({
|
|
605
608
|
description: "Comma-separated globs to leave untraced",
|
|
606
609
|
flags: "--exclude [exclude]"
|
|
607
610
|
}),
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
], L.prototype, "parseExclude", null),
|
|
612
|
-
|
|
611
|
+
__decorateMetadata("design:type", Function),
|
|
612
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
613
|
+
__decorateMetadata("design:returntype", Array)
|
|
614
|
+
], L.prototype, "parseExclude", null), __decorate([
|
|
615
|
+
D({
|
|
613
616
|
description: "Comma-separated display-name globs to drop calls landing on",
|
|
614
617
|
flags: "--exclude-callees [excludeCallees]"
|
|
615
618
|
}),
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
], L.prototype, "parseExcludeCallees", null),
|
|
620
|
-
|
|
619
|
+
__decorateMetadata("design:type", Function),
|
|
620
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
621
|
+
__decorateMetadata("design:returntype", Array)
|
|
622
|
+
], L.prototype, "parseExcludeCallees", null), __decorate([
|
|
623
|
+
D({
|
|
621
624
|
description: "What to print: markdown, mermaid, or json",
|
|
622
625
|
flags: "-f, --format [format]"
|
|
623
626
|
}),
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
], L.prototype, "parseFormat", null),
|
|
628
|
-
|
|
627
|
+
__decorateMetadata("design:type", Function),
|
|
628
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
629
|
+
__decorateMetadata("design:returntype", Object)
|
|
630
|
+
], L.prototype, "parseFormat", null), __decorate([
|
|
631
|
+
D({
|
|
629
632
|
description: "Treat every src/index.ts export as a root: \"true\" or \"false\"",
|
|
630
633
|
flags: "--include-exported-functions [includeExportedFunctions]"
|
|
631
634
|
}),
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
], L.prototype, "parseIncludeExportedFunctions", null),
|
|
636
|
-
|
|
635
|
+
__decorateMetadata("design:type", Function),
|
|
636
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
637
|
+
__decorateMetadata("design:returntype", Object)
|
|
638
|
+
], L.prototype, "parseIncludeExportedFunctions", null), __decorate([
|
|
639
|
+
D({
|
|
637
640
|
description: "Promote callables nothing calls: \"true\" or \"false\"",
|
|
638
641
|
flags: "--include-orphans [includeOrphans]"
|
|
639
642
|
}),
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
], L.prototype, "parseIncludeOrphans", null),
|
|
644
|
-
|
|
643
|
+
__decorateMetadata("design:type", Function),
|
|
644
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
645
|
+
__decorateMetadata("design:returntype", Object)
|
|
646
|
+
], L.prototype, "parseIncludeOrphans", null), __decorate([
|
|
647
|
+
D({
|
|
645
648
|
description: "Trace test files too: \"true\" or \"false\"",
|
|
646
649
|
flags: "--include-tests [includeTests]"
|
|
647
650
|
}),
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
], L.prototype, "parseIncludeTests", null),
|
|
652
|
-
|
|
651
|
+
__decorateMetadata("design:type", Function),
|
|
652
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
653
|
+
__decorateMetadata("design:returntype", Object)
|
|
654
|
+
], L.prototype, "parseIncludeTests", null), __decorate([
|
|
655
|
+
D({
|
|
653
656
|
description: "Where the JSON report goes when --write or --check reports asks for it",
|
|
654
657
|
flags: "--json [json]"
|
|
655
658
|
}),
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
], L.prototype, "parseJson", null),
|
|
660
|
-
|
|
659
|
+
__decorateMetadata("design:type", Function),
|
|
660
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
661
|
+
__decorateMetadata("design:returntype", Object)
|
|
662
|
+
], L.prototype, "parseJson", null), __decorate([
|
|
663
|
+
D({
|
|
661
664
|
description: "Where the markdown block goes when --write or --check reports asks for it",
|
|
662
665
|
flags: "-m, --markdown [markdown]"
|
|
663
666
|
}),
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
], L.prototype, "parseMarkdown", null),
|
|
668
|
-
|
|
667
|
+
__decorateMetadata("design:type", Function),
|
|
668
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
669
|
+
__decorateMetadata("design:returntype", Object)
|
|
670
|
+
], L.prototype, "parseMarkdown", null), __decorate([
|
|
671
|
+
D({
|
|
669
672
|
description: "Override the configured limits.maximumBreadth",
|
|
670
673
|
flags: "--maximum-breadth <maximumBreadth>"
|
|
671
674
|
}),
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
], L.prototype, "parseMaximumBreadth", null),
|
|
676
|
-
|
|
675
|
+
__decorateMetadata("design:type", Function),
|
|
676
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
677
|
+
__decorateMetadata("design:returntype", Object)
|
|
678
|
+
], L.prototype, "parseMaximumBreadth", null), __decorate([
|
|
679
|
+
D({
|
|
677
680
|
description: "Override the configured limits.maximumDepth",
|
|
678
681
|
flags: "--maximum-depth <maximumDepth>"
|
|
679
682
|
}),
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
], L.prototype, "parseMaximumDepth", null),
|
|
684
|
-
|
|
683
|
+
__decorateMetadata("design:type", Function),
|
|
684
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
685
|
+
__decorateMetadata("design:returntype", Object)
|
|
686
|
+
], L.prototype, "parseMaximumDepth", null), __decorate([
|
|
687
|
+
D({
|
|
685
688
|
description: "Where the mermaid block goes when --write or --check reports asks for it",
|
|
686
689
|
flags: "--mermaid [mermaid]"
|
|
687
690
|
}),
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
], L.prototype, "parseMermaid", null),
|
|
692
|
-
|
|
691
|
+
__decorateMetadata("design:type", Function),
|
|
692
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
693
|
+
__decorateMetadata("design:returntype", Object)
|
|
694
|
+
], L.prototype, "parseMermaid", null), __decorate([
|
|
695
|
+
D({
|
|
693
696
|
description: "Write every configured destination",
|
|
694
697
|
flags: "--write"
|
|
695
698
|
}),
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
], L.prototype, "parseWrite", null), L = I =
|
|
700
|
-
|
|
699
|
+
__decorateMetadata("design:type", Function),
|
|
700
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
701
|
+
__decorateMetadata("design:returntype", Boolean)
|
|
702
|
+
], L.prototype, "parseWrite", null), L = I = __decorate([
|
|
703
|
+
T({
|
|
701
704
|
description: "Run the callidescope command",
|
|
702
705
|
name: "callidescope",
|
|
703
706
|
options: { isDefault: !0 }
|
|
704
707
|
}),
|
|
705
708
|
d(),
|
|
706
|
-
|
|
707
|
-
|
|
709
|
+
__decorateMetadata("design:paramtypes", [
|
|
710
|
+
g === void 0 ? Object : g,
|
|
708
711
|
F === void 0 ? Object : F,
|
|
709
712
|
n === void 0 ? Object : n,
|
|
710
713
|
xe === void 0 ? Object : xe,
|
|
711
714
|
ye === void 0 ? Object : ye,
|
|
712
|
-
|
|
713
|
-
|
|
715
|
+
C === void 0 ? Object : C,
|
|
716
|
+
w === void 0 ? Object : w,
|
|
714
717
|
k === void 0 ? Object : k
|
|
715
718
|
])
|
|
716
719
|
], L);
|
|
717
720
|
//#endregion
|
|
718
721
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/callidescope/callidescope.module.ts
|
|
719
|
-
var R = class {};
|
|
720
|
-
R =
|
|
722
|
+
var R = class CallidescopeModule {};
|
|
723
|
+
R = __decorate([f({
|
|
721
724
|
controllers: [],
|
|
722
725
|
exports: [L, F],
|
|
723
726
|
imports: [
|
|
724
|
-
|
|
727
|
+
se,
|
|
725
728
|
t,
|
|
726
729
|
de,
|
|
727
730
|
fe,
|
|
728
|
-
|
|
731
|
+
y,
|
|
729
732
|
le,
|
|
730
733
|
A,
|
|
731
734
|
be,
|
|
732
735
|
Se,
|
|
733
|
-
|
|
736
|
+
ge,
|
|
734
737
|
Ce,
|
|
735
738
|
Te,
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
+
Ee,
|
|
740
|
+
_e,
|
|
741
|
+
De
|
|
739
742
|
],
|
|
740
743
|
providers: [L, F]
|
|
741
744
|
})], R);
|
|
742
745
|
//#endregion
|
|
743
746
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/address-lookup/address-lookup.service.ts
|
|
744
|
-
var z = class {
|
|
747
|
+
var z = class AddressLookupService {
|
|
745
748
|
addressService;
|
|
746
749
|
callidescopeService;
|
|
747
750
|
configurationService;
|
|
@@ -750,7 +753,7 @@ var z = class {
|
|
|
750
753
|
}
|
|
751
754
|
describeProblem(e) {
|
|
752
755
|
let { resolution: t } = e;
|
|
753
|
-
if (t.kind !== "resolved") return t.kind === "invalid" ? t.reason : t.kind === "not-found" ? `No callable matches "${e.address}". ${
|
|
756
|
+
if (t.kind !== "resolved") return t.kind === "invalid" ? t.reason : t.kind === "not-found" ? `No callable matches "${e.address}". ${j}` : `"${e.address}" matches more than one declaration. ${this.addressService.describeCandidates({
|
|
754
757
|
address: e.address,
|
|
755
758
|
candidates: t.candidates
|
|
756
759
|
})}`;
|
|
@@ -781,19 +784,19 @@ var z = class {
|
|
|
781
784
|
});
|
|
782
785
|
}
|
|
783
786
|
};
|
|
784
|
-
z =
|
|
785
|
-
|
|
787
|
+
z = __decorate([d(), __decorateMetadata("design:paramtypes", [
|
|
788
|
+
g === void 0 ? Object : g,
|
|
786
789
|
F === void 0 ? Object : F,
|
|
787
790
|
n === void 0 ? Object : n
|
|
788
791
|
])], z);
|
|
789
792
|
//#endregion
|
|
790
793
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/address-lookup/address-lookup.module.ts
|
|
791
|
-
var B = class {};
|
|
792
|
-
B =
|
|
794
|
+
var B = class AddressLookupModule {};
|
|
795
|
+
B = __decorate([f({
|
|
793
796
|
controllers: [],
|
|
794
797
|
exports: [z],
|
|
795
798
|
imports: [
|
|
796
|
-
|
|
799
|
+
se,
|
|
797
800
|
R,
|
|
798
801
|
t
|
|
799
802
|
],
|
|
@@ -801,7 +804,7 @@ B = D([f({
|
|
|
801
804
|
})], B);
|
|
802
805
|
//#endregion
|
|
803
806
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/breadth/breadth.command.ts
|
|
804
|
-
var V, H = V = class extends
|
|
807
|
+
var V, H = V = class BreadthCommand extends E {
|
|
805
808
|
addressLookupService;
|
|
806
809
|
addressReportService;
|
|
807
810
|
breadthService;
|
|
@@ -824,7 +827,7 @@ var V, H = V = class extends w {
|
|
|
824
827
|
t.push(i);
|
|
825
828
|
}
|
|
826
829
|
if (n.length > 0) {
|
|
827
|
-
this.reject(
|
|
830
|
+
this.reject(M, { problems: n });
|
|
828
831
|
return;
|
|
829
832
|
}
|
|
830
833
|
return t;
|
|
@@ -909,124 +912,124 @@ var V, H = V = class extends w {
|
|
|
909
912
|
try {
|
|
910
913
|
await this.printBreadth(t);
|
|
911
914
|
} catch (e) {
|
|
912
|
-
let t =
|
|
915
|
+
let t = readRefusalHeadline(e);
|
|
913
916
|
if (t === void 0 || !(e instanceof Error)) throw e;
|
|
914
917
|
this.reject(t, { reason: e.message });
|
|
915
918
|
}
|
|
916
919
|
}
|
|
917
920
|
};
|
|
918
|
-
|
|
919
|
-
|
|
921
|
+
__decorate([
|
|
922
|
+
D({
|
|
920
923
|
description: "Comma-separated callable addresses, each <file>#<qualified-name>",
|
|
921
924
|
flags: "-a, --addresses [addresses]"
|
|
922
925
|
}),
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
], H.prototype, "parseAddresses", null),
|
|
927
|
-
|
|
926
|
+
__decorateMetadata("design:type", Function),
|
|
927
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
928
|
+
__decorateMetadata("design:returntype", Array)
|
|
929
|
+
], H.prototype, "parseAddresses", null), __decorate([
|
|
930
|
+
D({
|
|
928
931
|
description: "Path to a callidescope configuration file",
|
|
929
932
|
flags: "--config [config]"
|
|
930
933
|
}),
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
], H.prototype, "parseConfig", null),
|
|
935
|
-
|
|
934
|
+
__decorateMetadata("design:type", Function),
|
|
935
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
936
|
+
__decorateMetadata("design:returntype", Object)
|
|
937
|
+
], H.prototype, "parseConfig", null), __decorate([
|
|
938
|
+
D({
|
|
936
939
|
description: "Comma-separated project directories to trace",
|
|
937
940
|
flags: "-d, --directories [directories]"
|
|
938
941
|
}),
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
], H.prototype, "parseDirectories", null),
|
|
943
|
-
|
|
942
|
+
__decorateMetadata("design:type", Function),
|
|
943
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
944
|
+
__decorateMetadata("design:returntype", Array)
|
|
945
|
+
], H.prototype, "parseDirectories", null), __decorate([
|
|
946
|
+
D({
|
|
944
947
|
description: "Comma-separated callable addresses to root stacks at",
|
|
945
948
|
flags: "--entry-point-addresses [entryPointAddresses]"
|
|
946
949
|
}),
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
], H.prototype, "parseEntryPointAddresses", null),
|
|
951
|
-
|
|
950
|
+
__decorateMetadata("design:type", Function),
|
|
951
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
952
|
+
__decorateMetadata("design:returntype", Array)
|
|
953
|
+
], H.prototype, "parseEntryPointAddresses", null), __decorate([
|
|
954
|
+
D({
|
|
952
955
|
description: "Comma-separated decorators whose methods a framework invokes",
|
|
953
956
|
flags: "--entry-point-decorators [entryPointDecorators]"
|
|
954
957
|
}),
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
], H.prototype, "parseEntryPointDecorators", null),
|
|
959
|
-
|
|
958
|
+
__decorateMetadata("design:type", Function),
|
|
959
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
960
|
+
__decorateMetadata("design:returntype", Array)
|
|
961
|
+
], H.prototype, "parseEntryPointDecorators", null), __decorate([
|
|
962
|
+
D({
|
|
960
963
|
description: "Comma-separated globs to leave untraced",
|
|
961
964
|
flags: "--exclude [exclude]"
|
|
962
965
|
}),
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
], H.prototype, "parseExclude", null),
|
|
967
|
-
|
|
966
|
+
__decorateMetadata("design:type", Function),
|
|
967
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
968
|
+
__decorateMetadata("design:returntype", Array)
|
|
969
|
+
], H.prototype, "parseExclude", null), __decorate([
|
|
970
|
+
D({
|
|
968
971
|
description: "Comma-separated display-name globs to drop calls landing on",
|
|
969
972
|
flags: "--exclude-callees [excludeCallees]"
|
|
970
973
|
}),
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
], H.prototype, "parseExcludeCallees", null),
|
|
975
|
-
|
|
974
|
+
__decorateMetadata("design:type", Function),
|
|
975
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
976
|
+
__decorateMetadata("design:returntype", Array)
|
|
977
|
+
], H.prototype, "parseExcludeCallees", null), __decorate([
|
|
978
|
+
D({
|
|
976
979
|
description: "What to print: markdown, mermaid, or json",
|
|
977
980
|
flags: "-f, --format [format]"
|
|
978
981
|
}),
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
], H.prototype, "parseFormat", null),
|
|
983
|
-
|
|
982
|
+
__decorateMetadata("design:type", Function),
|
|
983
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
984
|
+
__decorateMetadata("design:returntype", Object)
|
|
985
|
+
], H.prototype, "parseFormat", null), __decorate([
|
|
986
|
+
D({
|
|
984
987
|
description: "Treat every src/index.ts export as a root: \"true\" or \"false\"",
|
|
985
988
|
flags: "--include-exported-functions [includeExportedFunctions]"
|
|
986
989
|
}),
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
], H.prototype, "parseIncludeExportedFunctions", null),
|
|
991
|
-
|
|
990
|
+
__decorateMetadata("design:type", Function),
|
|
991
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
992
|
+
__decorateMetadata("design:returntype", Object)
|
|
993
|
+
], H.prototype, "parseIncludeExportedFunctions", null), __decorate([
|
|
994
|
+
D({
|
|
992
995
|
description: "Promote callables nothing calls: \"true\" or \"false\"",
|
|
993
996
|
flags: "--include-orphans [includeOrphans]"
|
|
994
997
|
}),
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
], H.prototype, "parseIncludeOrphans", null),
|
|
999
|
-
|
|
998
|
+
__decorateMetadata("design:type", Function),
|
|
999
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1000
|
+
__decorateMetadata("design:returntype", Object)
|
|
1001
|
+
], H.prototype, "parseIncludeOrphans", null), __decorate([
|
|
1002
|
+
D({
|
|
1000
1003
|
description: "Trace test files too: \"true\" or \"false\"",
|
|
1001
1004
|
flags: "--include-tests [includeTests]"
|
|
1002
1005
|
}),
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
], H.prototype, "parseIncludeTests", null), H = V =
|
|
1007
|
-
|
|
1006
|
+
__decorateMetadata("design:type", Function),
|
|
1007
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1008
|
+
__decorateMetadata("design:returntype", Object)
|
|
1009
|
+
], H.prototype, "parseIncludeTests", null), H = V = __decorate([
|
|
1010
|
+
T({
|
|
1008
1011
|
description: "Print the direct callers and callees of one or more callables, each addressed as <file>#<qualified-name>",
|
|
1009
1012
|
name: "breadth"
|
|
1010
1013
|
}),
|
|
1011
1014
|
d(),
|
|
1012
|
-
|
|
1015
|
+
__decorateMetadata("design:paramtypes", [
|
|
1013
1016
|
z === void 0 ? Object : z,
|
|
1014
1017
|
S === void 0 ? Object : S,
|
|
1015
|
-
|
|
1018
|
+
oe === void 0 ? Object : oe,
|
|
1016
1019
|
n === void 0 ? Object : n,
|
|
1017
1020
|
k === void 0 ? Object : k
|
|
1018
1021
|
])
|
|
1019
1022
|
], H);
|
|
1020
1023
|
//#endregion
|
|
1021
1024
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/breadth/breadth.module.ts
|
|
1022
|
-
var U = class {};
|
|
1023
|
-
U =
|
|
1025
|
+
var U = class BreadthModule {};
|
|
1026
|
+
U = __decorate([f({
|
|
1024
1027
|
controllers: [],
|
|
1025
1028
|
exports: [H],
|
|
1026
1029
|
imports: [
|
|
1027
1030
|
B,
|
|
1028
1031
|
ve,
|
|
1029
|
-
|
|
1032
|
+
y,
|
|
1030
1033
|
t,
|
|
1031
1034
|
A
|
|
1032
1035
|
],
|
|
@@ -1034,7 +1037,7 @@ U = D([f({
|
|
|
1034
1037
|
})], U);
|
|
1035
1038
|
//#endregion
|
|
1036
1039
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/depth/depth.command.ts
|
|
1037
|
-
var W, G = W = class extends
|
|
1040
|
+
var W, G = W = class DepthCommand extends E {
|
|
1038
1041
|
addressLookupService;
|
|
1039
1042
|
addressReportService;
|
|
1040
1043
|
addressDepthService;
|
|
@@ -1063,7 +1066,7 @@ var W, G = W = class extends w {
|
|
|
1063
1066
|
});
|
|
1064
1067
|
}
|
|
1065
1068
|
if (n.length > 0) {
|
|
1066
|
-
this.reject(
|
|
1069
|
+
this.reject(M, { problems: n });
|
|
1067
1070
|
return;
|
|
1068
1071
|
}
|
|
1069
1072
|
return t;
|
|
@@ -1141,124 +1144,124 @@ var W, G = W = class extends w {
|
|
|
1141
1144
|
try {
|
|
1142
1145
|
await this.printDepth(t);
|
|
1143
1146
|
} catch (e) {
|
|
1144
|
-
let t =
|
|
1147
|
+
let t = readRefusalHeadline(e);
|
|
1145
1148
|
if (t === void 0 || !(e instanceof Error)) throw e;
|
|
1146
1149
|
this.reject(t, { reason: e.message });
|
|
1147
1150
|
}
|
|
1148
1151
|
}
|
|
1149
1152
|
};
|
|
1150
|
-
|
|
1151
|
-
|
|
1153
|
+
__decorate([
|
|
1154
|
+
D({
|
|
1152
1155
|
description: "Comma-separated callable addresses, each <file>#<qualified-name>",
|
|
1153
1156
|
flags: "-a, --addresses [addresses]"
|
|
1154
1157
|
}),
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
], G.prototype, "parseAddresses", null),
|
|
1159
|
-
|
|
1158
|
+
__decorateMetadata("design:type", Function),
|
|
1159
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1160
|
+
__decorateMetadata("design:returntype", Array)
|
|
1161
|
+
], G.prototype, "parseAddresses", null), __decorate([
|
|
1162
|
+
D({
|
|
1160
1163
|
description: "Path to a callidescope configuration file",
|
|
1161
1164
|
flags: "--config [config]"
|
|
1162
1165
|
}),
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
], G.prototype, "parseConfig", null),
|
|
1167
|
-
|
|
1166
|
+
__decorateMetadata("design:type", Function),
|
|
1167
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1168
|
+
__decorateMetadata("design:returntype", Object)
|
|
1169
|
+
], G.prototype, "parseConfig", null), __decorate([
|
|
1170
|
+
D({
|
|
1168
1171
|
description: "Comma-separated project directories to trace",
|
|
1169
1172
|
flags: "-d, --directories [directories]"
|
|
1170
1173
|
}),
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
], G.prototype, "parseDirectories", null),
|
|
1175
|
-
|
|
1174
|
+
__decorateMetadata("design:type", Function),
|
|
1175
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1176
|
+
__decorateMetadata("design:returntype", Array)
|
|
1177
|
+
], G.prototype, "parseDirectories", null), __decorate([
|
|
1178
|
+
D({
|
|
1176
1179
|
description: "Comma-separated callable addresses to root stacks at",
|
|
1177
1180
|
flags: "--entry-point-addresses [entryPointAddresses]"
|
|
1178
1181
|
}),
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
], G.prototype, "parseEntryPointAddresses", null),
|
|
1183
|
-
|
|
1182
|
+
__decorateMetadata("design:type", Function),
|
|
1183
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1184
|
+
__decorateMetadata("design:returntype", Array)
|
|
1185
|
+
], G.prototype, "parseEntryPointAddresses", null), __decorate([
|
|
1186
|
+
D({
|
|
1184
1187
|
description: "Comma-separated decorators whose methods a framework invokes",
|
|
1185
1188
|
flags: "--entry-point-decorators [entryPointDecorators]"
|
|
1186
1189
|
}),
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
], G.prototype, "parseEntryPointDecorators", null),
|
|
1191
|
-
|
|
1190
|
+
__decorateMetadata("design:type", Function),
|
|
1191
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1192
|
+
__decorateMetadata("design:returntype", Array)
|
|
1193
|
+
], G.prototype, "parseEntryPointDecorators", null), __decorate([
|
|
1194
|
+
D({
|
|
1192
1195
|
description: "Comma-separated globs to leave untraced",
|
|
1193
1196
|
flags: "--exclude [exclude]"
|
|
1194
1197
|
}),
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
], G.prototype, "parseExclude", null),
|
|
1199
|
-
|
|
1198
|
+
__decorateMetadata("design:type", Function),
|
|
1199
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1200
|
+
__decorateMetadata("design:returntype", Array)
|
|
1201
|
+
], G.prototype, "parseExclude", null), __decorate([
|
|
1202
|
+
D({
|
|
1200
1203
|
description: "Comma-separated display-name globs to drop calls landing on",
|
|
1201
1204
|
flags: "--exclude-callees [excludeCallees]"
|
|
1202
1205
|
}),
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
], G.prototype, "parseExcludeCallees", null),
|
|
1207
|
-
|
|
1206
|
+
__decorateMetadata("design:type", Function),
|
|
1207
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1208
|
+
__decorateMetadata("design:returntype", Array)
|
|
1209
|
+
], G.prototype, "parseExcludeCallees", null), __decorate([
|
|
1210
|
+
D({
|
|
1208
1211
|
description: "What to print: markdown, mermaid, or json",
|
|
1209
1212
|
flags: "-f, --format [format]"
|
|
1210
1213
|
}),
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
], G.prototype, "parseFormat", null),
|
|
1215
|
-
|
|
1214
|
+
__decorateMetadata("design:type", Function),
|
|
1215
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1216
|
+
__decorateMetadata("design:returntype", Object)
|
|
1217
|
+
], G.prototype, "parseFormat", null), __decorate([
|
|
1218
|
+
D({
|
|
1216
1219
|
description: "Treat every src/index.ts export as a root: \"true\" or \"false\"",
|
|
1217
1220
|
flags: "--include-exported-functions [includeExportedFunctions]"
|
|
1218
1221
|
}),
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
], G.prototype, "parseIncludeExportedFunctions", null),
|
|
1223
|
-
|
|
1222
|
+
__decorateMetadata("design:type", Function),
|
|
1223
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1224
|
+
__decorateMetadata("design:returntype", Object)
|
|
1225
|
+
], G.prototype, "parseIncludeExportedFunctions", null), __decorate([
|
|
1226
|
+
D({
|
|
1224
1227
|
description: "Promote callables nothing calls: \"true\" or \"false\"",
|
|
1225
1228
|
flags: "--include-orphans [includeOrphans]"
|
|
1226
1229
|
}),
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
], G.prototype, "parseIncludeOrphans", null),
|
|
1231
|
-
|
|
1230
|
+
__decorateMetadata("design:type", Function),
|
|
1231
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1232
|
+
__decorateMetadata("design:returntype", Object)
|
|
1233
|
+
], G.prototype, "parseIncludeOrphans", null), __decorate([
|
|
1234
|
+
D({
|
|
1232
1235
|
description: "Trace test files too: \"true\" or \"false\"",
|
|
1233
1236
|
flags: "--include-tests [includeTests]"
|
|
1234
1237
|
}),
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
], G.prototype, "parseIncludeTests", null), G = W =
|
|
1239
|
-
|
|
1238
|
+
__decorateMetadata("design:type", Function),
|
|
1239
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1240
|
+
__decorateMetadata("design:returntype", Object)
|
|
1241
|
+
], G.prototype, "parseIncludeTests", null), G = W = __decorate([
|
|
1242
|
+
T({
|
|
1240
1243
|
description: "Print every call stack above and below one or more callables, each addressed as <file>#<qualified-name>",
|
|
1241
1244
|
name: "depth"
|
|
1242
1245
|
}),
|
|
1243
1246
|
d(),
|
|
1244
|
-
|
|
1247
|
+
__decorateMetadata("design:paramtypes", [
|
|
1245
1248
|
z === void 0 ? Object : z,
|
|
1246
1249
|
S === void 0 ? Object : S,
|
|
1247
|
-
|
|
1250
|
+
h === void 0 ? Object : h,
|
|
1248
1251
|
n === void 0 ? Object : n,
|
|
1249
1252
|
k === void 0 ? Object : k
|
|
1250
1253
|
])
|
|
1251
1254
|
], G);
|
|
1252
1255
|
//#endregion
|
|
1253
1256
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/depth/depth.module.ts
|
|
1254
|
-
var K = class {};
|
|
1255
|
-
K =
|
|
1257
|
+
var K = class DepthModule {};
|
|
1258
|
+
K = __decorate([f({
|
|
1256
1259
|
controllers: [],
|
|
1257
1260
|
exports: [G],
|
|
1258
1261
|
imports: [
|
|
1259
1262
|
B,
|
|
1260
1263
|
ve,
|
|
1261
|
-
|
|
1264
|
+
y,
|
|
1262
1265
|
t,
|
|
1263
1266
|
A
|
|
1264
1267
|
],
|
|
@@ -1266,7 +1269,7 @@ K = D([f({
|
|
|
1266
1269
|
})], K);
|
|
1267
1270
|
//#endregion
|
|
1268
1271
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/limits/limits.service.ts
|
|
1269
|
-
var q, J = q = class {
|
|
1272
|
+
var q, J = q = class LimitsService {
|
|
1270
1273
|
configurationService;
|
|
1271
1274
|
fileFilterService;
|
|
1272
1275
|
workspaceService;
|
|
@@ -1346,7 +1349,7 @@ var q, J = q = class {
|
|
|
1346
1349
|
}))];
|
|
1347
1350
|
}
|
|
1348
1351
|
};
|
|
1349
|
-
J = q =
|
|
1352
|
+
J = q = __decorate([d(), __decorateMetadata("design:paramtypes", [
|
|
1350
1353
|
n === void 0 ? Object : n,
|
|
1351
1354
|
_ === void 0 ? Object : _,
|
|
1352
1355
|
x === void 0 ? Object : x,
|
|
@@ -1354,45 +1357,45 @@ J = q = D([d(), E("design:paramtypes", [
|
|
|
1354
1357
|
])], J);
|
|
1355
1358
|
//#endregion
|
|
1356
1359
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/limits/limits.constants.ts
|
|
1357
|
-
var
|
|
1360
|
+
var Le = [
|
|
1358
1361
|
"Project",
|
|
1359
1362
|
"Limit",
|
|
1360
1363
|
"Value",
|
|
1361
1364
|
"Declared in"
|
|
1362
|
-
],
|
|
1365
|
+
], Re = "# 🔭 Callidescope Limits", ze = "Every project in scope, what it is judged against, and the file each number is written in — which is that project's own `callidescope.config.ts`, every traced project declaring a complete one. The `workspace` row is the starting point those files spread, and the numbers the directory holding this configuration is itself judged by.", Be = "none", Ve = "workspace", Y = class RenderLimitsService {
|
|
1363
1366
|
constructor() {}
|
|
1364
1367
|
renderProject(e) {
|
|
1365
|
-
return e === void 0 ?
|
|
1368
|
+
return e === void 0 ? Ve : e === "" ? "." : e;
|
|
1366
1369
|
}
|
|
1367
1370
|
renderRow(e) {
|
|
1368
1371
|
return `| ${e.join(" | ")} |`;
|
|
1369
1372
|
}
|
|
1370
1373
|
renderTable(e) {
|
|
1371
1374
|
return [
|
|
1372
|
-
this.renderRow(
|
|
1373
|
-
this.renderRow(
|
|
1375
|
+
this.renderRow(Le),
|
|
1376
|
+
this.renderRow(Le.map(() => "---")),
|
|
1374
1377
|
...e.map((e) => this.renderRow([
|
|
1375
1378
|
this.renderProject(e.project),
|
|
1376
1379
|
`\`${e.limit}\``,
|
|
1377
|
-
e.value === void 0 ?
|
|
1380
|
+
e.value === void 0 ? Be : String(e.value),
|
|
1378
1381
|
e.path === void 0 ? "—" : `\`${e.path}\``
|
|
1379
1382
|
]))
|
|
1380
1383
|
].join("\n");
|
|
1381
1384
|
}
|
|
1382
1385
|
render(e) {
|
|
1383
1386
|
return [
|
|
1384
|
-
|
|
1387
|
+
Re,
|
|
1385
1388
|
"",
|
|
1386
|
-
|
|
1389
|
+
ze,
|
|
1387
1390
|
"",
|
|
1388
1391
|
this.renderTable(e)
|
|
1389
1392
|
].join("\n");
|
|
1390
1393
|
}
|
|
1391
1394
|
};
|
|
1392
|
-
Y =
|
|
1395
|
+
Y = __decorate([d(), __decorateMetadata("design:paramtypes", [])], Y);
|
|
1393
1396
|
//#endregion
|
|
1394
1397
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/limits/limits.command.ts
|
|
1395
|
-
var X, Z = X = class extends
|
|
1398
|
+
var X, Z = X = class LimitsCommand extends E {
|
|
1396
1399
|
limitsService;
|
|
1397
1400
|
renderLimitsService;
|
|
1398
1401
|
configurationService;
|
|
@@ -1411,27 +1414,27 @@ var X, Z = X = class extends w {
|
|
|
1411
1414
|
let e = await this.limitsService.list(t);
|
|
1412
1415
|
process.stdout.write(`${this.renderLimitsService.render(e)}\n`);
|
|
1413
1416
|
} catch (e) {
|
|
1414
|
-
let t =
|
|
1417
|
+
let t = readRefusalHeadline(e);
|
|
1415
1418
|
if (t === void 0 || !(e instanceof Error)) throw e;
|
|
1416
1419
|
this.reject(t, { reason: e.message });
|
|
1417
1420
|
}
|
|
1418
1421
|
}
|
|
1419
1422
|
};
|
|
1420
|
-
|
|
1421
|
-
|
|
1423
|
+
__decorate([
|
|
1424
|
+
D({
|
|
1422
1425
|
description: "Path to a callidescope configuration file",
|
|
1423
1426
|
flags: "--config [config]"
|
|
1424
1427
|
}),
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
], Z.prototype, "parseConfig", null), Z = X =
|
|
1429
|
-
|
|
1428
|
+
__decorateMetadata("design:type", Function),
|
|
1429
|
+
__decorateMetadata("design:paramtypes", [Object]),
|
|
1430
|
+
__decorateMetadata("design:returntype", Object)
|
|
1431
|
+
], Z.prototype, "parseConfig", null), Z = X = __decorate([
|
|
1432
|
+
T({
|
|
1430
1433
|
description: "List every project's resolved depth and breadth limits, and the file each came from",
|
|
1431
1434
|
name: "limits"
|
|
1432
1435
|
}),
|
|
1433
1436
|
d(),
|
|
1434
|
-
|
|
1437
|
+
__decorateMetadata("design:paramtypes", [
|
|
1435
1438
|
J === void 0 ? Object : J,
|
|
1436
1439
|
Y === void 0 ? Object : Y,
|
|
1437
1440
|
n === void 0 ? Object : n,
|
|
@@ -1440,14 +1443,14 @@ D([
|
|
|
1440
1443
|
], Z);
|
|
1441
1444
|
//#endregion
|
|
1442
1445
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/modules/limits/limits.module.ts
|
|
1443
|
-
var Q = class {};
|
|
1444
|
-
Q =
|
|
1446
|
+
var Q = class LimitsModule {};
|
|
1447
|
+
Q = __decorate([f({
|
|
1445
1448
|
controllers: [],
|
|
1446
1449
|
exports: [Z, J],
|
|
1447
1450
|
imports: [
|
|
1448
1451
|
t,
|
|
1449
1452
|
A,
|
|
1450
|
-
|
|
1453
|
+
_e
|
|
1451
1454
|
],
|
|
1452
1455
|
providers: [
|
|
1453
1456
|
Z,
|
|
@@ -1457,12 +1460,12 @@ Q = D([f({
|
|
|
1457
1460
|
})], Q);
|
|
1458
1461
|
//#endregion
|
|
1459
1462
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/main.module.ts
|
|
1460
|
-
var $ = class {};
|
|
1461
|
-
$ =
|
|
1463
|
+
var $ = class MainModule {};
|
|
1464
|
+
$ = __decorate([f({ imports: [
|
|
1462
1465
|
te.forRoot({
|
|
1463
1466
|
envFilePath: ".env",
|
|
1464
1467
|
isGlobal: !0,
|
|
1465
|
-
validate: (e) =>
|
|
1468
|
+
validate: (e) => Ne.parse(e)
|
|
1466
1469
|
}),
|
|
1467
1470
|
ne,
|
|
1468
1471
|
A,
|
|
@@ -1473,4 +1476,4 @@ $ = D([f({ imports: [
|
|
|
1473
1476
|
t
|
|
1474
1477
|
] })], $);
|
|
1475
1478
|
//#endregion
|
|
1476
|
-
export { F as a, R as i, B as n, k as o, z as r, $ as t };
|
|
1479
|
+
export { F as a, R as i, B as n, k as o, z as r, __name as s, $ as t };
|
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "../main.module-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "../main.module-1pdYmSJ4.js";
|
|
2
2
|
export { n as AddressLookupModule, r as AddressLookupService, t as CallidescopeModule, e as CallidescopeService, i as MainModule };
|
package/dist/src/main.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { o as e, t } from "../main.module-
|
|
2
|
+
import { o as e, t } from "../main.module-1pdYmSJ4.js";
|
|
3
3
|
import { CommandFactory as n } from "nest-commander";
|
|
4
4
|
import "reflect-metadata";
|
|
5
5
|
//#region packages/ic-suite/callidescope/callidescope-cli/src/main.ts
|
|
6
|
-
async function
|
|
6
|
+
async function main() {
|
|
7
7
|
let r = new e();
|
|
8
8
|
r.setContext("CommandFactory"), await n.run(t, {
|
|
9
9
|
bufferLogs: !0,
|
|
@@ -13,5 +13,5 @@ async function r() {
|
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
main();
|
|
17
17
|
//#endregion
|
package/package.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@callidescope/configuration": "0.0.
|
|
11
|
-
"@callidescope/core": "0.0.
|
|
12
|
-
"@callidescope/graph": "0.0.
|
|
13
|
-
"@callidescope/output": "0.0.
|
|
10
|
+
"@callidescope/configuration": "0.0.11",
|
|
11
|
+
"@callidescope/core": "0.0.10",
|
|
12
|
+
"@callidescope/graph": "0.0.10",
|
|
13
|
+
"@callidescope/output": "0.0.10",
|
|
14
14
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
15
15
|
"@nestjs/config": "^12.0.0",
|
|
16
16
|
"@nestjs/core": "^11.1.21 || ^12.0.1",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"strict": true
|
|
78
78
|
},
|
|
79
79
|
"types": "./dist/src/index.d.ts",
|
|
80
|
-
"version": "0.0.
|
|
80
|
+
"version": "0.0.10"
|
|
81
81
|
}
|