@callidescope/cli 0.0.26 → 0.0.27
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 +13 -0
- package/README.md +26 -26
- package/dist/{main.module-DJEUVZll.js → callidescope-cli.module-LkmOvPRI.js} +170 -170
- package/dist/src/{main.js → callidescope-cli.main.js} +3 -3
- package/dist/src/index.js +1 -1
- package/package.json +6 -6
- /package/dist/src/{main.d.ts → callidescope-cli.main.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## 0.0.27 (2026-10-15)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **ic-suite,configuration:** ✨ name root files after their project and declare root modules ([#1588](https://github.com/organizzolini/codebase/pull/1588), [#1480](https://github.com/organizzolini/codebase/issues/1480))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated callidescope-configuration to 0.0.27
|
|
10
|
+
- Updated callidescope-output to 0.0.26
|
|
11
|
+
- Updated callidescope-graph to 0.0.26
|
|
12
|
+
- Updated callidescope-core to 0.0.26
|
|
13
|
+
|
|
1
14
|
## 0.0.26 (2026-10-15)
|
|
2
15
|
|
|
3
16
|
### 🧱 Updated Dependencies
|
package/README.md
CHANGED
|
@@ -1428,12 +1428,14 @@ graph LR
|
|
|
1428
1428
|
file_codependix_config_ts["codependix.config.ts"]
|
|
1429
1429
|
file_codometer_config_ts["codometer.config.ts"]
|
|
1430
1430
|
file_eslint_config_ts["eslint.config.ts"]
|
|
1431
|
-
|
|
1431
|
+
file_src_callidescope_cli_constants_ts["src/callidescope-cli.constants.ts"]
|
|
1432
|
+
file_src_callidescope_cli_main_end_to_end_test_ts["src/callidescope-cli.main.end-to-end.test.ts"]
|
|
1433
|
+
file_src_callidescope_cli_main_ts["src/callidescope-cli.main.ts"]
|
|
1434
|
+
file_src_callidescope_cli_main_unit_test_ts["src/callidescope-cli.main.unit.test.ts"]
|
|
1435
|
+
file_src_callidescope_cli_module_ts["src/callidescope-cli.module.ts"]
|
|
1436
|
+
file_src_callidescope_cli_repl_ts["src/callidescope-cli.repl.ts"]
|
|
1437
|
+
file_src_callidescope_cli_repl_unit_test_ts["src/callidescope-cli.repl.unit.test.ts"]
|
|
1432
1438
|
file_src_index_ts["src/index.ts"]
|
|
1433
|
-
file_src_main_end_to_end_test_ts["src/main.end-to-end.test.ts"]
|
|
1434
|
-
file_src_main_module_ts["src/main.module.ts"]
|
|
1435
|
-
file_src_main_ts["src/main.ts"]
|
|
1436
|
-
file_src_main_unit_test_ts["src/main.unit.test.ts"]
|
|
1437
1439
|
file_src_modules_address_lookup_address_lookup_constants_ts["src/modules/address-lookup/address-lookup.constants.ts"]
|
|
1438
1440
|
file_src_modules_address_lookup_address_lookup_constants_unit_test_ts["src/modules/address-lookup/address-lookup.constants.unit.test.ts"]
|
|
1439
1441
|
file_src_modules_address_lookup_address_lookup_module_ts["src/modules/address-lookup/address-lookup.module.ts"]
|
|
@@ -1467,21 +1469,20 @@ graph LR
|
|
|
1467
1469
|
file_src_modules_limits_limits_types_ts["src/modules/limits/limits.types.ts"]
|
|
1468
1470
|
file_src_modules_limits_render_limits_service_ts["src/modules/limits/render-limits.service.ts"]
|
|
1469
1471
|
file_src_modules_limits_render_limits_service_unit_test_ts["src/modules/limits/render-limits.service.unit.test.ts"]
|
|
1470
|
-
file_src_repl_ts["src/repl.ts"]
|
|
1471
|
-
file_src_repl_unit_test_ts["src/repl.unit.test.ts"]
|
|
1472
1472
|
file_testing_mocks_ts["testing/mocks.ts"]
|
|
1473
1473
|
file_testing_modules_ts["testing/modules.ts"]
|
|
1474
1474
|
file_testing_programs_ts["testing/programs.ts"]
|
|
1475
1475
|
file_testing_setup_ts["testing/setup.ts"]
|
|
1476
1476
|
file_vite_config_ts["vite.config.ts"]
|
|
1477
1477
|
file_vitest_config_ts["vitest.config.ts"]
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1478
|
+
file_src_callidescope_cli_main_end_to_end_test_ts --> file_src_callidescope_cli_constants_ts
|
|
1479
|
+
file_src_callidescope_cli_main_ts --> file_src_callidescope_cli_module_ts
|
|
1480
|
+
file_src_callidescope_cli_module_ts --> file_src_callidescope_cli_constants_ts
|
|
1481
|
+
file_src_callidescope_cli_module_ts --> file_src_modules_breadth_breadth_module_ts
|
|
1482
|
+
file_src_callidescope_cli_module_ts --> file_src_modules_callidescope_callidescope_module_ts
|
|
1483
|
+
file_src_callidescope_cli_module_ts --> file_src_modules_depth_depth_module_ts
|
|
1484
|
+
file_src_callidescope_cli_module_ts --> file_src_modules_limits_limits_module_ts
|
|
1485
|
+
file_src_callidescope_cli_repl_ts --> file_src_callidescope_cli_module_ts
|
|
1485
1486
|
file_src_modules_address_lookup_address_lookup_constants_unit_test_ts --> file_src_modules_address_lookup_address_lookup_constants_ts
|
|
1486
1487
|
file_src_modules_address_lookup_address_lookup_module_ts --> file_src_modules_address_lookup_address_lookup_service_ts
|
|
1487
1488
|
file_src_modules_address_lookup_address_lookup_module_ts --> file_src_modules_callidescope_callidescope_module_ts
|
|
@@ -1545,7 +1546,6 @@ graph LR
|
|
|
1545
1546
|
file_src_modules_limits_render_limits_service_ts --> file_src_modules_limits_limits_types_ts
|
|
1546
1547
|
file_src_modules_limits_render_limits_service_unit_test_ts --> file_src_modules_limits_limits_types_ts
|
|
1547
1548
|
file_src_modules_limits_render_limits_service_unit_test_ts --> file_src_modules_limits_render_limits_service_ts
|
|
1548
|
-
file_src_repl_ts --> file_src_main_module_ts
|
|
1549
1549
|
```
|
|
1550
1550
|
<!-- codependix:end name="codependix-file-imports" -->
|
|
1551
1551
|
|
|
@@ -1555,14 +1555,14 @@ graph LR
|
|
|
1555
1555
|
|
|
1556
1556
|
### Project
|
|
1557
1557
|
|
|
1558
|
-

|
|
1559
|
+

|
|
1560
1560
|

|
|
1561
1561
|

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

|
|
1566
1566
|
|
|
1567
1567
|
### TypeScript
|
|
1568
1568
|
|
|
@@ -1702,7 +1702,7 @@ graph LR
|
|
|
1702
1702
|

|
|
1703
1703
|

|
|
1704
1704
|

|
|
1705
|
-

|
|
1706
1706
|

|
|
1707
1707
|

|
|
1708
1708
|

|
|
@@ -1744,20 +1744,20 @@ graph LR
|
|
|
1744
1744
|
### Markdown
|
|
1745
1745
|
|
|
1746
1746
|

|
|
1747
|
-

|
|
1748
1748
|

|
|
1749
|
-

|
|
1750
|
+

|
|
1751
1751
|

|
|
1752
1752
|

|
|
1753
1753
|

|
|
1754
|
-

|
|
1755
|
+

|
|
1756
|
+

|
|
1757
1757
|

|
|
1758
1758
|

|
|
1759
1759
|

|
|
1760
|
-

|
|
1761
1761
|

|
|
1762
1762
|

|
|
1763
1763
|

|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ConsoleLogger as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import p from "
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { Command as e, CommandRunner as t, Option as n } from "nest-commander";
|
|
2
|
+
import { ConsoleLogger as r, Global as i, Injectable as a, Module as o, Scope as s } from "@nestjs/common";
|
|
3
|
+
import { existsSync as c, mkdirSync as l } from "node:fs";
|
|
4
|
+
import u from "node:path";
|
|
5
|
+
import d from "pino";
|
|
6
|
+
import { CHECK_NAMES as f, ConfigurationModule as p, ConfigurationService as m, DEFAULT_JSON_INDENTATION as ee, DEFAULT_PREVIEW_COUNT as te, DEFAULT_RUN_HEADING as ne, InputError as re, ProjectConfigurationError as ie, ProjectConfigurationFieldNotPermittedError as ae } from "@callidescope/configuration";
|
|
7
|
+
import { ConfigModule as oe } from "@nestjs/config";
|
|
8
|
+
import { DiscoveryModule as se } from "@nestjs/core";
|
|
9
|
+
import { z as ce } from "zod";
|
|
10
|
+
import { AddressDepthService as h, AddressService as g, BreadthService as le, CallablesModule as ue, CallablesService as de, ClassesModule as fe, ClassesService as pe, EdgesModule as me, EntriesModule as he, EntriesService as _, ExternalService as v, FileFilterService as y, GraphAssemblyService as b, GraphModule as x, ProgramConfigurationError as ge, ProgramModule as _e, ProgramService as S, WorkspaceModule as C, WorkspaceService as w } from "@callidescope/graph";
|
|
11
|
+
import { AddressReportModule as T, AddressReportService as E, MarkdownReportService as ve, OutputJsonModule as ye, OutputJsonService as be, OutputMarkdownModule as xe, ProjectReportsModule as Se, ProjectReportsService as Ce, ReportFindingsModule as we, ReportFindingsService as Te, ReportModule as Ee, WriteDestinationsModule as De, WriteDestinationsService as Oe } from "@callidescope/output";
|
|
12
12
|
//#region \0rolldown/runtime.js
|
|
13
|
-
var
|
|
13
|
+
var ke = Object.defineProperty, __name = (e, t) => ke(e, "name", {
|
|
14
14
|
value: t,
|
|
15
15
|
configurable: !0
|
|
16
|
-
}),
|
|
16
|
+
}), Ae = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s+/u, je = /^([A-Za-z]+)/, Me = /* @__PURE__ */ new Set([
|
|
17
17
|
"built",
|
|
18
18
|
"cut",
|
|
19
19
|
"found",
|
|
@@ -31,7 +31,7 @@ var Oe = Object.defineProperty, __name = (e, t) => Oe(e, "name", {
|
|
|
31
31
|
"split",
|
|
32
32
|
"took",
|
|
33
33
|
"wrote"
|
|
34
|
-
]),
|
|
34
|
+
]), Ne = /* @__PURE__ */ new Set([
|
|
35
35
|
"CommandFactory",
|
|
36
36
|
"ExceptionHandler",
|
|
37
37
|
"GraphQLModule",
|
|
@@ -57,9 +57,9 @@ function __decorate(e, t, n, r) {
|
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region projects/logging/src/modules/logger/logger.service.ts
|
|
60
|
-
var
|
|
60
|
+
var D, O = class LoggerService extends r {
|
|
61
61
|
static {
|
|
62
|
-
|
|
62
|
+
D = this;
|
|
63
63
|
}
|
|
64
64
|
constructor() {
|
|
65
65
|
super();
|
|
@@ -67,15 +67,15 @@ var O, k = class LoggerService extends l {
|
|
|
67
67
|
static isProduction = process.env.NODE_ENV === "production";
|
|
68
68
|
static rootLogger;
|
|
69
69
|
static writesToStandardError = !1;
|
|
70
|
-
child =
|
|
70
|
+
child = D.root;
|
|
71
71
|
static createRootLogger() {
|
|
72
72
|
let e = process.env.LOG_LEVEL ?? "info";
|
|
73
|
-
return
|
|
73
|
+
return D.isProduction ? D.writesToStandardError ? d({ level: e }, d.destination(2)) : d({ level: e }) : d({
|
|
74
74
|
level: e,
|
|
75
75
|
transport: {
|
|
76
76
|
options: {
|
|
77
77
|
colorize: !0,
|
|
78
|
-
destination:
|
|
78
|
+
destination: D.writesToStandardError ? 2 : 1,
|
|
79
79
|
ignore: "pid,hostname,emoji",
|
|
80
80
|
messageFormat: "{emoji} {msg}",
|
|
81
81
|
singleLine: !0
|
|
@@ -85,10 +85,10 @@ var O, k = class LoggerService extends l {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
static logToStandardError() {
|
|
88
|
-
|
|
88
|
+
D.rootLogger === void 0 ? D.writesToStandardError = !0 : process.emitWarning("LoggerService.logToStandardError() was called after the first log line, so log lines still go to standard output and anything piping that stream will read them as data. Call it as the first statement of the application's bootstrap.");
|
|
89
89
|
}
|
|
90
90
|
assertConventionalMessage(e) {
|
|
91
|
-
if (
|
|
91
|
+
if (D.isProduction || this.shouldSkipConventionalMessageValidation(e.context)) return;
|
|
92
92
|
let t = this.getConventionalMessageViolation(e.parsed);
|
|
93
93
|
if (t !== void 0) throw Error(t);
|
|
94
94
|
}
|
|
@@ -99,21 +99,21 @@ var O, k = class LoggerService extends l {
|
|
|
99
99
|
}), {
|
|
100
100
|
...e.data,
|
|
101
101
|
context: e.context,
|
|
102
|
-
...
|
|
102
|
+
...D.isProduction ? {} : { emoji: e.parsed.emoji }
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
getConventionalMessageViolation(e) {
|
|
106
106
|
let t = e.emoji, n = e.text;
|
|
107
107
|
if (t === void 0) return `Log message must start with an emoji naming its subject, then a verb: "${n}"`;
|
|
108
|
-
let r =
|
|
108
|
+
let r = je.exec(n)?.[1];
|
|
109
109
|
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}"`;
|
|
110
110
|
}
|
|
111
111
|
isConventionalVerb(e) {
|
|
112
112
|
let t = e.toLowerCase();
|
|
113
|
-
return t.endsWith("ing") || t.endsWith("ed") ||
|
|
113
|
+
return t.endsWith("ing") || t.endsWith("ed") || Me.has(t);
|
|
114
114
|
}
|
|
115
115
|
parseMessage(e) {
|
|
116
|
-
let t = String(e), n =
|
|
116
|
+
let t = String(e), n = Ae.exec(t), r = n?.[1];
|
|
117
117
|
return r === void 0 ? {
|
|
118
118
|
emoji: void 0,
|
|
119
119
|
text: t
|
|
@@ -123,10 +123,10 @@ var O, k = class LoggerService extends l {
|
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
shouldSkipConventionalMessageValidation(e) {
|
|
126
|
-
return e !== void 0 &&
|
|
126
|
+
return e !== void 0 && Ne.has(e);
|
|
127
127
|
}
|
|
128
128
|
static get root() {
|
|
129
|
-
return
|
|
129
|
+
return D.rootLogger ??= D.createRootLogger(), D.rootLogger;
|
|
130
130
|
}
|
|
131
131
|
buildErrorLogEntry(e, t) {
|
|
132
132
|
let n = t instanceof Error ? t.stack || t.message : String(t);
|
|
@@ -136,8 +136,8 @@ var O, k = class LoggerService extends l {
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
createTimestampedOutputLogFilePath(e) {
|
|
139
|
-
let t =
|
|
140
|
-
return
|
|
139
|
+
let t = u.join(process.cwd(), "output");
|
|
140
|
+
return c(t) || l(t, { recursive: !0 }), u.join(t, `${e}-${(/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-")}.log`);
|
|
141
141
|
}
|
|
142
142
|
debug(e, t, n) {
|
|
143
143
|
let r = this.parseMessage(e);
|
|
@@ -170,7 +170,7 @@ var O, k = class LoggerService extends l {
|
|
|
170
170
|
this.info(e, t, n);
|
|
171
171
|
}
|
|
172
172
|
setContext(e) {
|
|
173
|
-
super.setContext(e), this.child =
|
|
173
|
+
super.setContext(e), this.child = D.root.child({ context: e });
|
|
174
174
|
}
|
|
175
175
|
verbose(e, t, n) {
|
|
176
176
|
let r = this.parseMessage(e);
|
|
@@ -189,19 +189,19 @@ var O, k = class LoggerService extends l {
|
|
|
189
189
|
}), r.text);
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
|
|
192
|
+
O = D = __decorate([a({ scope: s.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], O);
|
|
193
193
|
//#endregion
|
|
194
194
|
//#region projects/logging/src/modules/logger/logger.module.ts
|
|
195
|
-
var
|
|
196
|
-
|
|
195
|
+
var k = class LoggerModule {};
|
|
196
|
+
k = __decorate([i(), o({
|
|
197
197
|
controllers: [],
|
|
198
|
-
exports: [
|
|
198
|
+
exports: [O],
|
|
199
199
|
imports: [],
|
|
200
|
-
providers: [
|
|
201
|
-
})],
|
|
200
|
+
providers: [O]
|
|
201
|
+
})], k);
|
|
202
202
|
//#endregion
|
|
203
|
-
//#region projects/ic-suite/callidescope/callidescope-cli/src/constants.ts
|
|
204
|
-
var
|
|
203
|
+
//#region projects/ic-suite/callidescope/callidescope-cli/src/callidescope-cli.constants.ts
|
|
204
|
+
var Pe = ce.object({}), A = "Check the file path and the qualified name callidescope prints for it in a stack.", j = "🔭 Rejected a callable address", isRefusedProjectConfiguration = (e) => e instanceof ie || e instanceof ae, M = "🔭 Rejected the command line", Fe = "🔭 Rejected a project it could not read", Ie = "🔭 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 ge ? Fe : isRefusedProjectConfiguration(e) || e instanceof N ? Ie : e instanceof re ? M : void 0, N = class UnresolvedEntryPointAddressError extends Error {
|
|
205
205
|
constructor(e) {
|
|
206
206
|
super(UnresolvedEntryPointAddressError.joinDescriptions(e)), this.name = "UnresolvedEntryPointAddressError";
|
|
207
207
|
}
|
|
@@ -392,22 +392,22 @@ var Ne = ae.object({}), j = "Check the file path and the qualified name callides
|
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
|
-
F = P = __decorate([
|
|
396
|
-
|
|
397
|
-
ue === void 0 ? Object : ue,
|
|
395
|
+
F = P = __decorate([a(), __decorateMetadata("design:paramtypes", [
|
|
396
|
+
de === void 0 ? Object : de,
|
|
398
397
|
pe === void 0 ? Object : pe,
|
|
399
|
-
me === void 0 ? Object : me,
|
|
400
398
|
_ === void 0 ? Object : _,
|
|
401
399
|
v === void 0 ? Object : v,
|
|
400
|
+
y === void 0 ? Object : y,
|
|
402
401
|
b === void 0 ? Object : b,
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
402
|
+
S === void 0 ? Object : S,
|
|
403
|
+
m === void 0 ? Object : m,
|
|
404
|
+
Ce === void 0 ? Object : Ce,
|
|
405
|
+
w === void 0 ? Object : w,
|
|
406
|
+
O === void 0 ? Object : O
|
|
407
407
|
])], F);
|
|
408
408
|
//#endregion
|
|
409
409
|
//#region projects/ic-suite/callidescope/callidescope-cli/src/modules/callidescope/callidescope.command.ts
|
|
410
|
-
var I, L = I = class CallidescopeCommand extends
|
|
410
|
+
var I, L = I = class CallidescopeCommand extends t {
|
|
411
411
|
addressService;
|
|
412
412
|
callidescopeService;
|
|
413
413
|
configurationService;
|
|
@@ -421,7 +421,7 @@ var I, L = I = class CallidescopeCommand extends E {
|
|
|
421
421
|
}
|
|
422
422
|
describeUnresolvedAddress(e) {
|
|
423
423
|
let t = e.projectName ?? "the workspace configuration", { address: n, resolution: r } = e;
|
|
424
|
-
return r.kind === "not-found" ? `${t} declares an entryPoints.addresses entry that resolves to nothing: "${n}". ${
|
|
424
|
+
return r.kind === "not-found" ? `${t} declares an entryPoints.addresses entry that resolves to nothing: "${n}". ${A}` : 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({
|
|
425
425
|
address: n,
|
|
426
426
|
candidates: r.candidates
|
|
427
427
|
})}`;
|
|
@@ -433,15 +433,15 @@ var I, L = I = class CallidescopeCommand extends E {
|
|
|
433
433
|
let { json: t } = e.configuration.write;
|
|
434
434
|
e.format === "json" ? process.stdout.write(this.outputJsonService.buildReport({
|
|
435
435
|
destination: t ?? {
|
|
436
|
-
indentation:
|
|
436
|
+
indentation: ee,
|
|
437
437
|
path: ""
|
|
438
438
|
},
|
|
439
439
|
result: e.result
|
|
440
440
|
})) : process.stdout.write(this.markdownReportService.renderRun({
|
|
441
441
|
description: void 0,
|
|
442
|
-
heading:
|
|
442
|
+
heading: ne,
|
|
443
443
|
limits: e.projectLimits,
|
|
444
|
-
previewCount:
|
|
444
|
+
previewCount: te,
|
|
445
445
|
rendering: e.format === "mermaid" ? "diagram" : "tree",
|
|
446
446
|
result: e.result
|
|
447
447
|
}));
|
|
@@ -449,7 +449,7 @@ var I, L = I = class CallidescopeCommand extends E {
|
|
|
449
449
|
async traceWorkspace(e) {
|
|
450
450
|
let t = await this.configurationService.resolveFormatOption(e), { errors: n, run: r } = await this.configurationService.prepareRun(t);
|
|
451
451
|
if (r === void 0) {
|
|
452
|
-
this.reject(
|
|
452
|
+
this.reject(M, { reasons: n });
|
|
453
453
|
return;
|
|
454
454
|
}
|
|
455
455
|
this.logger.debug("🔭 Starting a call-stack trace", void 0, {
|
|
@@ -464,7 +464,7 @@ var I, L = I = class CallidescopeCommand extends E {
|
|
|
464
464
|
limitOverrides: c,
|
|
465
465
|
workspaceRoot: u
|
|
466
466
|
});
|
|
467
|
-
if (d.unresolvedAddresses.length > 0) throw new
|
|
467
|
+
if (d.unresolvedAddresses.length > 0) throw new N(d.unresolvedAddresses.map((e) => this.describeUnresolvedAddress(e)));
|
|
468
468
|
this.report({
|
|
469
469
|
configuration: a,
|
|
470
470
|
format: s,
|
|
@@ -542,7 +542,7 @@ var I, L = I = class CallidescopeCommand extends E {
|
|
|
542
542
|
}
|
|
543
543
|
async run(e, t) {
|
|
544
544
|
let [n] = e;
|
|
545
|
-
if (n !== void 0) this.reject(
|
|
545
|
+
if (n !== void 0) this.reject(M, { reason: buildUnknownCommandMessage(n) });
|
|
546
546
|
else try {
|
|
547
547
|
await this.traceWorkspace(t);
|
|
548
548
|
} catch (e) {
|
|
@@ -553,15 +553,15 @@ var I, L = I = class CallidescopeCommand extends E {
|
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
555
|
__decorate([
|
|
556
|
-
|
|
557
|
-
description: `Fail on a comma-separated set drawn from ${
|
|
556
|
+
n({
|
|
557
|
+
description: `Fail on a comma-separated set drawn from ${f.map((e) => `"${e}"`).join(" and ")}`,
|
|
558
558
|
flags: "--check [check]"
|
|
559
559
|
}),
|
|
560
560
|
__decorateMetadata("design:type", Function),
|
|
561
561
|
__decorateMetadata("design:paramtypes", [String]),
|
|
562
562
|
__decorateMetadata("design:returntype", String)
|
|
563
563
|
], L.prototype, "parseCheck", null), __decorate([
|
|
564
|
-
|
|
564
|
+
n({
|
|
565
565
|
description: "Path to a callidescope configuration file",
|
|
566
566
|
flags: "--config [config]"
|
|
567
567
|
}),
|
|
@@ -569,7 +569,7 @@ __decorate([
|
|
|
569
569
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
570
570
|
__decorateMetadata("design:returntype", Object)
|
|
571
571
|
], L.prototype, "parseConfig", null), __decorate([
|
|
572
|
-
|
|
572
|
+
n({
|
|
573
573
|
description: "Comma-separated project directories to trace",
|
|
574
574
|
flags: "-d, --directories [directories]"
|
|
575
575
|
}),
|
|
@@ -577,7 +577,7 @@ __decorate([
|
|
|
577
577
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
578
578
|
__decorateMetadata("design:returntype", Array)
|
|
579
579
|
], L.prototype, "parseDirectories", null), __decorate([
|
|
580
|
-
|
|
580
|
+
n({
|
|
581
581
|
description: "Comma-separated callable addresses to root stacks at",
|
|
582
582
|
flags: "--entry-point-addresses [entryPointAddresses]"
|
|
583
583
|
}),
|
|
@@ -585,7 +585,7 @@ __decorate([
|
|
|
585
585
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
586
586
|
__decorateMetadata("design:returntype", Array)
|
|
587
587
|
], L.prototype, "parseEntryPointAddresses", null), __decorate([
|
|
588
|
-
|
|
588
|
+
n({
|
|
589
589
|
description: "Comma-separated decorators whose methods a framework invokes",
|
|
590
590
|
flags: "--entry-point-decorators [entryPointDecorators]"
|
|
591
591
|
}),
|
|
@@ -593,7 +593,7 @@ __decorate([
|
|
|
593
593
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
594
594
|
__decorateMetadata("design:returntype", Array)
|
|
595
595
|
], L.prototype, "parseEntryPointDecorators", null), __decorate([
|
|
596
|
-
|
|
596
|
+
n({
|
|
597
597
|
description: "Comma-separated globs to leave untraced",
|
|
598
598
|
flags: "--exclude [exclude]"
|
|
599
599
|
}),
|
|
@@ -601,7 +601,7 @@ __decorate([
|
|
|
601
601
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
602
602
|
__decorateMetadata("design:returntype", Array)
|
|
603
603
|
], L.prototype, "parseExclude", null), __decorate([
|
|
604
|
-
|
|
604
|
+
n({
|
|
605
605
|
description: "Comma-separated display-name globs to drop calls landing on",
|
|
606
606
|
flags: "--exclude-callees [excludeCallees]"
|
|
607
607
|
}),
|
|
@@ -609,7 +609,7 @@ __decorate([
|
|
|
609
609
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
610
610
|
__decorateMetadata("design:returntype", Array)
|
|
611
611
|
], L.prototype, "parseExcludeCallees", null), __decorate([
|
|
612
|
-
|
|
612
|
+
n({
|
|
613
613
|
description: "What to print: markdown, mermaid, or json",
|
|
614
614
|
flags: "-f, --format [format]"
|
|
615
615
|
}),
|
|
@@ -617,7 +617,7 @@ __decorate([
|
|
|
617
617
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
618
618
|
__decorateMetadata("design:returntype", Object)
|
|
619
619
|
], L.prototype, "parseFormat", null), __decorate([
|
|
620
|
-
|
|
620
|
+
n({
|
|
621
621
|
description: "Treat every src/index.ts export as a root: \"true\" or \"false\"",
|
|
622
622
|
flags: "--include-exported-functions [includeExportedFunctions]"
|
|
623
623
|
}),
|
|
@@ -625,7 +625,7 @@ __decorate([
|
|
|
625
625
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
626
626
|
__decorateMetadata("design:returntype", Object)
|
|
627
627
|
], L.prototype, "parseIncludeExportedFunctions", null), __decorate([
|
|
628
|
-
|
|
628
|
+
n({
|
|
629
629
|
description: "Promote callables nothing calls: \"true\" or \"false\"",
|
|
630
630
|
flags: "--include-orphans [includeOrphans]"
|
|
631
631
|
}),
|
|
@@ -633,7 +633,7 @@ __decorate([
|
|
|
633
633
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
634
634
|
__decorateMetadata("design:returntype", Object)
|
|
635
635
|
], L.prototype, "parseIncludeOrphans", null), __decorate([
|
|
636
|
-
|
|
636
|
+
n({
|
|
637
637
|
description: "Trace test files too: \"true\" or \"false\"",
|
|
638
638
|
flags: "--include-tests [includeTests]"
|
|
639
639
|
}),
|
|
@@ -641,7 +641,7 @@ __decorate([
|
|
|
641
641
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
642
642
|
__decorateMetadata("design:returntype", Object)
|
|
643
643
|
], L.prototype, "parseIncludeTests", null), __decorate([
|
|
644
|
-
|
|
644
|
+
n({
|
|
645
645
|
description: "Where the JSON report goes when --write or --check reports asks for it",
|
|
646
646
|
flags: "--json [json]"
|
|
647
647
|
}),
|
|
@@ -649,7 +649,7 @@ __decorate([
|
|
|
649
649
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
650
650
|
__decorateMetadata("design:returntype", Object)
|
|
651
651
|
], L.prototype, "parseJson", null), __decorate([
|
|
652
|
-
|
|
652
|
+
n({
|
|
653
653
|
description: "Where the markdown block goes when --write or --check reports asks for it",
|
|
654
654
|
flags: "-m, --markdown [markdown]"
|
|
655
655
|
}),
|
|
@@ -657,7 +657,7 @@ __decorate([
|
|
|
657
657
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
658
658
|
__decorateMetadata("design:returntype", Object)
|
|
659
659
|
], L.prototype, "parseMarkdown", null), __decorate([
|
|
660
|
-
|
|
660
|
+
n({
|
|
661
661
|
description: "Override the configured limits.maximumBreadth",
|
|
662
662
|
flags: "--maximum-breadth <maximumBreadth>"
|
|
663
663
|
}),
|
|
@@ -665,7 +665,7 @@ __decorate([
|
|
|
665
665
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
666
666
|
__decorateMetadata("design:returntype", Object)
|
|
667
667
|
], L.prototype, "parseMaximumBreadth", null), __decorate([
|
|
668
|
-
|
|
668
|
+
n({
|
|
669
669
|
description: "Override the configured limits.maximumDepth",
|
|
670
670
|
flags: "--maximum-depth <maximumDepth>"
|
|
671
671
|
}),
|
|
@@ -673,7 +673,7 @@ __decorate([
|
|
|
673
673
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
674
674
|
__decorateMetadata("design:returntype", Object)
|
|
675
675
|
], L.prototype, "parseMaximumDepth", null), __decorate([
|
|
676
|
-
|
|
676
|
+
n({
|
|
677
677
|
description: "Where the mermaid block goes when --write or --check reports asks for it",
|
|
678
678
|
flags: "--mermaid [mermaid]"
|
|
679
679
|
}),
|
|
@@ -681,7 +681,7 @@ __decorate([
|
|
|
681
681
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
682
682
|
__decorateMetadata("design:returntype", Object)
|
|
683
683
|
], L.prototype, "parseMermaid", null), __decorate([
|
|
684
|
-
|
|
684
|
+
n({
|
|
685
685
|
description: "Write every configured destination",
|
|
686
686
|
flags: "--write"
|
|
687
687
|
}),
|
|
@@ -689,44 +689,44 @@ __decorate([
|
|
|
689
689
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
690
690
|
__decorateMetadata("design:returntype", Boolean)
|
|
691
691
|
], L.prototype, "parseWrite", null), L = I = __decorate([
|
|
692
|
-
|
|
692
|
+
e({
|
|
693
693
|
description: "Run the callidescope command",
|
|
694
694
|
name: "callidescope",
|
|
695
695
|
options: { isDefault: !0 }
|
|
696
696
|
}),
|
|
697
|
-
|
|
697
|
+
a(),
|
|
698
698
|
__decorateMetadata("design:paramtypes", [
|
|
699
699
|
g === void 0 ? Object : g,
|
|
700
700
|
F === void 0 ? Object : F,
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
701
|
+
m === void 0 ? Object : m,
|
|
702
|
+
be === void 0 ? Object : be,
|
|
703
|
+
ve === void 0 ? Object : ve,
|
|
704
|
+
Te === void 0 ? Object : Te,
|
|
705
|
+
Oe === void 0 ? Object : Oe,
|
|
706
|
+
O === void 0 ? Object : O
|
|
707
707
|
])
|
|
708
708
|
], L);
|
|
709
709
|
//#endregion
|
|
710
710
|
//#region projects/ic-suite/callidescope/callidescope-cli/src/modules/callidescope/callidescope.module.ts
|
|
711
711
|
var R = class CallidescopeModule {};
|
|
712
|
-
R = __decorate([
|
|
712
|
+
R = __decorate([o({
|
|
713
713
|
controllers: [],
|
|
714
714
|
exports: [L, F],
|
|
715
715
|
imports: [
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
716
|
+
ue,
|
|
717
|
+
p,
|
|
718
|
+
me,
|
|
719
|
+
he,
|
|
720
|
+
x,
|
|
719
721
|
fe,
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
722
|
+
k,
|
|
723
|
+
ye,
|
|
724
|
+
xe,
|
|
725
|
+
_e,
|
|
724
726
|
Se,
|
|
725
|
-
|
|
726
|
-
Ce,
|
|
727
|
-
Te,
|
|
727
|
+
we,
|
|
728
728
|
Ee,
|
|
729
|
-
|
|
729
|
+
C,
|
|
730
730
|
De
|
|
731
731
|
],
|
|
732
732
|
providers: [L, F]
|
|
@@ -742,7 +742,7 @@ var z = class AddressLookupService {
|
|
|
742
742
|
}
|
|
743
743
|
describeProblem(e) {
|
|
744
744
|
let { resolution: t } = e;
|
|
745
|
-
if (t.kind !== "resolved") return t.kind === "invalid" ? t.reason : t.kind === "not-found" ? `No callable matches "${e.address}". ${
|
|
745
|
+
if (t.kind !== "resolved") return t.kind === "invalid" ? t.reason : t.kind === "not-found" ? `No callable matches "${e.address}". ${A}` : `"${e.address}" matches more than one declaration. ${this.addressService.describeCandidates({
|
|
746
746
|
address: e.address,
|
|
747
747
|
candidates: t.candidates
|
|
748
748
|
})}`;
|
|
@@ -773,27 +773,27 @@ var z = class AddressLookupService {
|
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
|
-
z = __decorate([
|
|
776
|
+
z = __decorate([a(), __decorateMetadata("design:paramtypes", [
|
|
777
777
|
g === void 0 ? Object : g,
|
|
778
778
|
F === void 0 ? Object : F,
|
|
779
|
-
|
|
779
|
+
m === void 0 ? Object : m
|
|
780
780
|
])], z);
|
|
781
781
|
//#endregion
|
|
782
782
|
//#region projects/ic-suite/callidescope/callidescope-cli/src/modules/address-lookup/address-lookup.module.ts
|
|
783
783
|
var B = class AddressLookupModule {};
|
|
784
|
-
B = __decorate([
|
|
784
|
+
B = __decorate([o({
|
|
785
785
|
controllers: [],
|
|
786
786
|
exports: [z],
|
|
787
787
|
imports: [
|
|
788
|
-
|
|
788
|
+
ue,
|
|
789
789
|
R,
|
|
790
|
-
|
|
790
|
+
p
|
|
791
791
|
],
|
|
792
792
|
providers: [z]
|
|
793
793
|
})], B);
|
|
794
794
|
//#endregion
|
|
795
795
|
//#region projects/ic-suite/callidescope/callidescope-cli/src/modules/breadth/breadth.command.ts
|
|
796
|
-
var V, H = V = class BreadthCommand extends
|
|
796
|
+
var V, H = V = class BreadthCommand extends t {
|
|
797
797
|
addressLookupService;
|
|
798
798
|
addressReportService;
|
|
799
799
|
breadthService;
|
|
@@ -811,7 +811,7 @@ var V, H = V = class BreadthCommand extends E {
|
|
|
811
811
|
});
|
|
812
812
|
typeof i == "string" ? n.push(i) : t.push(i);
|
|
813
813
|
}
|
|
814
|
-
if (n.length > 0) this.reject(
|
|
814
|
+
if (n.length > 0) this.reject(j, { problems: n });
|
|
815
815
|
else return t;
|
|
816
816
|
}
|
|
817
817
|
describeAddress(e) {
|
|
@@ -901,7 +901,7 @@ var V, H = V = class BreadthCommand extends E {
|
|
|
901
901
|
}
|
|
902
902
|
};
|
|
903
903
|
__decorate([
|
|
904
|
-
|
|
904
|
+
n({
|
|
905
905
|
description: "Comma-separated callable addresses, each <file>#<qualified-name>",
|
|
906
906
|
flags: "-a, --addresses [addresses]"
|
|
907
907
|
}),
|
|
@@ -909,7 +909,7 @@ __decorate([
|
|
|
909
909
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
910
910
|
__decorateMetadata("design:returntype", Array)
|
|
911
911
|
], H.prototype, "parseAddresses", null), __decorate([
|
|
912
|
-
|
|
912
|
+
n({
|
|
913
913
|
description: "Path to a callidescope configuration file",
|
|
914
914
|
flags: "--config [config]"
|
|
915
915
|
}),
|
|
@@ -917,7 +917,7 @@ __decorate([
|
|
|
917
917
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
918
918
|
__decorateMetadata("design:returntype", Object)
|
|
919
919
|
], H.prototype, "parseConfig", null), __decorate([
|
|
920
|
-
|
|
920
|
+
n({
|
|
921
921
|
description: "Comma-separated project directories to trace",
|
|
922
922
|
flags: "-d, --directories [directories]"
|
|
923
923
|
}),
|
|
@@ -925,7 +925,7 @@ __decorate([
|
|
|
925
925
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
926
926
|
__decorateMetadata("design:returntype", Array)
|
|
927
927
|
], H.prototype, "parseDirectories", null), __decorate([
|
|
928
|
-
|
|
928
|
+
n({
|
|
929
929
|
description: "Comma-separated callable addresses to root stacks at",
|
|
930
930
|
flags: "--entry-point-addresses [entryPointAddresses]"
|
|
931
931
|
}),
|
|
@@ -933,7 +933,7 @@ __decorate([
|
|
|
933
933
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
934
934
|
__decorateMetadata("design:returntype", Array)
|
|
935
935
|
], H.prototype, "parseEntryPointAddresses", null), __decorate([
|
|
936
|
-
|
|
936
|
+
n({
|
|
937
937
|
description: "Comma-separated decorators whose methods a framework invokes",
|
|
938
938
|
flags: "--entry-point-decorators [entryPointDecorators]"
|
|
939
939
|
}),
|
|
@@ -941,7 +941,7 @@ __decorate([
|
|
|
941
941
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
942
942
|
__decorateMetadata("design:returntype", Array)
|
|
943
943
|
], H.prototype, "parseEntryPointDecorators", null), __decorate([
|
|
944
|
-
|
|
944
|
+
n({
|
|
945
945
|
description: "Comma-separated globs to leave untraced",
|
|
946
946
|
flags: "--exclude [exclude]"
|
|
947
947
|
}),
|
|
@@ -949,7 +949,7 @@ __decorate([
|
|
|
949
949
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
950
950
|
__decorateMetadata("design:returntype", Array)
|
|
951
951
|
], H.prototype, "parseExclude", null), __decorate([
|
|
952
|
-
|
|
952
|
+
n({
|
|
953
953
|
description: "Comma-separated display-name globs to drop calls landing on",
|
|
954
954
|
flags: "--exclude-callees [excludeCallees]"
|
|
955
955
|
}),
|
|
@@ -957,7 +957,7 @@ __decorate([
|
|
|
957
957
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
958
958
|
__decorateMetadata("design:returntype", Array)
|
|
959
959
|
], H.prototype, "parseExcludeCallees", null), __decorate([
|
|
960
|
-
|
|
960
|
+
n({
|
|
961
961
|
description: "What to print: markdown, mermaid, or json",
|
|
962
962
|
flags: "-f, --format [format]"
|
|
963
963
|
}),
|
|
@@ -965,7 +965,7 @@ __decorate([
|
|
|
965
965
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
966
966
|
__decorateMetadata("design:returntype", Object)
|
|
967
967
|
], H.prototype, "parseFormat", null), __decorate([
|
|
968
|
-
|
|
968
|
+
n({
|
|
969
969
|
description: "Treat every src/index.ts export as a root: \"true\" or \"false\"",
|
|
970
970
|
flags: "--include-exported-functions [includeExportedFunctions]"
|
|
971
971
|
}),
|
|
@@ -973,7 +973,7 @@ __decorate([
|
|
|
973
973
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
974
974
|
__decorateMetadata("design:returntype", Object)
|
|
975
975
|
], H.prototype, "parseIncludeExportedFunctions", null), __decorate([
|
|
976
|
-
|
|
976
|
+
n({
|
|
977
977
|
description: "Promote callables nothing calls: \"true\" or \"false\"",
|
|
978
978
|
flags: "--include-orphans [includeOrphans]"
|
|
979
979
|
}),
|
|
@@ -981,7 +981,7 @@ __decorate([
|
|
|
981
981
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
982
982
|
__decorateMetadata("design:returntype", Object)
|
|
983
983
|
], H.prototype, "parseIncludeOrphans", null), __decorate([
|
|
984
|
-
|
|
984
|
+
n({
|
|
985
985
|
description: "Trace test files too: \"true\" or \"false\"",
|
|
986
986
|
flags: "--include-tests [includeTests]"
|
|
987
987
|
}),
|
|
@@ -989,37 +989,37 @@ __decorate([
|
|
|
989
989
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
990
990
|
__decorateMetadata("design:returntype", Object)
|
|
991
991
|
], H.prototype, "parseIncludeTests", null), H = V = __decorate([
|
|
992
|
-
|
|
992
|
+
e({
|
|
993
993
|
description: "Print the direct callers and callees of one or more callables, each addressed as <file>#<qualified-name>",
|
|
994
994
|
name: "breadth"
|
|
995
995
|
}),
|
|
996
|
-
|
|
996
|
+
a(),
|
|
997
997
|
__decorateMetadata("design:paramtypes", [
|
|
998
998
|
z === void 0 ? Object : z,
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
999
|
+
E === void 0 ? Object : E,
|
|
1000
|
+
le === void 0 ? Object : le,
|
|
1001
|
+
m === void 0 ? Object : m,
|
|
1002
|
+
O === void 0 ? Object : O
|
|
1003
1003
|
])
|
|
1004
1004
|
], H);
|
|
1005
1005
|
//#endregion
|
|
1006
1006
|
//#region projects/ic-suite/callidescope/callidescope-cli/src/modules/breadth/breadth.module.ts
|
|
1007
1007
|
var U = class BreadthModule {};
|
|
1008
|
-
U = __decorate([
|
|
1008
|
+
U = __decorate([o({
|
|
1009
1009
|
controllers: [],
|
|
1010
1010
|
exports: [H],
|
|
1011
1011
|
imports: [
|
|
1012
1012
|
B,
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1013
|
+
T,
|
|
1014
|
+
x,
|
|
1015
|
+
p,
|
|
1016
|
+
k
|
|
1017
1017
|
],
|
|
1018
1018
|
providers: [H]
|
|
1019
1019
|
})], U);
|
|
1020
1020
|
//#endregion
|
|
1021
1021
|
//#region projects/ic-suite/callidescope/callidescope-cli/src/modules/depth/depth.command.ts
|
|
1022
|
-
var W, G = W = class DepthCommand extends
|
|
1022
|
+
var W, G = W = class DepthCommand extends t {
|
|
1023
1023
|
addressLookupService;
|
|
1024
1024
|
addressReportService;
|
|
1025
1025
|
addressDepthService;
|
|
@@ -1043,7 +1043,7 @@ var W, G = W = class DepthCommand extends E {
|
|
|
1043
1043
|
id: i.id
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
|
-
if (n.length > 0) this.reject(
|
|
1046
|
+
if (n.length > 0) this.reject(j, { problems: n });
|
|
1047
1047
|
else return t;
|
|
1048
1048
|
}
|
|
1049
1049
|
async printDepth(e) {
|
|
@@ -1126,7 +1126,7 @@ var W, G = W = class DepthCommand extends E {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
};
|
|
1128
1128
|
__decorate([
|
|
1129
|
-
|
|
1129
|
+
n({
|
|
1130
1130
|
description: "Comma-separated callable addresses, each <file>#<qualified-name>",
|
|
1131
1131
|
flags: "-a, --addresses [addresses]"
|
|
1132
1132
|
}),
|
|
@@ -1134,7 +1134,7 @@ __decorate([
|
|
|
1134
1134
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1135
1135
|
__decorateMetadata("design:returntype", Array)
|
|
1136
1136
|
], G.prototype, "parseAddresses", null), __decorate([
|
|
1137
|
-
|
|
1137
|
+
n({
|
|
1138
1138
|
description: "Path to a callidescope configuration file",
|
|
1139
1139
|
flags: "--config [config]"
|
|
1140
1140
|
}),
|
|
@@ -1142,7 +1142,7 @@ __decorate([
|
|
|
1142
1142
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1143
1143
|
__decorateMetadata("design:returntype", Object)
|
|
1144
1144
|
], G.prototype, "parseConfig", null), __decorate([
|
|
1145
|
-
|
|
1145
|
+
n({
|
|
1146
1146
|
description: "Comma-separated project directories to trace",
|
|
1147
1147
|
flags: "-d, --directories [directories]"
|
|
1148
1148
|
}),
|
|
@@ -1150,7 +1150,7 @@ __decorate([
|
|
|
1150
1150
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1151
1151
|
__decorateMetadata("design:returntype", Array)
|
|
1152
1152
|
], G.prototype, "parseDirectories", null), __decorate([
|
|
1153
|
-
|
|
1153
|
+
n({
|
|
1154
1154
|
description: "Comma-separated callable addresses to root stacks at",
|
|
1155
1155
|
flags: "--entry-point-addresses [entryPointAddresses]"
|
|
1156
1156
|
}),
|
|
@@ -1158,7 +1158,7 @@ __decorate([
|
|
|
1158
1158
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1159
1159
|
__decorateMetadata("design:returntype", Array)
|
|
1160
1160
|
], G.prototype, "parseEntryPointAddresses", null), __decorate([
|
|
1161
|
-
|
|
1161
|
+
n({
|
|
1162
1162
|
description: "Comma-separated decorators whose methods a framework invokes",
|
|
1163
1163
|
flags: "--entry-point-decorators [entryPointDecorators]"
|
|
1164
1164
|
}),
|
|
@@ -1166,7 +1166,7 @@ __decorate([
|
|
|
1166
1166
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1167
1167
|
__decorateMetadata("design:returntype", Array)
|
|
1168
1168
|
], G.prototype, "parseEntryPointDecorators", null), __decorate([
|
|
1169
|
-
|
|
1169
|
+
n({
|
|
1170
1170
|
description: "Comma-separated globs to leave untraced",
|
|
1171
1171
|
flags: "--exclude [exclude]"
|
|
1172
1172
|
}),
|
|
@@ -1174,7 +1174,7 @@ __decorate([
|
|
|
1174
1174
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1175
1175
|
__decorateMetadata("design:returntype", Array)
|
|
1176
1176
|
], G.prototype, "parseExclude", null), __decorate([
|
|
1177
|
-
|
|
1177
|
+
n({
|
|
1178
1178
|
description: "Comma-separated display-name globs to drop calls landing on",
|
|
1179
1179
|
flags: "--exclude-callees [excludeCallees]"
|
|
1180
1180
|
}),
|
|
@@ -1182,7 +1182,7 @@ __decorate([
|
|
|
1182
1182
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1183
1183
|
__decorateMetadata("design:returntype", Array)
|
|
1184
1184
|
], G.prototype, "parseExcludeCallees", null), __decorate([
|
|
1185
|
-
|
|
1185
|
+
n({
|
|
1186
1186
|
description: "What to print: markdown, mermaid, or json",
|
|
1187
1187
|
flags: "-f, --format [format]"
|
|
1188
1188
|
}),
|
|
@@ -1190,7 +1190,7 @@ __decorate([
|
|
|
1190
1190
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1191
1191
|
__decorateMetadata("design:returntype", Object)
|
|
1192
1192
|
], G.prototype, "parseFormat", null), __decorate([
|
|
1193
|
-
|
|
1193
|
+
n({
|
|
1194
1194
|
description: "Treat every src/index.ts export as a root: \"true\" or \"false\"",
|
|
1195
1195
|
flags: "--include-exported-functions [includeExportedFunctions]"
|
|
1196
1196
|
}),
|
|
@@ -1198,7 +1198,7 @@ __decorate([
|
|
|
1198
1198
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1199
1199
|
__decorateMetadata("design:returntype", Object)
|
|
1200
1200
|
], G.prototype, "parseIncludeExportedFunctions", null), __decorate([
|
|
1201
|
-
|
|
1201
|
+
n({
|
|
1202
1202
|
description: "Promote callables nothing calls: \"true\" or \"false\"",
|
|
1203
1203
|
flags: "--include-orphans [includeOrphans]"
|
|
1204
1204
|
}),
|
|
@@ -1206,7 +1206,7 @@ __decorate([
|
|
|
1206
1206
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1207
1207
|
__decorateMetadata("design:returntype", Object)
|
|
1208
1208
|
], G.prototype, "parseIncludeOrphans", null), __decorate([
|
|
1209
|
-
|
|
1209
|
+
n({
|
|
1210
1210
|
description: "Trace test files too: \"true\" or \"false\"",
|
|
1211
1211
|
flags: "--include-tests [includeTests]"
|
|
1212
1212
|
}),
|
|
@@ -1214,31 +1214,31 @@ __decorate([
|
|
|
1214
1214
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1215
1215
|
__decorateMetadata("design:returntype", Object)
|
|
1216
1216
|
], G.prototype, "parseIncludeTests", null), G = W = __decorate([
|
|
1217
|
-
|
|
1217
|
+
e({
|
|
1218
1218
|
description: "Print every call stack above and below one or more callables, each addressed as <file>#<qualified-name>",
|
|
1219
1219
|
name: "depth"
|
|
1220
1220
|
}),
|
|
1221
|
-
|
|
1221
|
+
a(),
|
|
1222
1222
|
__decorateMetadata("design:paramtypes", [
|
|
1223
1223
|
z === void 0 ? Object : z,
|
|
1224
|
-
|
|
1224
|
+
E === void 0 ? Object : E,
|
|
1225
1225
|
h === void 0 ? Object : h,
|
|
1226
|
-
|
|
1227
|
-
|
|
1226
|
+
m === void 0 ? Object : m,
|
|
1227
|
+
O === void 0 ? Object : O
|
|
1228
1228
|
])
|
|
1229
1229
|
], G);
|
|
1230
1230
|
//#endregion
|
|
1231
1231
|
//#region projects/ic-suite/callidescope/callidescope-cli/src/modules/depth/depth.module.ts
|
|
1232
1232
|
var K = class DepthModule {};
|
|
1233
|
-
K = __decorate([
|
|
1233
|
+
K = __decorate([o({
|
|
1234
1234
|
controllers: [],
|
|
1235
1235
|
exports: [G],
|
|
1236
1236
|
imports: [
|
|
1237
1237
|
B,
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1238
|
+
T,
|
|
1239
|
+
x,
|
|
1240
|
+
p,
|
|
1241
|
+
k
|
|
1242
1242
|
],
|
|
1243
1243
|
providers: [G]
|
|
1244
1244
|
})], K);
|
|
@@ -1277,7 +1277,7 @@ var q, J = q = class LimitsService {
|
|
|
1277
1277
|
let t = e.limits[e.limit];
|
|
1278
1278
|
return {
|
|
1279
1279
|
limit: e.limit,
|
|
1280
|
-
path: e.limits.path === void 0 || t === void 0 ? void 0 :
|
|
1280
|
+
path: e.limits.path === void 0 || t === void 0 ? void 0 : u.relative(e.workspaceRoot, e.limits.path),
|
|
1281
1281
|
project: e.project,
|
|
1282
1282
|
value: t
|
|
1283
1283
|
};
|
|
@@ -1324,11 +1324,11 @@ var q, J = q = class LimitsService {
|
|
|
1324
1324
|
}))];
|
|
1325
1325
|
}
|
|
1326
1326
|
};
|
|
1327
|
-
J = q = __decorate([
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1327
|
+
J = q = __decorate([a(), __decorateMetadata("design:paramtypes", [
|
|
1328
|
+
m === void 0 ? Object : m,
|
|
1329
|
+
y === void 0 ? Object : y,
|
|
1330
|
+
w === void 0 ? Object : w,
|
|
1331
|
+
O === void 0 ? Object : O
|
|
1332
1332
|
])], J);
|
|
1333
1333
|
//#endregion
|
|
1334
1334
|
//#region projects/ic-suite/callidescope/callidescope-cli/src/modules/limits/limits.constants.ts
|
|
@@ -1367,10 +1367,10 @@ var Le = [
|
|
|
1367
1367
|
].join("\n");
|
|
1368
1368
|
}
|
|
1369
1369
|
};
|
|
1370
|
-
Y = __decorate([
|
|
1370
|
+
Y = __decorate([a(), __decorateMetadata("design:paramtypes", [])], Y);
|
|
1371
1371
|
//#endregion
|
|
1372
1372
|
//#region projects/ic-suite/callidescope/callidescope-cli/src/modules/limits/limits.command.ts
|
|
1373
|
-
var X, Z = X = class LimitsCommand extends
|
|
1373
|
+
var X, Z = X = class LimitsCommand extends t {
|
|
1374
1374
|
limitsService;
|
|
1375
1375
|
renderLimitsService;
|
|
1376
1376
|
configurationService;
|
|
@@ -1396,7 +1396,7 @@ var X, Z = X = class LimitsCommand extends E {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
};
|
|
1398
1398
|
__decorate([
|
|
1399
|
-
|
|
1399
|
+
n({
|
|
1400
1400
|
description: "Path to a callidescope configuration file",
|
|
1401
1401
|
flags: "--config [config]"
|
|
1402
1402
|
}),
|
|
@@ -1404,28 +1404,28 @@ __decorate([
|
|
|
1404
1404
|
__decorateMetadata("design:paramtypes", [Object]),
|
|
1405
1405
|
__decorateMetadata("design:returntype", Object)
|
|
1406
1406
|
], Z.prototype, "parseConfig", null), Z = X = __decorate([
|
|
1407
|
-
|
|
1407
|
+
e({
|
|
1408
1408
|
description: "List every project's resolved depth and breadth limits, and the file each came from",
|
|
1409
1409
|
name: "limits"
|
|
1410
1410
|
}),
|
|
1411
|
-
|
|
1411
|
+
a(),
|
|
1412
1412
|
__decorateMetadata("design:paramtypes", [
|
|
1413
1413
|
J === void 0 ? Object : J,
|
|
1414
1414
|
Y === void 0 ? Object : Y,
|
|
1415
|
-
|
|
1416
|
-
|
|
1415
|
+
m === void 0 ? Object : m,
|
|
1416
|
+
O === void 0 ? Object : O
|
|
1417
1417
|
])
|
|
1418
1418
|
], Z);
|
|
1419
1419
|
//#endregion
|
|
1420
1420
|
//#region projects/ic-suite/callidescope/callidescope-cli/src/modules/limits/limits.module.ts
|
|
1421
1421
|
var Q = class LimitsModule {};
|
|
1422
|
-
Q = __decorate([
|
|
1422
|
+
Q = __decorate([o({
|
|
1423
1423
|
controllers: [],
|
|
1424
1424
|
exports: [Z, J],
|
|
1425
1425
|
imports: [
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1426
|
+
p,
|
|
1427
|
+
k,
|
|
1428
|
+
C
|
|
1429
1429
|
],
|
|
1430
1430
|
providers: [
|
|
1431
1431
|
Z,
|
|
@@ -1434,21 +1434,21 @@ Q = __decorate([f({
|
|
|
1434
1434
|
]
|
|
1435
1435
|
})], Q);
|
|
1436
1436
|
//#endregion
|
|
1437
|
-
//#region projects/ic-suite/callidescope/callidescope-cli/src/
|
|
1437
|
+
//#region projects/ic-suite/callidescope/callidescope-cli/src/callidescope-cli.module.ts
|
|
1438
1438
|
var $ = class MainModule {};
|
|
1439
|
-
$ = __decorate([
|
|
1440
|
-
|
|
1439
|
+
$ = __decorate([o({ imports: [
|
|
1440
|
+
oe.forRoot({
|
|
1441
1441
|
envFilePath: ".env",
|
|
1442
1442
|
isGlobal: !0,
|
|
1443
|
-
validate: (e) =>
|
|
1443
|
+
validate: (e) => Pe.parse(e)
|
|
1444
1444
|
}),
|
|
1445
|
-
|
|
1446
|
-
|
|
1445
|
+
se,
|
|
1446
|
+
k,
|
|
1447
1447
|
U,
|
|
1448
1448
|
R,
|
|
1449
1449
|
K,
|
|
1450
1450
|
Q,
|
|
1451
|
-
|
|
1451
|
+
p
|
|
1452
1452
|
] })], $);
|
|
1453
1453
|
//#endregion
|
|
1454
|
-
export { F as a, R as i, B as n,
|
|
1454
|
+
export { F as a, R as i, B as n, O as o, z as r, __name as s, $ as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { o as e, t } from "../
|
|
3
|
-
import { CommandFactory as n } from "nest-commander";
|
|
2
|
+
import { o as e, t } from "../callidescope-cli.module-LkmOvPRI.js";
|
|
4
3
|
import "reflect-metadata";
|
|
5
|
-
|
|
4
|
+
import { CommandFactory as n } from "nest-commander";
|
|
5
|
+
//#region projects/ic-suite/callidescope/callidescope-cli/src/callidescope-cli.main.ts
|
|
6
6
|
async function main() {
|
|
7
7
|
let r = new e();
|
|
8
8
|
r.setContext("CommandFactory"), await n.run(t, {
|
package/dist/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as AddressLookupModule, r as AddressLookupService, i as CallidescopeModule, a as CallidescopeService, t as MainModule } from "../
|
|
1
|
+
export { n as AddressLookupModule, r as AddressLookupService, i as CallidescopeModule, a as CallidescopeService, t as MainModule } from "../callidescope-cli.module-LkmOvPRI.js";
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Jimmy Paolini",
|
|
3
3
|
"bin": {
|
|
4
|
-
"callidescope": "./dist/src/main.js"
|
|
4
|
+
"callidescope": "./dist/src/callidescope-cli.main.js"
|
|
5
5
|
},
|
|
6
6
|
"bugs": {
|
|
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.27",
|
|
11
|
+
"@callidescope/core": "0.0.26",
|
|
12
|
+
"@callidescope/graph": "0.0.26",
|
|
13
|
+
"@callidescope/output": "0.0.26",
|
|
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.27"
|
|
81
81
|
}
|
|
File without changes
|