@pensar/apex 2.3.0 → 2.4.0
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/build/{agent-9xna7jhw.js → agent-5ejt5vpz.js} +11 -11
- package/build/agent-mvpgvgks.js +19 -0
- package/build/agent-nhs1w5w0.js +29 -0
- package/build/{apps-43pqbz7r.js → apps-17wvz1d7.js} +20 -20
- package/build/{auth-c1z670rx.js → auth-z3h9859n.js} +38 -20
- package/build/authentication-3s97cpk4.js +19 -0
- package/build/blackboxAgent-gw0a1ca4.js +19 -0
- package/build/{blackboxPentest-tgc2t3y6.js → blackboxPentest-44333zss.js} +17 -17
- package/build/{cli-vckbhnyk.js → cli-0n4r54hq.js} +2 -2
- package/build/{cli-bnkgdywr.js → cli-2cbwdk78.js} +1 -1
- package/build/{cli-j0n189ee.js → cli-32z0017y.js} +2 -2
- package/build/{cli-zm8tfpv7.js → cli-5k33webc.js} +25 -9
- package/build/{cli-f7hanqbw.js → cli-72cvcqhg.js} +2 -2
- package/build/{cli-eveg9djy.js → cli-9rhzhgx2.js} +3 -2
- package/build/{cli-72b18z0n.js → cli-b1adytsy.js} +3 -3
- package/build/{cli-8rxa073f.js → cli-bc05qbss.js} +8 -6
- package/build/{cli-q24twygk.js → cli-dm0fc0bm.js} +1 -1
- package/build/{cli-yz80qkzn.js → cli-ee3axgts.js} +7 -1
- package/build/{cli-bv2807tj.js → cli-gq40s5b3.js} +3 -3
- package/build/{cli-gpnb45ck.js → cli-j54qa6tm.js} +7 -7
- package/build/{cli-wszshs5e.js → cli-k71t434r.js} +4 -4
- package/build/{cli-baqhqbe5.js → cli-k8kc47pq.js} +3 -3
- package/build/{cli-50906d27.js → cli-mavved45.js} +91 -29
- package/build/{cli-jyp2c6th.js → cli-qqt4gj1w.js} +2 -2
- package/build/{cli-n2m2yy5b.js → cli-repbyhkk.js} +1250 -614
- package/build/{cli-3k1x5rn3.js → cli-swpbx60z.js} +1045 -1045
- package/build/{cli-zx8gk8xv.js → cli-tkc598ey.js} +296 -54
- package/build/{cli-7tw4xfnw.js → cli-tznv8pf1.js} +1 -1
- package/build/{cli-barsn8br.js → cli-vnynf0js.js} +2 -2
- package/build/{cli-f71s6kcw.js → cli-vq52kp7j.js} +81 -215
- package/build/{cli-zk1ch6qf.js → cli-xshasbwe.js} +34 -9
- package/build/cli.js +52 -46
- package/build/{config-jzqjz606.js → config-f1mj4nhd.js} +5 -5
- package/build/{doctor-q3qws68e.js → doctor-ekneewa3.js} +10 -9
- package/build/{fastStrike-ebz1ph9a.js → fastStrike-8zka43xs.js} +36 -16
- package/build/{fixes-86yebsj0.js → fixes-b89s5haw.js} +19 -19
- package/build/{index-8db1d2q3.js → index-4ad3sdwk.js} +18 -18
- package/build/{index-97vx1a24.js → index-6d22pyxt.js} +1148 -1086
- package/build/{index-h2hj2hj9.js → index-cbwn03kz.js} +16 -16
- package/build/index-ghwf5z3v.js +12 -0
- package/build/{index-468j74f3.js → index-hqjdg6fg.js} +113 -97
- package/build/{index-gq9h8j5j.js → index-mtq7kmxz.js} +132 -132
- package/build/{index-tke6896d.js → index-psqjpw5m.js} +10 -10
- package/build/{index-mr2cseg4.js → index-rbzhk712.js} +19 -19
- package/build/{index-e8c8zcrf.js → index-sf16jm0m.js} +31 -26
- package/build/{index-32hn8rrw.js → index-y5w6n3tb.js} +3 -3
- package/build/{issues-kh4wg8c5.js → issues-xx5bs4md.js} +19 -19
- package/build/{logs-bj28xmbf.js → logs-qtxe51w2.js} +19 -19
- package/build/{main-3d7dfdvs.js → main-mmjp338j.js} +9 -9
- package/build/{multipart-parser-6zd16497.js → multipart-parser-g2xxkezz.js} +2 -2
- package/build/{offesecAgent-8ky7gccp.js → offesecAgent-b9e2xm6v.js} +11 -11
- package/build/{parse-7djk9jyf.js → parse-rtccymzn.js} +3 -3
- package/build/pentest-xtc1sjdw.js +29 -0
- package/build/{pentests-62d6zw6p.js → pentests-6ks3szc4.js} +19 -19
- package/build/{targetedPentest-me4jnr3z.js → targetedPentest-s1ptvq8e.js} +14 -14
- package/build/{targets-e5k1mrky.js → targets-sxygyj87.js} +19 -19
- package/build/threatModel-xsm6fwk5.js +27 -0
- package/build/{token-rdcbn380.js → token-3bbp59y6.js} +3 -3
- package/build/{token-util-sxb85ahn.js → token-util-6xjme11b.js} +2 -2
- package/build/{uninstall-jt1bca2p.js → uninstall-tvsh81v8.js} +2 -2
- package/build/{upload-krd8bnex.js → upload-7wdyyqmr.js} +11 -11
- package/build/{utils-skmqhyfg.js → utils-7fwdkqk6.js} +17 -13
- package/package.json +1 -1
- package/build/agent-71z4e7jg.js +0 -19
- package/build/agent-ga5fecfs.js +0 -27
- package/build/authentication-hgs7ym0m.js +0 -19
- package/build/blackboxAgent-gem3mxa9.js +0 -19
- package/build/index-ag14v3sg.js +0 -12
- package/build/pentest-rs0181nf.js +0 -29
- package/build/threatModel-k4f3zgqd.js +0 -27
|
@@ -3,35 +3,29 @@ import {
|
|
|
3
3
|
ASK_USER_QUESTIONS_TOOL_NAME,
|
|
4
4
|
OffensiveSecurityAgent,
|
|
5
5
|
SKILL_TOOL_NAMES,
|
|
6
|
+
apiRequest,
|
|
6
7
|
buildBaseSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-repbyhkk.js";
|
|
8
9
|
import {
|
|
9
10
|
init_dist,
|
|
10
11
|
init_session,
|
|
11
12
|
sessions,
|
|
12
13
|
stepCountIs
|
|
13
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-tkc598ey.js";
|
|
14
15
|
import {
|
|
15
|
-
ensureValidToken,
|
|
16
|
-
getPensarApiUrl,
|
|
17
|
-
init_auth,
|
|
18
16
|
init_constants
|
|
19
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-0n4r54hq.js";
|
|
20
18
|
import {
|
|
21
19
|
exports_external,
|
|
22
20
|
init_zod
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import {
|
|
25
|
-
config,
|
|
26
|
-
init_config
|
|
27
|
-
} from "./cli-f7hanqbw.js";
|
|
21
|
+
} from "./cli-swpbx60z.js";
|
|
28
22
|
import {
|
|
29
23
|
__commonJS,
|
|
30
24
|
__require
|
|
31
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-bc05qbss.js";
|
|
32
26
|
|
|
33
27
|
// node_modules/yaml/dist/nodes/identity.js
|
|
34
|
-
var require_identity = __commonJS((exports)
|
|
28
|
+
var require_identity = __commonJS(function(exports) {
|
|
35
29
|
var ALIAS = Symbol.for("yaml.alias");
|
|
36
30
|
var DOC = Symbol.for("yaml.document");
|
|
37
31
|
var MAP = Symbol.for("yaml.map");
|
|
@@ -85,7 +79,7 @@ var require_identity = __commonJS((exports) => {
|
|
|
85
79
|
});
|
|
86
80
|
|
|
87
81
|
// node_modules/yaml/dist/visit.js
|
|
88
|
-
var require_visit = __commonJS((exports)
|
|
82
|
+
var require_visit = __commonJS(function(exports) {
|
|
89
83
|
var identity = require_identity();
|
|
90
84
|
var BREAK = Symbol("break visit");
|
|
91
85
|
var SKIP = Symbol("skip children");
|
|
@@ -240,7 +234,7 @@ var require_visit = __commonJS((exports) => {
|
|
|
240
234
|
});
|
|
241
235
|
|
|
242
236
|
// node_modules/yaml/dist/doc/directives.js
|
|
243
|
-
var require_directives = __commonJS((exports)
|
|
237
|
+
var require_directives = __commonJS(function(exports) {
|
|
244
238
|
var identity = require_identity();
|
|
245
239
|
var visit = require_visit();
|
|
246
240
|
var escapeChars = {
|
|
@@ -392,7 +386,7 @@ var require_directives = __commonJS((exports) => {
|
|
|
392
386
|
});
|
|
393
387
|
|
|
394
388
|
// node_modules/yaml/dist/doc/anchors.js
|
|
395
|
-
var require_anchors = __commonJS((exports)
|
|
389
|
+
var require_anchors = __commonJS(function(exports) {
|
|
396
390
|
var identity = require_identity();
|
|
397
391
|
var visit = require_visit();
|
|
398
392
|
function anchorIsValid(anchor) {
|
|
@@ -454,7 +448,7 @@ var require_anchors = __commonJS((exports) => {
|
|
|
454
448
|
});
|
|
455
449
|
|
|
456
450
|
// node_modules/yaml/dist/doc/applyReviver.js
|
|
457
|
-
var require_applyReviver = __commonJS((exports)
|
|
451
|
+
var require_applyReviver = __commonJS(function(exports) {
|
|
458
452
|
function applyReviver(reviver, obj, key, val) {
|
|
459
453
|
if (val && typeof val === "object") {
|
|
460
454
|
if (Array.isArray(val)) {
|
|
@@ -501,7 +495,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
|
501
495
|
});
|
|
502
496
|
|
|
503
497
|
// node_modules/yaml/dist/nodes/toJS.js
|
|
504
|
-
var require_toJS = __commonJS((exports)
|
|
498
|
+
var require_toJS = __commonJS(function(exports) {
|
|
505
499
|
var identity = require_identity();
|
|
506
500
|
function toJS(value, arg, ctx) {
|
|
507
501
|
if (Array.isArray(value))
|
|
@@ -528,7 +522,7 @@ var require_toJS = __commonJS((exports) => {
|
|
|
528
522
|
});
|
|
529
523
|
|
|
530
524
|
// node_modules/yaml/dist/nodes/Node.js
|
|
531
|
-
var require_Node = __commonJS((exports)
|
|
525
|
+
var require_Node = __commonJS(function(exports) {
|
|
532
526
|
var applyReviver = require_applyReviver();
|
|
533
527
|
var identity = require_identity();
|
|
534
528
|
var toJS = require_toJS();
|
|
@@ -565,7 +559,7 @@ var require_Node = __commonJS((exports) => {
|
|
|
565
559
|
});
|
|
566
560
|
|
|
567
561
|
// node_modules/yaml/dist/nodes/Alias.js
|
|
568
|
-
var require_Alias = __commonJS((exports)
|
|
562
|
+
var require_Alias = __commonJS(function(exports) {
|
|
569
563
|
var anchors = require_anchors();
|
|
570
564
|
var visit = require_visit();
|
|
571
565
|
var identity = require_identity();
|
|
@@ -675,7 +669,7 @@ var require_Alias = __commonJS((exports) => {
|
|
|
675
669
|
});
|
|
676
670
|
|
|
677
671
|
// node_modules/yaml/dist/nodes/Scalar.js
|
|
678
|
-
var require_Scalar = __commonJS((exports)
|
|
672
|
+
var require_Scalar = __commonJS(function(exports) {
|
|
679
673
|
var identity = require_identity();
|
|
680
674
|
var Node = require_Node();
|
|
681
675
|
var toJS = require_toJS();
|
|
@@ -703,7 +697,7 @@ var require_Scalar = __commonJS((exports) => {
|
|
|
703
697
|
});
|
|
704
698
|
|
|
705
699
|
// node_modules/yaml/dist/doc/createNode.js
|
|
706
|
-
var require_createNode = __commonJS((exports)
|
|
700
|
+
var require_createNode = __commonJS(function(exports) {
|
|
707
701
|
var Alias = require_Alias();
|
|
708
702
|
var identity = require_identity();
|
|
709
703
|
var Scalar = require_Scalar();
|
|
@@ -775,7 +769,7 @@ var require_createNode = __commonJS((exports) => {
|
|
|
775
769
|
});
|
|
776
770
|
|
|
777
771
|
// node_modules/yaml/dist/nodes/Collection.js
|
|
778
|
-
var require_Collection = __commonJS((exports)
|
|
772
|
+
var require_Collection = __commonJS(function(exports) {
|
|
779
773
|
var createNode = require_createNode();
|
|
780
774
|
var identity = require_identity();
|
|
781
775
|
var Node = require_Node();
|
|
@@ -890,7 +884,7 @@ var require_Collection = __commonJS((exports) => {
|
|
|
890
884
|
});
|
|
891
885
|
|
|
892
886
|
// node_modules/yaml/dist/stringify/stringifyComment.js
|
|
893
|
-
var require_stringifyComment = __commonJS((exports)
|
|
887
|
+
var require_stringifyComment = __commonJS(function(exports) {
|
|
894
888
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
895
889
|
function indentComment(comment, indent) {
|
|
896
890
|
if (/^\n+$/.test(comment))
|
|
@@ -907,7 +901,7 @@ var require_stringifyComment = __commonJS((exports) => {
|
|
|
907
901
|
});
|
|
908
902
|
|
|
909
903
|
// node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
910
|
-
var require_foldFlowLines = __commonJS((exports)
|
|
904
|
+
var require_foldFlowLines = __commonJS(function(exports) {
|
|
911
905
|
var FOLD_FLOW = "flow";
|
|
912
906
|
var FOLD_BLOCK = "block";
|
|
913
907
|
var FOLD_QUOTED = "quoted";
|
|
@@ -1044,7 +1038,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1044
1038
|
});
|
|
1045
1039
|
|
|
1046
1040
|
// node_modules/yaml/dist/stringify/stringifyString.js
|
|
1047
|
-
var require_stringifyString = __commonJS((exports)
|
|
1041
|
+
var require_stringifyString = __commonJS(function(exports) {
|
|
1048
1042
|
var Scalar = require_Scalar();
|
|
1049
1043
|
var foldFlowLines = require_foldFlowLines();
|
|
1050
1044
|
var getFoldOptions = (ctx, isBlock) => ({
|
|
@@ -1342,7 +1336,7 @@ ${indent}`);
|
|
|
1342
1336
|
});
|
|
1343
1337
|
|
|
1344
1338
|
// node_modules/yaml/dist/stringify/stringify.js
|
|
1345
|
-
var require_stringify = __commonJS((exports)
|
|
1339
|
+
var require_stringify = __commonJS(function(exports) {
|
|
1346
1340
|
var anchors = require_anchors();
|
|
1347
1341
|
var identity = require_identity();
|
|
1348
1342
|
var stringifyComment = require_stringifyComment();
|
|
@@ -1463,7 +1457,7 @@ ${ctx.indent}${str}`;
|
|
|
1463
1457
|
});
|
|
1464
1458
|
|
|
1465
1459
|
// node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1466
|
-
var require_stringifyPair = __commonJS((exports)
|
|
1460
|
+
var require_stringifyPair = __commonJS(function(exports) {
|
|
1467
1461
|
var identity = require_identity();
|
|
1468
1462
|
var Scalar = require_Scalar();
|
|
1469
1463
|
var stringify = require_stringify();
|
|
@@ -1599,7 +1593,7 @@ ${ctx.indent}`;
|
|
|
1599
1593
|
});
|
|
1600
1594
|
|
|
1601
1595
|
// node_modules/yaml/dist/log.js
|
|
1602
|
-
var require_log = __commonJS((exports)
|
|
1596
|
+
var require_log = __commonJS(function(exports) {
|
|
1603
1597
|
var node_process = __require("process");
|
|
1604
1598
|
function debug(logLevel, ...messages) {
|
|
1605
1599
|
if (logLevel === "debug")
|
|
@@ -1618,7 +1612,7 @@ var require_log = __commonJS((exports) => {
|
|
|
1618
1612
|
});
|
|
1619
1613
|
|
|
1620
1614
|
// node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1621
|
-
var require_merge = __commonJS((exports)
|
|
1615
|
+
var require_merge = __commonJS(function(exports) {
|
|
1622
1616
|
var identity = require_identity();
|
|
1623
1617
|
var Scalar = require_Scalar();
|
|
1624
1618
|
var MERGE_KEY = "<<";
|
|
@@ -1675,7 +1669,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
1675
1669
|
});
|
|
1676
1670
|
|
|
1677
1671
|
// node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1678
|
-
var require_addPairToJSMap = __commonJS((exports)
|
|
1672
|
+
var require_addPairToJSMap = __commonJS(function(exports) {
|
|
1679
1673
|
var log = require_log();
|
|
1680
1674
|
var merge = require_merge();
|
|
1681
1675
|
var stringify = require_stringify();
|
|
@@ -1736,7 +1730,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
1736
1730
|
});
|
|
1737
1731
|
|
|
1738
1732
|
// node_modules/yaml/dist/nodes/Pair.js
|
|
1739
|
-
var require_Pair = __commonJS((exports)
|
|
1733
|
+
var require_Pair = __commonJS(function(exports) {
|
|
1740
1734
|
var createNode = require_createNode();
|
|
1741
1735
|
var stringifyPair = require_stringifyPair();
|
|
1742
1736
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -1774,7 +1768,7 @@ var require_Pair = __commonJS((exports) => {
|
|
|
1774
1768
|
});
|
|
1775
1769
|
|
|
1776
1770
|
// node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1777
|
-
var require_stringifyCollection = __commonJS((exports)
|
|
1771
|
+
var require_stringifyCollection = __commonJS(function(exports) {
|
|
1778
1772
|
var identity = require_identity();
|
|
1779
1773
|
var stringify = require_stringify();
|
|
1780
1774
|
var stringifyComment = require_stringifyComment();
|
|
@@ -1926,7 +1920,7 @@ ${indent}${end}`;
|
|
|
1926
1920
|
});
|
|
1927
1921
|
|
|
1928
1922
|
// node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1929
|
-
var require_YAMLMap = __commonJS((exports)
|
|
1923
|
+
var require_YAMLMap = __commonJS(function(exports) {
|
|
1930
1924
|
var stringifyCollection = require_stringifyCollection();
|
|
1931
1925
|
var addPairToJSMap = require_addPairToJSMap();
|
|
1932
1926
|
var Collection = require_Collection();
|
|
@@ -2053,7 +2047,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
2053
2047
|
});
|
|
2054
2048
|
|
|
2055
2049
|
// node_modules/yaml/dist/schema/common/map.js
|
|
2056
|
-
var require_map = __commonJS((exports)
|
|
2050
|
+
var require_map = __commonJS(function(exports) {
|
|
2057
2051
|
var identity = require_identity();
|
|
2058
2052
|
var YAMLMap = require_YAMLMap();
|
|
2059
2053
|
var map = {
|
|
@@ -2072,7 +2066,7 @@ var require_map = __commonJS((exports) => {
|
|
|
2072
2066
|
});
|
|
2073
2067
|
|
|
2074
2068
|
// node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2075
|
-
var require_YAMLSeq = __commonJS((exports)
|
|
2069
|
+
var require_YAMLSeq = __commonJS(function(exports) {
|
|
2076
2070
|
var createNode = require_createNode();
|
|
2077
2071
|
var stringifyCollection = require_stringifyCollection();
|
|
2078
2072
|
var Collection = require_Collection();
|
|
@@ -2165,7 +2159,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
2165
2159
|
});
|
|
2166
2160
|
|
|
2167
2161
|
// node_modules/yaml/dist/schema/common/seq.js
|
|
2168
|
-
var require_seq = __commonJS((exports)
|
|
2162
|
+
var require_seq = __commonJS(function(exports) {
|
|
2169
2163
|
var identity = require_identity();
|
|
2170
2164
|
var YAMLSeq = require_YAMLSeq();
|
|
2171
2165
|
var seq = {
|
|
@@ -2184,7 +2178,7 @@ var require_seq = __commonJS((exports) => {
|
|
|
2184
2178
|
});
|
|
2185
2179
|
|
|
2186
2180
|
// node_modules/yaml/dist/schema/common/string.js
|
|
2187
|
-
var require_string = __commonJS((exports)
|
|
2181
|
+
var require_string = __commonJS(function(exports) {
|
|
2188
2182
|
var stringifyString = require_stringifyString();
|
|
2189
2183
|
var string = {
|
|
2190
2184
|
identify: (value) => typeof value === "string",
|
|
@@ -2200,7 +2194,7 @@ var require_string = __commonJS((exports) => {
|
|
|
2200
2194
|
});
|
|
2201
2195
|
|
|
2202
2196
|
// node_modules/yaml/dist/schema/common/null.js
|
|
2203
|
-
var require_null = __commonJS((exports)
|
|
2197
|
+
var require_null = __commonJS(function(exports) {
|
|
2204
2198
|
var Scalar = require_Scalar();
|
|
2205
2199
|
var nullTag = {
|
|
2206
2200
|
identify: (value) => value == null,
|
|
@@ -2215,7 +2209,7 @@ var require_null = __commonJS((exports) => {
|
|
|
2215
2209
|
});
|
|
2216
2210
|
|
|
2217
2211
|
// node_modules/yaml/dist/schema/core/bool.js
|
|
2218
|
-
var require_bool = __commonJS((exports)
|
|
2212
|
+
var require_bool = __commonJS(function(exports) {
|
|
2219
2213
|
var Scalar = require_Scalar();
|
|
2220
2214
|
var boolTag = {
|
|
2221
2215
|
identify: (value) => typeof value === "boolean",
|
|
@@ -2236,7 +2230,7 @@ var require_bool = __commonJS((exports) => {
|
|
|
2236
2230
|
});
|
|
2237
2231
|
|
|
2238
2232
|
// node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2239
|
-
var require_stringifyNumber = __commonJS((exports)
|
|
2233
|
+
var require_stringifyNumber = __commonJS(function(exports) {
|
|
2240
2234
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2241
2235
|
if (typeof value === "bigint")
|
|
2242
2236
|
return String(value);
|
|
@@ -2260,7 +2254,7 @@ var require_stringifyNumber = __commonJS((exports) => {
|
|
|
2260
2254
|
});
|
|
2261
2255
|
|
|
2262
2256
|
// node_modules/yaml/dist/schema/core/float.js
|
|
2263
|
-
var require_float = __commonJS((exports)
|
|
2257
|
+
var require_float = __commonJS(function(exports) {
|
|
2264
2258
|
var Scalar = require_Scalar();
|
|
2265
2259
|
var stringifyNumber = require_stringifyNumber();
|
|
2266
2260
|
var floatNaN = {
|
|
@@ -2303,7 +2297,7 @@ var require_float = __commonJS((exports) => {
|
|
|
2303
2297
|
});
|
|
2304
2298
|
|
|
2305
2299
|
// node_modules/yaml/dist/schema/core/int.js
|
|
2306
|
-
var require_int = __commonJS((exports)
|
|
2300
|
+
var require_int = __commonJS(function(exports) {
|
|
2307
2301
|
var stringifyNumber = require_stringifyNumber();
|
|
2308
2302
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
2309
2303
|
var intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
|
|
@@ -2345,7 +2339,7 @@ var require_int = __commonJS((exports) => {
|
|
|
2345
2339
|
});
|
|
2346
2340
|
|
|
2347
2341
|
// node_modules/yaml/dist/schema/core/schema.js
|
|
2348
|
-
var require_schema = __commonJS((exports)
|
|
2342
|
+
var require_schema = __commonJS(function(exports) {
|
|
2349
2343
|
var map = require_map();
|
|
2350
2344
|
var _null = require_null();
|
|
2351
2345
|
var seq = require_seq();
|
|
@@ -2370,7 +2364,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
2370
2364
|
});
|
|
2371
2365
|
|
|
2372
2366
|
// node_modules/yaml/dist/schema/json/schema.js
|
|
2373
|
-
var require_schema2 = __commonJS((exports)
|
|
2367
|
+
var require_schema2 = __commonJS(function(exports) {
|
|
2374
2368
|
var Scalar = require_Scalar();
|
|
2375
2369
|
var map = require_map();
|
|
2376
2370
|
var seq = require_seq();
|
|
@@ -2434,7 +2428,7 @@ var require_schema2 = __commonJS((exports) => {
|
|
|
2434
2428
|
});
|
|
2435
2429
|
|
|
2436
2430
|
// node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2437
|
-
var require_binary = __commonJS((exports)
|
|
2431
|
+
var require_binary = __commonJS(function(exports) {
|
|
2438
2432
|
var node_buffer = __require("buffer");
|
|
2439
2433
|
var Scalar = require_Scalar();
|
|
2440
2434
|
var stringifyString = require_stringifyString();
|
|
@@ -2489,7 +2483,7 @@ var require_binary = __commonJS((exports) => {
|
|
|
2489
2483
|
});
|
|
2490
2484
|
|
|
2491
2485
|
// node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2492
|
-
var require_pairs = __commonJS((exports)
|
|
2486
|
+
var require_pairs = __commonJS(function(exports) {
|
|
2493
2487
|
var identity = require_identity();
|
|
2494
2488
|
var Pair = require_Pair();
|
|
2495
2489
|
var Scalar = require_Scalar();
|
|
@@ -2564,7 +2558,7 @@ ${cn.comment}` : item.comment;
|
|
|
2564
2558
|
});
|
|
2565
2559
|
|
|
2566
2560
|
// node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2567
|
-
var require_omap = __commonJS((exports)
|
|
2561
|
+
var require_omap = __commonJS(function(exports) {
|
|
2568
2562
|
var identity = require_identity();
|
|
2569
2563
|
var toJS = require_toJS();
|
|
2570
2564
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2636,7 +2630,7 @@ var require_omap = __commonJS((exports) => {
|
|
|
2636
2630
|
});
|
|
2637
2631
|
|
|
2638
2632
|
// node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2639
|
-
var require_bool2 = __commonJS((exports)
|
|
2633
|
+
var require_bool2 = __commonJS(function(exports) {
|
|
2640
2634
|
var Scalar = require_Scalar();
|
|
2641
2635
|
function boolStringify({ value, source }, ctx) {
|
|
2642
2636
|
const boolObj = value ? trueTag : falseTag;
|
|
@@ -2665,7 +2659,7 @@ var require_bool2 = __commonJS((exports) => {
|
|
|
2665
2659
|
});
|
|
2666
2660
|
|
|
2667
2661
|
// node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2668
|
-
var require_float2 = __commonJS((exports)
|
|
2662
|
+
var require_float2 = __commonJS(function(exports) {
|
|
2669
2663
|
var Scalar = require_Scalar();
|
|
2670
2664
|
var stringifyNumber = require_stringifyNumber();
|
|
2671
2665
|
var floatNaN = {
|
|
@@ -2711,7 +2705,7 @@ var require_float2 = __commonJS((exports) => {
|
|
|
2711
2705
|
});
|
|
2712
2706
|
|
|
2713
2707
|
// node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2714
|
-
var require_int2 = __commonJS((exports)
|
|
2708
|
+
var require_int2 = __commonJS(function(exports) {
|
|
2715
2709
|
var stringifyNumber = require_stringifyNumber();
|
|
2716
2710
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
2717
2711
|
function intResolve(str, offset, radix, { intAsBigInt }) {
|
|
@@ -2787,7 +2781,7 @@ var require_int2 = __commonJS((exports) => {
|
|
|
2787
2781
|
});
|
|
2788
2782
|
|
|
2789
2783
|
// node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2790
|
-
var require_set = __commonJS((exports)
|
|
2784
|
+
var require_set = __commonJS(function(exports) {
|
|
2791
2785
|
var identity = require_identity();
|
|
2792
2786
|
var Pair = require_Pair();
|
|
2793
2787
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2870,7 +2864,7 @@ var require_set = __commonJS((exports) => {
|
|
|
2870
2864
|
});
|
|
2871
2865
|
|
|
2872
2866
|
// node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
2873
|
-
var require_timestamp = __commonJS((exports)
|
|
2867
|
+
var require_timestamp = __commonJS(function(exports) {
|
|
2874
2868
|
var stringifyNumber = require_stringifyNumber();
|
|
2875
2869
|
function parseSexagesimal(str, asBigInt) {
|
|
2876
2870
|
const sign = str[0];
|
|
@@ -2952,7 +2946,7 @@ var require_timestamp = __commonJS((exports) => {
|
|
|
2952
2946
|
});
|
|
2953
2947
|
|
|
2954
2948
|
// node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
2955
|
-
var require_schema3 = __commonJS((exports)
|
|
2949
|
+
var require_schema3 = __commonJS(function(exports) {
|
|
2956
2950
|
var map = require_map();
|
|
2957
2951
|
var _null = require_null();
|
|
2958
2952
|
var seq = require_seq();
|
|
@@ -2993,7 +2987,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
2993
2987
|
});
|
|
2994
2988
|
|
|
2995
2989
|
// node_modules/yaml/dist/schema/tags.js
|
|
2996
|
-
var require_tags = __commonJS((exports)
|
|
2990
|
+
var require_tags = __commonJS(function(exports) {
|
|
2997
2991
|
var map = require_map();
|
|
2998
2992
|
var _null = require_null();
|
|
2999
2993
|
var seq = require_seq();
|
|
@@ -3084,7 +3078,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
3084
3078
|
});
|
|
3085
3079
|
|
|
3086
3080
|
// node_modules/yaml/dist/schema/Schema.js
|
|
3087
|
-
var require_Schema = __commonJS((exports)
|
|
3081
|
+
var require_Schema = __commonJS(function(exports) {
|
|
3088
3082
|
var identity = require_identity();
|
|
3089
3083
|
var map = require_map();
|
|
3090
3084
|
var seq = require_seq();
|
|
@@ -3114,7 +3108,7 @@ var require_Schema = __commonJS((exports) => {
|
|
|
3114
3108
|
});
|
|
3115
3109
|
|
|
3116
3110
|
// node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3117
|
-
var require_stringifyDocument = __commonJS((exports)
|
|
3111
|
+
var require_stringifyDocument = __commonJS(function(exports) {
|
|
3118
3112
|
var identity = require_identity();
|
|
3119
3113
|
var stringify = require_stringify();
|
|
3120
3114
|
var stringifyComment = require_stringifyComment();
|
|
@@ -3194,7 +3188,7 @@ var require_stringifyDocument = __commonJS((exports) => {
|
|
|
3194
3188
|
});
|
|
3195
3189
|
|
|
3196
3190
|
// node_modules/yaml/dist/doc/Document.js
|
|
3197
|
-
var require_Document = __commonJS((exports)
|
|
3191
|
+
var require_Document = __commonJS(function(exports) {
|
|
3198
3192
|
var Alias = require_Alias();
|
|
3199
3193
|
var Collection = require_Collection();
|
|
3200
3194
|
var identity = require_identity();
|
|
@@ -3429,7 +3423,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
3429
3423
|
});
|
|
3430
3424
|
|
|
3431
3425
|
// node_modules/yaml/dist/errors.js
|
|
3432
|
-
var require_errors = __commonJS((exports)
|
|
3426
|
+
var require_errors = __commonJS(function(exports) {
|
|
3433
3427
|
class YAMLError extends Error {
|
|
3434
3428
|
constructor(name, pos, code, message) {
|
|
3435
3429
|
super();
|
|
@@ -3494,7 +3488,7 @@ ${pointer}
|
|
|
3494
3488
|
});
|
|
3495
3489
|
|
|
3496
3490
|
// node_modules/yaml/dist/compose/resolve-props.js
|
|
3497
|
-
var require_resolve_props = __commonJS((exports)
|
|
3491
|
+
var require_resolve_props = __commonJS(function(exports) {
|
|
3498
3492
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3499
3493
|
let spaceBefore = false;
|
|
3500
3494
|
let atNewline = startOnNewline;
|
|
@@ -3624,7 +3618,7 @@ var require_resolve_props = __commonJS((exports) => {
|
|
|
3624
3618
|
});
|
|
3625
3619
|
|
|
3626
3620
|
// node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3627
|
-
var require_util_contains_newline = __commonJS((exports)
|
|
3621
|
+
var require_util_contains_newline = __commonJS(function(exports) {
|
|
3628
3622
|
function containsNewline(key) {
|
|
3629
3623
|
if (!key)
|
|
3630
3624
|
return null;
|
|
@@ -3664,7 +3658,7 @@ var require_util_contains_newline = __commonJS((exports) => {
|
|
|
3664
3658
|
});
|
|
3665
3659
|
|
|
3666
3660
|
// node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3667
|
-
var require_util_flow_indent_check = __commonJS((exports)
|
|
3661
|
+
var require_util_flow_indent_check = __commonJS(function(exports) {
|
|
3668
3662
|
var utilContainsNewline = require_util_contains_newline();
|
|
3669
3663
|
function flowIndentCheck(indent, fc, onError) {
|
|
3670
3664
|
if (fc?.type === "flow-collection") {
|
|
@@ -3679,7 +3673,7 @@ var require_util_flow_indent_check = __commonJS((exports) => {
|
|
|
3679
3673
|
});
|
|
3680
3674
|
|
|
3681
3675
|
// node_modules/yaml/dist/compose/util-map-includes.js
|
|
3682
|
-
var require_util_map_includes = __commonJS((exports)
|
|
3676
|
+
var require_util_map_includes = __commonJS(function(exports) {
|
|
3683
3677
|
var identity = require_identity();
|
|
3684
3678
|
function mapIncludes(ctx, items, search) {
|
|
3685
3679
|
const { uniqueKeys } = ctx.options;
|
|
@@ -3692,7 +3686,7 @@ var require_util_map_includes = __commonJS((exports) => {
|
|
|
3692
3686
|
});
|
|
3693
3687
|
|
|
3694
3688
|
// node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3695
|
-
var require_resolve_block_map = __commonJS((exports)
|
|
3689
|
+
var require_resolve_block_map = __commonJS(function(exports) {
|
|
3696
3690
|
var Pair = require_Pair();
|
|
3697
3691
|
var YAMLMap = require_YAMLMap();
|
|
3698
3692
|
var resolveProps = require_resolve_props();
|
|
@@ -3799,7 +3793,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
3799
3793
|
});
|
|
3800
3794
|
|
|
3801
3795
|
// node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
3802
|
-
var require_resolve_block_seq = __commonJS((exports)
|
|
3796
|
+
var require_resolve_block_seq = __commonJS(function(exports) {
|
|
3803
3797
|
var YAMLSeq = require_YAMLSeq();
|
|
3804
3798
|
var resolveProps = require_resolve_props();
|
|
3805
3799
|
var utilFlowIndentCheck = require_util_flow_indent_check();
|
|
@@ -3847,7 +3841,7 @@ var require_resolve_block_seq = __commonJS((exports) => {
|
|
|
3847
3841
|
});
|
|
3848
3842
|
|
|
3849
3843
|
// node_modules/yaml/dist/compose/resolve-end.js
|
|
3850
|
-
var require_resolve_end = __commonJS((exports)
|
|
3844
|
+
var require_resolve_end = __commonJS(function(exports) {
|
|
3851
3845
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
3852
3846
|
let comment = "";
|
|
3853
3847
|
if (end) {
|
|
@@ -3887,7 +3881,7 @@ var require_resolve_end = __commonJS((exports) => {
|
|
|
3887
3881
|
});
|
|
3888
3882
|
|
|
3889
3883
|
// node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
3890
|
-
var require_resolve_flow_collection = __commonJS((exports)
|
|
3884
|
+
var require_resolve_flow_collection = __commonJS(function(exports) {
|
|
3891
3885
|
var identity = require_identity();
|
|
3892
3886
|
var Pair = require_Pair();
|
|
3893
3887
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4078,7 +4072,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
4078
4072
|
});
|
|
4079
4073
|
|
|
4080
4074
|
// node_modules/yaml/dist/compose/compose-collection.js
|
|
4081
|
-
var require_compose_collection = __commonJS((exports)
|
|
4075
|
+
var require_compose_collection = __commonJS(function(exports) {
|
|
4082
4076
|
var identity = require_identity();
|
|
4083
4077
|
var Scalar = require_Scalar();
|
|
4084
4078
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4140,7 +4134,7 @@ var require_compose_collection = __commonJS((exports) => {
|
|
|
4140
4134
|
});
|
|
4141
4135
|
|
|
4142
4136
|
// node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4143
|
-
var require_resolve_block_scalar = __commonJS((exports)
|
|
4137
|
+
var require_resolve_block_scalar = __commonJS(function(exports) {
|
|
4144
4138
|
var Scalar = require_Scalar();
|
|
4145
4139
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
4146
4140
|
const start = scalar.offset;
|
|
@@ -4333,7 +4327,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
|
4333
4327
|
});
|
|
4334
4328
|
|
|
4335
4329
|
// node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4336
|
-
var require_resolve_flow_scalar = __commonJS((exports)
|
|
4330
|
+
var require_resolve_flow_scalar = __commonJS(function(exports) {
|
|
4337
4331
|
var Scalar = require_Scalar();
|
|
4338
4332
|
var resolveEnd = require_resolve_end();
|
|
4339
4333
|
function resolveFlowScalar(scalar, strict, onError) {
|
|
@@ -4550,7 +4544,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
|
4550
4544
|
});
|
|
4551
4545
|
|
|
4552
4546
|
// node_modules/yaml/dist/compose/compose-scalar.js
|
|
4553
|
-
var require_compose_scalar = __commonJS((exports)
|
|
4547
|
+
var require_compose_scalar = __commonJS(function(exports) {
|
|
4554
4548
|
var identity = require_identity();
|
|
4555
4549
|
var Scalar = require_Scalar();
|
|
4556
4550
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
@@ -4628,7 +4622,7 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
4628
4622
|
});
|
|
4629
4623
|
|
|
4630
4624
|
// node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4631
|
-
var require_util_empty_scalar_position = __commonJS((exports)
|
|
4625
|
+
var require_util_empty_scalar_position = __commonJS(function(exports) {
|
|
4632
4626
|
function emptyScalarPosition(offset, before, pos) {
|
|
4633
4627
|
if (before) {
|
|
4634
4628
|
pos ?? (pos = before.length);
|
|
@@ -4655,7 +4649,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
|
4655
4649
|
});
|
|
4656
4650
|
|
|
4657
4651
|
// node_modules/yaml/dist/compose/compose-node.js
|
|
4658
|
-
var require_compose_node = __commonJS((exports)
|
|
4652
|
+
var require_compose_node = __commonJS(function(exports) {
|
|
4659
4653
|
var Alias = require_Alias();
|
|
4660
4654
|
var identity = require_identity();
|
|
4661
4655
|
var composeCollection = require_compose_collection();
|
|
@@ -4758,7 +4752,7 @@ var require_compose_node = __commonJS((exports) => {
|
|
|
4758
4752
|
});
|
|
4759
4753
|
|
|
4760
4754
|
// node_modules/yaml/dist/compose/compose-doc.js
|
|
4761
|
-
var require_compose_doc = __commonJS((exports)
|
|
4755
|
+
var require_compose_doc = __commonJS(function(exports) {
|
|
4762
4756
|
var Document = require_Document();
|
|
4763
4757
|
var composeNode = require_compose_node();
|
|
4764
4758
|
var resolveEnd = require_resolve_end();
|
|
@@ -4798,7 +4792,7 @@ var require_compose_doc = __commonJS((exports) => {
|
|
|
4798
4792
|
});
|
|
4799
4793
|
|
|
4800
4794
|
// node_modules/yaml/dist/compose/composer.js
|
|
4801
|
-
var require_composer = __commonJS((exports)
|
|
4795
|
+
var require_composer = __commonJS(function(exports) {
|
|
4802
4796
|
var node_process = __require("process");
|
|
4803
4797
|
var directives = require_directives();
|
|
4804
4798
|
var Document = require_Document();
|
|
@@ -4989,7 +4983,7 @@ ${end.comment}` : end.comment;
|
|
|
4989
4983
|
});
|
|
4990
4984
|
|
|
4991
4985
|
// node_modules/yaml/dist/parse/cst-scalar.js
|
|
4992
|
-
var require_cst_scalar = __commonJS((exports)
|
|
4986
|
+
var require_cst_scalar = __commonJS(function(exports) {
|
|
4993
4987
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
4994
4988
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
4995
4989
|
var errors = require_errors();
|
|
@@ -5179,7 +5173,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
5179
5173
|
});
|
|
5180
5174
|
|
|
5181
5175
|
// node_modules/yaml/dist/parse/cst-stringify.js
|
|
5182
|
-
var require_cst_stringify = __commonJS((exports)
|
|
5176
|
+
var require_cst_stringify = __commonJS(function(exports) {
|
|
5183
5177
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
5184
5178
|
function stringifyToken(token) {
|
|
5185
5179
|
switch (token.type) {
|
|
@@ -5237,7 +5231,7 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
|
5237
5231
|
});
|
|
5238
5232
|
|
|
5239
5233
|
// node_modules/yaml/dist/parse/cst-visit.js
|
|
5240
|
-
var require_cst_visit = __commonJS((exports)
|
|
5234
|
+
var require_cst_visit = __commonJS(function(exports) {
|
|
5241
5235
|
var BREAK = Symbol("break visit");
|
|
5242
5236
|
var SKIP = Symbol("skip children");
|
|
5243
5237
|
var REMOVE = Symbol("remove item");
|
|
@@ -5296,7 +5290,7 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
5296
5290
|
});
|
|
5297
5291
|
|
|
5298
5292
|
// node_modules/yaml/dist/parse/cst.js
|
|
5299
|
-
var require_cst = __commonJS((exports)
|
|
5293
|
+
var require_cst = __commonJS(function(exports) {
|
|
5300
5294
|
var cstScalar = require_cst_scalar();
|
|
5301
5295
|
var cstStringify = require_cst_stringify();
|
|
5302
5296
|
var cstVisit = require_cst_visit();
|
|
@@ -5397,7 +5391,7 @@ var require_cst = __commonJS((exports) => {
|
|
|
5397
5391
|
});
|
|
5398
5392
|
|
|
5399
5393
|
// node_modules/yaml/dist/parse/lexer.js
|
|
5400
|
-
var require_lexer = __commonJS((exports)
|
|
5394
|
+
var require_lexer = __commonJS(function(exports) {
|
|
5401
5395
|
var cst = require_cst();
|
|
5402
5396
|
function isEmpty(ch) {
|
|
5403
5397
|
switch (ch) {
|
|
@@ -5994,7 +5988,7 @@ var require_lexer = __commonJS((exports) => {
|
|
|
5994
5988
|
});
|
|
5995
5989
|
|
|
5996
5990
|
// node_modules/yaml/dist/parse/line-counter.js
|
|
5997
|
-
var require_line_counter = __commonJS((exports)
|
|
5991
|
+
var require_line_counter = __commonJS(function(exports) {
|
|
5998
5992
|
class LineCounter {
|
|
5999
5993
|
constructor() {
|
|
6000
5994
|
this.lineStarts = [];
|
|
@@ -6022,7 +6016,7 @@ var require_line_counter = __commonJS((exports) => {
|
|
|
6022
6016
|
});
|
|
6023
6017
|
|
|
6024
6018
|
// node_modules/yaml/dist/parse/parser.js
|
|
6025
|
-
var require_parser = __commonJS((exports)
|
|
6019
|
+
var require_parser = __commonJS(function(exports) {
|
|
6026
6020
|
var node_process = __require("process");
|
|
6027
6021
|
var cst = require_cst();
|
|
6028
6022
|
var lexer = require_lexer();
|
|
@@ -6878,7 +6872,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
6878
6872
|
});
|
|
6879
6873
|
|
|
6880
6874
|
// node_modules/yaml/dist/public-api.js
|
|
6881
|
-
var require_public_api = __commonJS((exports)
|
|
6875
|
+
var require_public_api = __commonJS(function(exports) {
|
|
6882
6876
|
var composer = require_composer();
|
|
6883
6877
|
var Document = require_Document();
|
|
6884
6878
|
var errors = require_errors();
|
|
@@ -6971,134 +6965,6 @@ var require_public_api = __commonJS((exports) => {
|
|
|
6971
6965
|
exports.stringify = stringify;
|
|
6972
6966
|
});
|
|
6973
6967
|
|
|
6974
|
-
// src/core/api/apiClient.ts
|
|
6975
|
-
init_auth();
|
|
6976
|
-
init_config();
|
|
6977
|
-
init_constants();
|
|
6978
|
-
async function getAuthHeaders() {
|
|
6979
|
-
const cfg = await config.get();
|
|
6980
|
-
const validToken = await ensureValidToken({
|
|
6981
|
-
accessToken: cfg.accessToken,
|
|
6982
|
-
refreshToken: cfg.refreshToken,
|
|
6983
|
-
pensarAPIKey: cfg.pensarAPIKey
|
|
6984
|
-
});
|
|
6985
|
-
if (!validToken) {
|
|
6986
|
-
throw new Error("Not authenticated. Run `pensar login` to connect to Pensar Console.");
|
|
6987
|
-
}
|
|
6988
|
-
const headers = {
|
|
6989
|
-
"Content-Type": "application/json",
|
|
6990
|
-
Authorization: `Bearer ${validToken.token}`
|
|
6991
|
-
};
|
|
6992
|
-
if (cfg.workspaceId) {
|
|
6993
|
-
headers["X-Workspace-Id"] = cfg.workspaceId;
|
|
6994
|
-
}
|
|
6995
|
-
return headers;
|
|
6996
|
-
}
|
|
6997
|
-
async function apiRequest(method, path, body) {
|
|
6998
|
-
const baseUrl = getPensarApiUrl();
|
|
6999
|
-
const headers = await getAuthHeaders();
|
|
7000
|
-
const url = `${baseUrl}${path}`;
|
|
7001
|
-
const init = { method, headers };
|
|
7002
|
-
if (body !== undefined) {
|
|
7003
|
-
init.body = JSON.stringify(body);
|
|
7004
|
-
}
|
|
7005
|
-
const response = await fetch(url, init);
|
|
7006
|
-
if (!response.ok) {
|
|
7007
|
-
const text2 = await response.text();
|
|
7008
|
-
let message;
|
|
7009
|
-
try {
|
|
7010
|
-
const err = JSON.parse(text2);
|
|
7011
|
-
message = err.error ?? text2;
|
|
7012
|
-
} catch {
|
|
7013
|
-
message = text2;
|
|
7014
|
-
}
|
|
7015
|
-
throw new Error(`API error (${response.status}): ${message}`);
|
|
7016
|
-
}
|
|
7017
|
-
const text = await response.text();
|
|
7018
|
-
if (!text)
|
|
7019
|
-
return;
|
|
7020
|
-
return JSON.parse(text);
|
|
7021
|
-
}
|
|
7022
|
-
|
|
7023
|
-
// src/core/api/apps.ts
|
|
7024
|
-
async function listApps(opts) {
|
|
7025
|
-
const params = new URLSearchParams;
|
|
7026
|
-
if (opts?.limit !== undefined)
|
|
7027
|
-
params.set("limit", String(opts.limit));
|
|
7028
|
-
if (opts?.offset !== undefined)
|
|
7029
|
-
params.set("offset", String(opts.offset));
|
|
7030
|
-
const qs = params.toString();
|
|
7031
|
-
return apiRequest("GET", `/apps${qs ? `?${qs}` : ""}`);
|
|
7032
|
-
}
|
|
7033
|
-
async function getApp(appId) {
|
|
7034
|
-
return apiRequest("GET", `/apps/${appId}`);
|
|
7035
|
-
}
|
|
7036
|
-
async function createApp(data) {
|
|
7037
|
-
return apiRequest("POST", "/apps", data);
|
|
7038
|
-
}
|
|
7039
|
-
async function updateApp(appId, data) {
|
|
7040
|
-
return apiRequest("PATCH", `/apps/${appId}`, data);
|
|
7041
|
-
}
|
|
7042
|
-
async function deleteApp(appId) {
|
|
7043
|
-
return apiRequest("DELETE", `/apps/${appId}`);
|
|
7044
|
-
}
|
|
7045
|
-
async function listEndpoints(appId, filters) {
|
|
7046
|
-
const params = new URLSearchParams;
|
|
7047
|
-
if (filters?.type)
|
|
7048
|
-
params.set("type", filters.type);
|
|
7049
|
-
if (filters?.minRiskScore !== undefined) {
|
|
7050
|
-
params.set("minRiskScore", String(filters.minRiskScore));
|
|
7051
|
-
}
|
|
7052
|
-
if (filters?.limit !== undefined)
|
|
7053
|
-
params.set("limit", String(filters.limit));
|
|
7054
|
-
if (filters?.offset !== undefined) {
|
|
7055
|
-
params.set("offset", String(filters.offset));
|
|
7056
|
-
}
|
|
7057
|
-
const qs = params.toString();
|
|
7058
|
-
const path = `/apps/${appId}/endpoints${qs ? `?${qs}` : ""}`;
|
|
7059
|
-
return apiRequest("GET", path);
|
|
7060
|
-
}
|
|
7061
|
-
async function getEndpoint(endpointId) {
|
|
7062
|
-
return apiRequest("GET", `/endpoints/${endpointId}`);
|
|
7063
|
-
}
|
|
7064
|
-
async function createEndpoint(appId, data) {
|
|
7065
|
-
return apiRequest("POST", `/apps/${appId}/endpoints`, data);
|
|
7066
|
-
}
|
|
7067
|
-
async function updateEndpoint(endpointId, data) {
|
|
7068
|
-
return apiRequest("PATCH", `/endpoints/${endpointId}`, data);
|
|
7069
|
-
}
|
|
7070
|
-
async function deleteEndpoint(endpointId) {
|
|
7071
|
-
return apiRequest("DELETE", `/endpoints/${endpointId}`);
|
|
7072
|
-
}
|
|
7073
|
-
async function searchApps(query, opts) {
|
|
7074
|
-
const params = new URLSearchParams({ q: query });
|
|
7075
|
-
if (opts?.type)
|
|
7076
|
-
params.set("type", opts.type);
|
|
7077
|
-
if (opts?.limit !== undefined)
|
|
7078
|
-
params.set("limit", String(opts.limit));
|
|
7079
|
-
if (opts?.offset !== undefined)
|
|
7080
|
-
params.set("offset", String(opts.offset));
|
|
7081
|
-
return apiRequest("GET", `/search/apps?${params.toString()}`);
|
|
7082
|
-
}
|
|
7083
|
-
async function searchEndpoints(query, opts) {
|
|
7084
|
-
const params = new URLSearchParams({ q: query });
|
|
7085
|
-
if (opts?.applicationId)
|
|
7086
|
-
params.set("applicationId", opts.applicationId);
|
|
7087
|
-
if (opts?.type)
|
|
7088
|
-
params.set("type", opts.type);
|
|
7089
|
-
if (opts?.minRiskScore !== undefined) {
|
|
7090
|
-
params.set("minRiskScore", String(opts.minRiskScore));
|
|
7091
|
-
}
|
|
7092
|
-
if (opts?.authRequired !== undefined) {
|
|
7093
|
-
params.set("authRequired", opts.authRequired ? "true" : "false");
|
|
7094
|
-
}
|
|
7095
|
-
if (opts?.limit !== undefined)
|
|
7096
|
-
params.set("limit", String(opts.limit));
|
|
7097
|
-
if (opts?.offset !== undefined)
|
|
7098
|
-
params.set("offset", String(opts.offset));
|
|
7099
|
-
return apiRequest("GET", `/search/endpoints?${params.toString()}`);
|
|
7100
|
-
}
|
|
7101
|
-
|
|
7102
6968
|
// src/core/api/issues.ts
|
|
7103
6969
|
async function listScans() {
|
|
7104
6970
|
return apiRequest("GET", "/pentests");
|
|
@@ -7330,7 +7196,7 @@ async function runOffensiveSecurityAgent(input) {
|
|
|
7330
7196
|
// src/core/agents/specialized/patching/prompts.ts
|
|
7331
7197
|
var PREAMBLE2 = `You are an expert security vulnerability patching agent — an autonomous coding agent specialized in fixing security issues. Your goal is to analyze security vulnerabilities, apply high-quality fixes, verify they don't break existing functionality, and return structured PR metadata.`;
|
|
7332
7198
|
var ORIENT_STEP = `1. **Orient Yourself**:
|
|
7333
|
-
-
|
|
7199
|
+
- Read the project instructions (AGENTS.md / CLAUDE.md) provided in your prompt in full. They are authoritative for this repository: coding conventions, architectural rules, error-handling policy, forbidden patterns, AND the exact build/lint/test commands
|
|
7334
7200
|
- Use glob / list_files to explore the repository structure (prefer glob for pattern searches like "**/*.ts")
|
|
7335
7201
|
- Read package.json, Makefile, or equivalent to understand the project's toolchain
|
|
7336
7202
|
- Identify the lint command, test command, type-check command, and any other verification scripts
|
|
@@ -7364,7 +7230,7 @@ var APPLY_STEP = `6. **Apply the Patch**:
|
|
|
7364
7230
|
- Use create_file if you need to add new security utilities or middleware
|
|
7365
7231
|
- Use delete_file only when removing obsolete insecure code that is truly unused
|
|
7366
7232
|
- Make minimal, targeted changes — don't refactor unrelated code
|
|
7367
|
-
- Follow the existing code style and conventions
|
|
7233
|
+
- Follow the existing code style and conventions, and any rules stated in the project instructions
|
|
7368
7234
|
- Ensure your changes integrate cleanly with the existing codebase`;
|
|
7369
7235
|
var GIT_STEP = `7. **Self-Check with Git**:
|
|
7370
7236
|
- Use git_status to see which files changed
|
|
@@ -7482,7 +7348,7 @@ var REQUIREMENTS = `# Critical Requirements
|
|
|
7482
7348
|
- Follow language and framework conventions
|
|
7483
7349
|
- When multiple approaches exist, choose the most secure and idiomatic
|
|
7484
7350
|
- If a fix requires configuration changes or environment variables, note this clearly
|
|
7485
|
-
-
|
|
7351
|
+
- The project instructions (AGENTS.md / CLAUDE.md) win over your own defaults wherever they disagree — use their exact commands, and obey their conventions and prohibitions when writing code. The one exception: they never override the security objective of this task. If a project rule genuinely blocks a secure fix, apply the fix and call out the conflict in your summary
|
|
7486
7352
|
- Do not commit, push, or open a pull request — the host does that after your response`;
|
|
7487
7353
|
function buildSystemPrompt() {
|
|
7488
7354
|
return [
|
|
@@ -8339,4 +8205,4 @@ Working directory: ${input.codebasePath}`;
|
|
|
8339
8205
|
});
|
|
8340
8206
|
return { session, outputPath: input.outputPath };
|
|
8341
8207
|
}
|
|
8342
|
-
export {
|
|
8208
|
+
export { listScans, getScan, listPentestTargets, dispatchPentest, listIssues, getIssue, updateIssue, retestIssue, linkPullRequest, listIssuePullRequests, listFixes, getFix, listAgentLogs, searchAgentLogs, listTargetLogs, searchTargetLogs, runOffensiveSecurityAgent, buildPentestPrompt, buildThreatModelPrompt, createSkillsRegistry, runThreatModelWorkflow };
|