aicq-openclaw-plugin 1.5.4 → 1.5.6
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 +124 -187
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -389,18 +389,18 @@ var require_main = __commonJS({
|
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
|
|
392
|
-
//
|
|
392
|
+
// node_modules/qrcode/lib/can-promise.js
|
|
393
393
|
var require_can_promise = __commonJS({
|
|
394
|
-
"
|
|
394
|
+
"node_modules/qrcode/lib/can-promise.js"(exports, module) {
|
|
395
395
|
module.exports = function() {
|
|
396
396
|
return typeof Promise === "function" && Promise.prototype && Promise.prototype.then;
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
400
|
|
|
401
|
-
//
|
|
401
|
+
// node_modules/qrcode/lib/core/utils.js
|
|
402
402
|
var require_utils = __commonJS({
|
|
403
|
-
"
|
|
403
|
+
"node_modules/qrcode/lib/core/utils.js"(exports) {
|
|
404
404
|
var toSJISFunction;
|
|
405
405
|
var CODEWORDS_COUNT = [
|
|
406
406
|
0,
|
|
@@ -477,9 +477,9 @@ var require_utils = __commonJS({
|
|
|
477
477
|
}
|
|
478
478
|
});
|
|
479
479
|
|
|
480
|
-
//
|
|
480
|
+
// node_modules/qrcode/lib/core/error-correction-level.js
|
|
481
481
|
var require_error_correction_level = __commonJS({
|
|
482
|
-
"
|
|
482
|
+
"node_modules/qrcode/lib/core/error-correction-level.js"(exports) {
|
|
483
483
|
exports.L = { bit: 1 };
|
|
484
484
|
exports.M = { bit: 0 };
|
|
485
485
|
exports.Q = { bit: 3 };
|
|
@@ -522,9 +522,9 @@ var require_error_correction_level = __commonJS({
|
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
|
|
525
|
-
//
|
|
525
|
+
// node_modules/qrcode/lib/core/bit-buffer.js
|
|
526
526
|
var require_bit_buffer = __commonJS({
|
|
527
|
-
"
|
|
527
|
+
"node_modules/qrcode/lib/core/bit-buffer.js"(exports, module) {
|
|
528
528
|
function BitBuffer() {
|
|
529
529
|
this.buffer = [];
|
|
530
530
|
this.length = 0;
|
|
@@ -557,9 +557,9 @@ var require_bit_buffer = __commonJS({
|
|
|
557
557
|
}
|
|
558
558
|
});
|
|
559
559
|
|
|
560
|
-
//
|
|
560
|
+
// node_modules/qrcode/lib/core/bit-matrix.js
|
|
561
561
|
var require_bit_matrix = __commonJS({
|
|
562
|
-
"
|
|
562
|
+
"node_modules/qrcode/lib/core/bit-matrix.js"(exports, module) {
|
|
563
563
|
function BitMatrix(size) {
|
|
564
564
|
if (!size || size < 1) {
|
|
565
565
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -586,9 +586,9 @@ var require_bit_matrix = __commonJS({
|
|
|
586
586
|
}
|
|
587
587
|
});
|
|
588
588
|
|
|
589
|
-
//
|
|
589
|
+
// node_modules/qrcode/lib/core/alignment-pattern.js
|
|
590
590
|
var require_alignment_pattern = __commonJS({
|
|
591
|
-
"
|
|
591
|
+
"node_modules/qrcode/lib/core/alignment-pattern.js"(exports) {
|
|
592
592
|
var getSymbolSize = require_utils().getSymbolSize;
|
|
593
593
|
exports.getRowColCoords = function getRowColCoords(version) {
|
|
594
594
|
if (version === 1) return [];
|
|
@@ -621,9 +621,9 @@ var require_alignment_pattern = __commonJS({
|
|
|
621
621
|
}
|
|
622
622
|
});
|
|
623
623
|
|
|
624
|
-
//
|
|
624
|
+
// node_modules/qrcode/lib/core/finder-pattern.js
|
|
625
625
|
var require_finder_pattern = __commonJS({
|
|
626
|
-
"
|
|
626
|
+
"node_modules/qrcode/lib/core/finder-pattern.js"(exports) {
|
|
627
627
|
var getSymbolSize = require_utils().getSymbolSize;
|
|
628
628
|
var FINDER_PATTERN_SIZE = 7;
|
|
629
629
|
exports.getPositions = function getPositions(version) {
|
|
@@ -640,9 +640,9 @@ var require_finder_pattern = __commonJS({
|
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
642
|
|
|
643
|
-
//
|
|
643
|
+
// node_modules/qrcode/lib/core/mask-pattern.js
|
|
644
644
|
var require_mask_pattern = __commonJS({
|
|
645
|
-
"
|
|
645
|
+
"node_modules/qrcode/lib/core/mask-pattern.js"(exports) {
|
|
646
646
|
exports.Patterns = {
|
|
647
647
|
PATTERN000: 0,
|
|
648
648
|
PATTERN001: 1,
|
|
@@ -782,9 +782,9 @@ var require_mask_pattern = __commonJS({
|
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
|
|
785
|
-
//
|
|
785
|
+
// node_modules/qrcode/lib/core/error-correction-code.js
|
|
786
786
|
var require_error_correction_code = __commonJS({
|
|
787
|
-
"
|
|
787
|
+
"node_modules/qrcode/lib/core/error-correction-code.js"(exports) {
|
|
788
788
|
var ECLevel = require_error_correction_level();
|
|
789
789
|
var EC_BLOCKS_TABLE = [
|
|
790
790
|
// L M Q H
|
|
@@ -1143,9 +1143,9 @@ var require_error_correction_code = __commonJS({
|
|
|
1143
1143
|
}
|
|
1144
1144
|
});
|
|
1145
1145
|
|
|
1146
|
-
//
|
|
1146
|
+
// node_modules/qrcode/lib/core/galois-field.js
|
|
1147
1147
|
var require_galois_field = __commonJS({
|
|
1148
|
-
"
|
|
1148
|
+
"node_modules/qrcode/lib/core/galois-field.js"(exports) {
|
|
1149
1149
|
var EXP_TABLE = new Uint8Array(512);
|
|
1150
1150
|
var LOG_TABLE = new Uint8Array(256);
|
|
1151
1151
|
(function initTables() {
|
|
@@ -1176,9 +1176,9 @@ var require_galois_field = __commonJS({
|
|
|
1176
1176
|
}
|
|
1177
1177
|
});
|
|
1178
1178
|
|
|
1179
|
-
//
|
|
1179
|
+
// node_modules/qrcode/lib/core/polynomial.js
|
|
1180
1180
|
var require_polynomial = __commonJS({
|
|
1181
|
-
"
|
|
1181
|
+
"node_modules/qrcode/lib/core/polynomial.js"(exports) {
|
|
1182
1182
|
var GF = require_galois_field();
|
|
1183
1183
|
exports.mul = function mul(p1, p2) {
|
|
1184
1184
|
const coeff = new Uint8Array(p1.length + p2.length - 1);
|
|
@@ -1212,9 +1212,9 @@ var require_polynomial = __commonJS({
|
|
|
1212
1212
|
}
|
|
1213
1213
|
});
|
|
1214
1214
|
|
|
1215
|
-
//
|
|
1215
|
+
// node_modules/qrcode/lib/core/reed-solomon-encoder.js
|
|
1216
1216
|
var require_reed_solomon_encoder = __commonJS({
|
|
1217
|
-
"
|
|
1217
|
+
"node_modules/qrcode/lib/core/reed-solomon-encoder.js"(exports, module) {
|
|
1218
1218
|
var Polynomial = require_polynomial();
|
|
1219
1219
|
function ReedSolomonEncoder(degree) {
|
|
1220
1220
|
this.genPoly = void 0;
|
|
@@ -1244,18 +1244,18 @@ var require_reed_solomon_encoder = __commonJS({
|
|
|
1244
1244
|
}
|
|
1245
1245
|
});
|
|
1246
1246
|
|
|
1247
|
-
//
|
|
1247
|
+
// node_modules/qrcode/lib/core/version-check.js
|
|
1248
1248
|
var require_version_check = __commonJS({
|
|
1249
|
-
"
|
|
1249
|
+
"node_modules/qrcode/lib/core/version-check.js"(exports) {
|
|
1250
1250
|
exports.isValid = function isValid(version) {
|
|
1251
1251
|
return !isNaN(version) && version >= 1 && version <= 40;
|
|
1252
1252
|
};
|
|
1253
1253
|
}
|
|
1254
1254
|
});
|
|
1255
1255
|
|
|
1256
|
-
//
|
|
1256
|
+
// node_modules/qrcode/lib/core/regex.js
|
|
1257
1257
|
var require_regex = __commonJS({
|
|
1258
|
-
"
|
|
1258
|
+
"node_modules/qrcode/lib/core/regex.js"(exports) {
|
|
1259
1259
|
var numeric = "[0-9]+";
|
|
1260
1260
|
var alphanumeric = "[A-Z $%*+\\-./:]+";
|
|
1261
1261
|
var kanji = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
@@ -1281,9 +1281,9 @@ var require_regex = __commonJS({
|
|
|
1281
1281
|
}
|
|
1282
1282
|
});
|
|
1283
1283
|
|
|
1284
|
-
//
|
|
1284
|
+
// node_modules/qrcode/lib/core/mode.js
|
|
1285
1285
|
var require_mode = __commonJS({
|
|
1286
|
-
"
|
|
1286
|
+
"node_modules/qrcode/lib/core/mode.js"(exports) {
|
|
1287
1287
|
var VersionCheck = require_version_check();
|
|
1288
1288
|
var Regex = require_regex();
|
|
1289
1289
|
exports.NUMERIC = {
|
|
@@ -1362,9 +1362,9 @@ var require_mode = __commonJS({
|
|
|
1362
1362
|
}
|
|
1363
1363
|
});
|
|
1364
1364
|
|
|
1365
|
-
//
|
|
1365
|
+
// node_modules/qrcode/lib/core/version.js
|
|
1366
1366
|
var require_version = __commonJS({
|
|
1367
|
-
"
|
|
1367
|
+
"node_modules/qrcode/lib/core/version.js"(exports) {
|
|
1368
1368
|
var Utils = require_utils();
|
|
1369
1369
|
var ECCode = require_error_correction_code();
|
|
1370
1370
|
var ECLevel = require_error_correction_level();
|
|
@@ -1457,9 +1457,9 @@ var require_version = __commonJS({
|
|
|
1457
1457
|
}
|
|
1458
1458
|
});
|
|
1459
1459
|
|
|
1460
|
-
//
|
|
1460
|
+
// node_modules/qrcode/lib/core/format-info.js
|
|
1461
1461
|
var require_format_info = __commonJS({
|
|
1462
|
-
"
|
|
1462
|
+
"node_modules/qrcode/lib/core/format-info.js"(exports) {
|
|
1463
1463
|
var Utils = require_utils();
|
|
1464
1464
|
var G15 = 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0;
|
|
1465
1465
|
var G15_MASK = 1 << 14 | 1 << 12 | 1 << 10 | 1 << 4 | 1 << 1;
|
|
@@ -1475,9 +1475,9 @@ var require_format_info = __commonJS({
|
|
|
1475
1475
|
}
|
|
1476
1476
|
});
|
|
1477
1477
|
|
|
1478
|
-
//
|
|
1478
|
+
// node_modules/qrcode/lib/core/numeric-data.js
|
|
1479
1479
|
var require_numeric_data = __commonJS({
|
|
1480
|
-
"
|
|
1480
|
+
"node_modules/qrcode/lib/core/numeric-data.js"(exports, module) {
|
|
1481
1481
|
var Mode = require_mode();
|
|
1482
1482
|
function NumericData(data) {
|
|
1483
1483
|
this.mode = Mode.NUMERIC;
|
|
@@ -1510,9 +1510,9 @@ var require_numeric_data = __commonJS({
|
|
|
1510
1510
|
}
|
|
1511
1511
|
});
|
|
1512
1512
|
|
|
1513
|
-
//
|
|
1513
|
+
// node_modules/qrcode/lib/core/alphanumeric-data.js
|
|
1514
1514
|
var require_alphanumeric_data = __commonJS({
|
|
1515
|
-
"
|
|
1515
|
+
"node_modules/qrcode/lib/core/alphanumeric-data.js"(exports, module) {
|
|
1516
1516
|
var Mode = require_mode();
|
|
1517
1517
|
var ALPHA_NUM_CHARS = [
|
|
1518
1518
|
"0",
|
|
@@ -1589,9 +1589,9 @@ var require_alphanumeric_data = __commonJS({
|
|
|
1589
1589
|
}
|
|
1590
1590
|
});
|
|
1591
1591
|
|
|
1592
|
-
//
|
|
1592
|
+
// node_modules/qrcode/lib/core/byte-data.js
|
|
1593
1593
|
var require_byte_data = __commonJS({
|
|
1594
|
-
"
|
|
1594
|
+
"node_modules/qrcode/lib/core/byte-data.js"(exports, module) {
|
|
1595
1595
|
var Mode = require_mode();
|
|
1596
1596
|
function ByteData(data) {
|
|
1597
1597
|
this.mode = Mode.BYTE;
|
|
@@ -1619,9 +1619,9 @@ var require_byte_data = __commonJS({
|
|
|
1619
1619
|
}
|
|
1620
1620
|
});
|
|
1621
1621
|
|
|
1622
|
-
//
|
|
1622
|
+
// node_modules/qrcode/lib/core/kanji-data.js
|
|
1623
1623
|
var require_kanji_data = __commonJS({
|
|
1624
|
-
"
|
|
1624
|
+
"node_modules/qrcode/lib/core/kanji-data.js"(exports, module) {
|
|
1625
1625
|
var Mode = require_mode();
|
|
1626
1626
|
var Utils = require_utils();
|
|
1627
1627
|
function KanjiData(data) {
|
|
@@ -1658,9 +1658,9 @@ var require_kanji_data = __commonJS({
|
|
|
1658
1658
|
}
|
|
1659
1659
|
});
|
|
1660
1660
|
|
|
1661
|
-
//
|
|
1661
|
+
// node_modules/dijkstrajs/dijkstra.js
|
|
1662
1662
|
var require_dijkstra = __commonJS({
|
|
1663
|
-
"
|
|
1663
|
+
"node_modules/dijkstrajs/dijkstra.js"(exports, module) {
|
|
1664
1664
|
"use strict";
|
|
1665
1665
|
var dijkstra = {
|
|
1666
1666
|
single_source_shortest_paths: function(graph, s, d) {
|
|
@@ -1759,9 +1759,9 @@ var require_dijkstra = __commonJS({
|
|
|
1759
1759
|
}
|
|
1760
1760
|
});
|
|
1761
1761
|
|
|
1762
|
-
//
|
|
1762
|
+
// node_modules/qrcode/lib/core/segments.js
|
|
1763
1763
|
var require_segments = __commonJS({
|
|
1764
|
-
"
|
|
1764
|
+
"node_modules/qrcode/lib/core/segments.js"(exports) {
|
|
1765
1765
|
var Mode = require_mode();
|
|
1766
1766
|
var NumericData = require_numeric_data();
|
|
1767
1767
|
var AlphanumericData = require_alphanumeric_data();
|
|
@@ -1945,9 +1945,9 @@ var require_segments = __commonJS({
|
|
|
1945
1945
|
}
|
|
1946
1946
|
});
|
|
1947
1947
|
|
|
1948
|
-
//
|
|
1948
|
+
// node_modules/qrcode/lib/core/qrcode.js
|
|
1949
1949
|
var require_qrcode = __commonJS({
|
|
1950
|
-
"
|
|
1950
|
+
"node_modules/qrcode/lib/core/qrcode.js"(exports) {
|
|
1951
1951
|
var Utils = require_utils();
|
|
1952
1952
|
var ECLevel = require_error_correction_level();
|
|
1953
1953
|
var BitBuffer = require_bit_buffer();
|
|
@@ -2206,9 +2206,9 @@ var require_qrcode = __commonJS({
|
|
|
2206
2206
|
}
|
|
2207
2207
|
});
|
|
2208
2208
|
|
|
2209
|
-
//
|
|
2209
|
+
// node_modules/pngjs/lib/chunkstream.js
|
|
2210
2210
|
var require_chunkstream = __commonJS({
|
|
2211
|
-
"
|
|
2211
|
+
"node_modules/pngjs/lib/chunkstream.js"(exports, module) {
|
|
2212
2212
|
"use strict";
|
|
2213
2213
|
var util = __require("util");
|
|
2214
2214
|
var Stream = __require("stream");
|
|
@@ -2344,9 +2344,9 @@ var require_chunkstream = __commonJS({
|
|
|
2344
2344
|
}
|
|
2345
2345
|
});
|
|
2346
2346
|
|
|
2347
|
-
//
|
|
2347
|
+
// node_modules/pngjs/lib/interlace.js
|
|
2348
2348
|
var require_interlace = __commonJS({
|
|
2349
|
-
"
|
|
2349
|
+
"node_modules/pngjs/lib/interlace.js"(exports) {
|
|
2350
2350
|
"use strict";
|
|
2351
2351
|
var imagePasses = [
|
|
2352
2352
|
{
|
|
@@ -2427,9 +2427,9 @@ var require_interlace = __commonJS({
|
|
|
2427
2427
|
}
|
|
2428
2428
|
});
|
|
2429
2429
|
|
|
2430
|
-
//
|
|
2430
|
+
// node_modules/pngjs/lib/paeth-predictor.js
|
|
2431
2431
|
var require_paeth_predictor = __commonJS({
|
|
2432
|
-
"
|
|
2432
|
+
"node_modules/pngjs/lib/paeth-predictor.js"(exports, module) {
|
|
2433
2433
|
"use strict";
|
|
2434
2434
|
module.exports = function paethPredictor(left, above, upLeft) {
|
|
2435
2435
|
let paeth = left + above - upLeft;
|
|
@@ -2447,9 +2447,9 @@ var require_paeth_predictor = __commonJS({
|
|
|
2447
2447
|
}
|
|
2448
2448
|
});
|
|
2449
2449
|
|
|
2450
|
-
//
|
|
2450
|
+
// node_modules/pngjs/lib/filter-parse.js
|
|
2451
2451
|
var require_filter_parse = __commonJS({
|
|
2452
|
-
"
|
|
2452
|
+
"node_modules/pngjs/lib/filter-parse.js"(exports, module) {
|
|
2453
2453
|
"use strict";
|
|
2454
2454
|
var interlaceUtils = require_interlace();
|
|
2455
2455
|
var paethPredictor = require_paeth_predictor();
|
|
@@ -2588,9 +2588,9 @@ var require_filter_parse = __commonJS({
|
|
|
2588
2588
|
}
|
|
2589
2589
|
});
|
|
2590
2590
|
|
|
2591
|
-
//
|
|
2591
|
+
// node_modules/pngjs/lib/filter-parse-async.js
|
|
2592
2592
|
var require_filter_parse_async = __commonJS({
|
|
2593
|
-
"
|
|
2593
|
+
"node_modules/pngjs/lib/filter-parse-async.js"(exports, module) {
|
|
2594
2594
|
"use strict";
|
|
2595
2595
|
var util = __require("util");
|
|
2596
2596
|
var ChunkStream = require_chunkstream();
|
|
@@ -2614,9 +2614,9 @@ var require_filter_parse_async = __commonJS({
|
|
|
2614
2614
|
}
|
|
2615
2615
|
});
|
|
2616
2616
|
|
|
2617
|
-
//
|
|
2617
|
+
// node_modules/pngjs/lib/constants.js
|
|
2618
2618
|
var require_constants = __commonJS({
|
|
2619
|
-
"
|
|
2619
|
+
"node_modules/pngjs/lib/constants.js"(exports, module) {
|
|
2620
2620
|
"use strict";
|
|
2621
2621
|
module.exports = {
|
|
2622
2622
|
PNG_SIGNATURE: [137, 80, 78, 71, 13, 10, 26, 10],
|
|
@@ -2649,9 +2649,9 @@ var require_constants = __commonJS({
|
|
|
2649
2649
|
}
|
|
2650
2650
|
});
|
|
2651
2651
|
|
|
2652
|
-
//
|
|
2652
|
+
// node_modules/pngjs/lib/crc.js
|
|
2653
2653
|
var require_crc = __commonJS({
|
|
2654
|
-
"
|
|
2654
|
+
"node_modules/pngjs/lib/crc.js"(exports, module) {
|
|
2655
2655
|
"use strict";
|
|
2656
2656
|
var crcTable = [];
|
|
2657
2657
|
(function() {
|
|
@@ -2689,9 +2689,9 @@ var require_crc = __commonJS({
|
|
|
2689
2689
|
}
|
|
2690
2690
|
});
|
|
2691
2691
|
|
|
2692
|
-
//
|
|
2692
|
+
// node_modules/pngjs/lib/parser.js
|
|
2693
2693
|
var require_parser = __commonJS({
|
|
2694
|
-
"
|
|
2694
|
+
"node_modules/pngjs/lib/parser.js"(exports, module) {
|
|
2695
2695
|
"use strict";
|
|
2696
2696
|
var constants = require_constants();
|
|
2697
2697
|
var CrcCalculator = require_crc();
|
|
@@ -2910,9 +2910,9 @@ var require_parser = __commonJS({
|
|
|
2910
2910
|
}
|
|
2911
2911
|
});
|
|
2912
2912
|
|
|
2913
|
-
//
|
|
2913
|
+
// node_modules/pngjs/lib/bitmapper.js
|
|
2914
2914
|
var require_bitmapper = __commonJS({
|
|
2915
|
-
"
|
|
2915
|
+
"node_modules/pngjs/lib/bitmapper.js"(exports) {
|
|
2916
2916
|
"use strict";
|
|
2917
2917
|
var interlaceUtils = require_interlace();
|
|
2918
2918
|
var pixelBppMapper = [
|
|
@@ -3158,9 +3158,9 @@ var require_bitmapper = __commonJS({
|
|
|
3158
3158
|
}
|
|
3159
3159
|
});
|
|
3160
3160
|
|
|
3161
|
-
//
|
|
3161
|
+
// node_modules/pngjs/lib/format-normaliser.js
|
|
3162
3162
|
var require_format_normaliser = __commonJS({
|
|
3163
|
-
"
|
|
3163
|
+
"node_modules/pngjs/lib/format-normaliser.js"(exports, module) {
|
|
3164
3164
|
"use strict";
|
|
3165
3165
|
function dePalette(indata, outdata, width, height, palette) {
|
|
3166
3166
|
let pxPos = 0;
|
|
@@ -3239,9 +3239,9 @@ var require_format_normaliser = __commonJS({
|
|
|
3239
3239
|
}
|
|
3240
3240
|
});
|
|
3241
3241
|
|
|
3242
|
-
//
|
|
3242
|
+
// node_modules/pngjs/lib/parser-async.js
|
|
3243
3243
|
var require_parser_async = __commonJS({
|
|
3244
|
-
"
|
|
3244
|
+
"node_modules/pngjs/lib/parser-async.js"(exports, module) {
|
|
3245
3245
|
"use strict";
|
|
3246
3246
|
var util = __require("util");
|
|
3247
3247
|
var zlib = __require("zlib");
|
|
@@ -3365,9 +3365,9 @@ var require_parser_async = __commonJS({
|
|
|
3365
3365
|
}
|
|
3366
3366
|
});
|
|
3367
3367
|
|
|
3368
|
-
//
|
|
3368
|
+
// node_modules/pngjs/lib/bitpacker.js
|
|
3369
3369
|
var require_bitpacker = __commonJS({
|
|
3370
|
-
"
|
|
3370
|
+
"node_modules/pngjs/lib/bitpacker.js"(exports, module) {
|
|
3371
3371
|
"use strict";
|
|
3372
3372
|
var constants = require_constants();
|
|
3373
3373
|
module.exports = function(dataIn, width, height, options) {
|
|
@@ -3515,9 +3515,9 @@ var require_bitpacker = __commonJS({
|
|
|
3515
3515
|
}
|
|
3516
3516
|
});
|
|
3517
3517
|
|
|
3518
|
-
//
|
|
3518
|
+
// node_modules/pngjs/lib/filter-pack.js
|
|
3519
3519
|
var require_filter_pack = __commonJS({
|
|
3520
|
-
"
|
|
3520
|
+
"node_modules/pngjs/lib/filter-pack.js"(exports, module) {
|
|
3521
3521
|
"use strict";
|
|
3522
3522
|
var paethPredictor = require_paeth_predictor();
|
|
3523
3523
|
function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) {
|
|
@@ -3657,9 +3657,9 @@ var require_filter_pack = __commonJS({
|
|
|
3657
3657
|
}
|
|
3658
3658
|
});
|
|
3659
3659
|
|
|
3660
|
-
//
|
|
3660
|
+
// node_modules/pngjs/lib/packer.js
|
|
3661
3661
|
var require_packer = __commonJS({
|
|
3662
|
-
"
|
|
3662
|
+
"node_modules/pngjs/lib/packer.js"(exports, module) {
|
|
3663
3663
|
"use strict";
|
|
3664
3664
|
var constants = require_constants();
|
|
3665
3665
|
var CrcStream = require_crc();
|
|
@@ -3757,9 +3757,9 @@ var require_packer = __commonJS({
|
|
|
3757
3757
|
}
|
|
3758
3758
|
});
|
|
3759
3759
|
|
|
3760
|
-
//
|
|
3760
|
+
// node_modules/pngjs/lib/packer-async.js
|
|
3761
3761
|
var require_packer_async = __commonJS({
|
|
3762
|
-
"
|
|
3762
|
+
"node_modules/pngjs/lib/packer-async.js"(exports, module) {
|
|
3763
3763
|
"use strict";
|
|
3764
3764
|
var util = __require("util");
|
|
3765
3765
|
var Stream = __require("stream");
|
|
@@ -3799,9 +3799,9 @@ var require_packer_async = __commonJS({
|
|
|
3799
3799
|
}
|
|
3800
3800
|
});
|
|
3801
3801
|
|
|
3802
|
-
//
|
|
3802
|
+
// node_modules/pngjs/lib/sync-inflate.js
|
|
3803
3803
|
var require_sync_inflate = __commonJS({
|
|
3804
|
-
"
|
|
3804
|
+
"node_modules/pngjs/lib/sync-inflate.js"(exports, module) {
|
|
3805
3805
|
"use strict";
|
|
3806
3806
|
var assert = __require("assert").ok;
|
|
3807
3807
|
var zlib = __require("zlib");
|
|
@@ -3936,9 +3936,9 @@ var require_sync_inflate = __commonJS({
|
|
|
3936
3936
|
}
|
|
3937
3937
|
});
|
|
3938
3938
|
|
|
3939
|
-
//
|
|
3939
|
+
// node_modules/pngjs/lib/sync-reader.js
|
|
3940
3940
|
var require_sync_reader = __commonJS({
|
|
3941
|
-
"
|
|
3941
|
+
"node_modules/pngjs/lib/sync-reader.js"(exports, module) {
|
|
3942
3942
|
"use strict";
|
|
3943
3943
|
var SyncReader = module.exports = function(buffer) {
|
|
3944
3944
|
this._buffer = buffer;
|
|
@@ -3974,9 +3974,9 @@ var require_sync_reader = __commonJS({
|
|
|
3974
3974
|
}
|
|
3975
3975
|
});
|
|
3976
3976
|
|
|
3977
|
-
//
|
|
3977
|
+
// node_modules/pngjs/lib/filter-parse-sync.js
|
|
3978
3978
|
var require_filter_parse_sync = __commonJS({
|
|
3979
|
-
"
|
|
3979
|
+
"node_modules/pngjs/lib/filter-parse-sync.js"(exports) {
|
|
3980
3980
|
"use strict";
|
|
3981
3981
|
var SyncReader = require_sync_reader();
|
|
3982
3982
|
var Filter = require_filter_parse();
|
|
@@ -3998,9 +3998,9 @@ var require_filter_parse_sync = __commonJS({
|
|
|
3998
3998
|
}
|
|
3999
3999
|
});
|
|
4000
4000
|
|
|
4001
|
-
//
|
|
4001
|
+
// node_modules/pngjs/lib/parser-sync.js
|
|
4002
4002
|
var require_parser_sync = __commonJS({
|
|
4003
|
-
"
|
|
4003
|
+
"node_modules/pngjs/lib/parser-sync.js"(exports, module) {
|
|
4004
4004
|
"use strict";
|
|
4005
4005
|
var hasSyncZlib = true;
|
|
4006
4006
|
var zlib = __require("zlib");
|
|
@@ -4089,9 +4089,9 @@ var require_parser_sync = __commonJS({
|
|
|
4089
4089
|
}
|
|
4090
4090
|
});
|
|
4091
4091
|
|
|
4092
|
-
//
|
|
4092
|
+
// node_modules/pngjs/lib/packer-sync.js
|
|
4093
4093
|
var require_packer_sync = __commonJS({
|
|
4094
|
-
"
|
|
4094
|
+
"node_modules/pngjs/lib/packer-sync.js"(exports, module) {
|
|
4095
4095
|
"use strict";
|
|
4096
4096
|
var hasSyncZlib = true;
|
|
4097
4097
|
var zlib = __require("zlib");
|
|
@@ -4134,9 +4134,9 @@ var require_packer_sync = __commonJS({
|
|
|
4134
4134
|
}
|
|
4135
4135
|
});
|
|
4136
4136
|
|
|
4137
|
-
//
|
|
4137
|
+
// node_modules/pngjs/lib/png-sync.js
|
|
4138
4138
|
var require_png_sync = __commonJS({
|
|
4139
|
-
"
|
|
4139
|
+
"node_modules/pngjs/lib/png-sync.js"(exports) {
|
|
4140
4140
|
"use strict";
|
|
4141
4141
|
var parse = require_parser_sync();
|
|
4142
4142
|
var pack = require_packer_sync();
|
|
@@ -4149,9 +4149,9 @@ var require_png_sync = __commonJS({
|
|
|
4149
4149
|
}
|
|
4150
4150
|
});
|
|
4151
4151
|
|
|
4152
|
-
//
|
|
4152
|
+
// node_modules/pngjs/lib/png.js
|
|
4153
4153
|
var require_png = __commonJS({
|
|
4154
|
-
"
|
|
4154
|
+
"node_modules/pngjs/lib/png.js"(exports) {
|
|
4155
4155
|
"use strict";
|
|
4156
4156
|
var util = __require("util");
|
|
4157
4157
|
var Stream = __require("stream");
|
|
@@ -4286,9 +4286,9 @@ var require_png = __commonJS({
|
|
|
4286
4286
|
}
|
|
4287
4287
|
});
|
|
4288
4288
|
|
|
4289
|
-
//
|
|
4289
|
+
// node_modules/qrcode/lib/renderer/utils.js
|
|
4290
4290
|
var require_utils2 = __commonJS({
|
|
4291
|
-
"
|
|
4291
|
+
"node_modules/qrcode/lib/renderer/utils.js"(exports) {
|
|
4292
4292
|
function hex2rgba(hex) {
|
|
4293
4293
|
if (typeof hex === "number") {
|
|
4294
4294
|
hex = hex.toString();
|
|
@@ -4366,9 +4366,9 @@ var require_utils2 = __commonJS({
|
|
|
4366
4366
|
}
|
|
4367
4367
|
});
|
|
4368
4368
|
|
|
4369
|
-
//
|
|
4369
|
+
// node_modules/qrcode/lib/renderer/png.js
|
|
4370
4370
|
var require_png2 = __commonJS({
|
|
4371
|
-
"
|
|
4371
|
+
"node_modules/qrcode/lib/renderer/png.js"(exports) {
|
|
4372
4372
|
var fs6 = __require("fs");
|
|
4373
4373
|
var PNG = require_png().PNG;
|
|
4374
4374
|
var Utils = require_utils2();
|
|
@@ -4433,9 +4433,9 @@ var require_png2 = __commonJS({
|
|
|
4433
4433
|
}
|
|
4434
4434
|
});
|
|
4435
4435
|
|
|
4436
|
-
//
|
|
4436
|
+
// node_modules/qrcode/lib/renderer/utf8.js
|
|
4437
4437
|
var require_utf8 = __commonJS({
|
|
4438
|
-
"
|
|
4438
|
+
"node_modules/qrcode/lib/renderer/utf8.js"(exports) {
|
|
4439
4439
|
var Utils = require_utils2();
|
|
4440
4440
|
var BLOCK_CHAR = {
|
|
4441
4441
|
WW: " ",
|
|
@@ -4495,9 +4495,9 @@ var require_utf8 = __commonJS({
|
|
|
4495
4495
|
}
|
|
4496
4496
|
});
|
|
4497
4497
|
|
|
4498
|
-
//
|
|
4498
|
+
// node_modules/qrcode/lib/renderer/terminal/terminal.js
|
|
4499
4499
|
var require_terminal = __commonJS({
|
|
4500
|
-
"
|
|
4500
|
+
"node_modules/qrcode/lib/renderer/terminal/terminal.js"(exports) {
|
|
4501
4501
|
exports.render = function(qrData, options, cb) {
|
|
4502
4502
|
const size = qrData.modules.size;
|
|
4503
4503
|
const data = qrData.modules.data;
|
|
@@ -4523,9 +4523,9 @@ var require_terminal = __commonJS({
|
|
|
4523
4523
|
}
|
|
4524
4524
|
});
|
|
4525
4525
|
|
|
4526
|
-
//
|
|
4526
|
+
// node_modules/qrcode/lib/renderer/terminal/terminal-small.js
|
|
4527
4527
|
var require_terminal_small = __commonJS({
|
|
4528
|
-
"
|
|
4528
|
+
"node_modules/qrcode/lib/renderer/terminal/terminal-small.js"(exports) {
|
|
4529
4529
|
var backgroundWhite = "\x1B[47m";
|
|
4530
4530
|
var backgroundBlack = "\x1B[40m";
|
|
4531
4531
|
var foregroundWhite = "\x1B[37m";
|
|
@@ -4582,9 +4582,9 @@ var require_terminal_small = __commonJS({
|
|
|
4582
4582
|
}
|
|
4583
4583
|
});
|
|
4584
4584
|
|
|
4585
|
-
//
|
|
4585
|
+
// node_modules/qrcode/lib/renderer/terminal.js
|
|
4586
4586
|
var require_terminal2 = __commonJS({
|
|
4587
|
-
"
|
|
4587
|
+
"node_modules/qrcode/lib/renderer/terminal.js"(exports) {
|
|
4588
4588
|
var big = require_terminal();
|
|
4589
4589
|
var small = require_terminal_small();
|
|
4590
4590
|
exports.render = function(qrData, options, cb) {
|
|
@@ -4596,9 +4596,9 @@ var require_terminal2 = __commonJS({
|
|
|
4596
4596
|
}
|
|
4597
4597
|
});
|
|
4598
4598
|
|
|
4599
|
-
//
|
|
4599
|
+
// node_modules/qrcode/lib/renderer/svg-tag.js
|
|
4600
4600
|
var require_svg_tag = __commonJS({
|
|
4601
|
-
"
|
|
4601
|
+
"node_modules/qrcode/lib/renderer/svg-tag.js"(exports) {
|
|
4602
4602
|
var Utils = require_utils2();
|
|
4603
4603
|
function getColorAttrib(color, attrib) {
|
|
4604
4604
|
const alpha = color.a / 255;
|
|
@@ -4654,9 +4654,9 @@ var require_svg_tag = __commonJS({
|
|
|
4654
4654
|
}
|
|
4655
4655
|
});
|
|
4656
4656
|
|
|
4657
|
-
//
|
|
4657
|
+
// node_modules/qrcode/lib/renderer/svg.js
|
|
4658
4658
|
var require_svg = __commonJS({
|
|
4659
|
-
"
|
|
4659
|
+
"node_modules/qrcode/lib/renderer/svg.js"(exports) {
|
|
4660
4660
|
var svgTagRenderer = require_svg_tag();
|
|
4661
4661
|
exports.render = svgTagRenderer.render;
|
|
4662
4662
|
exports.renderToFile = function renderToFile(path7, qrData, options, cb) {
|
|
@@ -4672,9 +4672,9 @@ var require_svg = __commonJS({
|
|
|
4672
4672
|
}
|
|
4673
4673
|
});
|
|
4674
4674
|
|
|
4675
|
-
//
|
|
4675
|
+
// node_modules/qrcode/lib/renderer/canvas.js
|
|
4676
4676
|
var require_canvas = __commonJS({
|
|
4677
|
-
"
|
|
4677
|
+
"node_modules/qrcode/lib/renderer/canvas.js"(exports) {
|
|
4678
4678
|
var Utils = require_utils2();
|
|
4679
4679
|
function clearCanvas(ctx, canvas, size) {
|
|
4680
4680
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
@@ -4725,9 +4725,9 @@ var require_canvas = __commonJS({
|
|
|
4725
4725
|
}
|
|
4726
4726
|
});
|
|
4727
4727
|
|
|
4728
|
-
//
|
|
4728
|
+
// node_modules/qrcode/lib/browser.js
|
|
4729
4729
|
var require_browser = __commonJS({
|
|
4730
|
-
"
|
|
4730
|
+
"node_modules/qrcode/lib/browser.js"(exports) {
|
|
4731
4731
|
var canPromise = require_can_promise();
|
|
4732
4732
|
var QRCode2 = require_qrcode();
|
|
4733
4733
|
var CanvasRenderer = require_canvas();
|
|
@@ -4795,9 +4795,9 @@ var require_browser = __commonJS({
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
|
|
4798
|
-
//
|
|
4798
|
+
// node_modules/qrcode/lib/server.js
|
|
4799
4799
|
var require_server = __commonJS({
|
|
4800
|
-
"
|
|
4800
|
+
"node_modules/qrcode/lib/server.js"(exports) {
|
|
4801
4801
|
var canPromise = require_can_promise();
|
|
4802
4802
|
var QRCode2 = require_qrcode();
|
|
4803
4803
|
var PngRenderer = require_png2();
|
|
@@ -4915,9 +4915,9 @@ var require_server = __commonJS({
|
|
|
4915
4915
|
}
|
|
4916
4916
|
});
|
|
4917
4917
|
|
|
4918
|
-
//
|
|
4918
|
+
// node_modules/qrcode/lib/index.js
|
|
4919
4919
|
var require_lib = __commonJS({
|
|
4920
|
-
"
|
|
4920
|
+
"node_modules/qrcode/lib/index.js"(exports, module) {
|
|
4921
4921
|
module.exports = require_server();
|
|
4922
4922
|
}
|
|
4923
4923
|
});
|
|
@@ -8648,7 +8648,7 @@ var ServerClient = class {
|
|
|
8648
8648
|
this.ws.terminate();
|
|
8649
8649
|
}
|
|
8650
8650
|
}, this.config.requestTimeoutMs);
|
|
8651
|
-
this.ws.on("open",
|
|
8651
|
+
this.ws.on("open", () => {
|
|
8652
8652
|
clearTimeout(connectTimeout);
|
|
8653
8653
|
this.wsConnected = true;
|
|
8654
8654
|
this.reconnectDelay = this.config.initialReconnectDelay;
|
|
@@ -8656,22 +8656,13 @@ var ServerClient = class {
|
|
|
8656
8656
|
this.connectStartTimestamp = 0;
|
|
8657
8657
|
this.hourlyCheckMode = false;
|
|
8658
8658
|
this.cancelHourlyCheck();
|
|
8659
|
-
this.logger.info("[Server] WebSocket connected");
|
|
8660
|
-
if (!this.authToken) {
|
|
8661
|
-
this.logger.info("[Server] No auth token \u2014 attempting agent authentication...");
|
|
8662
|
-
const authed = await this.authenticateAsAgent();
|
|
8663
|
-
if (!authed) {
|
|
8664
|
-
this.logger.warn("[Server] Agent auth failed on reconnect \u2014 closing socket");
|
|
8665
|
-
this.ws?.close(1008, "Auth required");
|
|
8666
|
-
return;
|
|
8667
|
-
}
|
|
8668
|
-
}
|
|
8669
8659
|
this.setConnectionState("online");
|
|
8660
|
+
this.logger.info("[Server] WebSocket connected");
|
|
8670
8661
|
this.wsSend({
|
|
8671
8662
|
type: "online",
|
|
8672
8663
|
nodeId: this.store.agentId,
|
|
8673
8664
|
publicKey: Buffer.from(this.store.identityKeys.publicKey).toString("base64"),
|
|
8674
|
-
token: this.authToken
|
|
8665
|
+
...this.authToken ? { token: this.authToken } : {}
|
|
8675
8666
|
});
|
|
8676
8667
|
this.startHeartbeat();
|
|
8677
8668
|
});
|
|
@@ -8821,47 +8812,6 @@ var ServerClient = class {
|
|
|
8821
8812
|
// ----------------------------------------------------------------
|
|
8822
8813
|
// REST API methods
|
|
8823
8814
|
// ----------------------------------------------------------------
|
|
8824
|
-
/**
|
|
8825
|
-
* Authenticate as an AI Agent using challenge-response.
|
|
8826
|
-
*
|
|
8827
|
-
* Flow:
|
|
8828
|
-
* 1. POST /api/v1/auth/challenge → get challenge + challengeId
|
|
8829
|
-
* 2. Sign challenge with Ed25519 private key
|
|
8830
|
-
* 3. POST /api/v1/auth/login-agent → get JWT token
|
|
8831
|
-
*
|
|
8832
|
-
* Returns true if authentication succeeded and token was set.
|
|
8833
|
-
*/
|
|
8834
|
-
async authenticateAsAgent() {
|
|
8835
|
-
const publicKeyBase64 = Buffer.from(this.store.identityKeys.publicKey).toString("base64");
|
|
8836
|
-
const challengeResp = await this.fetchPost("/api/v1/auth/challenge", {
|
|
8837
|
-
publicKey: publicKeyBase64
|
|
8838
|
-
});
|
|
8839
|
-
if (!challengeResp?.challenge || !challengeResp?.challengeId) {
|
|
8840
|
-
this.logger.warn("[Server] Failed to request agent challenge");
|
|
8841
|
-
return false;
|
|
8842
|
-
}
|
|
8843
|
-
let signature;
|
|
8844
|
-
try {
|
|
8845
|
-
const message = Buffer.from(challengeResp.challenge, "utf8");
|
|
8846
|
-
const nacl3 = await Promise.resolve().then(() => __toESM(require_nacl_fast(), 1));
|
|
8847
|
-
signature = nacl3.sign.detached(message, this.store.identityKeys.secretKey);
|
|
8848
|
-
} catch (err) {
|
|
8849
|
-
this.logger.error("[Server] Failed to sign challenge:", err);
|
|
8850
|
-
return false;
|
|
8851
|
-
}
|
|
8852
|
-
const loginResp = await this.fetchPost("/api/v1/auth/login-agent", {
|
|
8853
|
-
publicKey: publicKeyBase64,
|
|
8854
|
-
signature: Buffer.from(signature).toString("base64"),
|
|
8855
|
-
challengeId: challengeResp.challengeId
|
|
8856
|
-
});
|
|
8857
|
-
if (!loginResp?.session?.token) {
|
|
8858
|
-
this.logger.warn("[Server] Agent login failed \u2014 no token in response");
|
|
8859
|
-
return false;
|
|
8860
|
-
}
|
|
8861
|
-
this.setAuthToken(loginResp.session.token);
|
|
8862
|
-
this.logger.info("[Server] Agent authenticated successfully");
|
|
8863
|
-
return true;
|
|
8864
|
-
}
|
|
8865
8815
|
/**
|
|
8866
8816
|
* Register this node on the server.
|
|
8867
8817
|
* Captures JWT token from response if returned.
|
|
@@ -15219,24 +15169,11 @@ var plugin = definePluginEntry({
|
|
|
15219
15169
|
}
|
|
15220
15170
|
const serverUrl = config2.serverUrl;
|
|
15221
15171
|
const aicqAgentId = identityService.getAgentId();
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
logger.info("[Init] Agent authentication successful");
|
|
15228
|
-
} else {
|
|
15229
|
-
logger.warn("[Init] Agent authentication failed \u2014 will retry on reconnect");
|
|
15230
|
-
}
|
|
15231
|
-
} catch (e) {
|
|
15232
|
-
logger.warn("[Init] Agent auth error: " + (e instanceof Error ? e.message : e));
|
|
15233
|
-
}
|
|
15234
|
-
try {
|
|
15235
|
-
serverClient.connectWebSocket();
|
|
15236
|
-
} catch (e) {
|
|
15237
|
-
logger.warn("[Init] WS connect failed: " + (e instanceof Error ? e.message : e));
|
|
15238
|
-
}
|
|
15239
|
-
})();
|
|
15172
|
+
try {
|
|
15173
|
+
serverClient.connectWebSocket();
|
|
15174
|
+
} catch (e) {
|
|
15175
|
+
logger.warn("[Init] WS connect failed: " + (e instanceof Error ? e.message : e));
|
|
15176
|
+
}
|
|
15240
15177
|
serverClient.onConnectionStateChange((newState, prevState) => {
|
|
15241
15178
|
logger.info("[Init] Connection state changed: " + prevState + " \u2192 " + newState);
|
|
15242
15179
|
});
|
package/package.json
CHANGED