@valkyrjaio/sindri 26.6.29 → 26.6.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/dist/bin/sindri.cjs +73 -22
- package/package.json +2 -2
- package/src/Sindri/Constant/SindriInfo.ts +2 -2
package/dist/bin/sindri.cjs
CHANGED
|
@@ -242062,22 +242062,22 @@ var Output = class {
|
|
|
242062
242062
|
return this.unwrittenMessages.length > 0;
|
|
242063
242063
|
}
|
|
242064
242064
|
withMessages(...messages) {
|
|
242065
|
-
const clone =
|
|
242065
|
+
const clone = this.cloneOutput();
|
|
242066
242066
|
clone.unwrittenMessages = messages;
|
|
242067
242067
|
return clone;
|
|
242068
242068
|
}
|
|
242069
242069
|
withAddedMessages(...messages) {
|
|
242070
|
-
const clone =
|
|
242070
|
+
const clone = this.cloneOutput();
|
|
242071
242071
|
clone.unwrittenMessages = [...this.unwrittenMessages, ...messages];
|
|
242072
242072
|
return clone;
|
|
242073
242073
|
}
|
|
242074
242074
|
withAddedMessage(message) {
|
|
242075
|
-
const clone =
|
|
242075
|
+
const clone = this.cloneOutput();
|
|
242076
242076
|
clone.unwrittenMessages = [...this.unwrittenMessages, message];
|
|
242077
242077
|
return clone;
|
|
242078
242078
|
}
|
|
242079
242079
|
writeMessages() {
|
|
242080
|
-
let clone =
|
|
242080
|
+
let clone = this.cloneOutput();
|
|
242081
242081
|
const unwrittenMessages = this.unwrittenMessages;
|
|
242082
242082
|
clone.unwrittenMessages = [];
|
|
242083
242083
|
for (const message of unwrittenMessages) {
|
|
@@ -242086,18 +242086,17 @@ var Output = class {
|
|
|
242086
242086
|
return clone;
|
|
242087
242087
|
}
|
|
242088
242088
|
writeMessage(message) {
|
|
242089
|
-
this.
|
|
242090
|
-
|
|
242091
|
-
return this;
|
|
242089
|
+
if (!this.silent && !(this.quiet && this.exitCode === 0 /* SUCCESS */)) {
|
|
242090
|
+
this.outputMessage(message);
|
|
242092
242091
|
}
|
|
242093
|
-
this.
|
|
242092
|
+
this.setMessageAsWritten(message);
|
|
242094
242093
|
return this;
|
|
242095
242094
|
}
|
|
242096
242095
|
getWriters() {
|
|
242097
242096
|
return this.writers;
|
|
242098
242097
|
}
|
|
242099
242098
|
withWriters(...writers) {
|
|
242100
|
-
const clone =
|
|
242099
|
+
const clone = this.cloneOutput();
|
|
242101
242100
|
clone.writers = writers;
|
|
242102
242101
|
return clone;
|
|
242103
242102
|
}
|
|
@@ -242105,7 +242104,7 @@ var Output = class {
|
|
|
242105
242104
|
return this.interactive;
|
|
242106
242105
|
}
|
|
242107
242106
|
withIsInteractive(isInteractive) {
|
|
242108
|
-
const clone =
|
|
242107
|
+
const clone = this.cloneOutput();
|
|
242109
242108
|
clone.interactive = isInteractive;
|
|
242110
242109
|
return clone;
|
|
242111
242110
|
}
|
|
@@ -242113,7 +242112,7 @@ var Output = class {
|
|
|
242113
242112
|
return this.quiet;
|
|
242114
242113
|
}
|
|
242115
242114
|
withIsQuiet(isQuiet) {
|
|
242116
|
-
const clone =
|
|
242115
|
+
const clone = this.cloneOutput();
|
|
242117
242116
|
clone.quiet = isQuiet;
|
|
242118
242117
|
return clone;
|
|
242119
242118
|
}
|
|
@@ -242121,7 +242120,7 @@ var Output = class {
|
|
|
242121
242120
|
return this.silent;
|
|
242122
242121
|
}
|
|
242123
242122
|
withIsSilent(isSilent) {
|
|
242124
|
-
const clone =
|
|
242123
|
+
const clone = this.cloneOutput();
|
|
242125
242124
|
clone.silent = isSilent;
|
|
242126
242125
|
return clone;
|
|
242127
242126
|
}
|
|
@@ -242129,7 +242128,7 @@ var Output = class {
|
|
|
242129
242128
|
return this.exitCode;
|
|
242130
242129
|
}
|
|
242131
242130
|
withExitCode(exitCode) {
|
|
242132
|
-
const clone =
|
|
242131
|
+
const clone = this.cloneOutput();
|
|
242133
242132
|
clone.exitCode = exitCode;
|
|
242134
242133
|
return clone;
|
|
242135
242134
|
}
|
|
@@ -242144,6 +242143,18 @@ var Output = class {
|
|
|
242144
242143
|
setMessageAsWritten(message) {
|
|
242145
242144
|
this.writtenMessages.push(message);
|
|
242146
242145
|
}
|
|
242146
|
+
/**
|
|
242147
|
+
* Copy this output, giving the copy message lists of its own.
|
|
242148
|
+
*
|
|
242149
|
+
* A write on the copy reaches no list this output holds, so a failed write leaves this
|
|
242150
|
+
* output counting no message it never wrote.
|
|
242151
|
+
*/
|
|
242152
|
+
cloneOutput() {
|
|
242153
|
+
const clone = ObjectFactory.clone(this);
|
|
242154
|
+
clone.unwrittenMessages = [...this.unwrittenMessages];
|
|
242155
|
+
clone.writtenMessages = [...this.writtenMessages];
|
|
242156
|
+
return clone;
|
|
242157
|
+
}
|
|
242147
242158
|
outputMessage(message) {
|
|
242148
242159
|
process.stdout.write(message.getFormattedText());
|
|
242149
242160
|
}
|
|
@@ -242155,6 +242166,13 @@ var EmptyOutput = class extends Output {
|
|
|
242155
242166
|
}
|
|
242156
242167
|
};
|
|
242157
242168
|
|
|
242169
|
+
// node_modules/@valkyrjaio/valkyrja/src/Valkyrja/Cli/Interaction/Output/FileOutput.ts
|
|
242170
|
+
var import_node_fs = require("node:fs");
|
|
242171
|
+
|
|
242172
|
+
// node_modules/@valkyrjaio/valkyrja/src/Valkyrja/Cli/Interaction/Throwable/Exception/CliInteractionFileWriteException.ts
|
|
242173
|
+
var CliInteractionFileWriteException = class extends CliInteractionRuntimeException {
|
|
242174
|
+
};
|
|
242175
|
+
|
|
242158
242176
|
// node_modules/@valkyrjaio/valkyrja/src/Valkyrja/Cli/Interaction/Output/FileOutput.ts
|
|
242159
242177
|
var FileOutput = class extends Output {
|
|
242160
242178
|
constructor(filepath, interactive = true, quiet = false, silent = false, exitCode = 0 /* SUCCESS */, ...messages) {
|
|
@@ -242166,11 +242184,18 @@ var FileOutput = class extends Output {
|
|
|
242166
242184
|
return this.filepath;
|
|
242167
242185
|
}
|
|
242168
242186
|
withFilepath(filepath) {
|
|
242169
|
-
const clone =
|
|
242187
|
+
const clone = this.cloneOutput();
|
|
242170
242188
|
clone.filepath = filepath;
|
|
242171
242189
|
return clone;
|
|
242172
242190
|
}
|
|
242173
|
-
outputMessage(
|
|
242191
|
+
outputMessage(message) {
|
|
242192
|
+
try {
|
|
242193
|
+
(0, import_node_fs.appendFileSync)(this.filepath, message.getFormattedText());
|
|
242194
|
+
} catch (throwable) {
|
|
242195
|
+
throw new CliInteractionFileWriteException(`Unable to write to the file \`${this.filepath}\``, {
|
|
242196
|
+
cause: throwable
|
|
242197
|
+
});
|
|
242198
|
+
}
|
|
242174
242199
|
}
|
|
242175
242200
|
};
|
|
242176
242201
|
|
|
@@ -242192,11 +242217,12 @@ var StreamOutput = class extends Output {
|
|
|
242192
242217
|
return this.stream;
|
|
242193
242218
|
}
|
|
242194
242219
|
withStream(stream) {
|
|
242195
|
-
const clone =
|
|
242220
|
+
const clone = this.cloneOutput();
|
|
242196
242221
|
clone.stream = stream;
|
|
242197
242222
|
return clone;
|
|
242198
242223
|
}
|
|
242199
|
-
outputMessage(
|
|
242224
|
+
outputMessage(message) {
|
|
242225
|
+
this.stream.write(message.getFormattedText());
|
|
242200
242226
|
}
|
|
242201
242227
|
};
|
|
242202
242228
|
|
|
@@ -242364,9 +242390,12 @@ var ArgumentParameter = class extends Parameter {
|
|
|
242364
242390
|
getCastValues() {
|
|
242365
242391
|
return this.getCastValuesForParameters(this.arguments_);
|
|
242366
242392
|
}
|
|
242367
|
-
|
|
242393
|
+
isProvided() {
|
|
242368
242394
|
return this.arguments_.length > 0;
|
|
242369
242395
|
}
|
|
242396
|
+
hasFirstValue() {
|
|
242397
|
+
return this.getFirstValue() !== "";
|
|
242398
|
+
}
|
|
242370
242399
|
getFirstValue() {
|
|
242371
242400
|
return this.arguments_[0]?.getValue() ?? "";
|
|
242372
242401
|
}
|
|
@@ -242477,6 +242506,14 @@ var Route = class {
|
|
|
242477
242506
|
}
|
|
242478
242507
|
return found;
|
|
242479
242508
|
}
|
|
242509
|
+
hasProvidedArgument(name) {
|
|
242510
|
+
const found = this.arguments_.find((a) => a.getName() === name);
|
|
242511
|
+
return found !== void 0 && found.isProvided();
|
|
242512
|
+
}
|
|
242513
|
+
getArgumentValue(name, defaultValue = "") {
|
|
242514
|
+
const found = this.arguments_.find((a) => a.getName() === name);
|
|
242515
|
+
return found !== void 0 && found.hasFirstValue() ? found.getFirstValue() : defaultValue;
|
|
242516
|
+
}
|
|
242480
242517
|
withArguments(...arguments_) {
|
|
242481
242518
|
const clone = ObjectFactory.clone(this);
|
|
242482
242519
|
clone.arguments_ = arguments_;
|
|
@@ -242503,6 +242540,20 @@ var Route = class {
|
|
|
242503
242540
|
}
|
|
242504
242541
|
return found;
|
|
242505
242542
|
}
|
|
242543
|
+
hasProvidedOption(name) {
|
|
242544
|
+
const found = this.options.find((o) => o.getName() === name);
|
|
242545
|
+
return found !== void 0 && found.isProvided();
|
|
242546
|
+
}
|
|
242547
|
+
getOptionValue(name, defaultValue = null) {
|
|
242548
|
+
const found = this.options.find((o) => o.getName() === name);
|
|
242549
|
+
if (found !== void 0 && found.hasFirstValue()) {
|
|
242550
|
+
return found.getFirstValue();
|
|
242551
|
+
}
|
|
242552
|
+
if (defaultValue !== null) {
|
|
242553
|
+
return defaultValue;
|
|
242554
|
+
}
|
|
242555
|
+
return found !== void 0 ? found.getDefaultValue() : "";
|
|
242556
|
+
}
|
|
242506
242557
|
withOptions(...options) {
|
|
242507
242558
|
const clone = ObjectFactory.clone(this);
|
|
242508
242559
|
clone.options = options;
|
|
@@ -243834,8 +243885,8 @@ var WarningFormatter = class extends Formatter {
|
|
|
243834
243885
|
|
|
243835
243886
|
// node_modules/@valkyrjaio/valkyrja/src/Valkyrja/Application/Constant/ApplicationInfo.ts
|
|
243836
243887
|
var ApplicationInfo = class {
|
|
243837
|
-
static VERSION = "26.
|
|
243838
|
-
static VERSION_BUILD_DATE_TIME = "September
|
|
243888
|
+
static VERSION = "26.8.0";
|
|
243889
|
+
static VERSION_BUILD_DATE_TIME = "September 4 2026 09:10:02 MST";
|
|
243839
243890
|
static ASCII = `
|
|
243840
243891
|
_ _ _
|
|
243841
243892
|
/\\ /\\__ _| | | ___ _ _ __(_) __ _
|
|
@@ -243944,8 +243995,8 @@ var Header = class extends Message {
|
|
|
243944
243995
|
|
|
243945
243996
|
// src/Sindri/Constant/SindriInfo.ts
|
|
243946
243997
|
var SindriInfo = class {
|
|
243947
|
-
static VERSION = "26.6.
|
|
243948
|
-
static VERSION_BUILD_DATE_TIME = "September
|
|
243998
|
+
static VERSION = "26.6.31";
|
|
243999
|
+
static VERSION_BUILD_DATE_TIME = "September 4 2026 09:45:25 MST";
|
|
243949
244000
|
static ICON = ` \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588
|
|
243950
244001
|
\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588
|
|
243951
244002
|
\u2588\u2588\u2588\u2588
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valkyrjaio/sindri",
|
|
3
|
-
"version": "26.6.
|
|
3
|
+
"version": "26.6.31",
|
|
4
4
|
"description": "The Valkyrja Sindri build tool.",
|
|
5
5
|
"homepage": "https://www.valkyrja.io/sindri",
|
|
6
6
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"node": ">=22"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@valkyrjaio/valkyrja": "^26.
|
|
41
|
+
"@valkyrjaio/valkyrja": "^26.8.0",
|
|
42
42
|
"ts-morph": "^28.0.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export class SindriInfo {
|
|
10
|
-
static readonly VERSION = '26.6.
|
|
11
|
-
static readonly VERSION_BUILD_DATE_TIME = 'September
|
|
10
|
+
static readonly VERSION = '26.6.31' as const;
|
|
11
|
+
static readonly VERSION_BUILD_DATE_TIME = 'September 4 2026 09:45:25 MST' as const;
|
|
12
12
|
static readonly ICON = `\
|
|
13
13
|
██████████
|
|
14
14
|
████ ████
|