@callidescope/nx 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +8 -8
- package/dist/{address.utilities-B5EjO2f1.js → address.utilities-BntrHZWU.js} +4 -4
- package/dist/{plugin-context.utilities-DqVPRaSc.js → plugin-context.utilities-CVgKMrus.js} +108 -105
- package/dist/{plugin.utilities-wC61NCb6.js → plugin.utilities-RbHRMUSm.js} +3 -3
- package/dist/src/executors/breadth/executor.js +4 -3
- package/dist/src/executors/depth/executor.js +4 -3
- package/dist/src/executors/gate/executor.js +4 -4
- package/dist/src/executors/trace/executor.js +4 -4
- package/dist/src/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
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
|
+
- Updated callidescope-cli to 0.0.10
|
|
10
|
+
|
|
1
11
|
## 0.0.9 (2026-10-08)
|
|
2
12
|
|
|
3
13
|
### 🧱 Updated Dependencies
|
package/README.md
CHANGED
|
@@ -580,13 +580,13 @@ graph LR
|
|
|
580
580
|
### Project
|
|
581
581
|
|
|
582
582
|

|
|
583
|
-

|
|
584
584
|

|
|
585
585
|

|
|
586
586
|
|
|
587
587
|
### Measured Targets
|
|
588
588
|
|
|
589
|
-

|
|
590
590
|
|
|
591
591
|
### TypeScript
|
|
592
592
|
|
|
@@ -768,16 +768,16 @@ graph LR
|
|
|
768
768
|
### Markdown
|
|
769
769
|
|
|
770
770
|

|
|
771
|
-

|
|
772
772
|

|
|
773
|
-

|
|
774
|
+

|
|
775
775
|

|
|
776
776
|

|
|
777
777
|

|
|
778
|
-

|
|
779
|
+

|
|
780
|
+

|
|
781
781
|

|
|
782
782
|

|
|
783
783
|

|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e, t } from "./plugin-context.utilities-
|
|
2
|
-
import { t as n } from "./plugin.utilities-
|
|
1
|
+
import { n as e, t } from "./plugin-context.utilities-CVgKMrus.js";
|
|
2
|
+
import { t as n } from "./plugin.utilities-RbHRMUSm.js";
|
|
3
3
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/address/address.utilities.ts
|
|
4
|
-
async function
|
|
4
|
+
async function runAddressExecutor(r) {
|
|
5
5
|
let i = (r.options.addresses ?? []).filter((e) => e !== "");
|
|
6
6
|
if (i.length === 0) throw Error(`The callidescope ${r.kind} executor needs --addresses, as in "--addresses=src/foo.service.ts#FooService.bar".`);
|
|
7
7
|
let a = await n({
|
|
@@ -17,4 +17,4 @@ async function r(r) {
|
|
|
17
17
|
return process.stdout.write(`${l.report}\n`), { success: l.ok };
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { runAddressExecutor as t };
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
2
|
import { NestFactory as e } from "@nestjs/core";
|
|
3
3
|
import { ConsoleLogger as t, Global as n, Injectable as r, Module as i, Scope as a } from "@nestjs/common";
|
|
4
|
-
import { existsSync as o, mkdirSync as s, readFileSync as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { AddressLookupModule as
|
|
8
|
-
import { AddressDepthService as
|
|
9
|
-
import { AddressReportModule as _, AddressReportService as v, MarkdownReportService as y, ProjectReportsModule as
|
|
10
|
-
import { CALLIDESCOPE_OUTPUT_FORMATS as
|
|
11
|
-
import { createProjectGraphAsync as
|
|
12
|
-
//#region
|
|
13
|
-
var
|
|
4
|
+
import { existsSync as o, mkdirSync as s, readFileSync as ee } from "node:fs";
|
|
5
|
+
import c from "node:path";
|
|
6
|
+
import l from "pino";
|
|
7
|
+
import { AddressLookupModule as te, AddressLookupService as u, CallidescopeModule as ne, CallidescopeService as d } from "@callidescope/cli";
|
|
8
|
+
import { AddressDepthService as f, BreadthService as p, FileFilterService as m, GraphModule as h, WorkspaceModule as g } from "@callidescope/graph";
|
|
9
|
+
import { AddressReportModule as _, AddressReportService as v, MarkdownReportService as y, ProjectReportsModule as re, ProjectReportsService as b, ReportModule as ie } from "@callidescope/output";
|
|
10
|
+
import { CALLIDESCOPE_OUTPUT_FORMATS as ae, ConfigurationModule as x, ConfigurationService as S, DEFAULT_OUTPUT_FORMAT as C, DEFAULT_PREVIEW_COUNT as w, DEFAULT_RUN_HEADING as T } from "@callidescope/configuration";
|
|
11
|
+
import { createProjectGraphAsync as E } from "@nx/devkit";
|
|
12
|
+
//#region \0rolldown/runtime.js
|
|
13
|
+
var D = Object.defineProperty, __name = (e, t) => D(e, "name", {
|
|
14
|
+
value: t,
|
|
15
|
+
configurable: !0
|
|
16
|
+
}), O = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s+/u, k = /^([A-Za-z]+)/, A = /* @__PURE__ */ new Set([
|
|
14
17
|
"built",
|
|
15
18
|
"cut",
|
|
16
19
|
"found",
|
|
@@ -28,7 +31,7 @@ var se = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\
|
|
|
28
31
|
"split",
|
|
29
32
|
"took",
|
|
30
33
|
"wrote"
|
|
31
|
-
]),
|
|
34
|
+
]), oe = /* @__PURE__ */ new Set([
|
|
32
35
|
"CommandFactory",
|
|
33
36
|
"ExceptionHandler",
|
|
34
37
|
"GraphQLModule",
|
|
@@ -41,12 +44,12 @@ var se = /^(\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 A(e, t, n, r) {
|
|
|
54
57
|
}
|
|
55
58
|
//#endregion
|
|
56
59
|
//#region packages/logging/src/modules/logger/logger.service.ts
|
|
57
|
-
var j, M = class extends t {
|
|
60
|
+
var j, M = class LoggerService extends t {
|
|
58
61
|
static {
|
|
59
62
|
j = this;
|
|
60
63
|
}
|
|
@@ -67,7 +70,7 @@ var j, M = class extends t {
|
|
|
67
70
|
child = j.root;
|
|
68
71
|
static createRootLogger() {
|
|
69
72
|
let e = process.env.LOG_LEVEL ?? "info";
|
|
70
|
-
return j.isProduction ? j.writesToStandardError ?
|
|
73
|
+
return j.isProduction ? j.writesToStandardError ? l({ level: e }, l.destination(2)) : l({ level: e }) : l({
|
|
71
74
|
level: e,
|
|
72
75
|
transport: {
|
|
73
76
|
options: {
|
|
@@ -106,15 +109,15 @@ var j, M = class extends t {
|
|
|
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 = k.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") || A.has(t);
|
|
115
118
|
}
|
|
116
119
|
parseMessage(e) {
|
|
117
|
-
let t = String(e), n =
|
|
120
|
+
let t = String(e), n = O.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 j, M = class extends t {
|
|
|
124
127
|
};
|
|
125
128
|
}
|
|
126
129
|
shouldSkipConventionalMessageValidation(e) {
|
|
127
|
-
return e !== void 0 &&
|
|
130
|
+
return e !== void 0 && oe.has(e);
|
|
128
131
|
}
|
|
129
132
|
static get root() {
|
|
130
133
|
return j.rootLogger ??= j.createRootLogger(), j.rootLogger;
|
|
@@ -137,8 +140,8 @@ var j, M = class extends t {
|
|
|
137
140
|
};
|
|
138
141
|
}
|
|
139
142
|
createTimestampedOutputLogFilePath(e) {
|
|
140
|
-
let t =
|
|
141
|
-
return o(t) || s(t, { recursive: !0 }),
|
|
143
|
+
let t = c.join(process.cwd(), "output");
|
|
144
|
+
return o(t) || s(t, { recursive: !0 }), c.join(t, `${e}-${(/* @__PURE__ */ new Date()).toISOString().replaceAll(/[:.]/g, "-")}.log`);
|
|
142
145
|
}
|
|
143
146
|
debug(e, t, n) {
|
|
144
147
|
let r = this.parseMessage(e);
|
|
@@ -190,11 +193,11 @@ var j, M = class extends t {
|
|
|
190
193
|
}), r.text);
|
|
191
194
|
}
|
|
192
195
|
};
|
|
193
|
-
M = j =
|
|
196
|
+
M = j = __decorate([r({ scope: a.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], M);
|
|
194
197
|
//#endregion
|
|
195
198
|
//#region packages/logging/src/modules/logger/logger.module.ts
|
|
196
|
-
var N = class {};
|
|
197
|
-
N =
|
|
199
|
+
var N = class LoggerModule {};
|
|
200
|
+
N = __decorate([n(), i({
|
|
198
201
|
controllers: [],
|
|
199
202
|
exports: [M],
|
|
200
203
|
imports: [],
|
|
@@ -202,7 +205,7 @@ N = A([n(), i({
|
|
|
202
205
|
})], N);
|
|
203
206
|
//#endregion
|
|
204
207
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/address/address.service.ts
|
|
205
|
-
var P = class {
|
|
208
|
+
var P = class AddressService {
|
|
206
209
|
addressLookupService;
|
|
207
210
|
addressReportService;
|
|
208
211
|
addressDepthService;
|
|
@@ -270,7 +273,7 @@ var P = class {
|
|
|
270
273
|
return {
|
|
271
274
|
ok: !0,
|
|
272
275
|
report: this.addressReportService.renderBreadthReports({
|
|
273
|
-
format: e.format ??
|
|
276
|
+
format: e.format ?? C,
|
|
274
277
|
reports: a
|
|
275
278
|
})
|
|
276
279
|
};
|
|
@@ -285,7 +288,7 @@ var P = class {
|
|
|
285
288
|
return {
|
|
286
289
|
ok: !0,
|
|
287
290
|
report: this.addressReportService.renderDepthReports({
|
|
288
|
-
format: e.format ??
|
|
291
|
+
format: e.format ?? C,
|
|
289
292
|
reports: n.map(({ address: e, id: t }) => {
|
|
290
293
|
let n = {
|
|
291
294
|
callablesById: r.located.callablesById,
|
|
@@ -302,28 +305,28 @@ var P = class {
|
|
|
302
305
|
};
|
|
303
306
|
}
|
|
304
307
|
};
|
|
305
|
-
P =
|
|
306
|
-
|
|
308
|
+
P = __decorate([r(), __decorateMetadata("design:paramtypes", [
|
|
309
|
+
u === void 0 ? Object : u,
|
|
307
310
|
v === void 0 ? Object : v,
|
|
308
|
-
|
|
309
|
-
|
|
311
|
+
f === void 0 ? Object : f,
|
|
312
|
+
p === void 0 ? Object : p
|
|
310
313
|
])], P);
|
|
311
314
|
//#endregion
|
|
312
315
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/address/address.module.ts
|
|
313
|
-
var F = class {};
|
|
314
|
-
F =
|
|
316
|
+
var F = class AddressModule {};
|
|
317
|
+
F = __decorate([i({
|
|
315
318
|
controllers: [],
|
|
316
319
|
exports: [P],
|
|
317
320
|
imports: [
|
|
318
|
-
|
|
321
|
+
te,
|
|
319
322
|
_,
|
|
320
|
-
|
|
323
|
+
h
|
|
321
324
|
],
|
|
322
325
|
providers: [P]
|
|
323
326
|
})], F);
|
|
324
327
|
//#endregion
|
|
325
328
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/options/options.constants.ts
|
|
326
|
-
var I = "@callidescope/nx", L = "trace", R = "depth", z = "breadth", B = "gate", V = ["callidescope.config.ts", "configuration/callidescope.config.ts"], H = "tsconfig.json", U = class {
|
|
329
|
+
var I = "@callidescope/nx", L = "trace", R = "depth", z = "breadth", B = "gate", V = ["callidescope.config.ts", "configuration/callidescope.config.ts"], H = "tsconfig.json", U = class OptionsService {
|
|
327
330
|
constructor() {}
|
|
328
331
|
isUnknownArray(e) {
|
|
329
332
|
return Array.isArray(e);
|
|
@@ -349,7 +352,7 @@ var I = "@callidescope/nx", L = "trace", R = "depth", z = "breadth", B = "gate",
|
|
|
349
352
|
return typeof t == "string" && t !== "" ? t : void 0;
|
|
350
353
|
}
|
|
351
354
|
readFormat(e) {
|
|
352
|
-
return
|
|
355
|
+
return ae.find((t) => t === e);
|
|
353
356
|
}
|
|
354
357
|
readStringList(e) {
|
|
355
358
|
return this.isUnknownArray(e) ? e.filter((e) => typeof e == "string").flatMap((e) => e.split(",")).map((e) => e.trim()).filter((e) => e !== "") : typeof e == "string" ? this.readStringList([e]) : [];
|
|
@@ -383,11 +386,11 @@ var I = "@callidescope/nx", L = "trace", R = "depth", z = "breadth", B = "gate",
|
|
|
383
386
|
};
|
|
384
387
|
}
|
|
385
388
|
};
|
|
386
|
-
U =
|
|
389
|
+
U = __decorate([r(), __decorateMetadata("design:paramtypes", [])], U);
|
|
387
390
|
//#endregion
|
|
388
391
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/options/options.module.ts
|
|
389
|
-
var W = class {};
|
|
390
|
-
W =
|
|
392
|
+
var W = class OptionsModule {};
|
|
393
|
+
W = __decorate([i({
|
|
391
394
|
controllers: [],
|
|
392
395
|
exports: [U],
|
|
393
396
|
imports: [],
|
|
@@ -395,7 +398,7 @@ W = A([i({
|
|
|
395
398
|
})], W);
|
|
396
399
|
//#endregion
|
|
397
400
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/projects/projects.service.ts
|
|
398
|
-
var G = class {
|
|
401
|
+
var G = class ProjectsService {
|
|
399
402
|
constructor() {}
|
|
400
403
|
readTags(e) {
|
|
401
404
|
return [...new Set(e.flatMap((e) => e.tags))].toSorted((e, t) => e.localeCompare(t));
|
|
@@ -416,7 +419,7 @@ var G = class {
|
|
|
416
419
|
};
|
|
417
420
|
}
|
|
418
421
|
async readProjectGraph() {
|
|
419
|
-
return
|
|
422
|
+
return E({ exitOnError: !1 });
|
|
420
423
|
}
|
|
421
424
|
readProjects(e) {
|
|
422
425
|
return Object.entries(e.nodes).map(([e, t]) => ({
|
|
@@ -478,11 +481,11 @@ var G = class {
|
|
|
478
481
|
return [...n].toSorted((e, t) => e.localeCompare(t));
|
|
479
482
|
}
|
|
480
483
|
};
|
|
481
|
-
G =
|
|
484
|
+
G = __decorate([r(), __decorateMetadata("design:paramtypes", [])], G);
|
|
482
485
|
//#endregion
|
|
483
486
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/projects/projects.module.ts
|
|
484
|
-
var K = class {};
|
|
485
|
-
K =
|
|
487
|
+
var K = class ProjectsModule {};
|
|
488
|
+
K = __decorate([i({
|
|
486
489
|
controllers: [],
|
|
487
490
|
exports: [G],
|
|
488
491
|
imports: [],
|
|
@@ -490,7 +493,7 @@ K = A([i({
|
|
|
490
493
|
})], K);
|
|
491
494
|
//#endregion
|
|
492
495
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/run-configuration/run-configuration.constants.ts
|
|
493
|
-
var
|
|
496
|
+
var q = "nx.json", J = class RunConfigurationService {
|
|
494
497
|
configurationService;
|
|
495
498
|
optionsService;
|
|
496
499
|
constructor(e, t) {
|
|
@@ -498,14 +501,14 @@ var ce = "nx.json", q = class {
|
|
|
498
501
|
}
|
|
499
502
|
readNxConfiguration(e) {
|
|
500
503
|
try {
|
|
501
|
-
return JSON.parse(c
|
|
504
|
+
return JSON.parse(ee(c.join(e, q), "utf8"));
|
|
502
505
|
} catch {
|
|
503
506
|
return;
|
|
504
507
|
}
|
|
505
508
|
}
|
|
506
509
|
async load(e) {
|
|
507
510
|
let t = e.configurationPath ?? this.optionsService.resolveConfigurationPath({
|
|
508
|
-
exists: (t) => o(
|
|
511
|
+
exists: (t) => o(c.join(e.workspaceRoot, t)),
|
|
509
512
|
nxConfiguration: this.readNxConfiguration(e.workspaceRoot)
|
|
510
513
|
}), n = await this.configurationService.loadConfigurationFile({
|
|
511
514
|
configurationPath: t,
|
|
@@ -517,19 +520,19 @@ var ce = "nx.json", q = class {
|
|
|
517
520
|
};
|
|
518
521
|
}
|
|
519
522
|
};
|
|
520
|
-
|
|
523
|
+
J = __decorate([r(), __decorateMetadata("design:paramtypes", [S === void 0 ? Object : S, U === void 0 ? Object : U])], J);
|
|
521
524
|
//#endregion
|
|
522
525
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/run-configuration/run-configuration.module.ts
|
|
523
|
-
var
|
|
524
|
-
|
|
526
|
+
var Y = class RunConfigurationModule {};
|
|
527
|
+
Y = __decorate([i({
|
|
525
528
|
controllers: [],
|
|
526
|
-
exports: [
|
|
527
|
-
imports: [
|
|
528
|
-
providers: [
|
|
529
|
-
})],
|
|
529
|
+
exports: [J],
|
|
530
|
+
imports: [x, W],
|
|
531
|
+
providers: [J]
|
|
532
|
+
})], Y);
|
|
530
533
|
//#endregion
|
|
531
534
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/plugin/plugin.constants.ts
|
|
532
|
-
var
|
|
535
|
+
var se = "**/{project.json,callidescope.config.*}", ce = "{projectRoot}/callidescope.config.*", X = "__callidescopePluginContext", reportUnreadProjects = (e) => [
|
|
533
536
|
"## Read nothing of its own (0 files)",
|
|
534
537
|
"",
|
|
535
538
|
`This run judged ${e.length === 1 ? "a project" : "projects"} whose own code it never read:`,
|
|
@@ -546,7 +549,7 @@ var le = "**/{project.json,callidescope.config.*}", ue = "{projectRoot}/callides
|
|
|
546
549
|
"configuration and `exclude` in the project's own `callidescope.config.*`",
|
|
547
550
|
"for a pattern matching everything that project holds, and check that the",
|
|
548
551
|
"project still holds sources its `tsconfig.json` includes."
|
|
549
|
-
].join("\n"),
|
|
552
|
+
].join("\n"), le = [
|
|
550
553
|
"## Traced nothing (0 callables)",
|
|
551
554
|
"",
|
|
552
555
|
"This gate read no code, so it judged none. It fails rather than passing:",
|
|
@@ -555,7 +558,7 @@ var le = "**/{project.json,callidescope.config.*}", ue = "{projectRoot}/callides
|
|
|
555
558
|
"Check `exclude` and `excludeFrom` in the workspace callidescope",
|
|
556
559
|
"configuration and in this project's own `callidescope.config.*` for a",
|
|
557
560
|
"pattern matching everything the project holds."
|
|
558
|
-
].join("\n"),
|
|
561
|
+
].join("\n"), ue = [
|
|
559
562
|
"## Traced nothing (no directories in scope)",
|
|
560
563
|
"",
|
|
561
564
|
"This gate's Nx selection resolved to no directory, so nothing was traced",
|
|
@@ -564,7 +567,7 @@ var le = "**/{project.json,callidescope.config.*}", ue = "{projectRoot}/callides
|
|
|
564
567
|
"",
|
|
565
568
|
"Check the `projects` and `tags` this target was given, and whether the",
|
|
566
569
|
"projects they name still hold a root of their own."
|
|
567
|
-
].join("\n"),
|
|
570
|
+
].join("\n"), Z = class PluginService {
|
|
568
571
|
callidescopeService;
|
|
569
572
|
configurationService;
|
|
570
573
|
fileFilterService;
|
|
@@ -621,19 +624,19 @@ var le = "**/{project.json,callidescope.config.*}", ue = "{projectRoot}/callides
|
|
|
621
624
|
[t.gateTargetName]: {
|
|
622
625
|
cache: !0,
|
|
623
626
|
executor: `${I}:gate`,
|
|
624
|
-
inputs: [...n,
|
|
627
|
+
inputs: [...n, ce],
|
|
625
628
|
options: {}
|
|
626
629
|
}
|
|
627
630
|
};
|
|
628
631
|
}
|
|
629
632
|
explainVerdict(e) {
|
|
630
|
-
return e.unreadProjectNames.length > 0 ?
|
|
633
|
+
return e.unreadProjectNames.length > 0 ? reportUnreadProjects(e.unreadProjectNames) : e.reason;
|
|
631
634
|
}
|
|
632
635
|
holdsProgram(e) {
|
|
633
|
-
return o(
|
|
636
|
+
return o(c.join(e.workspaceRoot, e.projectRoot, H));
|
|
634
637
|
}
|
|
635
638
|
isExcludedProject(e) {
|
|
636
|
-
return e.fileFilter.isExcluded(
|
|
639
|
+
return e.fileFilter.isExcluded(c.posix.join(e.projectRoot, H));
|
|
637
640
|
}
|
|
638
641
|
judge(e) {
|
|
639
642
|
let t = this.projectReportsService.findOwnedFindings({
|
|
@@ -647,7 +650,7 @@ var le = "**/{project.json,callidescope.config.*}", ue = "{projectRoot}/callides
|
|
|
647
650
|
return e.result.summary.callableCount === 0 ? {
|
|
648
651
|
findings: t,
|
|
649
652
|
ok: !1,
|
|
650
|
-
reason:
|
|
653
|
+
reason: le,
|
|
651
654
|
unreadProjectNames: n
|
|
652
655
|
} : {
|
|
653
656
|
findings: t,
|
|
@@ -665,8 +668,8 @@ var le = "**/{project.json,callidescope.config.*}", ue = "{projectRoot}/callides
|
|
|
665
668
|
workspaceRoot: e.workspaceRoot
|
|
666
669
|
}), r = /* @__PURE__ */ new Map();
|
|
667
670
|
for (let i of e.projectConfigurationFiles) {
|
|
668
|
-
if (
|
|
669
|
-
let a =
|
|
671
|
+
if (c.basename(i) !== "project.json") continue;
|
|
672
|
+
let a = c.dirname(i);
|
|
670
673
|
a !== "." && this.holdsProgram({
|
|
671
674
|
projectRoot: a,
|
|
672
675
|
workspaceRoot: e.workspaceRoot
|
|
@@ -720,12 +723,12 @@ var le = "**/{project.json,callidescope.config.*}", ue = "{projectRoot}/callides
|
|
|
720
723
|
ok: i.ok && i.unreadProjectNames.length === 0,
|
|
721
724
|
report: this.explainVerdict(i) ?? this.markdownReportService.renderFindings({
|
|
722
725
|
...i.findings,
|
|
723
|
-
previewCount:
|
|
726
|
+
previewCount: w
|
|
724
727
|
})
|
|
725
728
|
};
|
|
726
729
|
}
|
|
727
730
|
async runTrace(e) {
|
|
728
|
-
let { configuration: t, path: n } = await this.runConfigurationService.load(e), r = e.format ??
|
|
731
|
+
let { configuration: t, path: n } = await this.runConfigurationService.load(e), r = e.format ?? C, i = await this.callidescopeService.trace({
|
|
729
732
|
configuration: t,
|
|
730
733
|
configurationPath: n,
|
|
731
734
|
directories: e.directories,
|
|
@@ -736,9 +739,9 @@ var le = "**/{project.json,callidescope.config.*}", ue = "{projectRoot}/callides
|
|
|
736
739
|
result: i.result
|
|
737
740
|
}), o = this.markdownReportService.renderRun({
|
|
738
741
|
description: void 0,
|
|
739
|
-
heading:
|
|
742
|
+
heading: T,
|
|
740
743
|
limits: i.projectLimits,
|
|
741
|
-
previewCount:
|
|
744
|
+
previewCount: w,
|
|
742
745
|
rendering: r === "mermaid" ? "diagram" : "tree",
|
|
743
746
|
result: i.result
|
|
744
747
|
}), s = this.explainVerdict(a);
|
|
@@ -748,68 +751,68 @@ var le = "**/{project.json,callidescope.config.*}", ue = "{projectRoot}/callides
|
|
|
748
751
|
};
|
|
749
752
|
}
|
|
750
753
|
};
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
754
|
+
Z = __decorate([r(), __decorateMetadata("design:paramtypes", [
|
|
755
|
+
d === void 0 ? Object : d,
|
|
756
|
+
S === void 0 ? Object : S,
|
|
757
|
+
m === void 0 ? Object : m,
|
|
755
758
|
y === void 0 ? Object : y,
|
|
756
759
|
U === void 0 ? Object : U,
|
|
757
|
-
|
|
760
|
+
b === void 0 ? Object : b,
|
|
758
761
|
G === void 0 ? Object : G,
|
|
759
|
-
|
|
760
|
-
])],
|
|
762
|
+
J === void 0 ? Object : J
|
|
763
|
+
])], Z);
|
|
761
764
|
//#endregion
|
|
762
765
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/plugin/plugin.module.ts
|
|
763
|
-
var
|
|
764
|
-
|
|
766
|
+
var Q = class PluginModule {};
|
|
767
|
+
Q = __decorate([i({
|
|
765
768
|
controllers: [],
|
|
766
|
-
exports: [
|
|
769
|
+
exports: [Z],
|
|
767
770
|
imports: [
|
|
768
|
-
|
|
769
|
-
|
|
771
|
+
ne,
|
|
772
|
+
x,
|
|
770
773
|
N,
|
|
771
774
|
W,
|
|
772
|
-
b,
|
|
773
|
-
K,
|
|
774
775
|
re,
|
|
775
|
-
|
|
776
|
-
|
|
776
|
+
K,
|
|
777
|
+
ie,
|
|
778
|
+
Y,
|
|
779
|
+
g
|
|
777
780
|
],
|
|
778
|
-
providers: [
|
|
779
|
-
})],
|
|
781
|
+
providers: [Z]
|
|
782
|
+
})], Q);
|
|
780
783
|
//#endregion
|
|
781
784
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/main.module.ts
|
|
782
|
-
var
|
|
783
|
-
|
|
785
|
+
var $ = class MainModule {};
|
|
786
|
+
$ = __decorate([i({
|
|
784
787
|
controllers: [],
|
|
785
|
-
exports: [F,
|
|
788
|
+
exports: [F, Q],
|
|
786
789
|
imports: [
|
|
787
790
|
F,
|
|
788
791
|
N,
|
|
789
|
-
|
|
792
|
+
Q
|
|
790
793
|
],
|
|
791
794
|
providers: []
|
|
792
|
-
})],
|
|
795
|
+
})], $);
|
|
793
796
|
//#endregion
|
|
794
797
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/plugin/plugin-context.utilities.ts
|
|
795
|
-
async function
|
|
796
|
-
return (await
|
|
798
|
+
async function resolveAddressService() {
|
|
799
|
+
return (await resolvePluginContext()).get(P);
|
|
797
800
|
}
|
|
798
|
-
async function
|
|
799
|
-
return (await
|
|
801
|
+
async function resolveOptionsService() {
|
|
802
|
+
return (await resolvePluginContext()).get(U);
|
|
800
803
|
}
|
|
801
|
-
async function
|
|
802
|
-
return (await
|
|
804
|
+
async function resolvePluginService() {
|
|
805
|
+
return (await resolvePluginContext()).get(Z);
|
|
803
806
|
}
|
|
804
|
-
async function
|
|
805
|
-
return (await
|
|
807
|
+
async function resolveProjectsService() {
|
|
808
|
+
return (await resolvePluginContext()).get(G);
|
|
806
809
|
}
|
|
807
|
-
async function
|
|
810
|
+
async function resolvePluginContext() {
|
|
808
811
|
let t = globalThis;
|
|
809
|
-
return t[
|
|
812
|
+
return t[X] ??= e.createApplicationContext($, {
|
|
810
813
|
abortOnError: !1,
|
|
811
814
|
logger: !1
|
|
812
|
-
}), await t[
|
|
815
|
+
}), await t[X];
|
|
813
816
|
}
|
|
814
817
|
//#endregion
|
|
815
|
-
export { B as _,
|
|
818
|
+
export { B as _, $ as a, P as b, ue as c, G as d, W as f, R as g, z as h, resolveProjectsService as i, se as l, I as m, resolveOptionsService as n, Q as o, U as p, resolvePluginService as r, Z as s, resolveAddressService as t, K as u, L as v, __name as x, F as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, r as t } from "./plugin-context.utilities-
|
|
1
|
+
import { n as e, r as t } from "./plugin-context.utilities-CVgKMrus.js";
|
|
2
2
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/modules/plugin/plugin.utilities.ts
|
|
3
|
-
async function
|
|
3
|
+
async function resolveExecutorScope(n) {
|
|
4
4
|
let r = await e(), i = r.readStringList(n.options.projects), a = r.readStringList(n.options.tags);
|
|
5
5
|
if (i.length === 0 && a.length === 0) {
|
|
6
6
|
if (n.context.projectName === void 0) throw Error(`The callidescope ${n.label} executor must be run against a project, or given \`projects\` or \`tags\`.`);
|
|
@@ -15,4 +15,4 @@ async function n(n) {
|
|
|
15
15
|
return s;
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
|
-
export {
|
|
18
|
+
export { resolveExecutorScope as t };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../plugin-context.utilities-CVgKMrus.js";
|
|
2
|
+
import { t as e } from "../../../address.utilities-BntrHZWU.js";
|
|
2
3
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/executors/breadth/executor.ts
|
|
3
|
-
async function
|
|
4
|
+
async function breadthExecutor(t, n) {
|
|
4
5
|
return await e({
|
|
5
6
|
context: n,
|
|
6
7
|
kind: "breadth",
|
|
@@ -8,4 +9,4 @@ async function t(t, n) {
|
|
|
8
9
|
});
|
|
9
10
|
}
|
|
10
11
|
//#endregion
|
|
11
|
-
export {
|
|
12
|
+
export { breadthExecutor as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../../plugin-context.utilities-CVgKMrus.js";
|
|
2
|
+
import { t as e } from "../../../address.utilities-BntrHZWU.js";
|
|
2
3
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/executors/depth/executor.ts
|
|
3
|
-
async function
|
|
4
|
+
async function depthExecutor(t, n) {
|
|
4
5
|
return await e({
|
|
5
6
|
context: n,
|
|
6
7
|
kind: "depth",
|
|
@@ -8,4 +9,4 @@ async function t(t, n) {
|
|
|
8
9
|
});
|
|
9
10
|
}
|
|
10
11
|
//#endregion
|
|
11
|
-
export {
|
|
12
|
+
export { depthExecutor as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as e, r as t } from "../../../plugin-context.utilities-
|
|
2
|
-
import { t as n } from "../../../plugin.utilities-
|
|
1
|
+
import { c as e, r as t } from "../../../plugin-context.utilities-CVgKMrus.js";
|
|
2
|
+
import { t as n } from "../../../plugin.utilities-RbHRMUSm.js";
|
|
3
3
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/executors/gate/executor.ts
|
|
4
|
-
async function
|
|
4
|
+
async function gateExecutor(r, i) {
|
|
5
5
|
let a = await n({
|
|
6
6
|
context: i,
|
|
7
7
|
label: "gate",
|
|
@@ -17,4 +17,4 @@ async function r(r, i) {
|
|
|
17
17
|
return process.stdout.write(`${o.report}\n`), { success: o.ok };
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { gateExecutor as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e, r as t } from "../../../plugin-context.utilities-
|
|
2
|
-
import { t as n } from "../../../plugin.utilities-
|
|
1
|
+
import { n as e, r as t } from "../../../plugin-context.utilities-CVgKMrus.js";
|
|
2
|
+
import { t as n } from "../../../plugin.utilities-RbHRMUSm.js";
|
|
3
3
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/executors/trace/executor.ts
|
|
4
|
-
async function
|
|
4
|
+
async function traceExecutor(r, i) {
|
|
5
5
|
let a = await n({
|
|
6
6
|
context: i,
|
|
7
7
|
label: "trace",
|
|
@@ -18,4 +18,4 @@ async function r(r, i) {
|
|
|
18
18
|
return process.stdout.write(`${s.report}\n`), { success: s.ok };
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
21
|
+
export { traceExecutor as default };
|
package/dist/src/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, a as t, b as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "../plugin-context.utilities-
|
|
1
|
+
import { _ as e, a as t, b as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "../plugin-context.utilities-CVgKMrus.js";
|
|
2
2
|
import y from "node:path";
|
|
3
3
|
//#region packages/ic-suite/callidescope/callidescope-nx/src/index.ts
|
|
4
4
|
var b = {
|
package/package.json
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@callidescope/cli": "0.0.
|
|
8
|
-
"@callidescope/configuration": "0.0.
|
|
9
|
-
"@callidescope/core": "0.0.
|
|
10
|
-
"@callidescope/graph": "0.0.
|
|
11
|
-
"@callidescope/output": "0.0.
|
|
7
|
+
"@callidescope/cli": "0.0.10",
|
|
8
|
+
"@callidescope/configuration": "0.0.11",
|
|
9
|
+
"@callidescope/core": "0.0.10",
|
|
10
|
+
"@callidescope/graph": "0.0.10",
|
|
11
|
+
"@callidescope/output": "0.0.10",
|
|
12
12
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
13
13
|
"@nestjs/core": "^11.1.21 || ^12.0.1",
|
|
14
14
|
"@nx/devkit": "^23.0.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"strict": true
|
|
76
76
|
},
|
|
77
77
|
"types": "./dist/src/index.d.ts",
|
|
78
|
-
"version": "0.0.
|
|
78
|
+
"version": "0.0.10"
|
|
79
79
|
}
|