@callidescope/nx 0.0.29 → 0.0.31
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 +24 -0
- package/README.md +59 -63
- package/dist/{address.utilities-Tm8L3El6.js → address.utilities-OT9XmTAl.js} +3 -4
- package/dist/{plugin-context.utilities-ByGoz-_t.js → plugin-context.utilities-B2BXtiTJ.js} +120 -144
- package/dist/{plugin.utilities-b28yh8Kv.js → plugin.utilities-Evc-Oepn.js} +1 -1
- package/dist/src/executors/breadth/executor.d.ts +1 -1
- package/dist/src/executors/breadth/executor.js +2 -2
- package/dist/src/executors/depth/executor.d.ts +1 -1
- package/dist/src/executors/depth/executor.js +2 -2
- package/dist/src/executors/gate/executor.d.ts +1 -1
- package/dist/src/executors/gate/executor.js +13 -13
- package/dist/src/executors/trace/executor.d.ts +1 -1
- package/dist/src/executors/trace/executor.js +3 -3
- package/dist/src/index.d.ts +39 -39
- package/dist/src/index.js +1 -1
- package/package.json +6 -6
- package/src/executors/breadth/schema.json +3 -3
- package/src/executors/depth/schema.json +3 -3
- package/src/executors/gate/schema.json +3 -3
- package/src/executors/trace/schema.json +3 -3
|
@@ -1,19 +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
|
|
4
|
+
import { existsSync as o, mkdirSync as s } from "node:fs";
|
|
5
5
|
import c from "node:path";
|
|
6
6
|
import l from "pino";
|
|
7
|
-
import { AddressLookupModule as
|
|
8
|
-
import { AddressDepthService as
|
|
9
|
-
import { AddressReportModule as
|
|
10
|
-
import { CALLIDESCOPE_OUTPUT_FORMATS as
|
|
11
|
-
import { createProjectGraphAsync as
|
|
7
|
+
import { AddressLookupModule as u, AddressLookupService as d, CallidescopeModule as f, CallidescopeService as p } from "@callidescope/cli";
|
|
8
|
+
import { AddressDepthService as m, BreadthService as h, FileFilterService as g, GraphModule as ee, WorkspaceModule as _ } from "@callidescope/graph";
|
|
9
|
+
import { AddressReportModule as v, AddressReportService as y, MarkdownReportService as b, ProjectReportsModule as te, ProjectReportsService as x, ReportModule as ne } from "@callidescope/output";
|
|
10
|
+
import { CALLIDESCOPE_OUTPUT_FORMATS as S, ConfigurationModule as C, ConfigurationService as w, DEFAULT_OUTPUT_FORMAT as T, DEFAULT_PREVIEW_COUNT as E, DEFAULT_RUN_HEADING as D } from "@callidescope/configuration";
|
|
11
|
+
import { createProjectGraphAsync as O } from "@nx/devkit";
|
|
12
12
|
//#region \0rolldown/runtime.js
|
|
13
|
-
var
|
|
13
|
+
var k = Object.defineProperty, __name = (e, t) => k(e, "name", {
|
|
14
14
|
value: t,
|
|
15
15
|
configurable: !0
|
|
16
|
-
}),
|
|
16
|
+
}), re = /^(\p{Extended_Pictographic}️?(?:\p{Extended_Pictographic}️?)*)\s+/u, ie = /^([A-Za-z]+)/, ae = /* @__PURE__ */ new Set([
|
|
17
17
|
"built",
|
|
18
18
|
"cut",
|
|
19
19
|
"found",
|
|
@@ -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 A, j = class LoggerService extends t {
|
|
61
61
|
static {
|
|
62
|
-
|
|
62
|
+
A = this;
|
|
63
63
|
}
|
|
64
64
|
constructor() {
|
|
65
65
|
super();
|
|
@@ -67,15 +67,15 @@ var j, M = class LoggerService extends t {
|
|
|
67
67
|
static isProduction = process.env.NODE_ENV === "production";
|
|
68
68
|
static rootLogger;
|
|
69
69
|
static writesToStandardError = !1;
|
|
70
|
-
child =
|
|
70
|
+
child = A.root;
|
|
71
71
|
static createRootLogger() {
|
|
72
72
|
let e = process.env.LOG_LEVEL ?? "info";
|
|
73
|
-
return
|
|
73
|
+
return A.isProduction ? A.writesToStandardError ? l({ level: e }, l.destination(2)) : l({ level: e }) : l({
|
|
74
74
|
level: e,
|
|
75
75
|
transport: {
|
|
76
76
|
options: {
|
|
77
77
|
colorize: !0,
|
|
78
|
-
destination:
|
|
78
|
+
destination: A.writesToStandardError ? 2 : 1,
|
|
79
79
|
ignore: "pid,hostname,emoji",
|
|
80
80
|
messageFormat: "{emoji} {msg}",
|
|
81
81
|
singleLine: !0
|
|
@@ -85,10 +85,10 @@ var j, M = class LoggerService extends t {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
static logToStandardError() {
|
|
88
|
-
|
|
88
|
+
A.rootLogger === void 0 ? A.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 (A.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 j, M = class LoggerService extends t {
|
|
|
99
99
|
}), {
|
|
100
100
|
...e.data,
|
|
101
101
|
context: e.context,
|
|
102
|
-
...
|
|
102
|
+
...A.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 = ie.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") || ae.has(t);
|
|
114
114
|
}
|
|
115
115
|
parseMessage(e) {
|
|
116
|
-
let t = String(e), n =
|
|
116
|
+
let t = String(e), n = re.exec(t), r = n?.[1];
|
|
117
117
|
return r === void 0 ? {
|
|
118
118
|
emoji: void 0,
|
|
119
119
|
text: t
|
|
@@ -126,7 +126,7 @@ var j, M = class LoggerService extends t {
|
|
|
126
126
|
return e !== void 0 && oe.has(e);
|
|
127
127
|
}
|
|
128
128
|
static get root() {
|
|
129
|
-
return
|
|
129
|
+
return A.rootLogger ??= A.createRootLogger(), A.rootLogger;
|
|
130
130
|
}
|
|
131
131
|
buildErrorLogEntry(e, t) {
|
|
132
132
|
let n = t instanceof Error ? t.stack || t.message : String(t);
|
|
@@ -170,7 +170,7 @@ var j, M = class LoggerService extends t {
|
|
|
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 = A.root.child({ context: e });
|
|
174
174
|
}
|
|
175
175
|
verbose(e, t, n) {
|
|
176
176
|
let r = this.parseMessage(e);
|
|
@@ -189,19 +189,19 @@ var j, M = class LoggerService extends t {
|
|
|
189
189
|
}), r.text);
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
|
|
192
|
+
j = A = __decorate([r({ scope: a.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], j);
|
|
193
193
|
//#endregion
|
|
194
194
|
//#region projects/logging/src/modules/logger/logger.module.ts
|
|
195
|
-
var
|
|
196
|
-
|
|
195
|
+
var M = class LoggerModule {};
|
|
196
|
+
M = __decorate([n(), i({
|
|
197
197
|
controllers: [],
|
|
198
|
-
exports: [
|
|
198
|
+
exports: [j],
|
|
199
199
|
imports: [],
|
|
200
|
-
providers: [
|
|
201
|
-
})],
|
|
200
|
+
providers: [j]
|
|
201
|
+
})], M);
|
|
202
202
|
//#endregion
|
|
203
203
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/address/address.service.ts
|
|
204
|
-
var
|
|
204
|
+
var N = class AddressService {
|
|
205
205
|
addressLookupService;
|
|
206
206
|
addressReportService;
|
|
207
207
|
addressDepthService;
|
|
@@ -218,7 +218,7 @@ var P = class AddressService {
|
|
|
218
218
|
}
|
|
219
219
|
async locate(e) {
|
|
220
220
|
let t = await this.addressLookupService.locate({
|
|
221
|
-
|
|
221
|
+
config: e.configurationPath,
|
|
222
222
|
directories: [...e.directories],
|
|
223
223
|
...e.format === void 0 ? {} : { format: e.format }
|
|
224
224
|
}), n = [], r = [];
|
|
@@ -265,7 +265,7 @@ var P = class AddressService {
|
|
|
265
265
|
return {
|
|
266
266
|
ok: !0,
|
|
267
267
|
report: this.addressReportService.renderBreadthReports({
|
|
268
|
-
format: e.format ??
|
|
268
|
+
format: e.format ?? T,
|
|
269
269
|
reports: a
|
|
270
270
|
})
|
|
271
271
|
};
|
|
@@ -280,7 +280,7 @@ var P = class AddressService {
|
|
|
280
280
|
return {
|
|
281
281
|
ok: !0,
|
|
282
282
|
report: this.addressReportService.renderDepthReports({
|
|
283
|
-
format: e.format ??
|
|
283
|
+
format: e.format ?? T,
|
|
284
284
|
reports: n.map(({ address: e, id: t }) => {
|
|
285
285
|
let n = {
|
|
286
286
|
callablesById: r.located.callablesById,
|
|
@@ -297,72 +297,65 @@ var P = class AddressService {
|
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
])],
|
|
300
|
+
N = __decorate([r(), __decorateMetadata("design:paramtypes", [
|
|
301
|
+
d === void 0 ? Object : d,
|
|
302
|
+
y === void 0 ? Object : y,
|
|
303
|
+
m === void 0 ? Object : m,
|
|
304
|
+
h === void 0 ? Object : h
|
|
305
|
+
])], N);
|
|
306
306
|
//#endregion
|
|
307
307
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/address/address.module.ts
|
|
308
|
-
var
|
|
309
|
-
|
|
308
|
+
var P = class AddressModule {};
|
|
309
|
+
P = __decorate([i({
|
|
310
310
|
controllers: [],
|
|
311
|
-
exports: [
|
|
311
|
+
exports: [N],
|
|
312
312
|
imports: [
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
313
|
+
u,
|
|
314
|
+
v,
|
|
315
|
+
ee
|
|
316
316
|
],
|
|
317
|
-
providers: [
|
|
318
|
-
})],
|
|
317
|
+
providers: [N]
|
|
318
|
+
})], P);
|
|
319
319
|
//#endregion
|
|
320
320
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/options/options.constants.ts
|
|
321
|
-
var
|
|
322
|
-
|
|
321
|
+
var F = "@callidescope/nx", I = "trace", L = "depth", R = "breadth", z = "gate", B = `The "configurationPath" option in the nx.json registration of ${F}`, V = "The \"configuration\" executor option", H = "tsconfig.json", U = class OptionsService {
|
|
322
|
+
configurationService;
|
|
323
|
+
constructor(e) {
|
|
324
|
+
this.configurationService = e;
|
|
325
|
+
}
|
|
323
326
|
isUnknownArray(e) {
|
|
324
327
|
return Array.isArray(e);
|
|
325
328
|
}
|
|
326
|
-
readEntryConfigurationPath(e) {
|
|
327
|
-
if (typeof e != "object" || !e) return;
|
|
328
|
-
let { options: t, plugin: n } = { ...e };
|
|
329
|
-
if (n === "@callidescope/nx" && typeof t == "object" && t) return this.readString({
|
|
330
|
-
key: "configurationPath",
|
|
331
|
-
options: { ...t }
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
readRegisteredConfigurationPath(e) {
|
|
335
|
-
if (typeof e != "object" || !e) return;
|
|
336
|
-
let { plugins: t } = { ...e };
|
|
337
|
-
if (this.isUnknownArray(t)) for (let e of t) {
|
|
338
|
-
let t = this.readEntryConfigurationPath(e);
|
|
339
|
-
if (t !== void 0) return t;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
329
|
readString(e) {
|
|
343
330
|
let t = e.options[e.key];
|
|
344
331
|
return typeof t == "string" && t !== "" ? t : void 0;
|
|
345
332
|
}
|
|
333
|
+
readConfiguration(e) {
|
|
334
|
+
return this.configurationService.requireConfigurationPath(typeof e == "string" ? e : void 0, V);
|
|
335
|
+
}
|
|
346
336
|
readFormat(e) {
|
|
347
|
-
return
|
|
337
|
+
return S.find((t) => t === e);
|
|
338
|
+
}
|
|
339
|
+
readLookupOptions(e) {
|
|
340
|
+
return {
|
|
341
|
+
configurationPath: this.readConfiguration(e.configuration),
|
|
342
|
+
format: this.readFormat(e.format)
|
|
343
|
+
};
|
|
348
344
|
}
|
|
349
345
|
readStringList(e) {
|
|
350
346
|
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]) : [];
|
|
351
347
|
}
|
|
352
|
-
resolveConfigurationPath(e) {
|
|
353
|
-
return this.readRegisteredConfigurationPath(e.nxConfiguration) ?? V.find((t) => e.exists(t)) ?? V[0];
|
|
354
|
-
}
|
|
355
348
|
resolvePluginOptions(e) {
|
|
356
|
-
let t = typeof e == "object" && e ? { ...e } : {}
|
|
349
|
+
let t = typeof e == "object" && e ? { ...e } : {}, n = this.configurationService.requireConfigurationPath(this.readString({
|
|
350
|
+
key: "configurationPath",
|
|
351
|
+
options: t
|
|
352
|
+
}), B);
|
|
357
353
|
return {
|
|
358
354
|
breadthTargetName: this.readString({
|
|
359
355
|
key: "breadthTargetName",
|
|
360
356
|
options: t
|
|
361
357
|
}) ?? "breadth",
|
|
362
|
-
configurationPath:
|
|
363
|
-
key: "configurationPath",
|
|
364
|
-
options: t
|
|
365
|
-
}) ?? V[0],
|
|
358
|
+
configurationPath: n,
|
|
366
359
|
depthTargetName: this.readString({
|
|
367
360
|
key: "depthTargetName",
|
|
368
361
|
options: t
|
|
@@ -378,14 +371,14 @@ var I = "@callidescope/nx", L = "trace", R = "depth", z = "breadth", B = "gate",
|
|
|
378
371
|
};
|
|
379
372
|
}
|
|
380
373
|
};
|
|
381
|
-
U = __decorate([r(), __decorateMetadata("design:paramtypes", [])], U);
|
|
374
|
+
U = __decorate([r(), __decorateMetadata("design:paramtypes", [w === void 0 ? Object : w])], U);
|
|
382
375
|
//#endregion
|
|
383
376
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/options/options.module.ts
|
|
384
377
|
var W = class OptionsModule {};
|
|
385
378
|
W = __decorate([i({
|
|
386
379
|
controllers: [],
|
|
387
380
|
exports: [U],
|
|
388
|
-
imports: [],
|
|
381
|
+
imports: [C],
|
|
389
382
|
providers: [U]
|
|
390
383
|
})], W);
|
|
391
384
|
//#endregion
|
|
@@ -407,7 +400,7 @@ var G = class ProjectsService {
|
|
|
407
400
|
};
|
|
408
401
|
}
|
|
409
402
|
async readProjectGraph() {
|
|
410
|
-
return
|
|
403
|
+
return O({ exitOnError: !1 });
|
|
411
404
|
}
|
|
412
405
|
readProjects(e) {
|
|
413
406
|
return Object.entries(e.nodes).map(([e, t]) => ({
|
|
@@ -474,47 +467,33 @@ K = __decorate([i({
|
|
|
474
467
|
providers: [G]
|
|
475
468
|
})], K);
|
|
476
469
|
//#endregion
|
|
477
|
-
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/run-configuration/run-configuration.
|
|
478
|
-
var q =
|
|
470
|
+
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/run-configuration/run-configuration.service.ts
|
|
471
|
+
var q = class RunConfigurationService {
|
|
479
472
|
configurationService;
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
this.configurationService = e, this.optionsService = t;
|
|
483
|
-
}
|
|
484
|
-
readNxConfiguration(e) {
|
|
485
|
-
try {
|
|
486
|
-
return JSON.parse(ee(c.join(e, q), "utf8"));
|
|
487
|
-
} catch {
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
473
|
+
constructor(e) {
|
|
474
|
+
this.configurationService = e;
|
|
490
475
|
}
|
|
491
476
|
async load(e) {
|
|
492
|
-
let t =
|
|
493
|
-
exists: (t) => o(c.join(e.workspaceRoot, t)),
|
|
494
|
-
nxConfiguration: this.readNxConfiguration(e.workspaceRoot)
|
|
495
|
-
}), n = await this.configurationService.loadConfigurationFile({
|
|
496
|
-
configurationPath: t,
|
|
497
|
-
searchDirectory: e.workspaceRoot
|
|
498
|
-
});
|
|
477
|
+
let t = await this.configurationService.loadConfigurationFile({ configurationPath: e.configurationPath });
|
|
499
478
|
return {
|
|
500
|
-
configuration:
|
|
501
|
-
path:
|
|
479
|
+
configuration: t.configuration,
|
|
480
|
+
path: t.path
|
|
502
481
|
};
|
|
503
482
|
}
|
|
504
483
|
};
|
|
505
|
-
|
|
484
|
+
q = __decorate([r(), __decorateMetadata("design:paramtypes", [w === void 0 ? Object : w])], q);
|
|
506
485
|
//#endregion
|
|
507
486
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/run-configuration/run-configuration.module.ts
|
|
508
|
-
var
|
|
509
|
-
|
|
487
|
+
var J = class RunConfigurationModule {};
|
|
488
|
+
J = __decorate([i({
|
|
510
489
|
controllers: [],
|
|
511
|
-
exports: [
|
|
512
|
-
imports: [
|
|
513
|
-
providers: [
|
|
514
|
-
})],
|
|
490
|
+
exports: [q],
|
|
491
|
+
imports: [C],
|
|
492
|
+
providers: [q]
|
|
493
|
+
})], J);
|
|
515
494
|
//#endregion
|
|
516
495
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/plugin/plugin.constants.ts
|
|
517
|
-
var se = "**/{project.json,callidescope.config.*}", ce = "{projectRoot}/callidescope.config.*",
|
|
496
|
+
var se = "**/{project.json,callidescope.config.*}", ce = "{projectRoot}/callidescope.config.*", Y = "__callidescopePluginContext", reportUnreadProjects = (e) => [
|
|
518
497
|
"## Read nothing of its own (0 files)",
|
|
519
498
|
"",
|
|
520
499
|
`This run judged ${e.length === 1 ? "a project" : "projects"} whose own code it never read:`,
|
|
@@ -540,7 +519,7 @@ var se = "**/{project.json,callidescope.config.*}", ce = "{projectRoot}/callides
|
|
|
540
519
|
"Check `exclude` and `excludeFrom` in the workspace callidescope",
|
|
541
520
|
"configuration and in this project's own `callidescope.config.*` for a",
|
|
542
521
|
"pattern matching everything the project holds."
|
|
543
|
-
].join("\n"),
|
|
522
|
+
].join("\n"), X = [
|
|
544
523
|
"## Traced nothing (no directories in scope)",
|
|
545
524
|
"",
|
|
546
525
|
"This gate's Nx selection resolved to no directory, so nothing was traced",
|
|
@@ -563,10 +542,7 @@ var se = "**/{project.json,callidescope.config.*}", ce = "{projectRoot}/callides
|
|
|
563
542
|
}
|
|
564
543
|
async buildExclusionFilter(e) {
|
|
565
544
|
try {
|
|
566
|
-
let { configuration: t } = await this.configurationService.loadConfigurationFile({
|
|
567
|
-
configurationPath: e.configurationPath,
|
|
568
|
-
searchDirectory: e.workspaceRoot
|
|
569
|
-
});
|
|
545
|
+
let { configuration: t } = await this.configurationService.loadConfigurationFile({ configurationPath: e.configurationPath });
|
|
570
546
|
return this.fileFilterService.buildFileFilter({
|
|
571
547
|
exclude: t.exclude,
|
|
572
548
|
excludeFrom: t.excludeFrom,
|
|
@@ -581,33 +557,33 @@ var se = "**/{project.json,callidescope.config.*}", ce = "{projectRoot}/callides
|
|
|
581
557
|
"default",
|
|
582
558
|
"^default",
|
|
583
559
|
`{workspaceRoot}/${t.configurationPath}`
|
|
584
|
-
], r = {
|
|
560
|
+
], r = { configuration: t.configurationPath }, i = {
|
|
585
561
|
[t.breadthTargetName]: {
|
|
586
562
|
cache: !0,
|
|
587
|
-
executor: `${
|
|
563
|
+
executor: `${F}:breadth`,
|
|
588
564
|
inputs: n,
|
|
589
|
-
options:
|
|
565
|
+
options: r
|
|
590
566
|
},
|
|
591
567
|
[t.depthTargetName]: {
|
|
592
568
|
cache: !0,
|
|
593
|
-
executor: `${
|
|
569
|
+
executor: `${F}:depth`,
|
|
594
570
|
inputs: n,
|
|
595
|
-
options:
|
|
571
|
+
options: r
|
|
596
572
|
},
|
|
597
573
|
[t.traceTargetName]: {
|
|
598
574
|
cache: !0,
|
|
599
|
-
executor: `${
|
|
575
|
+
executor: `${F}:trace`,
|
|
600
576
|
inputs: n,
|
|
601
|
-
options:
|
|
577
|
+
options: r
|
|
602
578
|
}
|
|
603
579
|
};
|
|
604
|
-
return e.isExcluded ?
|
|
605
|
-
...
|
|
580
|
+
return e.isExcluded ? i : {
|
|
581
|
+
...i,
|
|
606
582
|
[t.gateTargetName]: {
|
|
607
583
|
cache: !0,
|
|
608
|
-
executor: `${
|
|
584
|
+
executor: `${F}:gate`,
|
|
609
585
|
inputs: [...n, ce],
|
|
610
|
-
options:
|
|
586
|
+
options: r
|
|
611
587
|
}
|
|
612
588
|
};
|
|
613
589
|
}
|
|
@@ -705,12 +681,12 @@ var se = "**/{project.json,callidescope.config.*}", ce = "{projectRoot}/callides
|
|
|
705
681
|
ok: i.ok && i.unreadProjectNames.length === 0,
|
|
706
682
|
report: this.explainVerdict(i) ?? this.markdownReportService.renderFindings({
|
|
707
683
|
...i.findings,
|
|
708
|
-
previewCount:
|
|
684
|
+
previewCount: E
|
|
709
685
|
})
|
|
710
686
|
};
|
|
711
687
|
}
|
|
712
688
|
async runTrace(e) {
|
|
713
|
-
let { configuration: t, path: n } = await this.runConfigurationService.load(e), r = e.format ??
|
|
689
|
+
let { configuration: t, path: n } = await this.runConfigurationService.load(e), r = e.format ?? T, i = await this.callidescopeService.trace({
|
|
714
690
|
configuration: t,
|
|
715
691
|
configurationPath: n,
|
|
716
692
|
directories: e.directories,
|
|
@@ -721,9 +697,9 @@ var se = "**/{project.json,callidescope.config.*}", ce = "{projectRoot}/callides
|
|
|
721
697
|
result: i.result
|
|
722
698
|
}), o = this.markdownReportService.renderRun({
|
|
723
699
|
description: void 0,
|
|
724
|
-
heading:
|
|
700
|
+
heading: D,
|
|
725
701
|
limits: i.projectLimits,
|
|
726
|
-
previewCount:
|
|
702
|
+
previewCount: E,
|
|
727
703
|
rendering: r === "mermaid" ? "diagram" : "tree",
|
|
728
704
|
result: i.result
|
|
729
705
|
}), s = this.explainVerdict(a);
|
|
@@ -734,14 +710,14 @@ var se = "**/{project.json,callidescope.config.*}", ce = "{projectRoot}/callides
|
|
|
734
710
|
}
|
|
735
711
|
};
|
|
736
712
|
Z = __decorate([r(), __decorateMetadata("design:paramtypes", [
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
y === void 0 ? Object : y,
|
|
741
|
-
U === void 0 ? Object : U,
|
|
713
|
+
p === void 0 ? Object : p,
|
|
714
|
+
w === void 0 ? Object : w,
|
|
715
|
+
g === void 0 ? Object : g,
|
|
742
716
|
b === void 0 ? Object : b,
|
|
717
|
+
U === void 0 ? Object : U,
|
|
718
|
+
x === void 0 ? Object : x,
|
|
743
719
|
G === void 0 ? Object : G,
|
|
744
|
-
|
|
720
|
+
q === void 0 ? Object : q
|
|
745
721
|
])], Z);
|
|
746
722
|
//#endregion
|
|
747
723
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/plugin/plugin.module.ts
|
|
@@ -750,15 +726,15 @@ Q = __decorate([i({
|
|
|
750
726
|
controllers: [],
|
|
751
727
|
exports: [Z],
|
|
752
728
|
imports: [
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
729
|
+
f,
|
|
730
|
+
C,
|
|
731
|
+
M,
|
|
756
732
|
W,
|
|
757
|
-
|
|
733
|
+
te,
|
|
758
734
|
K,
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
735
|
+
ne,
|
|
736
|
+
J,
|
|
737
|
+
_
|
|
762
738
|
],
|
|
763
739
|
providers: [Z]
|
|
764
740
|
})], Q);
|
|
@@ -767,10 +743,10 @@ Q = __decorate([i({
|
|
|
767
743
|
var $ = class MainModule {};
|
|
768
744
|
$ = __decorate([i({
|
|
769
745
|
controllers: [],
|
|
770
|
-
exports: [
|
|
746
|
+
exports: [P, Q],
|
|
771
747
|
imports: [
|
|
772
|
-
|
|
773
|
-
|
|
748
|
+
P,
|
|
749
|
+
M,
|
|
774
750
|
Q
|
|
775
751
|
],
|
|
776
752
|
providers: []
|
|
@@ -778,7 +754,7 @@ $ = __decorate([i({
|
|
|
778
754
|
//#endregion
|
|
779
755
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/plugin/plugin-context.utilities.ts
|
|
780
756
|
async function resolveAddressService() {
|
|
781
|
-
return (await resolvePluginContext()).get(
|
|
757
|
+
return (await resolvePluginContext()).get(N);
|
|
782
758
|
}
|
|
783
759
|
async function resolveOptionsService() {
|
|
784
760
|
return (await resolvePluginContext()).get(U);
|
|
@@ -791,10 +767,10 @@ async function resolveProjectsService() {
|
|
|
791
767
|
}
|
|
792
768
|
async function resolvePluginContext() {
|
|
793
769
|
let t = globalThis;
|
|
794
|
-
return t[
|
|
770
|
+
return t[Y] ??= e.createApplicationContext($, {
|
|
795
771
|
abortOnError: !1,
|
|
796
772
|
logger: !1
|
|
797
|
-
}), await t[
|
|
773
|
+
}), await t[Y];
|
|
798
774
|
}
|
|
799
775
|
//#endregion
|
|
800
|
-
export {
|
|
776
|
+
export { z as _, $ as a, N as b, X as c, G as d, W as f, L as g, R as h, resolveProjectsService as i, se as l, F as m, resolveOptionsService as n, Q as o, U as p, resolvePluginService as r, Z as s, resolveAddressService as t, K as u, I as v, __name as x, P as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t } from "./plugin-context.utilities-
|
|
1
|
+
import { n as e, r as t } from "./plugin-context.utilities-B2BXtiTJ.js";
|
|
2
2
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/modules/plugin/plugin.utilities.ts
|
|
3
3
|
async function resolveExecutorScope(n) {
|
|
4
4
|
let r = await e(), i = r.readStringList(n.options.projects), a = r.readStringList(n.options.tags);
|
|
@@ -9,7 +9,7 @@ declare interface AddressExecutorOptions {
|
|
|
9
9
|
* run answers about a whole rename rather than one callable at a time.
|
|
10
10
|
*/
|
|
11
11
|
readonly addresses?: string[] | undefined;
|
|
12
|
-
readonly
|
|
12
|
+
readonly configuration: string;
|
|
13
13
|
readonly format?: string | undefined;
|
|
14
14
|
/** Nx project names to resolve against, replacing the target's own project. */
|
|
15
15
|
readonly projects?: string[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../plugin-context.utilities-
|
|
2
|
-
import { t as e } from "../../../address.utilities-
|
|
1
|
+
import "../../../plugin-context.utilities-B2BXtiTJ.js";
|
|
2
|
+
import { t as e } from "../../../address.utilities-OT9XmTAl.js";
|
|
3
3
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/executors/breadth/executor.ts
|
|
4
4
|
async function breadthExecutor(t, n) {
|
|
5
5
|
return await e({
|
|
@@ -9,7 +9,7 @@ declare interface AddressExecutorOptions {
|
|
|
9
9
|
* run answers about a whole rename rather than one callable at a time.
|
|
10
10
|
*/
|
|
11
11
|
readonly addresses?: string[] | undefined;
|
|
12
|
-
readonly
|
|
12
|
+
readonly configuration: string;
|
|
13
13
|
readonly format?: string | undefined;
|
|
14
14
|
/** Nx project names to resolve against, replacing the target's own project. */
|
|
15
15
|
readonly projects?: string[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../plugin-context.utilities-
|
|
2
|
-
import { t as e } from "../../../address.utilities-
|
|
1
|
+
import "../../../plugin-context.utilities-B2BXtiTJ.js";
|
|
2
|
+
import { t as e } from "../../../address.utilities-OT9XmTAl.js";
|
|
3
3
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/executors/depth/executor.ts
|
|
4
4
|
async function depthExecutor(t, n) {
|
|
5
5
|
return await e({
|
|
@@ -25,7 +25,7 @@ export default gateExecutor;
|
|
|
25
25
|
|
|
26
26
|
/** Options the gate executor accepts. */
|
|
27
27
|
declare interface GateExecutorOptions {
|
|
28
|
-
readonly
|
|
28
|
+
readonly configuration: string;
|
|
29
29
|
/** Nx project names to gate, replacing the target's own project. */
|
|
30
30
|
readonly projects?: string[] | undefined;
|
|
31
31
|
/** Nx project tags to gate, selecting a project carrying any of them. */
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as e,
|
|
2
|
-
import { t as
|
|
1
|
+
import { c as e, n as t, r as n } from "../../../plugin-context.utilities-B2BXtiTJ.js";
|
|
2
|
+
import { t as r } from "../../../plugin.utilities-Evc-Oepn.js";
|
|
3
3
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/executors/gate/executor.ts
|
|
4
|
-
async function gateExecutor(
|
|
5
|
-
let
|
|
6
|
-
context:
|
|
4
|
+
async function gateExecutor(i, a) {
|
|
5
|
+
let o = await r({
|
|
6
|
+
context: a,
|
|
7
7
|
label: "gate",
|
|
8
|
-
options:
|
|
8
|
+
options: i
|
|
9
9
|
});
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
directories:
|
|
14
|
-
judgedProjectNames:
|
|
15
|
-
workspaceRoot:
|
|
10
|
+
if (o.directories.length === 0) return process.stdout.write(`${e}\n`), { success: !1 };
|
|
11
|
+
let s = await t(), c = await (await n()).runGate({
|
|
12
|
+
configurationPath: s.readConfiguration(i.configuration),
|
|
13
|
+
directories: o.directories,
|
|
14
|
+
judgedProjectNames: o.selectedDirectories,
|
|
15
|
+
workspaceRoot: a.root
|
|
16
16
|
});
|
|
17
|
-
return process.stdout.write(`${
|
|
17
|
+
return process.stdout.write(`${c.report}\n`), { success: c.ok };
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
20
|
export { gateExecutor as default };
|
|
@@ -20,7 +20,7 @@ export default traceExecutor;
|
|
|
20
20
|
|
|
21
21
|
/** Options the trace executor accepts. */
|
|
22
22
|
declare interface TraceExecutorOptions {
|
|
23
|
-
readonly
|
|
23
|
+
readonly configuration: string;
|
|
24
24
|
readonly format?: string | undefined;
|
|
25
25
|
/** Nx project names to trace, replacing the target's own project. */
|
|
26
26
|
readonly projects?: string[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
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-B2BXtiTJ.js";
|
|
2
|
+
import { t as n } from "../../../plugin.utilities-Evc-Oepn.js";
|
|
3
3
|
//#region projects/ic-suite/callidescope/callidescope-nx/src/executors/trace/executor.ts
|
|
4
4
|
async function traceExecutor(r, i) {
|
|
5
5
|
let a = await n({
|
|
@@ -9,7 +9,7 @@ async function traceExecutor(r, i) {
|
|
|
9
9
|
});
|
|
10
10
|
if (a.directories.length === 0) return { success: !0 };
|
|
11
11
|
let o = await e(), s = await (await t()).runTrace({
|
|
12
|
-
|
|
12
|
+
configurationPath: o.readConfiguration(r.configuration),
|
|
13
13
|
directories: a.directories,
|
|
14
14
|
format: o.readFormat(r.format),
|
|
15
15
|
judgedProjectNames: a.selectedDirectories,
|