@scarn/sdk 0.0.0 → 0.8.1
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/{chunk-4361gxk0.js → chunk-0y2fy5en.js} +7 -7
- package/dist/{chunk-rq3q8vg7.js → chunk-102vfpw4.js} +74 -69
- package/dist/{chunk-91p9vzcs.js → chunk-3ctaaseb.js} +405 -402
- package/dist/{chunk-9s07v9r1.js → chunk-4ggr8af6.js} +8 -8
- package/dist/chunk-5zsavw98.js +91 -0
- package/dist/chunk-63f90zky.js +39 -0
- package/dist/{chunk-tfm5hjzm.js → chunk-700xe701.js} +9 -9
- package/dist/{chunk-njd6npf0.js → chunk-ar6hcj1r.js} +6 -6
- package/dist/chunk-cdanncng.js +74 -0
- package/dist/chunk-dp86pa6m.js +68 -0
- package/dist/chunk-e1h021kq.js +86 -0
- package/dist/{chunk-ny07ncb9.js → chunk-gds7w7zh.js} +35 -35
- package/dist/chunk-k4y5qt4y.js +14 -0
- package/dist/{chunk-eg1hcvhb.js → chunk-mz53r914.js} +16 -16
- package/dist/{chunk-631ffb6r.js → chunk-ngy1fdcx.js} +10 -10
- package/dist/chunk-p7yrcmqm.js +322 -0
- package/dist/{chunk-h9yxx0hd.js → chunk-rt9tq4j6.js} +7 -7
- package/dist/{chunk-dnn39qt4.js → chunk-skzxcba3.js} +2960 -2217
- package/dist/{chunk-ynk2bjae.js → chunk-vfeytkqx.js} +89 -88
- package/dist/{chunk-56e4kp0a.js → chunk-y2pv8d6a.js} +19 -19
- package/dist/chunk-y64skrwp.js +17 -0
- package/dist/{chunk-qpw5wt1p.js → chunk-zm72ksz0.js} +26 -27
- package/dist/client.js +53 -52
- package/dist/contracts/artifact-markers.js +12 -11
- package/dist/contracts/artifacts.js +23 -21
- package/dist/contracts/pipeline-document/index.js +94 -92
- package/dist/contracts/step-artifact-submissions.js +17 -20
- package/dist/defaults/index.js +140 -139
- package/dist/definitions/pipelines/index.js +22 -20
- package/dist/definitions/steps/index.js +70 -67
- package/dist/definitions/validation/index.js +15 -13
- package/dist/devcontainer-config-path.js +11 -9
- package/dist/env-vars.js +33 -31
- package/dist/eslint.js +2 -0
- package/dist/generated/types.gen.d.ts +7 -0
- package/dist/git-url/git-repo-identity.js +2 -0
- package/dist/health-checks.js +17 -15
- package/dist/index.js +280 -277
- package/dist/jsonc.js +8 -7
- package/dist/managed-runtimes.js +11 -9
- package/dist/opencode-mcp.js +27 -25
- package/dist/pipelines/index.js +78 -75
- package/dist/pipelines/nodes.d.ts +1 -0
- package/dist/push/code-step-lookup.js +8 -7
- package/dist/push/index.js +51 -52
- package/dist/repo-config.js +21 -19
- package/dist/scarn-config-parser.js +6 -5
- package/package.json +1 -1
- package/dist/chunk-4vehh3dq.js +0 -333
- package/dist/chunk-5mmj03ah.js +0 -1074
- package/dist/chunk-b21233rt.js +0 -78
- package/dist/chunk-g0rdnn0r.js +0 -95
- package/dist/chunk-p6kc9wq8.js +0 -97
- package/dist/chunk-s0gap8r8.js +0 -14
- package/dist/chunk-zpqyjgb4.js +0 -49
package/dist/defaults/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import"../chunk-ynk2bjae.js";
|
|
3
|
+
parseJsonc
|
|
4
|
+
} from "../chunk-rt9tq4j6.js";
|
|
6
5
|
import {
|
|
7
|
-
|
|
8
|
-
} from "../chunk-
|
|
6
|
+
createScarnClient
|
|
7
|
+
} from "../chunk-700xe701.js";
|
|
8
|
+
import"../chunk-vfeytkqx.js";
|
|
9
|
+
import"../chunk-y64skrwp.js";
|
|
9
10
|
|
|
10
11
|
// src/defaults/auth-file.ts
|
|
11
12
|
import { existsSync as existsSync3, lstatSync as lstatSync2, readFileSync as readFileSync2, rmSync as rmSync2 } from "fs";
|
|
@@ -17,15 +18,15 @@ function createScanner(text, ignoreTrivia = false) {
|
|
|
17
18
|
let pos = 0, value = "", tokenOffset = 0, token = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
|
|
18
19
|
function scanHexDigits(count, exact) {
|
|
19
20
|
let digits = 0;
|
|
20
|
-
let
|
|
21
|
+
let value2 = 0;
|
|
21
22
|
while (digits < count || !exact) {
|
|
22
23
|
let ch = text.charCodeAt(pos);
|
|
23
24
|
if (ch >= 48 && ch <= 57) {
|
|
24
|
-
|
|
25
|
+
value2 = value2 * 16 + ch - 48;
|
|
25
26
|
} else if (ch >= 65 && ch <= 70) {
|
|
26
|
-
|
|
27
|
+
value2 = value2 * 16 + ch - 65 + 10;
|
|
27
28
|
} else if (ch >= 97 && ch <= 102) {
|
|
28
|
-
|
|
29
|
+
value2 = value2 * 16 + ch - 97 + 10;
|
|
29
30
|
} else {
|
|
30
31
|
break;
|
|
31
32
|
}
|
|
@@ -33,9 +34,9 @@ function createScanner(text, ignoreTrivia = false) {
|
|
|
33
34
|
digits++;
|
|
34
35
|
}
|
|
35
36
|
if (digits < count) {
|
|
36
|
-
|
|
37
|
+
value2 = -1;
|
|
37
38
|
}
|
|
38
|
-
return
|
|
39
|
+
return value2;
|
|
39
40
|
}
|
|
40
41
|
function setPosition(newPosition) {
|
|
41
42
|
pos = newPosition;
|
|
@@ -343,87 +344,87 @@ function isDigit(ch) {
|
|
|
343
344
|
return ch >= 48 && ch <= 57;
|
|
344
345
|
}
|
|
345
346
|
var CharacterCodes;
|
|
346
|
-
(function(
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
347
|
+
(function(CharacterCodes2) {
|
|
348
|
+
CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
|
|
349
|
+
CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
|
|
350
|
+
CharacterCodes2[CharacterCodes2["space"] = 32] = "space";
|
|
351
|
+
CharacterCodes2[CharacterCodes2["_0"] = 48] = "_0";
|
|
352
|
+
CharacterCodes2[CharacterCodes2["_1"] = 49] = "_1";
|
|
353
|
+
CharacterCodes2[CharacterCodes2["_2"] = 50] = "_2";
|
|
354
|
+
CharacterCodes2[CharacterCodes2["_3"] = 51] = "_3";
|
|
355
|
+
CharacterCodes2[CharacterCodes2["_4"] = 52] = "_4";
|
|
356
|
+
CharacterCodes2[CharacterCodes2["_5"] = 53] = "_5";
|
|
357
|
+
CharacterCodes2[CharacterCodes2["_6"] = 54] = "_6";
|
|
358
|
+
CharacterCodes2[CharacterCodes2["_7"] = 55] = "_7";
|
|
359
|
+
CharacterCodes2[CharacterCodes2["_8"] = 56] = "_8";
|
|
360
|
+
CharacterCodes2[CharacterCodes2["_9"] = 57] = "_9";
|
|
361
|
+
CharacterCodes2[CharacterCodes2["a"] = 97] = "a";
|
|
362
|
+
CharacterCodes2[CharacterCodes2["b"] = 98] = "b";
|
|
363
|
+
CharacterCodes2[CharacterCodes2["c"] = 99] = "c";
|
|
364
|
+
CharacterCodes2[CharacterCodes2["d"] = 100] = "d";
|
|
365
|
+
CharacterCodes2[CharacterCodes2["e"] = 101] = "e";
|
|
366
|
+
CharacterCodes2[CharacterCodes2["f"] = 102] = "f";
|
|
367
|
+
CharacterCodes2[CharacterCodes2["g"] = 103] = "g";
|
|
368
|
+
CharacterCodes2[CharacterCodes2["h"] = 104] = "h";
|
|
369
|
+
CharacterCodes2[CharacterCodes2["i"] = 105] = "i";
|
|
370
|
+
CharacterCodes2[CharacterCodes2["j"] = 106] = "j";
|
|
371
|
+
CharacterCodes2[CharacterCodes2["k"] = 107] = "k";
|
|
372
|
+
CharacterCodes2[CharacterCodes2["l"] = 108] = "l";
|
|
373
|
+
CharacterCodes2[CharacterCodes2["m"] = 109] = "m";
|
|
374
|
+
CharacterCodes2[CharacterCodes2["n"] = 110] = "n";
|
|
375
|
+
CharacterCodes2[CharacterCodes2["o"] = 111] = "o";
|
|
376
|
+
CharacterCodes2[CharacterCodes2["p"] = 112] = "p";
|
|
377
|
+
CharacterCodes2[CharacterCodes2["q"] = 113] = "q";
|
|
378
|
+
CharacterCodes2[CharacterCodes2["r"] = 114] = "r";
|
|
379
|
+
CharacterCodes2[CharacterCodes2["s"] = 115] = "s";
|
|
380
|
+
CharacterCodes2[CharacterCodes2["t"] = 116] = "t";
|
|
381
|
+
CharacterCodes2[CharacterCodes2["u"] = 117] = "u";
|
|
382
|
+
CharacterCodes2[CharacterCodes2["v"] = 118] = "v";
|
|
383
|
+
CharacterCodes2[CharacterCodes2["w"] = 119] = "w";
|
|
384
|
+
CharacterCodes2[CharacterCodes2["x"] = 120] = "x";
|
|
385
|
+
CharacterCodes2[CharacterCodes2["y"] = 121] = "y";
|
|
386
|
+
CharacterCodes2[CharacterCodes2["z"] = 122] = "z";
|
|
387
|
+
CharacterCodes2[CharacterCodes2["A"] = 65] = "A";
|
|
388
|
+
CharacterCodes2[CharacterCodes2["B"] = 66] = "B";
|
|
389
|
+
CharacterCodes2[CharacterCodes2["C"] = 67] = "C";
|
|
390
|
+
CharacterCodes2[CharacterCodes2["D"] = 68] = "D";
|
|
391
|
+
CharacterCodes2[CharacterCodes2["E"] = 69] = "E";
|
|
392
|
+
CharacterCodes2[CharacterCodes2["F"] = 70] = "F";
|
|
393
|
+
CharacterCodes2[CharacterCodes2["G"] = 71] = "G";
|
|
394
|
+
CharacterCodes2[CharacterCodes2["H"] = 72] = "H";
|
|
395
|
+
CharacterCodes2[CharacterCodes2["I"] = 73] = "I";
|
|
396
|
+
CharacterCodes2[CharacterCodes2["J"] = 74] = "J";
|
|
397
|
+
CharacterCodes2[CharacterCodes2["K"] = 75] = "K";
|
|
398
|
+
CharacterCodes2[CharacterCodes2["L"] = 76] = "L";
|
|
399
|
+
CharacterCodes2[CharacterCodes2["M"] = 77] = "M";
|
|
400
|
+
CharacterCodes2[CharacterCodes2["N"] = 78] = "N";
|
|
401
|
+
CharacterCodes2[CharacterCodes2["O"] = 79] = "O";
|
|
402
|
+
CharacterCodes2[CharacterCodes2["P"] = 80] = "P";
|
|
403
|
+
CharacterCodes2[CharacterCodes2["Q"] = 81] = "Q";
|
|
404
|
+
CharacterCodes2[CharacterCodes2["R"] = 82] = "R";
|
|
405
|
+
CharacterCodes2[CharacterCodes2["S"] = 83] = "S";
|
|
406
|
+
CharacterCodes2[CharacterCodes2["T"] = 84] = "T";
|
|
407
|
+
CharacterCodes2[CharacterCodes2["U"] = 85] = "U";
|
|
408
|
+
CharacterCodes2[CharacterCodes2["V"] = 86] = "V";
|
|
409
|
+
CharacterCodes2[CharacterCodes2["W"] = 87] = "W";
|
|
410
|
+
CharacterCodes2[CharacterCodes2["X"] = 88] = "X";
|
|
411
|
+
CharacterCodes2[CharacterCodes2["Y"] = 89] = "Y";
|
|
412
|
+
CharacterCodes2[CharacterCodes2["Z"] = 90] = "Z";
|
|
413
|
+
CharacterCodes2[CharacterCodes2["asterisk"] = 42] = "asterisk";
|
|
414
|
+
CharacterCodes2[CharacterCodes2["backslash"] = 92] = "backslash";
|
|
415
|
+
CharacterCodes2[CharacterCodes2["closeBrace"] = 125] = "closeBrace";
|
|
416
|
+
CharacterCodes2[CharacterCodes2["closeBracket"] = 93] = "closeBracket";
|
|
417
|
+
CharacterCodes2[CharacterCodes2["colon"] = 58] = "colon";
|
|
418
|
+
CharacterCodes2[CharacterCodes2["comma"] = 44] = "comma";
|
|
419
|
+
CharacterCodes2[CharacterCodes2["dot"] = 46] = "dot";
|
|
420
|
+
CharacterCodes2[CharacterCodes2["doubleQuote"] = 34] = "doubleQuote";
|
|
421
|
+
CharacterCodes2[CharacterCodes2["minus"] = 45] = "minus";
|
|
422
|
+
CharacterCodes2[CharacterCodes2["openBrace"] = 123] = "openBrace";
|
|
423
|
+
CharacterCodes2[CharacterCodes2["openBracket"] = 91] = "openBracket";
|
|
424
|
+
CharacterCodes2[CharacterCodes2["plus"] = 43] = "plus";
|
|
425
|
+
CharacterCodes2[CharacterCodes2["slash"] = 47] = "slash";
|
|
426
|
+
CharacterCodes2[CharacterCodes2["formFeed"] = 12] = "formFeed";
|
|
427
|
+
CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
|
|
427
428
|
})(CharacterCodes || (CharacterCodes = {}));
|
|
428
429
|
|
|
429
430
|
// ../../../node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/string-intern.js
|
|
@@ -462,8 +463,8 @@ var cachedBreakLinesWithSpaces = {
|
|
|
462
463
|
|
|
463
464
|
// ../../../node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/parser.js
|
|
464
465
|
var ParseOptions;
|
|
465
|
-
(function(
|
|
466
|
-
|
|
466
|
+
(function(ParseOptions2) {
|
|
467
|
+
ParseOptions2.DEFAULT = {
|
|
467
468
|
allowTrailingComma: false
|
|
468
469
|
};
|
|
469
470
|
})(ParseOptions || (ParseOptions = {}));
|
|
@@ -765,54 +766,54 @@ function visit(text, visitor, options = ParseOptions.DEFAULT) {
|
|
|
765
766
|
|
|
766
767
|
// ../../../node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/main.js
|
|
767
768
|
var ScanError;
|
|
768
|
-
(function(
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
769
|
+
(function(ScanError2) {
|
|
770
|
+
ScanError2[ScanError2["None"] = 0] = "None";
|
|
771
|
+
ScanError2[ScanError2["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
|
|
772
|
+
ScanError2[ScanError2["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
|
|
773
|
+
ScanError2[ScanError2["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
|
|
774
|
+
ScanError2[ScanError2["InvalidUnicode"] = 4] = "InvalidUnicode";
|
|
775
|
+
ScanError2[ScanError2["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
|
|
776
|
+
ScanError2[ScanError2["InvalidCharacter"] = 6] = "InvalidCharacter";
|
|
776
777
|
})(ScanError || (ScanError = {}));
|
|
777
778
|
var SyntaxKind;
|
|
778
|
-
(function(
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
779
|
+
(function(SyntaxKind2) {
|
|
780
|
+
SyntaxKind2[SyntaxKind2["OpenBraceToken"] = 1] = "OpenBraceToken";
|
|
781
|
+
SyntaxKind2[SyntaxKind2["CloseBraceToken"] = 2] = "CloseBraceToken";
|
|
782
|
+
SyntaxKind2[SyntaxKind2["OpenBracketToken"] = 3] = "OpenBracketToken";
|
|
783
|
+
SyntaxKind2[SyntaxKind2["CloseBracketToken"] = 4] = "CloseBracketToken";
|
|
784
|
+
SyntaxKind2[SyntaxKind2["CommaToken"] = 5] = "CommaToken";
|
|
785
|
+
SyntaxKind2[SyntaxKind2["ColonToken"] = 6] = "ColonToken";
|
|
786
|
+
SyntaxKind2[SyntaxKind2["NullKeyword"] = 7] = "NullKeyword";
|
|
787
|
+
SyntaxKind2[SyntaxKind2["TrueKeyword"] = 8] = "TrueKeyword";
|
|
788
|
+
SyntaxKind2[SyntaxKind2["FalseKeyword"] = 9] = "FalseKeyword";
|
|
789
|
+
SyntaxKind2[SyntaxKind2["StringLiteral"] = 10] = "StringLiteral";
|
|
790
|
+
SyntaxKind2[SyntaxKind2["NumericLiteral"] = 11] = "NumericLiteral";
|
|
791
|
+
SyntaxKind2[SyntaxKind2["LineCommentTrivia"] = 12] = "LineCommentTrivia";
|
|
792
|
+
SyntaxKind2[SyntaxKind2["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
|
|
793
|
+
SyntaxKind2[SyntaxKind2["LineBreakTrivia"] = 14] = "LineBreakTrivia";
|
|
794
|
+
SyntaxKind2[SyntaxKind2["Trivia"] = 15] = "Trivia";
|
|
795
|
+
SyntaxKind2[SyntaxKind2["Unknown"] = 16] = "Unknown";
|
|
796
|
+
SyntaxKind2[SyntaxKind2["EOF"] = 17] = "EOF";
|
|
796
797
|
})(SyntaxKind || (SyntaxKind = {}));
|
|
797
798
|
var parse2 = parse;
|
|
798
799
|
var ParseErrorCode;
|
|
799
|
-
(function(
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
800
|
+
(function(ParseErrorCode2) {
|
|
801
|
+
ParseErrorCode2[ParseErrorCode2["InvalidSymbol"] = 1] = "InvalidSymbol";
|
|
802
|
+
ParseErrorCode2[ParseErrorCode2["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
|
|
803
|
+
ParseErrorCode2[ParseErrorCode2["PropertyNameExpected"] = 3] = "PropertyNameExpected";
|
|
804
|
+
ParseErrorCode2[ParseErrorCode2["ValueExpected"] = 4] = "ValueExpected";
|
|
805
|
+
ParseErrorCode2[ParseErrorCode2["ColonExpected"] = 5] = "ColonExpected";
|
|
806
|
+
ParseErrorCode2[ParseErrorCode2["CommaExpected"] = 6] = "CommaExpected";
|
|
807
|
+
ParseErrorCode2[ParseErrorCode2["CloseBraceExpected"] = 7] = "CloseBraceExpected";
|
|
808
|
+
ParseErrorCode2[ParseErrorCode2["CloseBracketExpected"] = 8] = "CloseBracketExpected";
|
|
809
|
+
ParseErrorCode2[ParseErrorCode2["EndOfFileExpected"] = 9] = "EndOfFileExpected";
|
|
810
|
+
ParseErrorCode2[ParseErrorCode2["InvalidCommentToken"] = 10] = "InvalidCommentToken";
|
|
811
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
|
|
812
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
|
|
813
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
|
|
814
|
+
ParseErrorCode2[ParseErrorCode2["InvalidUnicode"] = 14] = "InvalidUnicode";
|
|
815
|
+
ParseErrorCode2[ParseErrorCode2["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
|
|
816
|
+
ParseErrorCode2[ParseErrorCode2["InvalidCharacter"] = 16] = "InvalidCharacter";
|
|
816
817
|
})(ParseErrorCode || (ParseErrorCode = {}));
|
|
817
818
|
|
|
818
819
|
// src/defaults/atomic-json-file.ts
|
|
@@ -1138,7 +1139,7 @@ function isProjectConfig(value) {
|
|
|
1138
1139
|
async function loadProjectConfig(rootDir = process.cwd()) {
|
|
1139
1140
|
try {
|
|
1140
1141
|
const content = await readFile(getConfigPath(rootDir), "utf8");
|
|
1141
|
-
const parsed =
|
|
1142
|
+
const parsed = parseJsonc(content);
|
|
1142
1143
|
return isProjectConfig(parsed) ? parsed : null;
|
|
1143
1144
|
} catch {
|
|
1144
1145
|
return null;
|
|
@@ -1207,7 +1208,7 @@ async function loadPushDefaults(opts) {
|
|
|
1207
1208
|
if (!config || !accessToken) {
|
|
1208
1209
|
return { baseUrl, projectId: undefined, accessToken };
|
|
1209
1210
|
}
|
|
1210
|
-
const resolved = await resolveProjectRef(
|
|
1211
|
+
const resolved = await resolveProjectRef(createScarnClient(baseUrl), config.project, {
|
|
1211
1212
|
headers: { Authorization: `Bearer ${accessToken}` },
|
|
1212
1213
|
action: "push pipelines to"
|
|
1213
1214
|
});
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import"../../chunk-
|
|
3
|
+
DEFAULT_PIPELINE_ASSIGNMENT_FILENAME,
|
|
4
|
+
PipelineDefinitionsApiError,
|
|
5
|
+
WORK_ITEM_FIELDS_PATH_PREFIX,
|
|
6
|
+
WORK_ITEM_TOP_LEVEL_FIELDS,
|
|
7
|
+
createPipelineDefinitionsClient,
|
|
8
|
+
defaultPipelineAssignment,
|
|
9
|
+
isDefaultPipelineAssignmentSpec,
|
|
10
|
+
resolveWorkItemFieldPath,
|
|
11
|
+
serializeDefaultPipelineAssignment
|
|
12
|
+
} from "../../chunk-zm72ksz0.js";
|
|
13
|
+
import"../../chunk-vfeytkqx.js";
|
|
14
|
+
import"../../chunk-skzxcba3.js";
|
|
15
|
+
import"../../chunk-y64skrwp.js";
|
|
14
16
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
DEFAULT_PIPELINE_ASSIGNMENT_FILENAME,
|
|
18
|
+
PipelineDefinitionsApiError,
|
|
19
|
+
WORK_ITEM_FIELDS_PATH_PREFIX,
|
|
20
|
+
WORK_ITEM_TOP_LEVEL_FIELDS,
|
|
21
|
+
createPipelineDefinitionsClient,
|
|
22
|
+
defaultPipelineAssignment,
|
|
23
|
+
isDefaultPipelineAssignmentSpec,
|
|
24
|
+
resolveWorkItemFieldPath,
|
|
25
|
+
serializeDefaultPipelineAssignment
|
|
24
26
|
};
|
|
@@ -1,73 +1,76 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
ARTIFACT_BRAND,
|
|
4
|
+
Artifact,
|
|
5
|
+
ArtifactTypes,
|
|
6
|
+
Env,
|
|
7
|
+
Features,
|
|
8
|
+
Notify,
|
|
9
|
+
Repo,
|
|
10
|
+
Runtime,
|
|
11
|
+
artifact,
|
|
12
|
+
codeStep,
|
|
13
|
+
compileEnvironment,
|
|
14
|
+
compileMcps,
|
|
15
|
+
compileRepo,
|
|
16
|
+
compileStepErrors,
|
|
17
|
+
compileStepRetry,
|
|
18
|
+
createPromptInputProxy,
|
|
19
|
+
createPromptTemplateContext,
|
|
20
|
+
createStepDefinitionsClient,
|
|
21
|
+
defineMcp,
|
|
22
|
+
defineStep,
|
|
8
23
|
exports_z,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Notify2
|
|
32
|
-
} from "../../chunk-91p9vzcs.js";
|
|
33
|
-
import"../../chunk-eg1hcvhb.js";
|
|
34
|
-
import"../../chunk-p6kc9wq8.js";
|
|
35
|
-
import"../../chunk-9s07v9r1.js";
|
|
36
|
-
import"../../chunk-s0gap8r8.js";
|
|
37
|
-
import"../../chunk-b21233rt.js";
|
|
38
|
-
import"../../chunk-g0rdnn0r.js";
|
|
39
|
-
import"../../chunk-zpqyjgb4.js";
|
|
40
|
-
import"../../chunk-631ffb6r.js";
|
|
41
|
-
import"../../chunk-56e4kp0a.js";
|
|
42
|
-
import"../../chunk-ynk2bjae.js";
|
|
24
|
+
isMcpHandle,
|
|
25
|
+
isSecretLookingEnvName,
|
|
26
|
+
normalizeArtifactAccept,
|
|
27
|
+
normalizeEnv,
|
|
28
|
+
renderPromptTemplate,
|
|
29
|
+
resolveMcpChecks,
|
|
30
|
+
toStepHandle,
|
|
31
|
+
toStepSpec
|
|
32
|
+
} from "../../chunk-3ctaaseb.js";
|
|
33
|
+
import"../../chunk-mz53r914.js";
|
|
34
|
+
import"../../chunk-5zsavw98.js";
|
|
35
|
+
import"../../chunk-4ggr8af6.js";
|
|
36
|
+
import"../../chunk-k4y5qt4y.js";
|
|
37
|
+
import"../../chunk-cdanncng.js";
|
|
38
|
+
import"../../chunk-e1h021kq.js";
|
|
39
|
+
import"../../chunk-63f90zky.js";
|
|
40
|
+
import"../../chunk-ngy1fdcx.js";
|
|
41
|
+
import"../../chunk-y2pv8d6a.js";
|
|
42
|
+
import"../../chunk-dp86pa6m.js";
|
|
43
|
+
import"../../chunk-vfeytkqx.js";
|
|
44
|
+
import"../../chunk-skzxcba3.js";
|
|
45
|
+
import"../../chunk-y64skrwp.js";
|
|
43
46
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
47
|
+
ARTIFACT_BRAND,
|
|
48
|
+
Artifact,
|
|
49
|
+
ArtifactTypes,
|
|
50
|
+
Env,
|
|
51
|
+
Features,
|
|
52
|
+
Notify,
|
|
53
|
+
Repo,
|
|
54
|
+
Runtime,
|
|
55
|
+
artifact,
|
|
56
|
+
codeStep,
|
|
57
|
+
compileEnvironment,
|
|
58
|
+
compileMcps,
|
|
59
|
+
compileRepo,
|
|
60
|
+
compileStepErrors,
|
|
61
|
+
compileStepRetry,
|
|
62
|
+
createPromptInputProxy,
|
|
63
|
+
createPromptTemplateContext,
|
|
64
|
+
createStepDefinitionsClient,
|
|
65
|
+
defineMcp,
|
|
66
|
+
defineStep,
|
|
67
|
+
isMcpHandle,
|
|
68
|
+
isSecretLookingEnvName,
|
|
69
|
+
normalizeArtifactAccept,
|
|
70
|
+
normalizeEnv,
|
|
71
|
+
renderPromptTemplate,
|
|
72
|
+
resolveMcpChecks,
|
|
73
|
+
toStepHandle,
|
|
74
|
+
toStepSpec,
|
|
72
75
|
exports_z as z
|
|
73
76
|
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import"../../chunk-
|
|
8
|
-
import"../../chunk-
|
|
9
|
-
import"../../chunk-
|
|
10
|
-
import"../../chunk-
|
|
11
|
-
import"../../chunk-
|
|
12
|
-
import"../../chunk-
|
|
3
|
+
assertValidDefinitionSpecs,
|
|
4
|
+
listPaths,
|
|
5
|
+
validateDefinitionSpecs
|
|
6
|
+
} from "../../chunk-gds7w7zh.js";
|
|
7
|
+
import"../../chunk-5zsavw98.js";
|
|
8
|
+
import"../../chunk-4ggr8af6.js";
|
|
9
|
+
import"../../chunk-k4y5qt4y.js";
|
|
10
|
+
import"../../chunk-cdanncng.js";
|
|
11
|
+
import"../../chunk-ngy1fdcx.js";
|
|
12
|
+
import"../../chunk-y2pv8d6a.js";
|
|
13
|
+
import"../../chunk-skzxcba3.js";
|
|
14
|
+
import"../../chunk-y64skrwp.js";
|
|
13
15
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
assertValidDefinitionSpecs,
|
|
17
|
+
listPaths,
|
|
18
|
+
validateDefinitionSpecs
|
|
17
19
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
3
|
+
DEVCONTAINER_CONFIG_BASENAMES,
|
|
4
|
+
MAX_DEVCONTAINER_CONFIG_PATH_LENGTH,
|
|
5
|
+
devcontainerConfigPathSchema,
|
|
6
|
+
normalizeDevcontainerConfigPath
|
|
7
|
+
} from "./chunk-4ggr8af6.js";
|
|
8
|
+
import"./chunk-skzxcba3.js";
|
|
9
|
+
import"./chunk-y64skrwp.js";
|
|
8
10
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
DEVCONTAINER_CONFIG_BASENAMES,
|
|
12
|
+
MAX_DEVCONTAINER_CONFIG_PATH_LENGTH,
|
|
13
|
+
devcontainerConfigPathSchema,
|
|
14
|
+
normalizeDevcontainerConfigPath
|
|
13
15
|
};
|