@quikcommit/cli 5.0.0 → 7.0.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/dist/index.js +213 -174
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var init_types = __esm({
|
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
// ../shared/dist/constants.js
|
|
44
|
-
var CONFIG_DIR, CREDENTIALS_FILE, CONFIG_FILE, DEFAULT_API_URL, MAX_PR_CURRENT_BRANCH_CHARS,
|
|
44
|
+
var CONFIG_DIR, CREDENTIALS_FILE, CONFIG_FILE, DEFAULT_API_URL, MAX_PR_CURRENT_BRANCH_CHARS, DEVICE_FLOW_TIMEOUT;
|
|
45
45
|
var init_constants = __esm({
|
|
46
46
|
"../shared/dist/constants.js"() {
|
|
47
47
|
"use strict";
|
|
@@ -50,7 +50,6 @@ var init_constants = __esm({
|
|
|
50
50
|
CONFIG_FILE = "config.json";
|
|
51
51
|
DEFAULT_API_URL = "https://api.quikcommit.dev";
|
|
52
52
|
MAX_PR_CURRENT_BRANCH_CHARS = 256;
|
|
53
|
-
DEVICE_POLL_INTERVAL = 1e3;
|
|
54
53
|
DEVICE_FLOW_TIMEOUT = 6e5;
|
|
55
54
|
}
|
|
56
55
|
});
|
|
@@ -249,9 +248,9 @@ var init_api = __esm({
|
|
|
249
248
|
}
|
|
250
249
|
});
|
|
251
250
|
|
|
252
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
251
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/identity.js
|
|
253
252
|
var require_identity = __commonJS({
|
|
254
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
253
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/identity.js"(exports2) {
|
|
255
254
|
"use strict";
|
|
256
255
|
var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
|
|
257
256
|
var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
|
|
@@ -306,9 +305,9 @@ var require_identity = __commonJS({
|
|
|
306
305
|
}
|
|
307
306
|
});
|
|
308
307
|
|
|
309
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
308
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/visit.js
|
|
310
309
|
var require_visit = __commonJS({
|
|
311
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
310
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/visit.js"(exports2) {
|
|
312
311
|
"use strict";
|
|
313
312
|
var identity = require_identity();
|
|
314
313
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
@@ -464,9 +463,9 @@ var require_visit = __commonJS({
|
|
|
464
463
|
}
|
|
465
464
|
});
|
|
466
465
|
|
|
467
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
466
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/directives.js
|
|
468
467
|
var require_directives = __commonJS({
|
|
469
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
468
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/directives.js"(exports2) {
|
|
470
469
|
"use strict";
|
|
471
470
|
var identity = require_identity();
|
|
472
471
|
var visit = require_visit();
|
|
@@ -635,9 +634,9 @@ var require_directives = __commonJS({
|
|
|
635
634
|
}
|
|
636
635
|
});
|
|
637
636
|
|
|
638
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
637
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/anchors.js
|
|
639
638
|
var require_anchors = __commonJS({
|
|
640
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
639
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/anchors.js"(exports2) {
|
|
641
640
|
"use strict";
|
|
642
641
|
var identity = require_identity();
|
|
643
642
|
var visit = require_visit();
|
|
@@ -705,9 +704,9 @@ var require_anchors = __commonJS({
|
|
|
705
704
|
}
|
|
706
705
|
});
|
|
707
706
|
|
|
708
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
707
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/applyReviver.js
|
|
709
708
|
var require_applyReviver = __commonJS({
|
|
710
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
709
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
|
|
711
710
|
"use strict";
|
|
712
711
|
function applyReviver(reviver, obj, key, val) {
|
|
713
712
|
if (val && typeof val === "object") {
|
|
@@ -755,9 +754,9 @@ var require_applyReviver = __commonJS({
|
|
|
755
754
|
}
|
|
756
755
|
});
|
|
757
756
|
|
|
758
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
757
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/toJS.js
|
|
759
758
|
var require_toJS = __commonJS({
|
|
760
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
759
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
|
|
761
760
|
"use strict";
|
|
762
761
|
var identity = require_identity();
|
|
763
762
|
function toJS(value, arg, ctx) {
|
|
@@ -785,9 +784,9 @@ var require_toJS = __commonJS({
|
|
|
785
784
|
}
|
|
786
785
|
});
|
|
787
786
|
|
|
788
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
787
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Node.js
|
|
789
788
|
var require_Node = __commonJS({
|
|
790
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
789
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Node.js"(exports2) {
|
|
791
790
|
"use strict";
|
|
792
791
|
var applyReviver = require_applyReviver();
|
|
793
792
|
var identity = require_identity();
|
|
@@ -826,9 +825,9 @@ var require_Node = __commonJS({
|
|
|
826
825
|
}
|
|
827
826
|
});
|
|
828
827
|
|
|
829
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
828
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Alias.js
|
|
830
829
|
var require_Alias = __commonJS({
|
|
831
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
830
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
|
|
832
831
|
"use strict";
|
|
833
832
|
var anchors = require_anchors();
|
|
834
833
|
var visit = require_visit();
|
|
@@ -850,6 +849,8 @@ var require_Alias = __commonJS({
|
|
|
850
849
|
* instance of the `source` anchor before this node.
|
|
851
850
|
*/
|
|
852
851
|
resolve(doc, ctx) {
|
|
852
|
+
if (ctx?.maxAliasCount === 0)
|
|
853
|
+
throw new ReferenceError("Alias resolution is disabled");
|
|
853
854
|
let nodes;
|
|
854
855
|
if (ctx?.aliasResolveCache) {
|
|
855
856
|
nodes = ctx.aliasResolveCache;
|
|
@@ -940,9 +941,9 @@ var require_Alias = __commonJS({
|
|
|
940
941
|
}
|
|
941
942
|
});
|
|
942
943
|
|
|
943
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
944
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Scalar.js
|
|
944
945
|
var require_Scalar = __commonJS({
|
|
945
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
946
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
|
|
946
947
|
"use strict";
|
|
947
948
|
var identity = require_identity();
|
|
948
949
|
var Node = require_Node();
|
|
@@ -970,9 +971,9 @@ var require_Scalar = __commonJS({
|
|
|
970
971
|
}
|
|
971
972
|
});
|
|
972
973
|
|
|
973
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
974
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/createNode.js
|
|
974
975
|
var require_createNode = __commonJS({
|
|
975
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
976
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/createNode.js"(exports2) {
|
|
976
977
|
"use strict";
|
|
977
978
|
var Alias = require_Alias();
|
|
978
979
|
var identity = require_identity();
|
|
@@ -1045,9 +1046,9 @@ var require_createNode = __commonJS({
|
|
|
1045
1046
|
}
|
|
1046
1047
|
});
|
|
1047
1048
|
|
|
1048
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1049
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Collection.js
|
|
1049
1050
|
var require_Collection = __commonJS({
|
|
1050
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1051
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
|
|
1051
1052
|
"use strict";
|
|
1052
1053
|
var createNode = require_createNode();
|
|
1053
1054
|
var identity = require_identity();
|
|
@@ -1188,9 +1189,9 @@ var require_Collection = __commonJS({
|
|
|
1188
1189
|
}
|
|
1189
1190
|
});
|
|
1190
1191
|
|
|
1191
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1192
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
1192
1193
|
var require_stringifyComment = __commonJS({
|
|
1193
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1194
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
|
|
1194
1195
|
"use strict";
|
|
1195
1196
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
1196
1197
|
function indentComment(comment, indent) {
|
|
@@ -1205,9 +1206,9 @@ var require_stringifyComment = __commonJS({
|
|
|
1205
1206
|
}
|
|
1206
1207
|
});
|
|
1207
1208
|
|
|
1208
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1209
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
1209
1210
|
var require_foldFlowLines = __commonJS({
|
|
1210
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1211
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
|
|
1211
1212
|
"use strict";
|
|
1212
1213
|
var FOLD_FLOW = "flow";
|
|
1213
1214
|
var FOLD_BLOCK = "block";
|
|
@@ -1341,9 +1342,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1341
1342
|
}
|
|
1342
1343
|
});
|
|
1343
1344
|
|
|
1344
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1345
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1345
1346
|
var require_stringifyString = __commonJS({
|
|
1346
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1347
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
|
|
1347
1348
|
"use strict";
|
|
1348
1349
|
var Scalar = require_Scalar();
|
|
1349
1350
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1624,9 +1625,9 @@ ${indent}`);
|
|
|
1624
1625
|
}
|
|
1625
1626
|
});
|
|
1626
1627
|
|
|
1627
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1628
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringify.js
|
|
1628
1629
|
var require_stringify = __commonJS({
|
|
1629
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1630
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
|
|
1630
1631
|
"use strict";
|
|
1631
1632
|
var anchors = require_anchors();
|
|
1632
1633
|
var identity = require_identity();
|
|
@@ -1748,9 +1749,9 @@ ${ctx.indent}${str}`;
|
|
|
1748
1749
|
}
|
|
1749
1750
|
});
|
|
1750
1751
|
|
|
1751
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1752
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1752
1753
|
var require_stringifyPair = __commonJS({
|
|
1753
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1754
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
|
|
1754
1755
|
"use strict";
|
|
1755
1756
|
var identity = require_identity();
|
|
1756
1757
|
var Scalar = require_Scalar();
|
|
@@ -1881,9 +1882,9 @@ ${ctx.indent}`;
|
|
|
1881
1882
|
}
|
|
1882
1883
|
});
|
|
1883
1884
|
|
|
1884
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1885
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/log.js
|
|
1885
1886
|
var require_log = __commonJS({
|
|
1886
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1887
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/log.js"(exports2) {
|
|
1887
1888
|
"use strict";
|
|
1888
1889
|
var node_process = require("process");
|
|
1889
1890
|
function debug(logLevel, ...messages) {
|
|
@@ -1903,9 +1904,9 @@ var require_log = __commonJS({
|
|
|
1903
1904
|
}
|
|
1904
1905
|
});
|
|
1905
1906
|
|
|
1906
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1907
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1907
1908
|
var require_merge = __commonJS({
|
|
1908
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1909
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
|
|
1909
1910
|
"use strict";
|
|
1910
1911
|
var identity = require_identity();
|
|
1911
1912
|
var Scalar = require_Scalar();
|
|
@@ -1922,18 +1923,18 @@ var require_merge = __commonJS({
|
|
|
1922
1923
|
};
|
|
1923
1924
|
var isMergeKey = (ctx, key) => (merge.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
|
|
1924
1925
|
function addMergeToJSMap(ctx, map, value) {
|
|
1925
|
-
|
|
1926
|
-
if (identity.isSeq(
|
|
1927
|
-
for (const it of
|
|
1926
|
+
const source = resolveAliasValue(ctx, value);
|
|
1927
|
+
if (identity.isSeq(source))
|
|
1928
|
+
for (const it of source.items)
|
|
1928
1929
|
mergeValue(ctx, map, it);
|
|
1929
|
-
else if (Array.isArray(
|
|
1930
|
-
for (const it of
|
|
1930
|
+
else if (Array.isArray(source))
|
|
1931
|
+
for (const it of source)
|
|
1931
1932
|
mergeValue(ctx, map, it);
|
|
1932
1933
|
else
|
|
1933
|
-
mergeValue(ctx, map,
|
|
1934
|
+
mergeValue(ctx, map, source);
|
|
1934
1935
|
}
|
|
1935
1936
|
function mergeValue(ctx, map, value) {
|
|
1936
|
-
const source = ctx
|
|
1937
|
+
const source = resolveAliasValue(ctx, value);
|
|
1937
1938
|
if (!identity.isMap(source))
|
|
1938
1939
|
throw new Error("Merge sources must be maps or map aliases");
|
|
1939
1940
|
const srcMap = source.toJSON(null, ctx, Map);
|
|
@@ -1954,15 +1955,18 @@ var require_merge = __commonJS({
|
|
|
1954
1955
|
}
|
|
1955
1956
|
return map;
|
|
1956
1957
|
}
|
|
1958
|
+
function resolveAliasValue(ctx, value) {
|
|
1959
|
+
return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
|
|
1960
|
+
}
|
|
1957
1961
|
exports2.addMergeToJSMap = addMergeToJSMap;
|
|
1958
1962
|
exports2.isMergeKey = isMergeKey;
|
|
1959
1963
|
exports2.merge = merge;
|
|
1960
1964
|
}
|
|
1961
1965
|
});
|
|
1962
1966
|
|
|
1963
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
1967
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1964
1968
|
var require_addPairToJSMap = __commonJS({
|
|
1965
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
1969
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
|
|
1966
1970
|
"use strict";
|
|
1967
1971
|
var log = require_log();
|
|
1968
1972
|
var merge = require_merge();
|
|
@@ -2024,9 +2028,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
2024
2028
|
}
|
|
2025
2029
|
});
|
|
2026
2030
|
|
|
2027
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2031
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Pair.js
|
|
2028
2032
|
var require_Pair = __commonJS({
|
|
2029
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2033
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
|
|
2030
2034
|
"use strict";
|
|
2031
2035
|
var createNode = require_createNode();
|
|
2032
2036
|
var stringifyPair = require_stringifyPair();
|
|
@@ -2064,9 +2068,9 @@ var require_Pair = __commonJS({
|
|
|
2064
2068
|
}
|
|
2065
2069
|
});
|
|
2066
2070
|
|
|
2067
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2071
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
2068
2072
|
var require_stringifyCollection = __commonJS({
|
|
2069
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2073
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
|
|
2070
2074
|
"use strict";
|
|
2071
2075
|
var identity = require_identity();
|
|
2072
2076
|
var stringify = require_stringify();
|
|
@@ -2215,9 +2219,9 @@ ${indent}${end}`;
|
|
|
2215
2219
|
}
|
|
2216
2220
|
});
|
|
2217
2221
|
|
|
2218
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2222
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
2219
2223
|
var require_YAMLMap = __commonJS({
|
|
2220
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2224
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
|
|
2221
2225
|
"use strict";
|
|
2222
2226
|
var stringifyCollection = require_stringifyCollection();
|
|
2223
2227
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2359,9 +2363,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2359
2363
|
}
|
|
2360
2364
|
});
|
|
2361
2365
|
|
|
2362
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2366
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/map.js
|
|
2363
2367
|
var require_map = __commonJS({
|
|
2364
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2368
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/map.js"(exports2) {
|
|
2365
2369
|
"use strict";
|
|
2366
2370
|
var identity = require_identity();
|
|
2367
2371
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2381,9 +2385,9 @@ var require_map = __commonJS({
|
|
|
2381
2385
|
}
|
|
2382
2386
|
});
|
|
2383
2387
|
|
|
2384
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2388
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2385
2389
|
var require_YAMLSeq = __commonJS({
|
|
2386
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2390
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
|
|
2387
2391
|
"use strict";
|
|
2388
2392
|
var createNode = require_createNode();
|
|
2389
2393
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2497,9 +2501,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2497
2501
|
}
|
|
2498
2502
|
});
|
|
2499
2503
|
|
|
2500
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2504
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/seq.js
|
|
2501
2505
|
var require_seq = __commonJS({
|
|
2502
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2506
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
|
|
2503
2507
|
"use strict";
|
|
2504
2508
|
var identity = require_identity();
|
|
2505
2509
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2519,9 +2523,9 @@ var require_seq = __commonJS({
|
|
|
2519
2523
|
}
|
|
2520
2524
|
});
|
|
2521
2525
|
|
|
2522
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2526
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/string.js
|
|
2523
2527
|
var require_string = __commonJS({
|
|
2524
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2528
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/string.js"(exports2) {
|
|
2525
2529
|
"use strict";
|
|
2526
2530
|
var stringifyString = require_stringifyString();
|
|
2527
2531
|
var string = {
|
|
@@ -2538,9 +2542,9 @@ var require_string = __commonJS({
|
|
|
2538
2542
|
}
|
|
2539
2543
|
});
|
|
2540
2544
|
|
|
2541
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2545
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/null.js
|
|
2542
2546
|
var require_null = __commonJS({
|
|
2543
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2547
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/null.js"(exports2) {
|
|
2544
2548
|
"use strict";
|
|
2545
2549
|
var Scalar = require_Scalar();
|
|
2546
2550
|
var nullTag = {
|
|
@@ -2556,9 +2560,9 @@ var require_null = __commonJS({
|
|
|
2556
2560
|
}
|
|
2557
2561
|
});
|
|
2558
2562
|
|
|
2559
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2563
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/bool.js
|
|
2560
2564
|
var require_bool = __commonJS({
|
|
2561
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2565
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
|
|
2562
2566
|
"use strict";
|
|
2563
2567
|
var Scalar = require_Scalar();
|
|
2564
2568
|
var boolTag = {
|
|
@@ -2580,9 +2584,9 @@ var require_bool = __commonJS({
|
|
|
2580
2584
|
}
|
|
2581
2585
|
});
|
|
2582
2586
|
|
|
2583
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2587
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2584
2588
|
var require_stringifyNumber = __commonJS({
|
|
2585
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2589
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
|
|
2586
2590
|
"use strict";
|
|
2587
2591
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2588
2592
|
if (typeof value === "bigint")
|
|
@@ -2591,7 +2595,7 @@ var require_stringifyNumber = __commonJS({
|
|
|
2591
2595
|
if (!isFinite(num))
|
|
2592
2596
|
return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
|
|
2593
2597
|
let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
|
|
2594
|
-
if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") &&
|
|
2598
|
+
if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
|
|
2595
2599
|
let i = n.indexOf(".");
|
|
2596
2600
|
if (i < 0) {
|
|
2597
2601
|
i = n.length;
|
|
@@ -2607,9 +2611,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2607
2611
|
}
|
|
2608
2612
|
});
|
|
2609
2613
|
|
|
2610
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2614
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/float.js
|
|
2611
2615
|
var require_float = __commonJS({
|
|
2612
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2616
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/float.js"(exports2) {
|
|
2613
2617
|
"use strict";
|
|
2614
2618
|
var Scalar = require_Scalar();
|
|
2615
2619
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2653,9 +2657,9 @@ var require_float = __commonJS({
|
|
|
2653
2657
|
}
|
|
2654
2658
|
});
|
|
2655
2659
|
|
|
2656
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2660
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/int.js
|
|
2657
2661
|
var require_int = __commonJS({
|
|
2658
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2662
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/int.js"(exports2) {
|
|
2659
2663
|
"use strict";
|
|
2660
2664
|
var stringifyNumber = require_stringifyNumber();
|
|
2661
2665
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2698,9 +2702,9 @@ var require_int = __commonJS({
|
|
|
2698
2702
|
}
|
|
2699
2703
|
});
|
|
2700
2704
|
|
|
2701
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2705
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/schema.js
|
|
2702
2706
|
var require_schema = __commonJS({
|
|
2703
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2707
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
|
|
2704
2708
|
"use strict";
|
|
2705
2709
|
var map = require_map();
|
|
2706
2710
|
var _null = require_null();
|
|
@@ -2726,9 +2730,9 @@ var require_schema = __commonJS({
|
|
|
2726
2730
|
}
|
|
2727
2731
|
});
|
|
2728
2732
|
|
|
2729
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2733
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/json/schema.js
|
|
2730
2734
|
var require_schema2 = __commonJS({
|
|
2731
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2735
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
|
|
2732
2736
|
"use strict";
|
|
2733
2737
|
var Scalar = require_Scalar();
|
|
2734
2738
|
var map = require_map();
|
|
@@ -2793,9 +2797,9 @@ var require_schema2 = __commonJS({
|
|
|
2793
2797
|
}
|
|
2794
2798
|
});
|
|
2795
2799
|
|
|
2796
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2800
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2797
2801
|
var require_binary = __commonJS({
|
|
2798
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2802
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
|
|
2799
2803
|
"use strict";
|
|
2800
2804
|
var node_buffer = require("buffer");
|
|
2801
2805
|
var Scalar = require_Scalar();
|
|
@@ -2859,9 +2863,9 @@ var require_binary = __commonJS({
|
|
|
2859
2863
|
}
|
|
2860
2864
|
});
|
|
2861
2865
|
|
|
2862
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2866
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2863
2867
|
var require_pairs = __commonJS({
|
|
2864
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2868
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
|
|
2865
2869
|
"use strict";
|
|
2866
2870
|
var identity = require_identity();
|
|
2867
2871
|
var Pair = require_Pair();
|
|
@@ -2937,9 +2941,9 @@ ${cn.comment}` : item.comment;
|
|
|
2937
2941
|
}
|
|
2938
2942
|
});
|
|
2939
2943
|
|
|
2940
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
2944
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2941
2945
|
var require_omap = __commonJS({
|
|
2942
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
2946
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
|
|
2943
2947
|
"use strict";
|
|
2944
2948
|
var identity = require_identity();
|
|
2945
2949
|
var toJS = require_toJS();
|
|
@@ -3015,9 +3019,9 @@ var require_omap = __commonJS({
|
|
|
3015
3019
|
}
|
|
3016
3020
|
});
|
|
3017
3021
|
|
|
3018
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3022
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
3019
3023
|
var require_bool2 = __commonJS({
|
|
3020
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3024
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
|
|
3021
3025
|
"use strict";
|
|
3022
3026
|
var Scalar = require_Scalar();
|
|
3023
3027
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -3047,9 +3051,9 @@ var require_bool2 = __commonJS({
|
|
|
3047
3051
|
}
|
|
3048
3052
|
});
|
|
3049
3053
|
|
|
3050
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3054
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
3051
3055
|
var require_float2 = __commonJS({
|
|
3052
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3056
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
|
|
3053
3057
|
"use strict";
|
|
3054
3058
|
var Scalar = require_Scalar();
|
|
3055
3059
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -3096,9 +3100,9 @@ var require_float2 = __commonJS({
|
|
|
3096
3100
|
}
|
|
3097
3101
|
});
|
|
3098
3102
|
|
|
3099
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3103
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
3100
3104
|
var require_int2 = __commonJS({
|
|
3101
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3105
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
|
|
3102
3106
|
"use strict";
|
|
3103
3107
|
var stringifyNumber = require_stringifyNumber();
|
|
3104
3108
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -3175,9 +3179,9 @@ var require_int2 = __commonJS({
|
|
|
3175
3179
|
}
|
|
3176
3180
|
});
|
|
3177
3181
|
|
|
3178
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3182
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
3179
3183
|
var require_set = __commonJS({
|
|
3180
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3184
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
|
|
3181
3185
|
"use strict";
|
|
3182
3186
|
var identity = require_identity();
|
|
3183
3187
|
var Pair = require_Pair();
|
|
@@ -3264,9 +3268,9 @@ var require_set = __commonJS({
|
|
|
3264
3268
|
}
|
|
3265
3269
|
});
|
|
3266
3270
|
|
|
3267
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3271
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3268
3272
|
var require_timestamp = __commonJS({
|
|
3269
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3273
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
|
|
3270
3274
|
"use strict";
|
|
3271
3275
|
var stringifyNumber = require_stringifyNumber();
|
|
3272
3276
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3352,9 +3356,9 @@ var require_timestamp = __commonJS({
|
|
|
3352
3356
|
}
|
|
3353
3357
|
});
|
|
3354
3358
|
|
|
3355
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3359
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3356
3360
|
var require_schema3 = __commonJS({
|
|
3357
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3361
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
|
|
3358
3362
|
"use strict";
|
|
3359
3363
|
var map = require_map();
|
|
3360
3364
|
var _null = require_null();
|
|
@@ -3396,9 +3400,9 @@ var require_schema3 = __commonJS({
|
|
|
3396
3400
|
}
|
|
3397
3401
|
});
|
|
3398
3402
|
|
|
3399
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3403
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/tags.js
|
|
3400
3404
|
var require_tags = __commonJS({
|
|
3401
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3405
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/tags.js"(exports2) {
|
|
3402
3406
|
"use strict";
|
|
3403
3407
|
var map = require_map();
|
|
3404
3408
|
var _null = require_null();
|
|
@@ -3490,9 +3494,9 @@ var require_tags = __commonJS({
|
|
|
3490
3494
|
}
|
|
3491
3495
|
});
|
|
3492
3496
|
|
|
3493
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3497
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/Schema.js
|
|
3494
3498
|
var require_Schema = __commonJS({
|
|
3495
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3499
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/Schema.js"(exports2) {
|
|
3496
3500
|
"use strict";
|
|
3497
3501
|
var identity = require_identity();
|
|
3498
3502
|
var map = require_map();
|
|
@@ -3522,9 +3526,9 @@ var require_Schema = __commonJS({
|
|
|
3522
3526
|
}
|
|
3523
3527
|
});
|
|
3524
3528
|
|
|
3525
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3529
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3526
3530
|
var require_stringifyDocument = __commonJS({
|
|
3527
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3531
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
|
|
3528
3532
|
"use strict";
|
|
3529
3533
|
var identity = require_identity();
|
|
3530
3534
|
var stringify = require_stringify();
|
|
@@ -3602,9 +3606,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3602
3606
|
}
|
|
3603
3607
|
});
|
|
3604
3608
|
|
|
3605
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3609
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/Document.js
|
|
3606
3610
|
var require_Document = __commonJS({
|
|
3607
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3611
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/Document.js"(exports2) {
|
|
3608
3612
|
"use strict";
|
|
3609
3613
|
var Alias = require_Alias();
|
|
3610
3614
|
var Collection = require_Collection();
|
|
@@ -3911,9 +3915,9 @@ var require_Document = __commonJS({
|
|
|
3911
3915
|
}
|
|
3912
3916
|
});
|
|
3913
3917
|
|
|
3914
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3918
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/errors.js
|
|
3915
3919
|
var require_errors = __commonJS({
|
|
3916
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3920
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/errors.js"(exports2) {
|
|
3917
3921
|
"use strict";
|
|
3918
3922
|
var YAMLError = class extends Error {
|
|
3919
3923
|
constructor(name, pos, code, message) {
|
|
@@ -3976,9 +3980,9 @@ ${pointer}
|
|
|
3976
3980
|
}
|
|
3977
3981
|
});
|
|
3978
3982
|
|
|
3979
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
3983
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-props.js
|
|
3980
3984
|
var require_resolve_props = __commonJS({
|
|
3981
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
3985
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
|
|
3982
3986
|
"use strict";
|
|
3983
3987
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3984
3988
|
let spaceBefore = false;
|
|
@@ -4110,9 +4114,9 @@ var require_resolve_props = __commonJS({
|
|
|
4110
4114
|
}
|
|
4111
4115
|
});
|
|
4112
4116
|
|
|
4113
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4117
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
4114
4118
|
var require_util_contains_newline = __commonJS({
|
|
4115
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4119
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
|
|
4116
4120
|
"use strict";
|
|
4117
4121
|
function containsNewline(key) {
|
|
4118
4122
|
if (!key)
|
|
@@ -4152,9 +4156,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
4152
4156
|
}
|
|
4153
4157
|
});
|
|
4154
4158
|
|
|
4155
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4159
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
4156
4160
|
var require_util_flow_indent_check = __commonJS({
|
|
4157
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4161
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
|
|
4158
4162
|
"use strict";
|
|
4159
4163
|
var utilContainsNewline = require_util_contains_newline();
|
|
4160
4164
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -4170,9 +4174,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
4170
4174
|
}
|
|
4171
4175
|
});
|
|
4172
4176
|
|
|
4173
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4177
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-map-includes.js
|
|
4174
4178
|
var require_util_map_includes = __commonJS({
|
|
4175
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4179
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
|
|
4176
4180
|
"use strict";
|
|
4177
4181
|
var identity = require_identity();
|
|
4178
4182
|
function mapIncludes(ctx, items, search) {
|
|
@@ -4186,9 +4190,9 @@ var require_util_map_includes = __commonJS({
|
|
|
4186
4190
|
}
|
|
4187
4191
|
});
|
|
4188
4192
|
|
|
4189
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4193
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
4190
4194
|
var require_resolve_block_map = __commonJS({
|
|
4191
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4195
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
|
|
4192
4196
|
"use strict";
|
|
4193
4197
|
var Pair = require_Pair();
|
|
4194
4198
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4294,9 +4298,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
4294
4298
|
}
|
|
4295
4299
|
});
|
|
4296
4300
|
|
|
4297
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4301
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4298
4302
|
var require_resolve_block_seq = __commonJS({
|
|
4299
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4303
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
|
|
4300
4304
|
"use strict";
|
|
4301
4305
|
var YAMLSeq = require_YAMLSeq();
|
|
4302
4306
|
var resolveProps = require_resolve_props();
|
|
@@ -4345,9 +4349,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4345
4349
|
}
|
|
4346
4350
|
});
|
|
4347
4351
|
|
|
4348
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4352
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-end.js
|
|
4349
4353
|
var require_resolve_end = __commonJS({
|
|
4350
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4354
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
|
|
4351
4355
|
"use strict";
|
|
4352
4356
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4353
4357
|
let comment = "";
|
|
@@ -4388,9 +4392,9 @@ var require_resolve_end = __commonJS({
|
|
|
4388
4392
|
}
|
|
4389
4393
|
});
|
|
4390
4394
|
|
|
4391
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4395
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4392
4396
|
var require_resolve_flow_collection = __commonJS({
|
|
4393
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4397
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
|
|
4394
4398
|
"use strict";
|
|
4395
4399
|
var identity = require_identity();
|
|
4396
4400
|
var Pair = require_Pair();
|
|
@@ -4582,9 +4586,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4582
4586
|
}
|
|
4583
4587
|
});
|
|
4584
4588
|
|
|
4585
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4589
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-collection.js
|
|
4586
4590
|
var require_compose_collection = __commonJS({
|
|
4587
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4591
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
|
|
4588
4592
|
"use strict";
|
|
4589
4593
|
var identity = require_identity();
|
|
4590
4594
|
var Scalar = require_Scalar();
|
|
@@ -4647,9 +4651,9 @@ var require_compose_collection = __commonJS({
|
|
|
4647
4651
|
}
|
|
4648
4652
|
});
|
|
4649
4653
|
|
|
4650
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4654
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4651
4655
|
var require_resolve_block_scalar = __commonJS({
|
|
4652
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4656
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
|
|
4653
4657
|
"use strict";
|
|
4654
4658
|
var Scalar = require_Scalar();
|
|
4655
4659
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4830,9 +4834,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4830
4834
|
}
|
|
4831
4835
|
});
|
|
4832
4836
|
|
|
4833
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
4837
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4834
4838
|
var require_resolve_flow_scalar = __commonJS({
|
|
4835
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
4839
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
|
|
4836
4840
|
"use strict";
|
|
4837
4841
|
var Scalar = require_Scalar();
|
|
4838
4842
|
var resolveEnd = require_resolve_end();
|
|
@@ -4963,7 +4967,7 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4963
4967
|
while (next === " " || next === " ")
|
|
4964
4968
|
next = source[++i + 1];
|
|
4965
4969
|
} else if (next === "x" || next === "u" || next === "U") {
|
|
4966
|
-
const length =
|
|
4970
|
+
const length = next === "x" ? 2 : next === "u" ? 4 : 8;
|
|
4967
4971
|
res += parseCharCode(source, i + 1, length, onError);
|
|
4968
4972
|
i += length;
|
|
4969
4973
|
} else {
|
|
@@ -5038,20 +5042,21 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
5038
5042
|
const cc = source.substr(offset, length);
|
|
5039
5043
|
const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc);
|
|
5040
5044
|
const code = ok ? parseInt(cc, 16) : NaN;
|
|
5041
|
-
|
|
5045
|
+
try {
|
|
5046
|
+
return String.fromCodePoint(code);
|
|
5047
|
+
} catch {
|
|
5042
5048
|
const raw = source.substr(offset - 2, length + 2);
|
|
5043
5049
|
onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
|
|
5044
5050
|
return raw;
|
|
5045
5051
|
}
|
|
5046
|
-
return String.fromCodePoint(code);
|
|
5047
5052
|
}
|
|
5048
5053
|
exports2.resolveFlowScalar = resolveFlowScalar;
|
|
5049
5054
|
}
|
|
5050
5055
|
});
|
|
5051
5056
|
|
|
5052
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5057
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-scalar.js
|
|
5053
5058
|
var require_compose_scalar = __commonJS({
|
|
5054
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5059
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
|
|
5055
5060
|
"use strict";
|
|
5056
5061
|
var identity = require_identity();
|
|
5057
5062
|
var Scalar = require_Scalar();
|
|
@@ -5130,9 +5135,9 @@ var require_compose_scalar = __commonJS({
|
|
|
5130
5135
|
}
|
|
5131
5136
|
});
|
|
5132
5137
|
|
|
5133
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5138
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
5134
5139
|
var require_util_empty_scalar_position = __commonJS({
|
|
5135
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5140
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
|
|
5136
5141
|
"use strict";
|
|
5137
5142
|
function emptyScalarPosition(offset, before, pos) {
|
|
5138
5143
|
if (before) {
|
|
@@ -5160,9 +5165,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
5160
5165
|
}
|
|
5161
5166
|
});
|
|
5162
5167
|
|
|
5163
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5168
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-node.js
|
|
5164
5169
|
var require_compose_node = __commonJS({
|
|
5165
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5170
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
|
|
5166
5171
|
"use strict";
|
|
5167
5172
|
var Alias = require_Alias();
|
|
5168
5173
|
var identity = require_identity();
|
|
@@ -5266,9 +5271,9 @@ var require_compose_node = __commonJS({
|
|
|
5266
5271
|
}
|
|
5267
5272
|
});
|
|
5268
5273
|
|
|
5269
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5274
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-doc.js
|
|
5270
5275
|
var require_compose_doc = __commonJS({
|
|
5271
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5276
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
|
|
5272
5277
|
"use strict";
|
|
5273
5278
|
var Document = require_Document();
|
|
5274
5279
|
var composeNode = require_compose_node();
|
|
@@ -5309,9 +5314,9 @@ var require_compose_doc = __commonJS({
|
|
|
5309
5314
|
}
|
|
5310
5315
|
});
|
|
5311
5316
|
|
|
5312
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5317
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/composer.js
|
|
5313
5318
|
var require_composer = __commonJS({
|
|
5314
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5319
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/composer.js"(exports2) {
|
|
5315
5320
|
"use strict";
|
|
5316
5321
|
var node_process = require("process");
|
|
5317
5322
|
var directives = require_directives();
|
|
@@ -5515,9 +5520,9 @@ ${end.comment}` : end.comment;
|
|
|
5515
5520
|
}
|
|
5516
5521
|
});
|
|
5517
5522
|
|
|
5518
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5523
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5519
5524
|
var require_cst_scalar = __commonJS({
|
|
5520
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5525
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
|
|
5521
5526
|
"use strict";
|
|
5522
5527
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5523
5528
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5700,9 +5705,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5700
5705
|
}
|
|
5701
5706
|
});
|
|
5702
5707
|
|
|
5703
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5708
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5704
5709
|
var require_cst_stringify = __commonJS({
|
|
5705
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5710
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
|
|
5706
5711
|
"use strict";
|
|
5707
5712
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5708
5713
|
function stringifyToken(token) {
|
|
@@ -5761,9 +5766,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5761
5766
|
}
|
|
5762
5767
|
});
|
|
5763
5768
|
|
|
5764
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5769
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-visit.js
|
|
5765
5770
|
var require_cst_visit = __commonJS({
|
|
5766
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5771
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
|
|
5767
5772
|
"use strict";
|
|
5768
5773
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
5769
5774
|
var SKIP = /* @__PURE__ */ Symbol("skip children");
|
|
@@ -5823,9 +5828,9 @@ var require_cst_visit = __commonJS({
|
|
|
5823
5828
|
}
|
|
5824
5829
|
});
|
|
5825
5830
|
|
|
5826
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5831
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst.js
|
|
5827
5832
|
var require_cst = __commonJS({
|
|
5828
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5833
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst.js"(exports2) {
|
|
5829
5834
|
"use strict";
|
|
5830
5835
|
var cstScalar = require_cst_scalar();
|
|
5831
5836
|
var cstStringify = require_cst_stringify();
|
|
@@ -5925,9 +5930,9 @@ var require_cst = __commonJS({
|
|
|
5925
5930
|
}
|
|
5926
5931
|
});
|
|
5927
5932
|
|
|
5928
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
5933
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/lexer.js
|
|
5929
5934
|
var require_lexer = __commonJS({
|
|
5930
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
5935
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/lexer.js"(exports2) {
|
|
5931
5936
|
"use strict";
|
|
5932
5937
|
var cst = require_cst();
|
|
5933
5938
|
function isEmpty(ch) {
|
|
@@ -6504,9 +6509,9 @@ var require_lexer = __commonJS({
|
|
|
6504
6509
|
}
|
|
6505
6510
|
});
|
|
6506
6511
|
|
|
6507
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
6512
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/line-counter.js
|
|
6508
6513
|
var require_line_counter = __commonJS({
|
|
6509
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
6514
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
|
|
6510
6515
|
"use strict";
|
|
6511
6516
|
var LineCounter = class {
|
|
6512
6517
|
constructor() {
|
|
@@ -6535,9 +6540,9 @@ var require_line_counter = __commonJS({
|
|
|
6535
6540
|
}
|
|
6536
6541
|
});
|
|
6537
6542
|
|
|
6538
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
6543
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/parser.js
|
|
6539
6544
|
var require_parser = __commonJS({
|
|
6540
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
6545
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/parser.js"(exports2) {
|
|
6541
6546
|
"use strict";
|
|
6542
6547
|
var node_process = require("process");
|
|
6543
6548
|
var cst = require_cst();
|
|
@@ -7402,9 +7407,9 @@ var require_parser = __commonJS({
|
|
|
7402
7407
|
}
|
|
7403
7408
|
});
|
|
7404
7409
|
|
|
7405
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
7410
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/public-api.js
|
|
7406
7411
|
var require_public_api = __commonJS({
|
|
7407
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
7412
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/public-api.js"(exports2) {
|
|
7408
7413
|
"use strict";
|
|
7409
7414
|
var composer = require_composer();
|
|
7410
7415
|
var Document = require_Document();
|
|
@@ -7499,9 +7504,9 @@ var require_public_api = __commonJS({
|
|
|
7499
7504
|
}
|
|
7500
7505
|
});
|
|
7501
7506
|
|
|
7502
|
-
// ../../node_modules/.pnpm/yaml@2.8.
|
|
7507
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/index.js
|
|
7503
7508
|
var require_dist = __commonJS({
|
|
7504
|
-
"../../node_modules/.pnpm/yaml@2.8.
|
|
7509
|
+
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/index.js"(exports2) {
|
|
7505
7510
|
"use strict";
|
|
7506
7511
|
var composer = require_composer();
|
|
7507
7512
|
var Document = require_Document();
|
|
@@ -8059,23 +8064,25 @@ function openBrowser(url) {
|
|
|
8059
8064
|
return false;
|
|
8060
8065
|
}
|
|
8061
8066
|
async function runLogin() {
|
|
8062
|
-
const
|
|
8067
|
+
const codeRes = await fetch(`${API_URL}/api/auth/device/code`, {
|
|
8063
8068
|
method: "POST",
|
|
8064
8069
|
headers: { "Content-Type": "application/json" },
|
|
8065
|
-
body: JSON.stringify({})
|
|
8070
|
+
body: JSON.stringify({ client_id: CLIENT_ID })
|
|
8066
8071
|
});
|
|
8067
|
-
if (!
|
|
8068
|
-
const err = await
|
|
8072
|
+
if (!codeRes.ok) {
|
|
8073
|
+
const err = await codeRes.json().catch(() => ({ error: codeRes.statusText }));
|
|
8069
8074
|
throw new Error(err.error ?? "Failed to start device flow");
|
|
8070
8075
|
}
|
|
8071
|
-
const
|
|
8072
|
-
const
|
|
8073
|
-
if (!
|
|
8074
|
-
throw new Error("Server did not return
|
|
8076
|
+
const codeData = await codeRes.json();
|
|
8077
|
+
const { device_code, user_code, verification_uri_complete, interval = 5 } = codeData;
|
|
8078
|
+
if (!device_code || !user_code) {
|
|
8079
|
+
throw new Error("Server did not return device codes");
|
|
8075
8080
|
}
|
|
8076
8081
|
console.log("Opening browser to sign in...");
|
|
8077
8082
|
console.log("");
|
|
8078
|
-
|
|
8083
|
+
console.log(` Your code: ${user_code}`);
|
|
8084
|
+
console.log("");
|
|
8085
|
+
const authUrl = verification_uri_complete ?? `${DASHBOARD_URL}/device?user_code=${encodeURIComponent(user_code)}`;
|
|
8079
8086
|
const opened = openBrowser(authUrl);
|
|
8080
8087
|
if (!opened) {
|
|
8081
8088
|
console.log("Could not open browser. Please visit:");
|
|
@@ -8089,23 +8096,54 @@ async function runLogin() {
|
|
|
8089
8096
|
`\r${SPINNER_FRAMES[frame++ % SPINNER_FRAMES.length]} Waiting for authorization... (${elapsed}s)`
|
|
8090
8097
|
);
|
|
8091
8098
|
}, 80);
|
|
8099
|
+
let pollingInterval = interval * 1e3;
|
|
8092
8100
|
const startTime = Date.now();
|
|
8093
8101
|
try {
|
|
8094
8102
|
while (Date.now() - startTime < DEVICE_FLOW_TIMEOUT) {
|
|
8103
|
+
await new Promise((r) => setTimeout(r, pollingInterval));
|
|
8095
8104
|
try {
|
|
8096
|
-
const
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8105
|
+
const tokenRes = await fetch(`${API_URL}/api/auth/device/token`, {
|
|
8106
|
+
method: "POST",
|
|
8107
|
+
headers: { "Content-Type": "application/json" },
|
|
8108
|
+
body: JSON.stringify({
|
|
8109
|
+
grant_type: "urn:ietf:params:oauth:grant-type:device_code",
|
|
8110
|
+
device_code,
|
|
8111
|
+
client_id: CLIENT_ID
|
|
8112
|
+
})
|
|
8113
|
+
});
|
|
8114
|
+
const tokenData = await tokenRes.json();
|
|
8115
|
+
if (tokenData.access_token) {
|
|
8116
|
+
saveApiKey(tokenData.access_token);
|
|
8102
8117
|
process.stderr.write("\r\x1B[2K");
|
|
8103
8118
|
console.log("Successfully logged in!");
|
|
8104
8119
|
return;
|
|
8105
8120
|
}
|
|
8121
|
+
if (tokenData.error) {
|
|
8122
|
+
switch (tokenData.error) {
|
|
8123
|
+
case "authorization_pending":
|
|
8124
|
+
break;
|
|
8125
|
+
// continue polling
|
|
8126
|
+
case "slow_down":
|
|
8127
|
+
pollingInterval += 5e3;
|
|
8128
|
+
break;
|
|
8129
|
+
case "access_denied":
|
|
8130
|
+
process.stderr.write("\r\x1B[2K");
|
|
8131
|
+
console.error("Authorization was denied.");
|
|
8132
|
+
process.exit(1);
|
|
8133
|
+
break;
|
|
8134
|
+
case "expired_token":
|
|
8135
|
+
process.stderr.write("\r\x1B[2K");
|
|
8136
|
+
console.error("Device code expired. Please try again.");
|
|
8137
|
+
process.exit(1);
|
|
8138
|
+
break;
|
|
8139
|
+
default:
|
|
8140
|
+
process.stderr.write("\r\x1B[2K");
|
|
8141
|
+
console.error(`Error: ${tokenData.error_description ?? tokenData.error}`);
|
|
8142
|
+
process.exit(1);
|
|
8143
|
+
}
|
|
8144
|
+
}
|
|
8106
8145
|
} catch {
|
|
8107
8146
|
}
|
|
8108
|
-
await new Promise((r) => setTimeout(r, DEVICE_POLL_INTERVAL));
|
|
8109
8147
|
}
|
|
8110
8148
|
process.stderr.write("\r\x1B[2K");
|
|
8111
8149
|
console.error("Login timed out. Please try again.");
|
|
@@ -8114,7 +8152,7 @@ async function runLogin() {
|
|
|
8114
8152
|
clearInterval(spinner);
|
|
8115
8153
|
}
|
|
8116
8154
|
}
|
|
8117
|
-
var import_child_process4, import_os3, API_URL, DASHBOARD_URL, SPINNER_FRAMES;
|
|
8155
|
+
var import_child_process4, import_os3, API_URL, DASHBOARD_URL, CLIENT_ID, SPINNER_FRAMES;
|
|
8118
8156
|
var init_login = __esm({
|
|
8119
8157
|
"src/commands/login.ts"() {
|
|
8120
8158
|
"use strict";
|
|
@@ -8124,6 +8162,7 @@ var init_login = __esm({
|
|
|
8124
8162
|
init_dist();
|
|
8125
8163
|
API_URL = process.env.QC_API_URL ?? DEFAULT_API_URL;
|
|
8126
8164
|
DASHBOARD_URL = "https://app.quikcommit.dev";
|
|
8165
|
+
CLIENT_ID = "qc-cli";
|
|
8127
8166
|
SPINNER_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
8128
8167
|
}
|
|
8129
8168
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quikcommit/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "AI-powered conventional commit messages",
|
|
5
5
|
"bin": {
|
|
6
6
|
"qc": "./dist/index.js"
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"yaml": "^2.8.
|
|
29
|
+
"yaml": "^2.8.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@types/node": "^
|
|
33
|
-
"esbuild": "^0.
|
|
32
|
+
"@types/node": "^25.6.0",
|
|
33
|
+
"esbuild": "^0.28.0",
|
|
34
34
|
"typescript": "^5.9.3",
|
|
35
|
-
"vitest": "^4.
|
|
35
|
+
"vitest": "^4.1.5",
|
|
36
36
|
"@quikcommit/shared": "5.0.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|