@dscord/daemon 0.1.40 → 0.1.42

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.
Files changed (3) hide show
  1. package/dist/chat-bridge.js +1997 -1983
  2. package/dist/index.js +10025 -9967
  3. package/package.json +1 -1
@@ -1,47 +1,22 @@
1
- const _0x229703 = _0x549d;
2
- function _0x549d(_0x3d5b8a, _0x50d6b1) {
3
- _0x3d5b8a = _0x3d5b8a - 0x12e;
4
- const _0x3714e7 = _0x3714();
5
- let _0x549dd3 = _0x3714e7[_0x3d5b8a];
6
- if (_0x549d['uFnONq'] === undefined) {
7
- var _0x1f3c1d = function (_0x1ceafb) {
8
- const _0x186803 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
9
- let _0x6a3a2 = '', _0x415160 = '';
10
- for (let _0x3a8677 = 0x0, _0x477624, _0x402af4, _0xf5bb55 = 0x0; _0x402af4 = _0x1ceafb['charAt'](_0xf5bb55++); ~_0x402af4 && (_0x477624 = _0x3a8677 % 0x4 ? _0x477624 * 0x40 + _0x402af4 : _0x402af4, _0x3a8677++ % 0x4) ? _0x6a3a2 += String['fromCharCode'](0xff & _0x477624 >> (-0x2 * _0x3a8677 & 0x6)) : 0x0) {
11
- _0x402af4 = _0x186803['indexOf'](_0x402af4);
12
- }
13
- for (let _0x21cce9 = 0x0, _0x7bed47 = _0x6a3a2['length']; _0x21cce9 < _0x7bed47; _0x21cce9++) {
14
- _0x415160 += '%' + ('00' + _0x6a3a2['charCodeAt'](_0x21cce9)['toString'](0x10))['slice'](-0x2);
15
- }
16
- return decodeURIComponent(_0x415160);
17
- };
18
- _0x549d['VBUUbz'] = _0x1f3c1d, _0x549d['CbpQxY'] = {}, _0x549d['uFnONq'] = !![];
19
- }
20
- const _0xa42e70 = _0x3714e7[0x0], _0xc3249a = _0x3d5b8a + _0xa42e70, _0x584a27 = _0x549d['CbpQxY'][_0xc3249a];
21
- return !_0x584a27 ? (_0x549dd3 = _0x549d['VBUUbz'](_0x549dd3), _0x549d['CbpQxY'][_0xc3249a] = _0x549dd3) : _0x549dd3 = _0x584a27, _0x549dd3;
22
- }
23
- (function (_0x31fbef, _0x283784) {
24
- const _0x49ccf0 = {
25
- _0x13e12b: 0x149,
26
- _0x23e515: 0x245,
27
- _0x1b37c2: 0x254,
28
- _0x42865f: 0x27a,
29
- _0xbf5676: 0x175,
30
- _0x114fb6: 0x286,
31
- _0x533636: 0x26a
32
- }, _0x470ee0 = _0x549d, _0x3f90a2 = _0x31fbef();
1
+ const _0x2d2fb4 = _0x101e;
2
+ (function (_0x3417c5, _0x43fe23) {
3
+ const _0x239099 = {
4
+ _0xe16f0e: 0x359,
5
+ _0x29677a: 0x2a8,
6
+ _0x10178f: 0x368
7
+ }, _0x3fdf61 = _0x101e, _0x5ad5c0 = _0x3417c5();
33
8
  while (!![]) {
34
9
  try {
35
- const _0x21d5cc = -parseInt(_0x470ee0(_0x49ccf0._0x13e12b)) / 0x1 + parseInt(_0x470ee0(_0x49ccf0._0x23e515)) / 0x2 + parseInt(_0x470ee0(_0x49ccf0._0x1b37c2)) / 0x3 + parseInt(_0x470ee0(_0x49ccf0._0x42865f)) / 0x4 + parseInt(_0x470ee0(_0x49ccf0._0xbf5676)) / 0x5 * (parseInt(_0x470ee0(_0x49ccf0._0x114fb6)) / 0x6) + -parseInt(_0x470ee0(0x24c)) / 0x7 * (-parseInt(_0x470ee0(0x1ae)) / 0x8) + parseInt(_0x470ee0(0x1f4)) / 0x9 * (-parseInt(_0x470ee0(_0x49ccf0._0x533636)) / 0xa);
36
- if (_0x21d5cc === _0x283784)
10
+ const _0x1365d7 = parseInt(_0x3fdf61(0x220)) / 0x1 + parseInt(_0x3fdf61(0x32a)) / 0x2 * (-parseInt(_0x3fdf61(0x247)) / 0x3) + -parseInt(_0x3fdf61(0x2fc)) / 0x4 + parseInt(_0x3fdf61(_0x239099._0xe16f0e)) / 0x5 + -parseInt(_0x3fdf61(0x203)) / 0x6 * (parseInt(_0x3fdf61(_0x239099._0x29677a)) / 0x7) + parseInt(_0x3fdf61(0x24e)) / 0x8 + parseInt(_0x3fdf61(_0x239099._0x10178f)) / 0x9 * (parseInt(_0x3fdf61(0x346)) / 0xa);
11
+ if (_0x1365d7 === _0x43fe23)
37
12
  break;
38
13
  else
39
- _0x3f90a2['push'](_0x3f90a2['shift']());
40
- } catch (_0x1be731) {
41
- _0x3f90a2['push'](_0x3f90a2['shift']());
14
+ _0x5ad5c0['push'](_0x5ad5c0['shift']());
15
+ } catch (_0x1adba8) {
16
+ _0x5ad5c0['push'](_0x5ad5c0['shift']());
42
17
  }
43
18
  }
44
- }(_0x3714, 0x628ad));
19
+ }(_0x11ab, 0x3f8b2));
45
20
  import { pathToFileURL } from 'node:url';
46
21
  import {
47
22
  mkdir,
@@ -51,82 +26,106 @@ import {
51
26
  writeFile
52
27
  } from 'node:fs/promises';
53
28
  import { homedir } from 'node:os';
54
- import _0x6a3a2 from 'node:path';
29
+ function _0x101e(_0x196b2f, _0x15e17e) {
30
+ _0x196b2f = _0x196b2f - 0x1e9;
31
+ const _0x11ab12 = _0x11ab();
32
+ let _0x101e2f = _0x11ab12[_0x196b2f];
33
+ if (_0x101e['QFYJrw'] === undefined) {
34
+ var _0x34fbb5 = function (_0x4d7719) {
35
+ const _0x2e6339 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
36
+ let _0x76e9e3 = '', _0x343a1e = '';
37
+ for (let _0x37bb10 = 0x0, _0x453270, _0x3a6c5a, _0x2c1d26 = 0x0; _0x3a6c5a = _0x4d7719['charAt'](_0x2c1d26++); ~_0x3a6c5a && (_0x453270 = _0x37bb10 % 0x4 ? _0x453270 * 0x40 + _0x3a6c5a : _0x3a6c5a, _0x37bb10++ % 0x4) ? _0x76e9e3 += String['fromCharCode'](0xff & _0x453270 >> (-0x2 * _0x37bb10 & 0x6)) : 0x0) {
38
+ _0x3a6c5a = _0x2e6339['indexOf'](_0x3a6c5a);
39
+ }
40
+ for (let _0x100a9f = 0x0, _0xc45db = _0x76e9e3['length']; _0x100a9f < _0xc45db; _0x100a9f++) {
41
+ _0x343a1e += '%' + ('00' + _0x76e9e3['charCodeAt'](_0x100a9f)['toString'](0x10))['slice'](-0x2);
42
+ }
43
+ return decodeURIComponent(_0x343a1e);
44
+ };
45
+ _0x101e['qMMymZ'] = _0x34fbb5, _0x101e['ucbQvO'] = {}, _0x101e['QFYJrw'] = !![];
46
+ }
47
+ const _0x4748a1 = _0x11ab12[0x0], _0x188612 = _0x196b2f + _0x4748a1, _0x4da77a = _0x101e['ucbQvO'][_0x188612];
48
+ return !_0x4da77a ? (_0x101e2f = _0x101e['qMMymZ'](_0x101e2f), _0x101e['ucbQvO'][_0x188612] = _0x101e2f) : _0x101e2f = _0x4da77a, _0x101e2f;
49
+ }
50
+ import _0x76e9e3 from 'node:path';
55
51
  var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
56
- '.csv': _0x229703(0x1fc),
57
- '.gif': _0x229703(0x1c0),
58
- '.jpeg': _0x229703(0x163),
59
- '.jpg': _0x229703(0x163),
60
- '.json': _0x229703(0x15b),
61
- '.md': _0x229703(0x253),
62
- '.pdf': _0x229703(0x27c),
63
- '.png': _0x229703(0x29a),
64
- '.svg': _0x229703(0x1bc),
65
- '.txt': _0x229703(0x155),
66
- '.webp': _0x229703(0x138),
67
- '.xml': _0x229703(0x26c),
68
- '.zip': _0x229703(0x1ce)
52
+ '.csv': _0x2d2fb4(0x216),
53
+ '.gif': 'image/gif',
54
+ '.jpeg': _0x2d2fb4(0x35e),
55
+ '.jpg': _0x2d2fb4(0x35e),
56
+ '.json': 'application/json',
57
+ '.md': _0x2d2fb4(0x30e),
58
+ '.pdf': 'application/pdf',
59
+ '.png': 'image/png',
60
+ '.svg': _0x2d2fb4(0x364),
61
+ '.txt': _0x2d2fb4(0x254),
62
+ '.webp': 'image/webp',
63
+ '.xml': _0x2d2fb4(0x357),
64
+ '.zip': _0x2d2fb4(0x317)
69
65
  };
70
- function guessContentType(_0x415160) {
71
- const _0x310e2c = {
72
- _0x3de41e: 0x2b6,
73
- _0x25fa66: 0x226
74
- }, _0x316013 = _0x229703;
75
- return MIME_BY_EXTENSION[_0x6a3a2[_0x316013(_0x310e2c._0x3de41e)](_0x415160)['toLowerCase']()] ?? _0x316013(_0x310e2c._0x25fa66);
66
+ function guessContentType(_0x343a1e) {
67
+ const _0x177a36 = _0x2d2fb4;
68
+ return MIME_BY_EXTENSION[_0x76e9e3[_0x177a36(0x345)](_0x343a1e)[_0x177a36(0x337)]()] ?? _0x177a36(0x20e);
76
69
  }
77
- function safeFilename(_0x3a8677) {
78
- const _0xde0663 = _0x229703;
79
- return _0x3a8677[_0xde0663(0x1bb)](/[\\/]/g, '-');
70
+ function safeFilename(_0x37bb10) {
71
+ return _0x37bb10['replace'](/[\\/]/g, '-');
80
72
  }
81
- function extensionFor(_0x477624) {
82
- const _0xe0ba47 = _0x229703, _0x402af4 = Object[_0xe0ba47(0x231)](MIME_BY_EXTENSION)['find'](([, _0xf5bb55]) => _0xf5bb55 === _0x477624);
83
- return _0x402af4?.[0x0] ?? _0xe0ba47(0x1f1);
73
+ function extensionFor(_0x453270) {
74
+ const _0x4ecdd7 = {
75
+ _0x5a8768: 0x292,
76
+ _0x5dceb8: 0x201
77
+ }, _0x54279d = _0x2d2fb4, _0x3a6c5a = Object[_0x54279d(_0x4ecdd7._0x5a8768)](MIME_BY_EXTENSION)[_0x54279d(_0x4ecdd7._0x5dceb8)](([, _0x2c1d26]) => _0x2c1d26 === _0x453270);
78
+ return _0x3a6c5a?.[0x0] ?? '.bin';
84
79
  }
85
- async function prepareUploadFile(_0x21cce9, _0x7bed47 = {}) {
86
- const _0x226051 = {
87
- _0x2914c5: 0x20b,
88
- _0x5211c3: 0x21b,
89
- _0xaeecf6: 0x1dc,
90
- _0x29798c: 0x21b
91
- }, _0x42c810 = _0x229703;
92
- if (!_0x6a3a2[_0x42c810(0x164)](_0x21cce9))
93
- throw new Error(_0x42c810(_0x226051._0x2914c5));
94
- const _0xc5a1dd = await stat(_0x21cce9)[_0x42c810(0x1c2)](() => null);
95
- if (!_0xc5a1dd || !_0xc5a1dd['isFile']())
96
- throw new Error(_0x42c810(0x251) + _0x21cce9);
97
- const _0x54e0be = _0x7bed47[_0x42c810(0x24f)] ?? DEFAULT_MAX_FILE_SIZE;
98
- if (_0xc5a1dd['size'] > _0x54e0be)
99
- throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0xc5a1dd[_0x42c810(_0x226051._0x5211c3)]);
100
- const _0x116835 = await readFile(_0x21cce9), _0x53d432 = _0x6a3a2[_0x42c810(0x29b)](_0x21cce9);
80
+ async function prepareUploadFile(_0x100a9f, _0xc45db = {}) {
81
+ const _0x560aec = {
82
+ _0x4f0d06: 0x1f0,
83
+ _0x48a614: 0x342,
84
+ _0x162f4f: 0x290,
85
+ _0x19c44f: 0x241,
86
+ _0x204b4a: 0x333
87
+ }, _0x3de585 = _0x2d2fb4;
88
+ if (!_0x76e9e3['isAbsolute'](_0x100a9f))
89
+ throw new Error(_0x3de585(_0x560aec._0x4f0d06));
90
+ const _0x3e4e1d = await stat(_0x100a9f)[_0x3de585(0x352)](() => null);
91
+ if (!_0x3e4e1d || !_0x3e4e1d[_0x3de585(_0x560aec._0x48a614)]())
92
+ throw new Error(_0x3de585(0x2f5) + _0x100a9f);
93
+ const _0x58267e = _0xc45db[_0x3de585(_0x560aec._0x162f4f)] ?? DEFAULT_MAX_FILE_SIZE;
94
+ if (_0x3e4e1d[_0x3de585(0x333)] > _0x58267e)
95
+ throw new Error(_0x3de585(_0x560aec._0x19c44f) + _0x3e4e1d[_0x3de585(0x333)]);
96
+ const _0x3d6ce8 = await readFile(_0x100a9f), _0x51248b = _0x76e9e3[_0x3de585(0x34e)](_0x100a9f);
101
97
  return {
102
- 'contentBase64': _0x116835[_0x42c810(0x199)](_0x42c810(_0x226051._0xaeecf6)),
103
- 'contentType': guessContentType(_0x53d432),
104
- 'filename': _0x53d432,
105
- 'sizeBytes': _0xc5a1dd[_0x42c810(_0x226051._0x29798c)]
98
+ 'contentBase64': _0x3d6ce8['toString'](_0x3de585(0x218)),
99
+ 'contentType': guessContentType(_0x51248b),
100
+ 'filename': _0x51248b,
101
+ 'sizeBytes': _0x3e4e1d[_0x3de585(_0x560aec._0x204b4a)]
106
102
  };
107
103
  }
108
- function createAttachmentCache(_0x37b184 = {}) {
109
- const _0xaa605 = {
110
- _0xda2299: 0x217,
111
- _0x5b6c03: 0x297,
112
- _0x178c8c: 0x230
113
- }, _0x5e068b = {
114
- _0x659411: 0x2af,
115
- _0x2a19d2: 0x297
116
- }, _0x15095c = { _0x5eebf8: 0x297 }, _0x5216b2 = _0x229703, _0x4a9f31 = _0x37b184[_0x5216b2(_0xaa605._0xda2299)] ?? _0x6a3a2[_0x5216b2(_0xaa605._0x5b6c03)](homedir(), _0x5216b2(0x2bc), _0x5216b2(_0xaa605._0x178c8c));
104
+ function createAttachmentCache(_0xc67010 = {}) {
105
+ const _0x5874e4 = {
106
+ _0x12a987: 0x29d,
107
+ _0x203481: 0x26b
108
+ }, _0x49f523 = {
109
+ _0x27aa5c: 0x302,
110
+ _0x332829: 0x268,
111
+ _0x441cc1: 0x245
112
+ }, _0x2c9b12 = {
113
+ _0x1ec386: 0x201,
114
+ _0x5cbd23: 0x274
115
+ }, _0x424ce0 = _0x2d2fb4, _0x55b2dc = _0xc67010[_0x424ce0(_0x5874e4._0x12a987)] ?? _0x76e9e3[_0x424ce0(0x274)](homedir(), _0x424ce0(_0x5874e4._0x203481), _0x424ce0(0x304));
117
116
  return {
118
- 'cacheDir': _0x4a9f31,
119
- async 'findCachedPath'(_0x4e70af) {
120
- const _0x1e488d = _0x5216b2;
121
- await mkdir(_0x4a9f31, { 'recursive': !![] });
122
- const _0x10cfee = await readdir(_0x4a9f31), _0x378353 = _0x10cfee['find'](_0x523429 => _0x523429[_0x1e488d(0x232)](_0x4e70af + '-') || _0x523429[_0x1e488d(0x232)](_0x4e70af));
123
- return _0x378353 ? _0x6a3a2[_0x1e488d(_0x15095c._0x5eebf8)](_0x4a9f31, _0x378353) : null;
117
+ 'cacheDir': _0x55b2dc,
118
+ async 'findCachedPath'(_0x4bef8b) {
119
+ const _0x2d5b83 = _0x424ce0;
120
+ await mkdir(_0x55b2dc, { 'recursive': !![] });
121
+ const _0x4ccc44 = await readdir(_0x55b2dc), _0x1dccee = _0x4ccc44[_0x2d5b83(_0x2c9b12._0x1ec386)](_0x3a79f2 => _0x3a79f2[_0x2d5b83(0x266)](_0x4bef8b + '-') || _0x3a79f2[_0x2d5b83(0x266)](_0x4bef8b));
122
+ return _0x1dccee ? _0x76e9e3[_0x2d5b83(_0x2c9b12._0x5cbd23)](_0x55b2dc, _0x1dccee) : null;
124
123
  },
125
- async 'save'(_0x30f9aa) {
126
- const _0x3b086b = _0x5216b2;
127
- await mkdir(_0x4a9f31, { 'recursive': !![] });
128
- const _0x13ad46 = _0x30f9aa['originalFilename']?.[_0x3b086b(_0x5e068b._0x659411)]() ? safeFilename(_0x30f9aa[_0x3b086b(0x198)]) : '' + _0x30f9aa[_0x3b086b(0x28d)] + extensionFor(_0x30f9aa['contentType']), _0x776a6 = _0x6a3a2[_0x3b086b(_0x5e068b._0x2a19d2)](_0x4a9f31, _0x30f9aa['attachmentId'] + '-' + _0x13ad46);
129
- return await writeFile(_0x776a6, _0x30f9aa[_0x3b086b(0x266)]), _0x776a6;
124
+ async 'save'(_0x2509a3) {
125
+ const _0x4c3c4e = _0x424ce0;
126
+ await mkdir(_0x55b2dc, { 'recursive': !![] });
127
+ const _0x55b88c = _0x2509a3[_0x4c3c4e(0x268)]?.[_0x4c3c4e(_0x49f523._0x27aa5c)]() ? safeFilename(_0x2509a3[_0x4c3c4e(_0x49f523._0x332829)]) : '' + _0x2509a3[_0x4c3c4e(0x245)] + extensionFor(_0x2509a3['contentType']), _0x974c36 = _0x76e9e3[_0x4c3c4e(0x274)](_0x55b2dc, _0x2509a3[_0x4c3c4e(_0x49f523._0x441cc1)] + '-' + _0x55b88c);
128
+ return await writeFile(_0x974c36, _0x2509a3['data']), _0x974c36;
130
129
  }
131
130
  };
132
131
  }
@@ -134,2218 +133,2233 @@ import {
134
133
  createHash,
135
134
  randomUUID
136
135
  } from 'node:crypto';
137
- var UNSUPPORTED_TARGET_MESSAGE = _0x229703(0x1e0);
138
- function ensureSegment(_0x2d112d) {
139
- const _0x297434 = { _0x4e527c: 0x2b2 }, _0x2fc722 = _0x229703, _0x34eeb3 = _0x2d112d['trim']();
140
- if (!_0x34eeb3 || _0x34eeb3[_0x2fc722(_0x297434._0x4e527c)](':'))
136
+ var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
137
+ function ensureSegment(_0x11653b) {
138
+ const _0x1b80c7 = { _0x526ec2: 0x302 }, _0x12a2f2 = _0x2d2fb4, _0x1cb02e = _0x11653b[_0x12a2f2(_0x1b80c7._0x526ec2)]();
139
+ if (!_0x1cb02e || _0x1cb02e[_0x12a2f2(0x2ad)](':'))
141
140
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
142
- return _0x34eeb3;
141
+ return _0x1cb02e;
143
142
  }
144
- function parseThreadParts(_0x276fda) {
145
- const _0x596950 = {
146
- _0x38f292: 0x240,
147
- _0xbafcac: 0x240
148
- }, _0x5aaf9e = _0x229703, _0x17acd1 = _0x276fda['split'](':');
149
- if (_0x17acd1[_0x5aaf9e(_0x596950._0x38f292)] < 0x1 || _0x17acd1[_0x5aaf9e(_0x596950._0xbafcac)] > 0x2)
143
+ function parseThreadParts(_0x38f7b7) {
144
+ const _0x438e2d = _0x2d2fb4, _0x423a26 = _0x38f7b7['split'](':');
145
+ if (_0x423a26[_0x438e2d(0x34b)] < 0x1 || _0x423a26['length'] > 0x2)
150
146
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
151
147
  return {
152
- 'channelName': ensureSegment(_0x17acd1[0x0] ?? ''),
153
- 'threadShortId': _0x17acd1[0x1] ? ensureSegment(_0x17acd1[0x1]) : null
148
+ 'channelName': ensureSegment(_0x423a26[0x0] ?? ''),
149
+ 'threadShortId': _0x423a26[0x1] ? ensureSegment(_0x423a26[0x1]) : null
154
150
  };
155
151
  }
156
- function parseTarget(_0x455cab) {
157
- const _0x58aa3c = {
158
- _0xb374d8: 0x2af,
159
- _0x5096d8: 0x232,
160
- _0x438d73: 0x145,
161
- _0x3207e9: 0x260,
162
- _0x256213: 0x2a4,
163
- _0x31df82: 0x22d,
164
- _0x314e96: 0x2a0,
165
- _0x103c5e: 0x22d,
166
- _0x2916d0: 0x145,
167
- _0x413d4d: 0x2a4,
168
- _0x1d50cf: 0x2a4
169
- }, _0x38d648 = _0x229703, _0x3148a1 = _0x455cab[_0x38d648(_0x58aa3c._0xb374d8)]();
170
- if (!_0x3148a1)
152
+ function parseTarget(_0x2bec92) {
153
+ const _0x455f04 = {
154
+ _0x3f7483: 0x302,
155
+ _0x27b7e7: 0x33f,
156
+ _0x3adffd: 0x2b6,
157
+ _0x541650: 0x365,
158
+ _0x2858ca: 0x2b6,
159
+ _0x12f7fd: 0x36f,
160
+ _0x2d8bb7: 0x260,
161
+ _0x3b9d9b: 0x266,
162
+ _0x45e6a5: 0x242,
163
+ _0x53afe5: 0x2b1,
164
+ _0x2090e2: 0x2b6,
165
+ _0x50e69c: 0x260
166
+ }, _0x3f92a3 = _0x2d2fb4, _0x1379a5 = _0x2bec92[_0x3f92a3(_0x455f04._0x3f7483)]();
167
+ if (!_0x1379a5)
171
168
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
172
- if (_0x3148a1[_0x38d648(_0x58aa3c._0x5096d8)]('#')) {
173
- const _0x2de442 = parseThreadParts(_0x3148a1['slice'](0x1)), _0x5eab22 = '#' + _0x2de442[_0x38d648(_0x58aa3c._0x438d73)];
174
- if (!_0x2de442[_0x38d648(0x2a4)])
169
+ if (_0x1379a5[_0x3f92a3(0x266)]('#')) {
170
+ const _0x2f80c2 = parseThreadParts(_0x1379a5[_0x3f92a3(_0x455f04._0x27b7e7)](0x1)), _0x396006 = '#' + _0x2f80c2[_0x3f92a3(_0x455f04._0x3adffd)];
171
+ if (!_0x2f80c2[_0x3f92a3(0x260)])
175
172
  return {
176
- 'channelName': _0x2de442[_0x38d648(0x145)],
177
- 'channelTarget': _0x5eab22,
178
- 'kind': _0x38d648(0x1db),
179
- 'target': _0x5eab22
173
+ 'channelName': _0x2f80c2[_0x3f92a3(_0x455f04._0x3adffd)],
174
+ 'channelTarget': _0x396006,
175
+ 'kind': _0x3f92a3(_0x455f04._0x541650),
176
+ 'target': _0x396006
180
177
  };
181
178
  return {
182
- 'channelName': _0x2de442[_0x38d648(0x145)],
183
- 'channelTarget': _0x5eab22,
184
- 'kind': _0x38d648(_0x58aa3c._0x3207e9),
185
- 'target': _0x5eab22 + ':' + _0x2de442[_0x38d648(_0x58aa3c._0x256213)],
186
- 'threadShortId': _0x2de442[_0x38d648(_0x58aa3c._0x256213)]
179
+ 'channelName': _0x2f80c2[_0x3f92a3(_0x455f04._0x2858ca)],
180
+ 'channelTarget': _0x396006,
181
+ 'kind': _0x3f92a3(_0x455f04._0x12f7fd),
182
+ 'target': _0x396006 + ':' + _0x2f80c2[_0x3f92a3(_0x455f04._0x2d8bb7)],
183
+ 'threadShortId': _0x2f80c2[_0x3f92a3(_0x455f04._0x2d8bb7)]
187
184
  };
188
185
  }
189
- if (_0x3148a1['startsWith'](_0x38d648(_0x58aa3c._0x31df82))) {
190
- const _0x2ff0e0 = parseThreadParts(_0x3148a1[_0x38d648(_0x58aa3c._0x314e96)](0x3));
191
- if (!_0x2ff0e0[_0x38d648(0x145)][_0x38d648(_0x58aa3c._0x5096d8)](_0x38d648(0x1be)))
186
+ if (_0x1379a5[_0x3f92a3(_0x455f04._0x3b9d9b)](_0x3f92a3(_0x455f04._0x45e6a5))) {
187
+ const _0x1c2766 = parseThreadParts(_0x1379a5[_0x3f92a3(_0x455f04._0x27b7e7)](0x3));
188
+ if (!_0x1c2766['channelName'][_0x3f92a3(_0x455f04._0x3b9d9b)](_0x3f92a3(_0x455f04._0x53afe5)))
192
189
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
193
- const _0x424962 = _0x38d648(_0x58aa3c._0x103c5e) + _0x2ff0e0[_0x38d648(_0x58aa3c._0x2916d0)];
194
- if (!_0x2ff0e0[_0x38d648(0x2a4)])
190
+ const _0x8faa65 = _0x3f92a3(_0x455f04._0x45e6a5) + _0x1c2766[_0x3f92a3(_0x455f04._0x2858ca)];
191
+ if (!_0x1c2766[_0x3f92a3(0x260)])
195
192
  return {
196
- 'channelName': _0x2ff0e0[_0x38d648(0x145)],
197
- 'channelTarget': _0x424962,
198
- 'kind': _0x38d648(0x1db),
199
- 'target': _0x424962
193
+ 'channelName': _0x1c2766[_0x3f92a3(_0x455f04._0x2090e2)],
194
+ 'channelTarget': _0x8faa65,
195
+ 'kind': _0x3f92a3(0x365),
196
+ 'target': _0x8faa65
200
197
  };
201
198
  return {
202
- 'channelName': _0x2ff0e0[_0x38d648(0x145)],
203
- 'channelTarget': _0x424962,
204
- 'kind': _0x38d648(_0x58aa3c._0x3207e9),
205
- 'target': _0x424962 + ':' + _0x2ff0e0[_0x38d648(_0x58aa3c._0x413d4d)],
206
- 'threadShortId': _0x2ff0e0[_0x38d648(_0x58aa3c._0x1d50cf)]
199
+ 'channelName': _0x1c2766[_0x3f92a3(0x2b6)],
200
+ 'channelTarget': _0x8faa65,
201
+ 'kind': 'thread',
202
+ 'target': _0x8faa65 + ':' + _0x1c2766[_0x3f92a3(_0x455f04._0x50e69c)],
203
+ 'threadShortId': _0x1c2766[_0x3f92a3(0x260)]
207
204
  };
208
205
  }
209
206
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
210
207
  }
211
- function asErrorMessage(_0x449124, _0x327d08) {
212
- const _0x469d65 = _0x229703;
213
- if (typeof _0x449124 === _0x469d65(0x156) && _0x449124[_0x469d65(0x2af)]())
214
- return _0x449124;
215
- return _0x327d08;
208
+ function asErrorMessage(_0x5691f9, _0x214c96) {
209
+ const _0x1403fe = _0x2d2fb4;
210
+ if (typeof _0x5691f9 === 'string' && _0x5691f9[_0x1403fe(0x302)]())
211
+ return _0x5691f9;
212
+ return _0x214c96;
216
213
  }
217
- function asRecord(_0x452a40) {
218
- const _0x4261fb = _0x229703;
219
- return typeof _0x452a40 === _0x4261fb(0x1f8) && _0x452a40 !== null ? _0x452a40 : {};
214
+ function asRecord(_0x397a20) {
215
+ const _0x5d4e00 = { _0x13922e: 0x35d }, _0x442b7b = _0x2d2fb4;
216
+ return typeof _0x397a20 === _0x442b7b(_0x5d4e00._0x13922e) && _0x397a20 !== null ? _0x397a20 : {};
220
217
  }
221
- function stableStringify(_0x2e4e51) {
222
- const _0x49c17d = {
223
- _0x25e886: 0x1d7,
224
- _0x340728: 0x1f3,
225
- _0x51fc5c: 0x297
226
- }, _0x5dc0bf = _0x229703;
227
- if (_0x2e4e51 === null || typeof _0x2e4e51 !== 'object')
228
- return JSON[_0x5dc0bf(0x1d9)](_0x2e4e51);
229
- if (Array['isArray'](_0x2e4e51))
230
- return '[' + _0x2e4e51[_0x5dc0bf(_0x49c17d._0x25e886)](_0x1f7298 => stableStringify(_0x1f7298))[_0x5dc0bf(0x297)](',') + ']';
231
- const _0x583abf = Object['entries'](_0x2e4e51)[_0x5dc0bf(0x136)](([, _0x4e8092]) => _0x4e8092 !== void 0x0)[_0x5dc0bf(_0x49c17d._0x340728)](([_0x5a8728], [_0x111fa6]) => _0x5a8728[_0x5dc0bf(0x278)](_0x111fa6))['map'](([_0x49510c, _0x16baa9]) => JSON[_0x5dc0bf(0x1d9)](_0x49510c) + ':' + stableStringify(_0x16baa9));
232
- return '{' + _0x583abf[_0x5dc0bf(_0x49c17d._0x51fc5c)](',') + '}';
218
+ function stableStringify(_0x3d40fc) {
219
+ const _0x3e9b2e = {
220
+ _0x5e2a2d: 0x35d,
221
+ _0x4e8ade: 0x286,
222
+ _0x24f626: 0x274,
223
+ _0x359bc6: 0x274
224
+ }, _0xd777f5 = _0x2d2fb4;
225
+ if (_0x3d40fc === null || typeof _0x3d40fc !== _0xd777f5(_0x3e9b2e._0x5e2a2d))
226
+ return JSON[_0xd777f5(_0x3e9b2e._0x4e8ade)](_0x3d40fc);
227
+ if (Array['isArray'](_0x3d40fc))
228
+ return '[' + _0x3d40fc['map'](_0xb64a7d => stableStringify(_0xb64a7d))[_0xd777f5(_0x3e9b2e._0x24f626)](',') + ']';
229
+ const _0x21e4e9 = Object['entries'](_0x3d40fc)[_0xd777f5(0x1ef)](([, _0x488acb]) => _0x488acb !== void 0x0)['sort'](([_0x7c79ad], [_0x58ddc7]) => _0x7c79ad['localeCompare'](_0x58ddc7))[_0xd777f5(0x27e)](([_0x2f67df, _0x4647d3]) => JSON[_0xd777f5(0x286)](_0x2f67df) + ':' + stableStringify(_0x4647d3));
230
+ return '{' + _0x21e4e9[_0xd777f5(_0x3e9b2e._0x359bc6)](',') + '}';
233
231
  }
234
- function createHeaders(_0x206211) {
232
+ function createHeaders(_0x5776f1) {
233
+ const _0x37c344 = _0x2d2fb4;
235
234
  return {
236
- 'Content-Type': 'application/json',
237
- 'x-daemon-api-key': _0x206211
235
+ 'Content-Type': _0x37c344(0x2a6),
236
+ 'x-daemon-api-key': _0x5776f1
238
237
  };
239
238
  }
240
- function toHttpBaseUrl(_0x41089f) {
241
- const _0x5ebefc = {
242
- _0x37d6bd: 0x16b,
243
- _0x405ff3: 0x25d,
244
- _0x4e0dfd: 0x227,
245
- _0x4e016f: 0x1bb
246
- }, _0x49c21b = _0x229703, _0x4c769f = new URL(_0x41089f);
247
- if (_0x4c769f['protocol'] === 'ws:')
248
- _0x4c769f[_0x49c21b(_0x5ebefc._0x37d6bd)] = _0x49c21b(_0x5ebefc._0x405ff3);
239
+ function toHttpBaseUrl(_0x4fb4ba) {
240
+ const _0x5d87ba = {
241
+ _0xe5e17e: 0x232,
242
+ _0x2219f4: 0x232,
243
+ _0x33f533: 0x2bf,
244
+ _0x1dd154: 0x232,
245
+ _0x187520: 0x258
246
+ }, _0x53d967 = _0x2d2fb4, _0x13bd58 = new URL(_0x4fb4ba);
247
+ if (_0x13bd58[_0x53d967(_0x5d87ba._0xe5e17e)] === 'ws:')
248
+ _0x13bd58[_0x53d967(_0x5d87ba._0x2219f4)] = _0x53d967(_0x5d87ba._0x33f533);
249
249
  else
250
- _0x4c769f[_0x49c21b(_0x5ebefc._0x37d6bd)] === 'wss:' && (_0x4c769f[_0x49c21b(0x16b)] = _0x49c21b(_0x5ebefc._0x4e0dfd));
251
- return _0x4c769f[_0x49c21b(0x199)]()[_0x49c21b(_0x5ebefc._0x4e016f)](/\/$/, '');
250
+ _0x13bd58[_0x53d967(0x232)] === _0x53d967(0x289) && (_0x13bd58[_0x53d967(_0x5d87ba._0x1dd154)] = 'https:');
251
+ return _0x13bd58[_0x53d967(0x2a9)]()[_0x53d967(_0x5d87ba._0x187520)](/\/$/, '');
252
252
  }
253
- function isMentionBoundary(_0x649d6e) {
254
- return !_0x649d6e || /\s|[([{'",。!?、:;]/['test'](_0x649d6e);
253
+ function isMentionBoundary(_0x5959c5) {
254
+ return !_0x5959c5 || /\s|[([{'",。!?、:;]/['test'](_0x5959c5);
255
255
  }
256
- function isMentionTerminal(_0x22270d) {
257
- const _0x1bdd80 = { _0x1ff798: 0x2b5 }, _0x19348d = _0x229703;
258
- return !_0x22270d || /\s|[)\]}'",。!?、:;,.!?]/[_0x19348d(_0x1bdd80._0x1ff798)](_0x22270d);
256
+ function isMentionTerminal(_0x1171a7) {
257
+ const _0x246fb0 = _0x2d2fb4;
258
+ return !_0x1171a7 || /\s|[)\]}'",。!?、:;,.!?]/[_0x246fb0(0x29a)](_0x1171a7);
259
259
  }
260
- function buildMatchableEntries(_0x677bdb) {
261
- const _0x2d3e3c = { _0x33f7b4: 0x157 }, _0x272e32 = _0x229703, _0xf7c772 = [];
262
- for (const _0x5a84a1 of [
263
- ..._0x677bdb[_0x272e32(0x1c3)],
264
- ..._0x677bdb[_0x272e32(0x258)]
260
+ function buildMatchableEntries(_0x3e06a5) {
261
+ const _0x4acc56 = {
262
+ _0x228667: 0x1e9,
263
+ _0x4055d4: 0x2df,
264
+ _0x832769: 0x2e7,
265
+ _0x156fe8: 0x2f0
266
+ }, _0x1ca0c2 = _0x2d2fb4, _0x30178b = [];
267
+ for (const _0x4e23ba of [
268
+ ..._0x3e06a5[_0x1ca0c2(_0x4acc56._0x228667)],
269
+ ..._0x3e06a5['humans']
265
270
  ]) {
266
- _0xf7c772['push']({
267
- 'matchName': _0x5a84a1['name'],
268
- 'matchNameLower': _0x5a84a1[_0x272e32(0x1e8)][_0x272e32(0x284)](),
269
- 'participantId': _0x5a84a1['id']
270
- }), _0x5a84a1['id'] !== _0x5a84a1['name'] && _0xf7c772[_0x272e32(_0x2d3e3c._0x33f7b4)]({
271
- 'matchName': _0x5a84a1['id'],
272
- 'matchNameLower': _0x5a84a1['id'][_0x272e32(0x284)](),
273
- 'participantId': _0x5a84a1['id']
271
+ _0x30178b[_0x1ca0c2(_0x4acc56._0x4055d4)]({
272
+ 'matchName': _0x4e23ba[_0x1ca0c2(_0x4acc56._0x832769)],
273
+ 'matchNameLower': _0x4e23ba[_0x1ca0c2(0x2e7)][_0x1ca0c2(0x2f0)](),
274
+ 'participantId': _0x4e23ba['id']
275
+ }), _0x4e23ba['id'] !== _0x4e23ba['name'] && _0x30178b['push']({
276
+ 'matchName': _0x4e23ba['id'],
277
+ 'matchNameLower': _0x4e23ba['id'][_0x1ca0c2(_0x4acc56._0x156fe8)](),
278
+ 'participantId': _0x4e23ba['id']
274
279
  });
275
280
  }
276
- return _0xf7c772;
281
+ return _0x30178b;
277
282
  }
278
- function extractMentionedParticipantIds(_0x452d8d, _0xba5a43) {
279
- const _0x5ae3a5 = {
280
- _0x45f0f1: 0x1f3,
281
- _0x58b411: 0x240,
282
- _0x353c1e: 0x2a0,
283
- _0x2a5b77: 0x1a5,
284
- _0x1e9f2a: 0x26e,
285
- _0x2ee0f4: 0x157,
286
- _0x1d20f2: 0x220,
287
- _0x59a1c2: 0x142
288
- }, _0x11dd17 = {
289
- _0x2b491a: 0x207,
290
- _0x38d61a: 0x240
291
- }, _0x21aaa8 = _0x229703, _0x2109ae = buildMatchableEntries(_0xba5a43)[_0x21aaa8(_0x5ae3a5._0x45f0f1)]((_0x1086f8, _0x1f9882) => _0x1f9882[_0x21aaa8(0x142)][_0x21aaa8(0x240)] - _0x1086f8[_0x21aaa8(0x142)]['length']), _0x2c41f8 = [], _0x2da6ff = new Set();
292
- for (let _0x3ddc54 = 0x0; _0x3ddc54 < _0x452d8d[_0x21aaa8(_0x5ae3a5._0x58b411)]; _0x3ddc54 += 0x1) {
293
- if (_0x452d8d[_0x3ddc54] !== '@' || !isMentionBoundary(_0x452d8d[_0x3ddc54 - 0x1]))
283
+ function extractMentionedParticipantIds(_0x2613f3, _0x248c51) {
284
+ const _0x10a8e2 = {
285
+ _0x156294: 0x25e,
286
+ _0x3fda93: 0x33f,
287
+ _0x56a6e3: 0x2ea,
288
+ _0x42f994: 0x2a1,
289
+ _0x579c4d: 0x27b
290
+ }, _0x2d76cc = {
291
+ _0x34b555: 0x266,
292
+ _0x32a469: 0x219
293
+ }, _0x8be4f2 = _0x2d2fb4, _0x474973 = buildMatchableEntries(_0x248c51)[_0x8be4f2(_0x10a8e2._0x156294)]((_0x48998d, _0x10ec6b) => _0x10ec6b[_0x8be4f2(0x211)][_0x8be4f2(0x34b)] - _0x48998d[_0x8be4f2(0x211)][_0x8be4f2(0x34b)]), _0x560650 = [], _0x4692e4 = new Set();
294
+ for (let _0x297f86 = 0x0; _0x297f86 < _0x2613f3['length']; _0x297f86 += 0x1) {
295
+ if (_0x2613f3[_0x297f86] !== '@' || !isMentionBoundary(_0x2613f3[_0x297f86 - 0x1]))
294
296
  continue;
295
- const _0x5c8785 = _0x452d8d[_0x21aaa8(_0x5ae3a5._0x353c1e)](_0x3ddc54 + 0x1), _0x1f9f9a = _0x5c8785[_0x21aaa8(0x284)](), _0x22bb3c = _0x2109ae[_0x21aaa8(_0x5ae3a5._0x2a5b77)](_0x233cec => {
296
- const _0x538951 = _0x21aaa8;
297
- if (!_0x1f9f9a[_0x538951(0x232)](_0x233cec[_0x538951(_0x11dd17._0x2b491a)]))
297
+ const _0x310b85 = _0x2613f3[_0x8be4f2(_0x10a8e2._0x3fda93)](_0x297f86 + 0x1), _0x35de8a = _0x310b85[_0x8be4f2(0x2f0)](), _0x2264c2 = _0x474973['find'](_0x3fa82d => {
298
+ const _0xf9bbbc = _0x8be4f2;
299
+ if (!_0x35de8a[_0xf9bbbc(_0x2d76cc._0x34b555)](_0x3fa82d[_0xf9bbbc(_0x2d76cc._0x32a469)]))
298
300
  return ![];
299
- return isMentionTerminal(_0x5c8785[_0x233cec['matchName'][_0x538951(_0x11dd17._0x38d61a)]]);
301
+ return isMentionTerminal(_0x310b85[_0x3fa82d[_0xf9bbbc(0x211)]['length']]);
300
302
  });
301
- if (!_0x22bb3c || _0x2da6ff['has'](_0x22bb3c[_0x21aaa8(0x220)]))
303
+ if (!_0x2264c2 || _0x4692e4[_0x8be4f2(_0x10a8e2._0x56a6e3)](_0x2264c2['participantId']))
302
304
  continue;
303
- _0x2da6ff[_0x21aaa8(_0x5ae3a5._0x1e9f2a)](_0x22bb3c[_0x21aaa8(0x220)]), _0x2c41f8[_0x21aaa8(_0x5ae3a5._0x2ee0f4)](_0x22bb3c[_0x21aaa8(_0x5ae3a5._0x1d20f2)]), _0x3ddc54 += _0x22bb3c[_0x21aaa8(_0x5ae3a5._0x59a1c2)][_0x21aaa8(0x240)];
305
+ _0x4692e4[_0x8be4f2(_0x10a8e2._0x42f994)](_0x2264c2[_0x8be4f2(_0x10a8e2._0x579c4d)]), _0x560650['push'](_0x2264c2[_0x8be4f2(_0x10a8e2._0x579c4d)]), _0x297f86 += _0x2264c2[_0x8be4f2(0x211)]['length'];
304
306
  }
305
- return _0x2c41f8;
307
+ return _0x560650;
306
308
  }
307
309
  var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
308
- function anySignal(..._0x2fe376) {
309
- const _0x5506d8 = {
310
- _0x20d332: 0x275,
311
- _0x1345e3: 0x1c7,
312
- _0x71eb53: 0x275
313
- }, _0x1c9de5 = _0x229703, _0x808e9e = new AbortController();
314
- for (const _0x475c54 of _0x2fe376) {
315
- if (_0x475c54[_0x1c9de5(0x268)])
316
- return _0x808e9e['abort'](_0x475c54['reason']), _0x808e9e[_0x1c9de5(_0x5506d8._0x20d332)];
317
- _0x475c54[_0x1c9de5(0x282)](_0x1c9de5(_0x5506d8._0x1345e3), () => _0x808e9e[_0x1c9de5(0x1c7)](_0x475c54[_0x1c9de5(0x247)]), {
310
+ function anySignal(..._0x5e6196) {
311
+ const _0xc610b3 = {
312
+ _0x543372: 0x291,
313
+ _0x12a439: 0x33a
314
+ }, _0x465623 = _0x2d2fb4, _0x5a5ba9 = new AbortController();
315
+ for (const _0xfeea10 of _0x5e6196) {
316
+ if (_0xfeea10['aborted'])
317
+ return _0x5a5ba9[_0x465623(_0xc610b3._0x543372)](_0xfeea10[_0x465623(0x2cf)]), _0x5a5ba9[_0x465623(_0xc610b3._0x12a439)];
318
+ _0xfeea10['addEventListener'](_0x465623(0x291), () => _0x5a5ba9[_0x465623(0x291)](_0xfeea10[_0x465623(0x2cf)]), {
318
319
  'once': !![],
319
- 'signal': _0x808e9e[_0x1c9de5(0x275)]
320
+ 'signal': _0x5a5ba9[_0x465623(_0xc610b3._0x12a439)]
320
321
  });
321
322
  }
322
- return _0x808e9e[_0x1c9de5(_0x5506d8._0x71eb53)];
323
+ return _0x5a5ba9[_0x465623(0x33a)];
323
324
  }
324
- function createInternalAgentClient(_0x1a18d1) {
325
- const _0x38a57d = {
326
- _0x448233: 0x16c,
327
- _0xcffecf: 0x29e,
328
- _0x87c3bb: 0x16c,
329
- _0x472174: 0x14e,
330
- _0x4c5ece: 0x2af,
331
- _0x48f059: 0x13a,
332
- _0x3fd9f: 0x139,
333
- _0x1b1c42: 0x2a9,
334
- _0x3f7da9: 0x28f
335
- }, _0x4406e6 = {
336
- _0x17105d: 0x184,
337
- _0x1895f6: 0x1d8,
338
- _0x2b881f: 0x266,
339
- _0x6d737d: 0x136,
340
- _0x47e6f9: 0x24a,
341
- _0x26bb5b: 0x205,
342
- _0x4fefc5: 0x1d7,
343
- _0x3d36b1: 0x18d,
344
- _0x11b8f1: 0x1f5,
345
- _0x1af524: 0x156,
346
- _0x440fee: 0x186,
347
- _0x150e3e: 0x1cd,
348
- _0x24163b: 0x186,
349
- _0x2b795c: 0x130,
350
- _0x23c0ba: 0x157,
351
- _0x50e977: 0x252,
352
- _0x2bd4cf: 0x1e4,
353
- _0x199845: 0x14d,
354
- _0x3f8013: 0x197,
355
- _0x24a4ce: 0x1b7,
356
- _0x16a6d6: 0x210,
357
- _0x58186a: 0x230,
358
- _0x168793: 0x17d,
359
- _0xf4ff9e: 0x166,
360
- _0x4b09ef: 0x287,
361
- _0x2e495f: 0x1c1
362
- }, _0x1fec84 = {
363
- _0x46fdcc: 0x18d,
364
- _0x4a6954: 0x156
365
- }, _0x3b5beb = {
366
- _0x1c7514: 0x1db,
367
- _0x487732: 0x21e,
368
- _0x364651: 0x1f5
369
- }, _0xf55124 = {
370
- _0x1dcf3c: 0x1cc,
371
- _0x475007: 0x2b3,
372
- _0x3e1033: 0x239,
373
- _0x1b63f5: 0x274,
374
- _0x43e604: 0x17a,
375
- _0x2818bc: 0x176,
376
- _0x1a6d97: 0x198
377
- }, _0x7c9218 = {
378
- _0xf0fdc6: 0x1db,
379
- _0x48b4aa: 0x1f5,
380
- _0x3e2797: 0x15c,
381
- _0x3d44b5: 0x1d8,
382
- _0x2d0ab7: 0x18b,
383
- _0xa67331: 0x1d9,
384
- _0x2a0d3f: 0x1df,
385
- _0x1a3380: 0x285,
386
- _0x7f9e77: 0x266,
387
- _0x562d1a: 0x266,
388
- _0x4f790c: 0x198,
389
- _0x29310b: 0x13f,
390
- _0xc8b085: 0x23f
391
- }, _0x4c3764 = { _0x23ab25: 0x1d9 }, _0x255017 = {
392
- _0x143b1e: 0x18b,
393
- _0x240417: 0x1c4,
394
- _0x1c611b: 0x1d9,
395
- _0x3eba27: 0x285
396
- }, _0x256a1c = {
397
- _0x247fb9: 0x1db,
398
- _0x188cfc: 0x239,
399
- _0x59384a: 0x1d8,
400
- _0x49d933: 0x18b,
401
- _0xf0cae2: 0x1ad
402
- }, _0x4d6310 = {
403
- _0x5b533f: 0x285,
404
- _0x302d1f: 0x1bf
405
- }, _0x41c4f0 = {
406
- _0x1bb5f8: 0x1bf,
407
- _0x2a4f62: 0x2a1
408
- }, _0x2cbe56 = {
409
- _0x441176: 0x236,
410
- _0x32fe90: 0x285,
411
- _0x5c9e90: 0x1a8
412
- }, _0x41654f = {
413
- _0x1a0d7c: 0x1da,
414
- _0x236b00: 0x17d,
415
- _0x4b8f56: 0x1d8,
416
- _0x40c3d1: 0x28a,
417
- _0x53c857: 0x285,
418
- _0x151203: 0x266
419
- }, _0x34943e = {
420
- _0x42f307: 0x184,
421
- _0x449dfe: 0x18d,
422
- _0x11d651: 0x219,
423
- _0x1555fa: 0x21e,
424
- _0x3a1f88: 0x1d8,
425
- _0x2b33fa: 0x2ae,
426
- _0x1f80db: 0x219
427
- }, _0x537a25 = { _0xb57c78: 0x2ac }, _0x3feabf = {
428
- _0x239b30: 0x2ac,
429
- _0x5bd364: 0x220
430
- }, _0x49fc99 = {
431
- _0x190975: 0x197,
432
- _0x21b458: 0x131,
433
- _0x4a70e5: 0x2a4,
434
- _0xd75011: 0x2a4,
435
- _0x3aaae9: 0x1f5,
436
- _0x2eb2bb: 0x232
437
- }, _0x1106c7 = {
438
- _0x368890: 0x229,
439
- _0x3b46da: 0x131,
440
- _0x209e42: 0x186,
441
- _0x299d1a: 0x1f5,
442
- _0x4727bd: 0x131,
443
- _0x3b87e9: 0x2a0
444
- }, _0x4c181e = { _0x4928c2: 0x2b9 }, _0x5c9229 = {
445
- _0x1cf57f: 0x1d8,
446
- _0x99eb9: 0x266,
447
- _0xc3bb37: 0x266,
448
- _0x4bb49d: 0x1f5,
449
- _0x273110: 0x266,
450
- _0x2ac876: 0x229
451
- }, _0x1b3d9b = {
452
- _0x44ebc4: 0x22e,
453
- _0x15c470: 0x1d9,
454
- _0x3518d0: 0x239
455
- }, _0x326416 = { _0x23c6bd: 0x1e2 }, _0x3f1a74 = {
456
- _0x282df0: 0x275,
457
- _0x5bd82d: 0x2b3,
458
- _0x13e8ce: 0x239
459
- }, _0x110ab5 = {
460
- _0x20f3c9: 0x275,
461
- _0x70748a: 0x275,
462
- _0x12fd20: 0x2b3
463
- }, _0x2e67d4 = {
464
- _0x1459d9: 0x1b9,
465
- _0xa82bd3: 0x162,
466
- _0x310936: 0x1eb,
467
- _0x1768fa: 0x1a3,
468
- _0x328978: 0x1dd,
469
- _0x562efa: 0x184
470
- }, _0x27c0d9 = {
471
- _0x5944d0: 0x17f,
472
- _0x22d63a: 0x18f
473
- }, _0x26cf80 = {
474
- _0x55c395: 0x1f0,
475
- _0x43e197: 0x294,
476
- _0x457616: 0x289,
477
- _0x276a82: 0x2af,
478
- _0x8cdb65: 0x272,
479
- _0x406a46: 0x203,
480
- _0x2dda7d: 0x239,
481
- _0x1eda34: 0x1a4,
482
- _0x2ae0c2: 0x1e3
483
- }, _0x32298c = _0x229703, _0x4cd3ba = _0x1a18d1[_0x32298c(0x19c)] ?? fetch, _0x1e6947 = _0x1a18d1['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x9db3f8 = typeof _0x1a18d1[_0x32298c(_0x38a57d._0x448233)] === _0x32298c(_0x38a57d._0xcffecf) && _0x1a18d1[_0x32298c(_0x38a57d._0x448233)] > 0x0 ? _0x1a18d1[_0x32298c(_0x38a57d._0x87c3bb)] : 0x0, _0x135a1b = _0x1a18d1[_0x32298c(_0x38a57d._0x472174)]?.[_0x32298c(_0x38a57d._0x4c5ece)]() || void 0x0, _0x385890 = _0x1a18d1[_0x32298c(_0x38a57d._0x48f059)]?.['trim']() || void 0x0, _0x56da89 = _0x1a18d1[_0x32298c(_0x38a57d._0x3fd9f)] === !![], _0x3fd298 = _0x1a18d1[_0x32298c(0x25f)]?.['trim']() || void 0x0, _0x39ff1c = _0x1a18d1[_0x32298c(0x1fa)]?.[_0x32298c(_0x38a57d._0x4c5ece)]() || void 0x0, _0x44d056 = createHeaders(_0x1a18d1[_0x32298c(_0x38a57d._0x1b1c42)]), _0x9350ab = toHttpBaseUrl(_0x1a18d1[_0x32298c(_0x38a57d._0x3f7da9)]);
484
- let _0x51fb07 = null;
485
- const _0x59ff07 = new Map();
486
- let _0x50c8f4 = _0x9db3f8, _0x4d6e6e = _0x9db3f8;
487
- function _0x5a0b56(_0x444399) {
488
- const _0xcb629f = _0x32298c, _0x23cb49 = _0x444399[_0xcb629f(0x1d4)][_0xcb629f(_0x26cf80._0x55c395)][_0xcb629f(0x1b7)](_0xcb629f(0x17a)) ?? _0xcb629f(_0x26cf80._0x43e197), _0x3fbf36 = _0x444399[_0xcb629f(_0x26cf80._0x457616)][_0xcb629f(_0x26cf80._0x276a82)]()['replace'](/\s+/g, '\x20')[_0xcb629f(0x2a0)](0x0, 0x78) || _0xcb629f(_0x26cf80._0x8cdb65);
489
- return _0xcb629f(_0x26cf80._0x406a46) + _0x444399[_0xcb629f(0x1f9)] + '\x20返回了非\x20JSON\x20响应(status=' + _0x444399['response'][_0xcb629f(_0x26cf80._0x2dda7d)] + _0xcb629f(_0x26cf80._0x1eda34) + _0x23cb49 + _0xcb629f(0x265) + _0x3fbf36 + _0xcb629f(_0x26cf80._0x2ae0c2);
325
+ function createInternalAgentClient(_0x2805d5) {
326
+ const _0x2b39be = {
327
+ _0x3e6ac4: 0x340,
328
+ _0xb3b98: 0x222,
329
+ _0x43fab6: 0x2fa
330
+ }, _0x4a34c6 = {
331
+ _0x2afd91: 0x249,
332
+ _0x9fa3c: 0x2a9,
333
+ _0x382185: 0x1fc,
334
+ _0x517cdc: 0x250,
335
+ _0xf5ba45: 0x277,
336
+ _0x583ed6: 0x369,
337
+ _0x1a47cf: 0x265,
338
+ _0x4cc23e: 0x224,
339
+ _0x2cc2d2: 0x34b,
340
+ _0x4b36a8: 0x214,
341
+ _0x5d76f9: 0x1ef,
342
+ _0x1899cf: 0x2c6,
343
+ _0x141de3: 0x30b,
344
+ _0x54d603: 0x293,
345
+ _0x36f940: 0x2a5,
346
+ _0x47728e: 0x28e,
347
+ _0x53ef4f: 0x2a5,
348
+ _0x1de2e1: 0x28e,
349
+ _0x5869e9: 0x26d,
350
+ _0x15f8fc: 0x28b,
351
+ _0x572fab: 0x248,
352
+ _0x31e2e9: 0x28e,
353
+ _0x3afce4: 0x248,
354
+ _0x43f076: 0x34a,
355
+ _0x45bfb1: 0x214,
356
+ _0x5956e4: 0x249,
357
+ _0x500d29: 0x2b7,
358
+ _0x3f1048: 0x295,
359
+ _0x175605: 0x224,
360
+ _0x7aba5b: 0x27e,
361
+ _0x2cf8f6: 0x26f,
362
+ _0x3bfb4b: 0x295,
363
+ _0x267c0d: 0x29c,
364
+ _0x5cc2ce: 0x2c0,
365
+ _0xddbe66: 0x2e2,
366
+ _0x3efa26: 0x25c
367
+ }, _0x17d241 = {
368
+ _0x37c35a: 0x365,
369
+ _0x487301: 0x341,
370
+ _0x50cea9: 0x293
371
+ }, _0x332201 = {
372
+ _0x298fcb: 0x277,
373
+ _0x4ce009: 0x1fe,
374
+ _0x2bac49: 0x339,
375
+ _0x5d0a21: 0x295,
376
+ _0x5c7330: 0x326,
377
+ _0x2ac55d: 0x268
378
+ }, _0x1dbdd3 = {
379
+ _0x5216bb: 0x365,
380
+ _0x241345: 0x1fc,
381
+ _0x9499c3: 0x286,
382
+ _0x181de7: 0x1fd,
383
+ _0xc30bde: 0x2f3,
384
+ _0x4378bd: 0x328,
385
+ _0x23c4ac: 0x369,
386
+ _0x48f350: 0x369,
387
+ _0x168fd9: 0x2c1
388
+ }, _0x5018c5 = { _0x2798ad: 0x250 }, _0x5391cd = {
389
+ _0x436d7f: 0x1fc,
390
+ _0x4a150d: 0x250
391
+ }, _0x4ac3f2 = {
392
+ _0x573fda: 0x229,
393
+ _0x16415f: 0x1ed
394
+ }, _0x4a9a9e = {
395
+ _0x17112e: 0x1fc,
396
+ _0x1e202e: 0x250,
397
+ _0x52cc81: 0x308
398
+ }, _0x292e33 = {
399
+ _0x1a570c: 0x365,
400
+ _0x2a24c3: 0x1fc,
401
+ _0x220c58: 0x259,
402
+ _0x4d5d17: 0x277
403
+ }, _0x8601f5 = {
404
+ _0x4b3e1f: 0x253,
405
+ _0x399197: 0x2b4,
406
+ _0x5d428c: 0x32c
407
+ }, _0x558ce1 = {
408
+ _0x3783f2: 0x253,
409
+ _0x261ecd: 0x2a2,
410
+ _0x265338: 0x286,
411
+ _0x4793f9: 0x369,
412
+ _0x51d372: 0x253
413
+ }, _0x538e0d = { _0x5e13a6: 0x2cb }, _0x51511d = { _0x32e89b: 0x28a }, _0x480263 = {
414
+ _0x855ff0: 0x1fd,
415
+ _0x351d98: 0x239,
416
+ _0x577a02: 0x1fc,
417
+ _0x183feb: 0x250,
418
+ _0x59bd41: 0x2e5,
419
+ _0xb4a82b: 0x361,
420
+ _0x1a1044: 0x30b,
421
+ _0x418ae7: 0x34b
422
+ }, _0x416b8d = {
423
+ _0x55fd97: 0x26e,
424
+ _0x591b4e: 0x249,
425
+ _0x117c11: 0x293,
426
+ _0x1a9cb4: 0x293,
427
+ _0x54c902: 0x30b,
428
+ _0x492f8f: 0x249,
429
+ _0x2ddf4d: 0x315,
430
+ _0x5e388a: 0x315,
431
+ _0x31ff99: 0x1fc,
432
+ _0x34ff04: 0x1ec,
433
+ _0x568daa: 0x369,
434
+ _0x387d8f: 0x281,
435
+ _0x2c91e5: 0x332
436
+ }, _0x558bce = { _0xf13cc3: 0x27b }, _0x4cd787 = {
437
+ _0x384100: 0x281,
438
+ _0x28ded2: 0x28e,
439
+ _0x3efcdc: 0x260,
440
+ _0x595acb: 0x293,
441
+ _0x4064e2: 0x260
442
+ }, _0x2f78fe = {
443
+ _0x1e2e8e: 0x26d,
444
+ _0x594d07: 0x281,
445
+ _0x29fc93: 0x28e,
446
+ _0x4574c7: 0x293,
447
+ _0x3d1563: 0x281,
448
+ _0x365cd2: 0x33f,
449
+ _0x3a3184: 0x281
450
+ }, _0x186488 = {
451
+ _0x29e830: 0x23e,
452
+ _0x5816a0: 0x352
453
+ }, _0xb6ae38 = {
454
+ _0x38b2ce: 0x369,
455
+ _0x10b15a: 0x21f,
456
+ _0x2c720b: 0x27e,
457
+ _0x47d38f: 0x1ef,
458
+ _0x5e1c77: 0x369,
459
+ _0xb73ad6: 0x34d,
460
+ _0x27bb4c: 0x2f4
461
+ }, _0x4174cd = {
462
+ _0x543fb3: 0x2d6,
463
+ _0x3595a8: 0x363,
464
+ _0x5e5117: 0x369,
465
+ _0x50c9a8: 0x369,
466
+ _0x364e76: 0x26d
467
+ }, _0xcaf13f = {
468
+ _0x498d86: 0x286,
469
+ _0x871932: 0x208,
470
+ _0x48153a: 0x1fe
471
+ }, _0x58844e = {
472
+ _0x44dd62: 0x26a,
473
+ _0xaafffb: 0x20a
474
+ }, _0x5f2073 = {
475
+ _0x2b3b31: 0x2d5,
476
+ _0x54f817: 0x208,
477
+ _0x2d7cbb: 0x1fe
478
+ }, _0x21f38d = {
479
+ _0x1c5e52: 0x33a,
480
+ _0x19bedc: 0x33a,
481
+ _0x495bb7: 0x33a,
482
+ _0x356df6: 0x21b,
483
+ _0x3ccb8c: 0x2d5,
484
+ _0x3c2b9b: 0x208
485
+ }, _0x30b41e = {
486
+ _0x4c3077: 0x2e1,
487
+ _0x4d8d17: 0x280,
488
+ _0x47dbf1: 0x2b9,
489
+ _0x37772d: 0x278,
490
+ _0x5e1127: 0x249
491
+ }, _0x214928 = {
492
+ _0xda973d: 0x2ab,
493
+ _0x2ea7c0: 0x349
494
+ }, _0x10451a = {
495
+ _0x51e9fd: 0x339,
496
+ _0x3dc59a: 0x25d,
497
+ _0x227dfc: 0x322,
498
+ _0x2b8ece: 0x362,
499
+ _0x234777: 0x302,
500
+ _0xc09020: 0x33f,
501
+ _0x3fdb3e: 0x1eb,
502
+ _0x25ebd1: 0x2e0
503
+ }, _0x521ea7 = _0x2d2fb4, _0x30d87c = _0x2805d5[_0x521ea7(0x23d)] ?? fetch, _0x50df63 = _0x2805d5[_0x521ea7(0x228)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x579b40 = typeof _0x2805d5[_0x521ea7(_0x2b39be._0x3e6ac4)] === _0x521ea7(0x28b) && _0x2805d5[_0x521ea7(0x340)] > 0x0 ? _0x2805d5[_0x521ea7(0x340)] : 0x0, _0x4ce33a = _0x2805d5[_0x521ea7(0x231)]?.[_0x521ea7(0x302)]() || void 0x0, _0x343f7c = _0x2805d5[_0x521ea7(_0x2b39be._0xb3b98)]?.[_0x521ea7(0x302)]() || void 0x0, _0x3211ee = _0x2805d5[_0x521ea7(0x267)] === !![], _0x3b4ad0 = _0x2805d5[_0x521ea7(0x2f8)]?.['trim']() || void 0x0, _0x56a32d = _0x2805d5['workerThreadTarget']?.[_0x521ea7(0x302)]() || void 0x0, _0x1c43d2 = createHeaders(_0x2805d5['daemonApiKey']), _0x425b5f = toHttpBaseUrl(_0x2805d5[_0x521ea7(_0x2b39be._0x43fab6)]);
504
+ let _0x48840d = null;
505
+ const _0x471597 = new Map();
506
+ let _0x1ddb77 = _0x579b40, _0x533bdb = _0x579b40;
507
+ function _0x4d1901(_0x4777fe) {
508
+ const _0x2bd0fa = _0x521ea7, _0x59b025 = _0x4777fe['response'][_0x2bd0fa(_0x10451a._0x51e9fd)][_0x2bd0fa(0x295)](_0x2bd0fa(_0x10451a._0x3dc59a)) ?? _0x2bd0fa(_0x10451a._0x227dfc), _0x49c52b = _0x4777fe[_0x2bd0fa(_0x10451a._0x2b8ece)][_0x2bd0fa(_0x10451a._0x234777)]()['replace'](/\s+/g, '\x20')[_0x2bd0fa(_0x10451a._0xc09020)](0x0, 0x78) || '<empty>';
509
+ return _0x2bd0fa(0x23c) + _0x4777fe[_0x2bd0fa(_0x10451a._0x3fdb3e)] + _0x2bd0fa(0x1f7) + _0x4777fe[_0x2bd0fa(_0x10451a._0x25ebd1)]['status'] + ',\x20content-type=' + _0x59b025 + _0x2bd0fa(0x212) + _0x49c52b + _0x2bd0fa(0x2a7);
490
510
  }
491
- async function _0x306930(_0x401a42, _0x597490) {
492
- const _0x708d86 = _0x32298c, _0x51b1bd = Buffer['from'](await _0x597490[_0x708d86(_0x27c0d9._0x5944d0)]())[_0x708d86(0x199)](_0x708d86(_0x27c0d9._0x22d63a));
493
- if (!_0x51b1bd[_0x708d86(0x2af)]())
511
+ async function _0x454aa0(_0xae3183, _0x98866b) {
512
+ const _0x476380 = _0x521ea7, _0x50b63d = Buffer[_0x476380(0x326)](await _0x98866b[_0x476380(0x347)]())['toString'](_0x476380(_0x214928._0xda973d));
513
+ if (!_0x50b63d['trim']())
494
514
  return {};
495
515
  try {
496
- return JSON[_0x708d86(0x211)](_0x51b1bd);
516
+ return JSON[_0x476380(_0x214928._0x2ea7c0)](_0x50b63d);
497
517
  } catch {
498
- throw new Error(_0x5a0b56({
499
- 'bodyText': _0x51b1bd,
500
- 'requestUrl': _0x401a42,
501
- 'response': _0x597490
518
+ throw new Error(_0x4d1901({
519
+ 'bodyText': _0x50b63d,
520
+ 'requestUrl': _0xae3183,
521
+ 'response': _0x98866b
502
522
  }));
503
523
  }
504
524
  }
505
- function _0x473774(_0x3a79c3, _0x500a89) {
506
- const _0xfd1e59 = _0x32298c, _0x56eced = typeof _0x500a89[_0xfd1e59(_0x2e67d4._0x1459d9)] === _0xfd1e59(0x156) ? _0x500a89['idempotency_key']['trim']() : '';
507
- if (_0x56eced)
508
- return _0x56eced;
509
- const _0x55e7dd = Date['now']();
510
- for (const [_0x2b9b69, _0x50b77c] of _0x59ff07) {
511
- _0x50b77c[_0xfd1e59(_0x2e67d4._0xa82bd3)] <= _0x55e7dd && _0x59ff07[_0xfd1e59(0x1ff)](_0x2b9b69);
525
+ function _0x4fb46f(_0x4996cc, _0xd619c2) {
526
+ const _0x2eaafd = _0x521ea7, _0x293bf9 = typeof _0xd619c2['idempotency_key'] === _0x2eaafd(0x2a5) ? _0xd619c2['idempotency_key'][_0x2eaafd(0x302)]() : '';
527
+ if (_0x293bf9)
528
+ return _0x293bf9;
529
+ const _0x5cca09 = Date['now']();
530
+ for (const [_0x520428, _0x559e17] of _0x471597) {
531
+ _0x559e17[_0x2eaafd(0x1ea)] <= _0x5cca09 && _0x471597['delete'](_0x520428);
512
532
  }
513
- const _0x39d8a0 = {
514
- ..._0x500a89,
533
+ const _0x389eb6 = {
534
+ ..._0xd619c2,
515
535
  'idempotency_key': void 0x0
516
- }, _0x25e96f = createHash('sha256')[_0xfd1e59(_0x2e67d4._0x310936)](_0x3a79c3 + ':' + stableStringify(_0x39d8a0))[_0xfd1e59(0x1c6)](_0xfd1e59(0x1e5)), _0xfbcab8 = _0x3a79c3 + ':' + _0x25e96f, _0x42f507 = _0x59ff07[_0xfd1e59(0x1b7)](_0xfbcab8);
517
- if (_0x42f507)
518
- return _0x42f507[_0xfd1e59(_0x2e67d4._0x1768fa)];
519
- const _0x3e894f = _0xfd1e59(_0x2e67d4._0x328978) + _0x3a79c3 + ':' + randomUUID();
520
- return _0x59ff07[_0xfd1e59(_0x2e67d4._0x562efa)](_0xfbcab8, {
521
- 'expiresAt': _0x55e7dd + 0x5 * 0x3c * 0x3e8,
522
- 'value': _0x3e894f
523
- }), _0x3e894f;
536
+ }, _0x5c7298 = createHash(_0x2eaafd(_0x30b41e._0x4c3077))[_0x2eaafd(_0x30b41e._0x4d8d17)](_0x4996cc + ':' + stableStringify(_0x389eb6))['digest'](_0x2eaafd(0x300)), _0x32a56e = _0x4996cc + ':' + _0x5c7298, _0xc31772 = _0x471597['get'](_0x32a56e);
537
+ if (_0xc31772)
538
+ return _0xc31772[_0x2eaafd(_0x30b41e._0x47dbf1)];
539
+ const _0x4b4c34 = _0x2eaafd(_0x30b41e._0x37772d) + _0x4996cc + ':' + randomUUID();
540
+ return _0x471597[_0x2eaafd(_0x30b41e._0x5e1127)](_0x32a56e, {
541
+ 'expiresAt': _0x5cca09 + 0x5 * 0x3c * 0x3e8,
542
+ 'value': _0x4b4c34
543
+ }), _0x4b4c34;
524
544
  }
525
- async function _0x4c9943(_0x4493c8, _0x31d465) {
526
- const _0x2e3ba6 = _0x32298c, _0x5c75cf = new AbortController(), _0x496ec4 = setTimeout(() => _0x5c75cf[_0x2e3ba6(0x1c7)](), _0x1e6947), _0x3830fa = _0x31d465?.['signal'] ? anySignal(_0x31d465['signal'], _0x5c75cf[_0x2e3ba6(_0x110ab5._0x20f3c9)]) : _0x5c75cf[_0x2e3ba6(_0x110ab5._0x70748a)], _0x33b352 = '' + _0x9350ab + _0x4493c8;
545
+ async function _0x401cce(_0x571743, _0x30adf7) {
546
+ const _0x338d7c = _0x521ea7, _0x9c065b = new AbortController(), _0x2ffbc3 = setTimeout(() => _0x9c065b[_0x338d7c(0x291)](), _0x50df63), _0x1630ce = _0x30adf7?.[_0x338d7c(_0x21f38d._0x1c5e52)] ? anySignal(_0x30adf7[_0x338d7c(0x33a)], _0x9c065b[_0x338d7c(_0x21f38d._0x19bedc)]) : _0x9c065b[_0x338d7c(_0x21f38d._0x495bb7)], _0xc85d0d = '' + _0x425b5f + _0x571743;
527
547
  try {
528
- const _0xd900d1 = await _0x4cd3ba(_0x33b352, {
529
- ..._0x31d465,
530
- 'signal': _0x3830fa
531
- }), _0x18a92f = await _0x306930(_0x33b352, _0xd900d1);
532
- if (!_0xd900d1['ok'] || _0x18a92f['success'] === ![])
533
- throw new Error(asErrorMessage(_0x18a92f[_0x2e3ba6(0x21a)], _0x2e3ba6(_0x110ab5._0x12fd20) + _0xd900d1['status']));
534
- return _0x18a92f;
548
+ const _0x40c4ea = await _0x30d87c(_0xc85d0d, {
549
+ ..._0x30adf7,
550
+ 'signal': _0x1630ce
551
+ }), _0xdcf03a = await _0x454aa0(_0xc85d0d, _0x40c4ea);
552
+ if (!_0x40c4ea['ok'] || _0xdcf03a[_0x338d7c(_0x21f38d._0x356df6)] === ![])
553
+ throw new Error(asErrorMessage(_0xdcf03a[_0x338d7c(_0x21f38d._0x3ccb8c)], _0x338d7c(_0x21f38d._0x3c2b9b) + _0x40c4ea[_0x338d7c(0x1fe)]));
554
+ return _0xdcf03a;
535
555
  } finally {
536
- clearTimeout(_0x496ec4);
556
+ clearTimeout(_0x2ffbc3);
537
557
  }
538
558
  }
539
- async function _0x55c715(_0x34b1b0, _0x2cd770) {
540
- const _0x55dec3 = _0x32298c, _0x623b9b = new AbortController(), _0x321deb = setTimeout(() => _0x623b9b[_0x55dec3(0x1c7)](), _0x1e6947), _0x3be7eb = _0x2cd770?.[_0x55dec3(0x275)] ? anySignal(_0x2cd770[_0x55dec3(_0x3f1a74._0x282df0)], _0x623b9b[_0x55dec3(0x275)]) : _0x623b9b[_0x55dec3(0x275)], _0xd5ebd = '' + _0x9350ab + _0x34b1b0;
559
+ async function _0x166648(_0x1b1fdc, _0x1cbcb5) {
560
+ const _0x53bd0e = _0x521ea7, _0x15d522 = new AbortController(), _0x20a9c8 = setTimeout(() => _0x15d522['abort'](), _0x50df63), _0x2f07c1 = _0x1cbcb5?.['signal'] ? anySignal(_0x1cbcb5[_0x53bd0e(0x33a)], _0x15d522['signal']) : _0x15d522['signal'], _0x31e5fb = '' + _0x425b5f + _0x1b1fdc;
541
561
  try {
542
- const _0x1ec50f = await _0x4cd3ba(_0xd5ebd, {
543
- ..._0x2cd770,
544
- 'signal': _0x3be7eb
545
- }), _0xe2642d = await _0x306930(_0xd5ebd, _0x1ec50f);
546
- if (!_0x1ec50f['ok'])
547
- throw new Error(asErrorMessage(_0xe2642d[_0x55dec3(0x21a)], _0x55dec3(_0x3f1a74._0x5bd82d) + _0x1ec50f[_0x55dec3(_0x3f1a74._0x13e8ce)]));
548
- return _0xe2642d;
562
+ const _0x56d002 = await _0x30d87c(_0x31e5fb, {
563
+ ..._0x1cbcb5,
564
+ 'signal': _0x2f07c1
565
+ }), _0x48ee6e = await _0x454aa0(_0x31e5fb, _0x56d002);
566
+ if (!_0x56d002['ok'])
567
+ throw new Error(asErrorMessage(_0x48ee6e[_0x53bd0e(_0x5f2073._0x2b3b31)], _0x53bd0e(_0x5f2073._0x54f817) + _0x56d002[_0x53bd0e(_0x5f2073._0x2d7cbb)]));
568
+ return _0x48ee6e;
549
569
  } finally {
550
- clearTimeout(_0x321deb);
570
+ clearTimeout(_0x20a9c8);
551
571
  }
552
572
  }
553
- async function _0x5e478(_0x48932c) {
554
- const _0x14db97 = _0x32298c;
555
- if (!_0x385890 || _0x48932c <= _0x4d6e6e)
573
+ async function _0x26688c(_0x1d112f) {
574
+ const _0x453d17 = _0x521ea7;
575
+ if (!_0x343f7c || _0x1d112f <= _0x533bdb)
556
576
  return;
557
- await _0x4c9943('/api/agent-sessions/' + encodeURIComponent(_0x385890) + _0x14db97(_0x326416._0x23c6bd), {
558
- 'body': JSON[_0x14db97(0x1d9)]({ 'lastSeenSeq': _0x48932c }),
559
- 'headers': _0x44d056,
560
- 'method': _0x14db97(0x1d3)
561
- }), _0x4d6e6e = _0x48932c;
577
+ await _0x401cce(_0x453d17(_0x58844e._0x44dd62) + encodeURIComponent(_0x343f7c) + _0x453d17(_0x58844e._0xaafffb), {
578
+ 'body': JSON['stringify']({ 'lastSeenSeq': _0x1d112f }),
579
+ 'headers': _0x1c43d2,
580
+ 'method': _0x453d17(0x2ce)
581
+ }), _0x533bdb = _0x1d112f;
562
582
  }
563
- async function _0x3901d3(_0x15148e) {
564
- const _0x510a31 = _0x32298c;
565
- if (!_0x135a1b || !_0x3fd298 || _0x15148e <= _0x4d6e6e)
583
+ async function _0x563125(_0x3cd930) {
584
+ const _0x16cb24 = _0x521ea7;
585
+ if (!_0x4ce33a || !_0x3b4ad0 || _0x3cd930 <= _0x533bdb)
566
586
  return;
567
- const _0x58ee36 = await _0x4cd3ba(_0x135a1b + _0x510a31(_0x1b3d9b._0x44ebc4), {
568
- 'body': JSON[_0x510a31(_0x1b3d9b._0x15c470)]({
569
- 'last_seen_seq': _0x15148e,
570
- 'worker_session_id': _0x3fd298
587
+ const _0x4032f3 = await _0x30d87c(_0x4ce33a + _0x16cb24(0x28f), {
588
+ 'body': JSON[_0x16cb24(_0xcaf13f._0x498d86)]({
589
+ 'last_seen_seq': _0x3cd930,
590
+ 'worker_session_id': _0x3b4ad0
571
591
  }),
572
- 'headers': { 'Content-Type': _0x510a31(0x15b) },
573
- 'method': 'POST'
592
+ 'headers': { 'Content-Type': _0x16cb24(0x2a6) },
593
+ 'method': _0x16cb24(0x1ed)
574
594
  });
575
- if (!_0x58ee36['ok'])
576
- throw new Error(_0x510a31(0x2b3) + _0x58ee36[_0x510a31(_0x1b3d9b._0x3518d0)]);
577
- _0x4d6e6e = _0x15148e;
595
+ if (!_0x4032f3['ok'])
596
+ throw new Error(_0x16cb24(_0xcaf13f._0x871932) + _0x4032f3[_0x16cb24(_0xcaf13f._0x48153a)]);
597
+ _0x533bdb = _0x3cd930;
578
598
  }
579
- async function _0x44ad85(_0x538d59) {
580
- const _0x404123 = _0x32298c, _0x3b2cfb = parseTarget(_0x538d59), _0x109926 = await _0x4c9943(_0x404123(_0x5c9229._0x1cf57f) + _0x1a18d1[_0x404123(0x18b)] + _0x404123(0x12f), {
581
- 'body': JSON[_0x404123(0x1d9)]({ 'target': _0x3b2cfb[_0x404123(0x1da)] }),
582
- 'headers': _0x44d056,
583
- 'method': _0x404123(0x285)
599
+ async function _0x4fee2c(_0x4399af) {
600
+ const _0x56feee = _0x521ea7, _0x20e2cd = parseTarget(_0x4399af), _0x4d4090 = await _0x401cce(_0x56feee(0x1fc) + _0x2805d5[_0x56feee(0x250)] + _0x56feee(_0x4174cd._0x543fb3), {
601
+ 'body': JSON[_0x56feee(0x286)]({ 'target': _0x20e2cd['target'] }),
602
+ 'headers': _0x1c43d2,
603
+ 'method': _0x56feee(0x1ed)
584
604
  });
585
605
  return {
586
- 'channelId': _0x109926['data']?.[_0x404123(0x18d)] ?? '',
587
- 'target': _0x3b2cfb[_0x404123(0x131)],
588
- 'task': _0x109926[_0x404123(_0x5c9229._0x99eb9)]?.[_0x404123(0x14a)],
589
- 'threadId': _0x109926[_0x404123(_0x5c9229._0xc3bb37)]?.[_0x404123(_0x5c9229._0x4bb49d)],
590
- 'threadNumber': _0x109926[_0x404123(_0x5c9229._0x273110)]?.[_0x404123(_0x5c9229._0x2ac876)]
606
+ 'channelId': _0x4d4090[_0x56feee(0x369)]?.[_0x56feee(0x30b)] ?? '',
607
+ 'target': _0x20e2cd[_0x56feee(0x281)],
608
+ 'task': _0x4d4090[_0x56feee(0x369)]?.[_0x56feee(_0x4174cd._0x3595a8)],
609
+ 'threadId': _0x4d4090[_0x56feee(_0x4174cd._0x5e5117)]?.[_0x56feee(0x293)],
610
+ 'threadNumber': _0x4d4090[_0x56feee(_0x4174cd._0x50c9a8)]?.[_0x56feee(_0x4174cd._0x364e76)]
591
611
  };
592
612
  }
593
- async function _0x1e08f0(_0x527c80 = {}) {
594
- const _0x297ed4 = {
595
- _0x1681ad: 0x18b,
596
- _0xd9ca0b: 0x266,
597
- _0x3e67b9: 0x261,
598
- _0x58344d: 0x1d7,
599
- _0x1a76b5: 0x136,
600
- _0x52c09c: 0x136,
601
- _0xf1780e: 0x1d7,
602
- _0x2e7bd7: 0x2a8,
603
- _0xd58722: 0x1e8
604
- }, _0x3b5f01 = _0x32298c;
605
- if (!_0x527c80[_0x3b5f01(_0x4c181e._0x4928c2)] && _0x51fb07)
606
- return _0x51fb07;
607
- return _0x51fb07 = (async () => {
608
- const _0xdb9ea8 = _0x3b5f01, _0x15b54a = await _0x4c9943(_0xdb9ea8(0x1d8) + _0x1a18d1[_0xdb9ea8(_0x297ed4._0x1681ad)] + _0xdb9ea8(0x188), {
609
- 'headers': _0x44d056,
610
- 'method': _0xdb9ea8(0x174)
611
- }), _0x301d2c = _0x15b54a[_0xdb9ea8(_0x297ed4._0xd9ca0b)]?.[_0xdb9ea8(_0x297ed4._0x3e67b9)] ?? [], _0x3aeff3 = _0x301d2c['filter'](_0x340272 => _0x340272[_0xdb9ea8(0x2ac)]?.[_0xdb9ea8(0x1a9)] === _0xdb9ea8(0x28c))[_0xdb9ea8(_0x297ed4._0x58344d)](_0x52e4e9 => ({
612
- 'id': _0x39332e(_0x52e4e9),
613
- 'name': _0x255905(_0x52e4e9)
614
- }))[_0xdb9ea8(_0x297ed4._0x1a76b5)](_0x2fe48c => _0x2fe48c['id']), _0x5c9471 = _0x301d2c[_0xdb9ea8(_0x297ed4._0x52c09c)](_0x2abef9 => _0x2abef9[_0xdb9ea8(0x2ac)]?.[_0xdb9ea8(0x1a9)] !== 'agent')[_0xdb9ea8(_0x297ed4._0xf1780e)](_0x31b0af => ({
615
- 'id': _0x39332e(_0x31b0af),
616
- 'name': _0x255905(_0x31b0af)
617
- }))['filter'](_0x4baf07 => _0x4baf07['id']), _0x323709 = _0x15b54a[_0xdb9ea8(_0x297ed4._0xd9ca0b)]?.[_0xdb9ea8(_0x297ed4._0x2e7bd7)]['id'] ?? '';
613
+ async function _0x552e56(_0x49445b = {}) {
614
+ const _0x28604e = _0x521ea7;
615
+ if (!_0x49445b[_0x28604e(_0x186488._0x29e830)] && _0x48840d)
616
+ return _0x48840d;
617
+ return _0x48840d = (async () => {
618
+ const _0x23ff44 = _0x28604e, _0x5c303c = await _0x401cce('/internal/agent/' + _0x2805d5[_0x23ff44(0x250)] + _0x23ff44(0x1f5), {
619
+ 'headers': _0x1c43d2,
620
+ 'method': _0x23ff44(0x277)
621
+ }), _0x226d16 = _0x5c303c[_0x23ff44(_0xb6ae38._0x38b2ce)]?.[_0x23ff44(_0xb6ae38._0x10b15a)] ?? [], _0x507b19 = _0x226d16['filter'](_0x4568bb => _0x4568bb['participant']?.[_0x23ff44(0x1fa)] === _0x23ff44(0x207))[_0x23ff44(_0xb6ae38._0x2c720b)](_0x5ef60f => ({
622
+ 'id': _0x52dc7b(_0x5ef60f),
623
+ 'name': _0x9dfb00(_0x5ef60f)
624
+ }))[_0x23ff44(0x1ef)](_0x48b4a8 => _0x48b4a8['id']), _0x20ca8e = _0x226d16[_0x23ff44(_0xb6ae38._0x47d38f)](_0x4e507 => _0x4e507[_0x23ff44(0x26c)]?.[_0x23ff44(0x1fa)] !== _0x23ff44(0x207))[_0x23ff44(0x27e)](_0x68aec9 => ({
625
+ 'id': _0x52dc7b(_0x68aec9),
626
+ 'name': _0x9dfb00(_0x68aec9)
627
+ }))['filter'](_0x56e663 => _0x56e663['id']), _0x5437fe = _0x5c303c[_0x23ff44(0x369)]?.[_0x23ff44(0x2f4)]['id'] ?? '';
618
628
  return {
619
- 'agents': _0x3aeff3,
620
- 'channels': _0x15b54a[_0xdb9ea8(_0x297ed4._0xd9ca0b)]?.[_0xdb9ea8(0x24a)] ?? [],
621
- 'humans': _0x5c9471,
622
- 'serverId': _0x323709,
623
- 'serverName': _0x15b54a['data']?.[_0xdb9ea8(_0x297ed4._0x2e7bd7)][_0xdb9ea8(_0x297ed4._0xd58722)] ?? _0x323709
629
+ 'agents': _0x507b19,
630
+ 'channels': _0x5c303c[_0x23ff44(_0xb6ae38._0x5e1c77)]?.[_0x23ff44(_0xb6ae38._0xb73ad6)] ?? [],
631
+ 'humans': _0x20ca8e,
632
+ 'serverId': _0x5437fe,
633
+ 'serverName': _0x5c303c[_0x23ff44(_0xb6ae38._0x5e1c77)]?.[_0x23ff44(_0xb6ae38._0x27bb4c)][_0x23ff44(0x2e7)] ?? _0x5437fe
624
634
  };
625
- })()[_0x3b5f01(0x1c2)](_0xd4dc86 => {
626
- _0x51fb07 = null;
627
- throw _0xd4dc86;
628
- }), _0x51fb07;
635
+ })()[_0x28604e(_0x186488._0x5816a0)](_0x3768ad => {
636
+ _0x48840d = null;
637
+ throw _0x3768ad;
638
+ }), _0x48840d;
629
639
  }
630
- function _0x2a98a4(_0x23276f, _0x456d93) {
631
- const _0x356a77 = _0x32298c;
632
- return _0x456d93['agents'][_0x356a77(0x205)](_0x43c4eb => _0x43c4eb['id'] === _0x23276f || _0x43c4eb[_0x356a77(0x1e8)] === _0x23276f) ? _0x356a77(0x28c) : _0x356a77(0x2b8);
640
+ function _0x36bf2f(_0x5b14fc, _0x370895) {
641
+ const _0x471c25 = _0x521ea7;
642
+ return _0x370895['agents']['some'](_0x5116e1 => _0x5116e1['id'] === _0x5b14fc || _0x5116e1[_0x471c25(0x2e7)] === _0x5b14fc) ? _0x471c25(0x207) : 'human';
633
643
  }
634
- function _0x21cce1(_0x547495) {
635
- const _0x464d11 = _0x32298c;
636
- if (_0x547495[_0x464d11(_0x1106c7._0x368890)] != null)
637
- return _0x547495[_0x464d11(_0x1106c7._0x3b46da)] + ':t' + _0x547495[_0x464d11(_0x1106c7._0x368890)];
638
- if (_0x547495[_0x464d11(_0x1106c7._0x209e42)])
639
- return _0x547495[_0x464d11(0x131)] + ':' + _0x547495[_0x464d11(0x186)];
640
- if (_0x547495[_0x464d11(_0x1106c7._0x299d1a)])
641
- return _0x547495[_0x464d11(_0x1106c7._0x4727bd)] + ':' + _0x547495['threadId'][_0x464d11(_0x1106c7._0x3b87e9)](0x0, 0x8);
642
- return _0x547495[_0x464d11(0x131)];
644
+ function _0xf96b98(_0x15ea66) {
645
+ const _0x501a41 = _0x521ea7;
646
+ if (_0x15ea66[_0x501a41(_0x2f78fe._0x1e2e8e)] != null)
647
+ return _0x15ea66[_0x501a41(_0x2f78fe._0x594d07)] + ':t' + _0x15ea66[_0x501a41(_0x2f78fe._0x1e2e8e)];
648
+ if (_0x15ea66[_0x501a41(_0x2f78fe._0x29fc93)])
649
+ return _0x15ea66[_0x501a41(0x281)] + ':' + _0x15ea66['rootMessageId'];
650
+ if (_0x15ea66[_0x501a41(_0x2f78fe._0x4574c7)])
651
+ return _0x15ea66[_0x501a41(_0x2f78fe._0x3d1563)] + ':' + _0x15ea66[_0x501a41(0x293)][_0x501a41(_0x2f78fe._0x365cd2)](0x0, 0x8);
652
+ return _0x15ea66[_0x501a41(_0x2f78fe._0x3a3184)];
643
653
  }
644
- function _0x1281d3(_0xf80f93, _0x2a30cb) {
645
- const _0x31f920 = _0x32298c;
654
+ function _0x5fc82a(_0x46533d, _0x1e1b8a) {
655
+ const _0x29d03e = _0x521ea7;
646
656
  try {
647
- const _0x5dfd8a = parseTarget(_0xf80f93);
648
- if (_0x5dfd8a[_0x31f920(_0x49fc99._0x190975)] !== _0x31f920(0x260) || _0x5dfd8a[_0x31f920(0x131)] !== _0x2a30cb[_0x31f920(_0x49fc99._0x21b458)])
657
+ const _0x19697a = parseTarget(_0x46533d);
658
+ if (_0x19697a['kind'] !== 'thread' || _0x19697a[_0x29d03e(_0x4cd787._0x384100)] !== _0x1e1b8a['channelTarget'])
649
659
  return ![];
650
- if (_0x2a30cb[_0x31f920(0x229)] != null && _0x5dfd8a[_0x31f920(_0x49fc99._0x4a70e5)] === 't' + _0x2a30cb['threadNumber'])
660
+ if (_0x1e1b8a[_0x29d03e(0x26d)] != null && _0x19697a[_0x29d03e(0x260)] === 't' + _0x1e1b8a[_0x29d03e(0x26d)])
651
661
  return !![];
652
- if (_0x2a30cb[_0x31f920(0x186)])
653
- return _0x5dfd8a['threadShortId'] === _0x2a30cb[_0x31f920(0x186)] || _0x2a30cb['rootMessageId']['startsWith'](_0x5dfd8a[_0x31f920(0x2a4)]);
654
- if (_0x2a30cb['threadId'])
655
- return _0x5dfd8a[_0x31f920(_0x49fc99._0xd75011)] === _0x2a30cb[_0x31f920(_0x49fc99._0x3aaae9)] || _0x2a30cb[_0x31f920(0x1f5)][_0x31f920(_0x49fc99._0x2eb2bb)](_0x5dfd8a['threadShortId']);
662
+ if (_0x1e1b8a[_0x29d03e(_0x4cd787._0x28ded2)])
663
+ return _0x19697a['threadShortId'] === _0x1e1b8a[_0x29d03e(0x28e)] || _0x1e1b8a[_0x29d03e(0x28e)]['startsWith'](_0x19697a[_0x29d03e(_0x4cd787._0x3efcdc)]);
664
+ if (_0x1e1b8a[_0x29d03e(_0x4cd787._0x595acb)])
665
+ return _0x19697a[_0x29d03e(_0x4cd787._0x4064e2)] === _0x1e1b8a['threadId'] || _0x1e1b8a['threadId']['startsWith'](_0x19697a['threadShortId']);
656
666
  return ![];
657
667
  } catch {
658
668
  return ![];
659
669
  }
660
670
  }
661
- function _0x39332e(_0x125ab2) {
662
- const _0x24d8b8 = _0x32298c;
663
- return _0x125ab2[_0x24d8b8(0x23b)]?.[_0x24d8b8(0x220)] ?? _0x125ab2[_0x24d8b8(_0x3feabf._0x239b30)]?.['id'] ?? _0x125ab2[_0x24d8b8(_0x3feabf._0x5bd364)] ?? '';
671
+ function _0x52dc7b(_0x48852d) {
672
+ const _0x124760 = _0x521ea7;
673
+ return _0x48852d[_0x124760(0x2c8)]?.['participantId'] ?? _0x48852d[_0x124760(0x26c)]?.['id'] ?? _0x48852d[_0x124760(_0x558bce._0xf13cc3)] ?? '';
664
674
  }
665
- function _0x255905(_0x6dfdc8) {
666
- const _0x3ef49b = _0x32298c;
667
- return _0x6dfdc8[_0x3ef49b(_0x537a25._0xb57c78)]?.[_0x3ef49b(0x1e8)] ?? _0x39332e(_0x6dfdc8);
675
+ function _0x9dfb00(_0xec3dec) {
676
+ const _0x616736 = _0x521ea7;
677
+ return _0xec3dec[_0x616736(0x26c)]?.['name'] ?? _0x52dc7b(_0xec3dec);
668
678
  }
669
- async function _0x4de117(_0x1ada1a) {
670
- const _0x3c26b8 = _0x32298c, _0x551b27 = Math[_0x3c26b8(0x20c)](_0x1ada1a['limit'] ?? 0x32, 0x64), _0x3b2174 = await _0x1e08f0(), _0x43cc97 = new URLSearchParams();
671
- _0x43cc97[_0x3c26b8(0x184)](_0x3c26b8(0x18a), String(_0x551b27));
672
- _0x1ada1a['threadId'] ? (_0x43cc97[_0x3c26b8(0x184)](_0x3c26b8(0x1f5), _0x1ada1a['threadId']), _0x43cc97[_0x3c26b8(0x184)](_0x3c26b8(0x18d), _0x1ada1a[_0x3c26b8(0x18d)])) : _0x43cc97[_0x3c26b8(_0x34943e._0x42f307)]('channelId', _0x1ada1a[_0x3c26b8(_0x34943e._0x449dfe)]);
673
- _0x1ada1a[_0x3c26b8(0x20d)] && _0x43cc97['set'](_0x3c26b8(_0x34943e._0x11d651), String(_0x1ada1a[_0x3c26b8(0x20d)]));
674
- _0x1ada1a['after'] !== void 0x0 && _0x43cc97[_0x3c26b8(0x184)](_0x3c26b8(_0x34943e._0x1555fa), String(_0x1ada1a[_0x3c26b8(0x21e)]));
675
- const _0x45b72c = await _0x4c9943(_0x3c26b8(_0x34943e._0x3a1f88) + _0x1a18d1[_0x3c26b8(0x18b)] + '/history?' + _0x43cc97[_0x3c26b8(0x199)](), {
676
- 'headers': _0x44d056,
679
+ async function _0x28c072(_0x558451) {
680
+ const _0x3781f1 = _0x521ea7, _0x31a99b = Math[_0x3781f1(_0x416b8d._0x55fd97)](_0x558451[_0x3781f1(0x341)] ?? 0x32, 0x64), _0x12c5e8 = await _0x552e56(), _0x412f25 = new URLSearchParams();
681
+ _0x412f25[_0x3781f1(_0x416b8d._0x591b4e)](_0x3781f1(0x341), String(_0x31a99b));
682
+ _0x558451['threadId'] ? (_0x412f25[_0x3781f1(0x249)](_0x3781f1(_0x416b8d._0x117c11), _0x558451[_0x3781f1(_0x416b8d._0x1a9cb4)]), _0x412f25[_0x3781f1(0x249)](_0x3781f1(0x30b), _0x558451[_0x3781f1(_0x416b8d._0x54c902)])) : _0x412f25[_0x3781f1(_0x416b8d._0x492f8f)]('channelId', _0x558451[_0x3781f1(0x30b)]);
683
+ _0x558451[_0x3781f1(_0x416b8d._0x2ddf4d)] && _0x412f25[_0x3781f1(_0x416b8d._0x591b4e)]('cursor', String(_0x558451[_0x3781f1(_0x416b8d._0x5e388a)]));
684
+ _0x558451[_0x3781f1(0x371)] !== void 0x0 && _0x412f25[_0x3781f1(0x249)](_0x3781f1(0x371), String(_0x558451['after']));
685
+ const _0x2a71b = await _0x401cce(_0x3781f1(_0x416b8d._0x31ff99) + _0x2805d5[_0x3781f1(0x250)] + _0x3781f1(_0x416b8d._0x34ff04) + _0x412f25['toString'](), {
686
+ 'headers': _0x1c43d2,
677
687
  'method': 'GET'
678
- }), _0x5c2ef2 = (_0x45b72c[_0x3c26b8(0x266)] ?? [])[_0x3c26b8(0x1d7)](_0x43a2d8 => ({
679
- 'attachments': (_0x43a2d8['attachments'] ?? [])[_0x3c26b8(0x1d7)](_0x50a3d9 => ({
680
- 'filename': _0x50a3d9[_0x3c26b8(0x13f)] ?? _0x50a3d9['id'],
681
- 'id': _0x50a3d9['id']
688
+ }), _0x386009 = (_0x2a71b[_0x3781f1(_0x416b8d._0x568daa)] ?? [])['map'](_0x140c15 => ({
689
+ 'attachments': (_0x140c15[_0x3781f1(0x304)] ?? [])[_0x3781f1(0x27e)](_0x1390c3 => ({
690
+ 'filename': _0x1390c3[_0x3781f1(0x269)] ?? _0x1390c3['id'],
691
+ 'id': _0x1390c3['id']
682
692
  })),
683
- 'content': _0x43a2d8[_0x3c26b8(0x1b0)] ?? '',
684
- 'createdAt': _0x43a2d8[_0x3c26b8(0x166)],
685
- 'messageId': _0x43a2d8['id'],
686
- 'senderName': _0x43a2d8['senderParticipantId'],
687
- 'senderType': _0x2a98a4(_0x43a2d8[_0x3c26b8(0x287)], _0x3b2174),
688
- 'seq': _0x43a2d8[_0x3c26b8(0x23d)] ?? 0x0
693
+ 'content': _0x140c15[_0x3781f1(0x2e2)] ?? '',
694
+ 'createdAt': _0x140c15[_0x3781f1(0x29c)],
695
+ ..._0x140c15[_0x3781f1(0x2b2)] && _0x140c15[_0x3781f1(0x2b2)] !== 'chat' ? { 'kind': _0x140c15[_0x3781f1(0x2b2)] } : {},
696
+ 'messageId': _0x140c15['id'],
697
+ 'senderName': _0x140c15[_0x3781f1(0x27a)],
698
+ 'senderType': _0x36bf2f(_0x140c15[_0x3781f1(0x27a)], _0x12c5e8),
699
+ 'seq': _0x140c15[_0x3781f1(0x358)] ?? 0x0
689
700
  }));
690
701
  return {
691
- 'channel': _0x1ada1a[_0x3c26b8(0x131)],
692
- 'hasMore': _0x45b72c[_0x3c26b8(_0x34943e._0x2b33fa)]?.[_0x3c26b8(0x243)] ?? ![],
693
- 'messages': _0x5c2ef2,
694
- 'nextCursor': _0x45b72c[_0x3c26b8(_0x34943e._0x2b33fa)]?.[_0x3c26b8(_0x34943e._0x1f80db)]
702
+ 'channel': _0x558451[_0x3781f1(_0x416b8d._0x387d8f)],
703
+ 'hasMore': _0x2a71b[_0x3781f1(0x332)]?.[_0x3781f1(0x204)] ?? ![],
704
+ 'messages': _0x386009,
705
+ 'nextCursor': _0x2a71b[_0x3781f1(_0x416b8d._0x2c91e5)]?.[_0x3781f1(0x265)]
695
706
  };
696
707
  }
697
708
  return {
698
- async 'sendMessage'(_0x2bfa4c) {
699
- const _0x351374 = _0x32298c, _0x36cc61 = await _0x44ad85(_0x2bfa4c[_0x351374(_0x41654f._0x1a0d7c)]), _0x45bc10 = _0x2bfa4c[_0x351374(0x17d)]['includes']('@') ? extractMentionedParticipantIds(_0x2bfa4c[_0x351374(_0x41654f._0x236b00)], await _0x1e08f0()) : [], _0x3fb236 = await _0x4c9943(_0x351374(_0x41654f._0x4b8f56) + _0x1a18d1[_0x351374(0x18b)] + '/send', {
700
- 'body': JSON[_0x351374(0x1d9)]({
701
- 'attachment_ids': _0x2bfa4c[_0x351374(0x244)],
702
- 'bodyMarkdown': _0x2bfa4c[_0x351374(0x17d)],
703
- 'channelId': _0x36cc61[_0x351374(0x18d)],
704
- ..._0x45bc10['length'] > 0x0 ? { 'mentionedParticipantIds': _0x45bc10 } : {},
705
- 'threadId': _0x36cc61[_0x351374(0x1f5)],
706
- ..._0x2bfa4c[_0x351374(_0x41654f._0x40c3d1)] ? { 'visibility': _0x2bfa4c[_0x351374(_0x41654f._0x40c3d1)] } : {}
709
+ async 'sendMessage'(_0x53ca15) {
710
+ const _0x3dbe12 = _0x521ea7, _0x32e925 = await _0x4fee2c(_0x53ca15[_0x3dbe12(_0x480263._0x855ff0)]), _0x146ffa = _0x53ca15['content'][_0x3dbe12(0x2ad)]('@') ? extractMentionedParticipantIds(_0x53ca15[_0x3dbe12(_0x480263._0x351d98)], await _0x552e56()) : [], _0xcdda96 = await _0x401cce(_0x3dbe12(_0x480263._0x577a02) + _0x2805d5[_0x3dbe12(_0x480263._0x183feb)] + _0x3dbe12(_0x480263._0x59bd41), {
711
+ 'body': JSON[_0x3dbe12(0x286)]({
712
+ 'attachment_ids': _0x53ca15[_0x3dbe12(_0x480263._0xb4a82b)],
713
+ 'bodyMarkdown': _0x53ca15[_0x3dbe12(_0x480263._0x351d98)],
714
+ 'channelId': _0x32e925[_0x3dbe12(_0x480263._0x1a1044)],
715
+ ..._0x146ffa[_0x3dbe12(_0x480263._0x418ae7)] > 0x0 ? { 'mentionedParticipantIds': _0x146ffa } : {},
716
+ 'threadId': _0x32e925['threadId'],
717
+ ..._0x53ca15[_0x3dbe12(0x22a)] ? { 'visibility': _0x53ca15['visibility'] } : {}
707
718
  }),
708
- 'headers': _0x44d056,
709
- 'method': _0x351374(_0x41654f._0x53c857)
719
+ 'headers': _0x1c43d2,
720
+ 'method': _0x3dbe12(0x1ed)
710
721
  });
711
- return { 'messageId': _0x3fb236[_0x351374(_0x41654f._0x151203)]?.['id'] ?? '' };
722
+ return { 'messageId': _0xcdda96['data']?.['id'] ?? '' };
712
723
  },
713
724
  async 'listSchedules'() {
714
- const _0x1fb1e3 = _0x32298c, _0x125c29 = await _0x4c9943('/api/internal/schedules', {
715
- 'headers': _0x44d056,
716
- 'method': 'GET'
725
+ const _0x5afc4b = _0x521ea7, _0x4ee35c = await _0x401cce(_0x5afc4b(_0x51511d._0x32e89b), {
726
+ 'headers': _0x1c43d2,
727
+ 'method': _0x5afc4b(0x277)
717
728
  });
718
- return _0x125c29[_0x1fb1e3(0x266)] ?? [];
729
+ return _0x4ee35c[_0x5afc4b(0x369)] ?? [];
719
730
  },
720
- async 'claimScheduleRun'(_0x9babee) {
721
- const _0x101e15 = _0x32298c, _0x3f9b34 = await _0x4c9943(_0x101e15(_0x2cbe56._0x441176), {
722
- 'body': JSON['stringify'](_0x9babee),
723
- 'headers': _0x44d056,
724
- 'method': _0x101e15(_0x2cbe56._0x32fe90)
731
+ async 'claimScheduleRun'(_0x4601b6) {
732
+ const _0x8a51e9 = _0x521ea7, _0x54ffd6 = await _0x401cce(_0x8a51e9(_0x538e0d._0x5e13a6), {
733
+ 'body': JSON['stringify'](_0x4601b6),
734
+ 'headers': _0x1c43d2,
735
+ 'method': _0x8a51e9(0x1ed)
725
736
  });
726
- return _0x3f9b34['data'] ?? {
737
+ return _0x54ffd6[_0x8a51e9(0x369)] ?? {
727
738
  'granted': ![],
728
739
  'runId': null,
729
740
  'schedule': null,
730
- 'scheduledFor': _0x9babee[_0x101e15(_0x2cbe56._0x5c9e90)]
741
+ 'scheduledFor': _0x4601b6[_0x8a51e9(0x283)]
731
742
  };
732
743
  },
733
- async 'startScheduleRun'(_0x499962) {
734
- const _0x12a582 = _0x32298c, _0x50ccec = await _0x4c9943('/api/internal/schedules/' + encodeURIComponent(_0x499962[_0x12a582(_0x41c4f0._0x1bb5f8)]) + '/start', {
735
- 'body': JSON['stringify']({}),
736
- 'headers': _0x44d056,
737
- 'method': 'POST'
744
+ async 'startScheduleRun'(_0x2c8d2a) {
745
+ const _0x5449ec = _0x521ea7, _0x562acf = await _0x401cce(_0x5449ec(0x299) + encodeURIComponent(_0x2c8d2a[_0x5449ec(_0x558ce1._0x3783f2)]) + _0x5449ec(_0x558ce1._0x261ecd), {
746
+ 'body': JSON[_0x5449ec(_0x558ce1._0x265338)]({}),
747
+ 'headers': _0x1c43d2,
748
+ 'method': _0x5449ec(0x1ed)
738
749
  });
739
- return _0x50ccec[_0x12a582(0x266)] ?? {
750
+ return _0x562acf[_0x5449ec(_0x558ce1._0x4793f9)] ?? {
740
751
  'claimedByDaemonId': '',
741
- 'id': _0x499962[_0x12a582(0x1bf)],
752
+ 'id': _0x2c8d2a[_0x5449ec(_0x558ce1._0x51d372)],
742
753
  'scheduleId': '',
743
- 'status': _0x12a582(_0x41c4f0._0x2a4f62)
754
+ 'status': 'running'
744
755
  };
745
756
  },
746
- async 'finishScheduleRun'(_0x5d8500) {
747
- const _0x524883 = _0x32298c, _0x2cb7f9 = await _0x4c9943(_0x524883(0x242) + encodeURIComponent(_0x5d8500['runId']) + _0x524883(0x1d2), {
748
- 'body': JSON[_0x524883(0x1d9)]({
749
- 'error': _0x5d8500[_0x524883(0x21a)],
750
- 'resultJson': _0x5d8500[_0x524883(0x18e)],
751
- 'status': _0x5d8500['status']
757
+ async 'finishScheduleRun'(_0x278f44) {
758
+ const _0x41aec8 = _0x521ea7, _0x36b87b = await _0x401cce('/api/internal/schedules/' + encodeURIComponent(_0x278f44[_0x41aec8(_0x8601f5._0x4b3e1f)]) + _0x41aec8(_0x8601f5._0x399197), {
759
+ 'body': JSON['stringify']({
760
+ 'error': _0x278f44[_0x41aec8(0x2d5)],
761
+ 'resultJson': _0x278f44[_0x41aec8(_0x8601f5._0x5d428c)],
762
+ 'status': _0x278f44['status']
752
763
  }),
753
- 'headers': _0x44d056,
754
- 'method': _0x524883(_0x4d6310._0x5b533f)
764
+ 'headers': _0x1c43d2,
765
+ 'method': 'POST'
755
766
  });
756
- return _0x2cb7f9['data'] ?? {
767
+ return _0x36b87b[_0x41aec8(0x369)] ?? {
757
768
  'nextRunAt': null,
758
769
  'run': {
759
770
  'claimedByDaemonId': '',
760
- 'id': _0x5d8500[_0x524883(_0x4d6310._0x302d1f)],
771
+ 'id': _0x278f44['runId'],
761
772
  'scheduleId': '',
762
- 'status': _0x5d8500['status']
773
+ 'status': _0x278f44['status']
763
774
  }
764
775
  };
765
776
  },
766
- async 'listTasks'(_0x3c302a) {
767
- const _0x1dd14c = _0x32298c, _0x2b0bd2 = new URLSearchParams();
768
- return _0x2b0bd2[_0x1dd14c(0x184)](_0x1dd14c(_0x256a1c._0x247fb9), _0x3c302a[_0x1dd14c(0x1db)]), _0x3c302a[_0x1dd14c(_0x256a1c._0x188cfc)] && _0x2b0bd2[_0x1dd14c(0x184)](_0x1dd14c(_0x256a1c._0x188cfc), _0x3c302a['status']), _0x55c715(_0x1dd14c(_0x256a1c._0x59384a) + _0x1a18d1[_0x1dd14c(_0x256a1c._0x49d933)] + _0x1dd14c(_0x256a1c._0xf0cae2) + _0x2b0bd2[_0x1dd14c(0x199)](), {
769
- 'headers': _0x44d056,
770
- 'method': _0x1dd14c(0x174)
777
+ async 'listTasks'(_0xe4a6c3) {
778
+ const _0x3dccb3 = _0x521ea7, _0x1809f6 = new URLSearchParams();
779
+ return _0x1809f6['set'](_0x3dccb3(0x365), _0xe4a6c3[_0x3dccb3(_0x292e33._0x1a570c)]), _0xe4a6c3['status'] && _0x1809f6['set']('status', _0xe4a6c3[_0x3dccb3(0x1fe)]), _0x166648(_0x3dccb3(_0x292e33._0x2a24c3) + _0x2805d5[_0x3dccb3(0x250)] + _0x3dccb3(_0x292e33._0x220c58) + _0x1809f6[_0x3dccb3(0x2a9)](), {
780
+ 'headers': _0x1c43d2,
781
+ 'method': _0x3dccb3(_0x292e33._0x4d5d17)
771
782
  });
772
783
  },
773
- async 'createTasks'(_0x39ada1) {
774
- const _0x4a07b3 = _0x32298c;
775
- return _0x55c715(_0x4a07b3(0x1d8) + _0x1a18d1[_0x4a07b3(_0x255017._0x143b1e)] + _0x4a07b3(_0x255017._0x240417), {
776
- 'body': JSON[_0x4a07b3(_0x255017._0x1c611b)]({
777
- ..._0x39ada1,
778
- 'idempotency_key': _0x473774('create_tasks', _0x39ada1)
784
+ async 'createTasks'(_0xaef246) {
785
+ const _0x429d8b = _0x521ea7;
786
+ return _0x166648(_0x429d8b(_0x4a9a9e._0x17112e) + _0x2805d5[_0x429d8b(_0x4a9a9e._0x1e202e)] + '/tasks', {
787
+ 'body': JSON['stringify']({
788
+ ..._0xaef246,
789
+ 'idempotency_key': _0x4fb46f(_0x429d8b(_0x4a9a9e._0x52cc81), _0xaef246)
779
790
  }),
780
- 'headers': _0x44d056,
781
- 'method': _0x4a07b3(_0x255017._0x3eba27)
791
+ 'headers': _0x1c43d2,
792
+ 'method': _0x429d8b(0x1ed)
782
793
  });
783
794
  },
784
- async 'claimTasks'(_0x3af537) {
785
- const _0x436f8e = _0x32298c;
786
- return _0x55c715('/internal/agent/' + _0x1a18d1[_0x436f8e(0x18b)] + '/tasks/claim', {
787
- 'body': JSON[_0x436f8e(_0x4c3764._0x23ab25)]({
788
- ..._0x3af537,
789
- 'idempotency_key': _0x473774('claim_tasks', _0x3af537)
795
+ async 'claimTasks'(_0xa3e653) {
796
+ const _0x16dd48 = _0x521ea7;
797
+ return _0x166648('/internal/agent/' + _0x2805d5['agentId'] + _0x16dd48(_0x4ac3f2._0x573fda), {
798
+ 'body': JSON[_0x16dd48(0x286)]({
799
+ ..._0xa3e653,
800
+ 'idempotency_key': _0x4fb46f(_0x16dd48(0x2d4), _0xa3e653)
790
801
  }),
791
- 'headers': _0x44d056,
792
- 'method': _0x436f8e(0x285)
802
+ 'headers': _0x1c43d2,
803
+ 'method': _0x16dd48(_0x4ac3f2._0x16415f)
793
804
  });
794
805
  },
795
- async 'unclaimTask'(_0x56c525) {
796
- const _0x33df65 = _0x32298c;
797
- return _0x55c715(_0x33df65(0x1d8) + _0x1a18d1['agentId'] + _0x33df65(0x299), {
798
- 'body': JSON[_0x33df65(0x1d9)]({
799
- ..._0x56c525,
800
- 'idempotency_key': _0x473774(_0x33df65(0x154), _0x56c525)
806
+ async 'unclaimTask'(_0x341d9c) {
807
+ const _0xd5a96a = _0x521ea7;
808
+ return _0x166648(_0xd5a96a(_0x5391cd._0x436d7f) + _0x2805d5[_0xd5a96a(_0x5391cd._0x4a150d)] + _0xd5a96a(0x32b), {
809
+ 'body': JSON[_0xd5a96a(0x286)]({
810
+ ..._0x341d9c,
811
+ 'idempotency_key': _0x4fb46f(_0xd5a96a(0x30a), _0x341d9c)
801
812
  }),
802
- 'headers': _0x44d056,
803
- 'method': _0x33df65(0x285)
813
+ 'headers': _0x1c43d2,
814
+ 'method': _0xd5a96a(0x1ed)
804
815
  });
805
816
  },
806
- async 'updateTaskStatus'(_0x4bc308) {
807
- const _0x10ddc0 = _0x32298c;
808
- return _0x55c715('/internal/agent/' + _0x1a18d1[_0x10ddc0(0x18b)] + _0x10ddc0(0x169), {
809
- 'body': JSON[_0x10ddc0(0x1d9)]({
810
- ..._0x4bc308,
811
- 'idempotency_key': _0x473774('update_task_status', _0x4bc308)
817
+ async 'updateTaskStatus'(_0x129730) {
818
+ const _0x49ee54 = _0x521ea7;
819
+ return _0x166648(_0x49ee54(0x1fc) + _0x2805d5[_0x49ee54(_0x5018c5._0x2798ad)] + _0x49ee54(0x35f), {
820
+ 'body': JSON['stringify']({
821
+ ..._0x129730,
822
+ 'idempotency_key': _0x4fb46f(_0x49ee54(0x2dd), _0x129730)
812
823
  }),
813
- 'headers': _0x44d056,
814
- 'method': _0x10ddc0(0x285)
824
+ 'headers': _0x1c43d2,
825
+ 'method': _0x49ee54(0x1ed)
815
826
  });
816
827
  },
817
- async 'uploadFile'(_0x430a73) {
818
- const _0x35c671 = _0x32298c, _0x1eacf8 = await _0x44ad85(_0x430a73[_0x35c671(_0x7c9218._0xf0fdc6)]);
819
- if (_0x1eacf8[_0x35c671(_0x7c9218._0x48b4aa)])
820
- throw new Error(_0x35c671(_0x7c9218._0x3e2797));
821
- const _0x4a1473 = await _0x4c9943(_0x35c671(_0x7c9218._0x3d44b5) + _0x1a18d1[_0x35c671(_0x7c9218._0x2d0ab7)] + '/upload', {
822
- 'body': JSON[_0x35c671(_0x7c9218._0xa67331)]({
823
- 'channel': _0x1eacf8['target'],
824
- 'contentBase64': _0x430a73[_0x35c671(_0x7c9218._0x2a0d3f)],
825
- 'contentType': _0x430a73['contentType'],
826
- 'originalFilename': _0x430a73[_0x35c671(0x13f)]
828
+ async 'uploadFile'(_0x2e8c91) {
829
+ const _0x5b0564 = _0x521ea7, _0x5137ce = await _0x4fee2c(_0x2e8c91[_0x5b0564(_0x1dbdd3._0x5216bb)]);
830
+ if (_0x5137ce[_0x5b0564(0x293)])
831
+ throw new Error(_0x5b0564(0x2f2));
832
+ const _0x244829 = await _0x401cce(_0x5b0564(_0x1dbdd3._0x241345) + _0x2805d5[_0x5b0564(0x250)] + _0x5b0564(0x262), {
833
+ 'body': JSON[_0x5b0564(_0x1dbdd3._0x9499c3)]({
834
+ 'channel': _0x5137ce[_0x5b0564(_0x1dbdd3._0x181de7)],
835
+ 'contentBase64': _0x2e8c91[_0x5b0564(_0x1dbdd3._0xc30bde)],
836
+ 'contentType': _0x2e8c91[_0x5b0564(_0x1dbdd3._0x4378bd)],
837
+ 'originalFilename': _0x2e8c91[_0x5b0564(0x269)]
827
838
  }),
828
- 'headers': _0x44d056,
829
- 'method': _0x35c671(_0x7c9218._0x1a3380)
839
+ 'headers': _0x1c43d2,
840
+ 'method': 'POST'
830
841
  });
831
842
  return {
832
- 'attachmentId': _0x4a1473[_0x35c671(_0x7c9218._0x7f9e77)]?.['id'] ?? '',
833
- 'filename': _0x4a1473[_0x35c671(_0x7c9218._0x562d1a)]?.[_0x35c671(_0x7c9218._0x4f790c)] ?? _0x430a73[_0x35c671(_0x7c9218._0x29310b)],
834
- 'sizeBytes': _0x4a1473['data']?.[_0x35c671(_0x7c9218._0xc8b085)] ?? 0x0
843
+ 'attachmentId': _0x244829[_0x5b0564(_0x1dbdd3._0x23c4ac)]?.['id'] ?? '',
844
+ 'filename': _0x244829['data']?.[_0x5b0564(0x268)] ?? _0x2e8c91['filename'],
845
+ 'sizeBytes': _0x244829[_0x5b0564(_0x1dbdd3._0x48f350)]?.[_0x5b0564(_0x1dbdd3._0x168fd9)] ?? 0x0
835
846
  };
836
847
  },
837
- async 'downloadAttachment'(_0x4b946e) {
838
- const _0x208b77 = _0x32298c, _0x33c645 = await _0x4c9943(_0x208b77(_0xf55124._0x1dcf3c) + _0x4b946e, {
839
- 'headers': _0x44d056,
848
+ async 'downloadAttachment'(_0x1e73e0) {
849
+ const _0xf8a82a = _0x521ea7, _0x5508ca = await _0x401cce('/api/attachments/' + _0x1e73e0, {
850
+ 'headers': _0x1c43d2,
840
851
  'method': 'GET'
841
- }), _0xf76412 = new AbortController(), _0x16bad4 = setTimeout(() => _0xf76412[_0x208b77(0x1c7)](), _0x1e6947);
852
+ }), _0x45da3d = new AbortController(), _0x375473 = setTimeout(() => _0x45da3d[_0xf8a82a(0x291)](), _0x50df63);
842
853
  try {
843
- const _0x5364c7 = await _0x4cd3ba(_0x9350ab + '/api/attachments/' + _0x4b946e + _0x208b77(0x1b5), {
844
- 'headers': _0x44d056,
845
- 'method': _0x208b77(0x174),
846
- 'signal': _0xf76412['signal']
854
+ const _0x1b50f6 = await _0x30d87c(_0x425b5f + '/api/attachments/' + _0x1e73e0 + _0xf8a82a(0x20c), {
855
+ 'headers': _0x1c43d2,
856
+ 'method': _0xf8a82a(_0x332201._0x298fcb),
857
+ 'signal': _0x45da3d[_0xf8a82a(0x33a)]
847
858
  });
848
- if (!_0x5364c7['ok'])
849
- throw new Error(_0x208b77(_0xf55124._0x475007) + _0x5364c7[_0x208b77(_0xf55124._0x3e1033)]);
859
+ if (!_0x1b50f6['ok'])
860
+ throw new Error('HTTP\x20' + _0x1b50f6[_0xf8a82a(_0x332201._0x4ce009)]);
850
861
  return {
851
- 'contentType': _0x33c645['data']?.[_0x208b77(_0xf55124._0x1b63f5)] ?? _0x5364c7[_0x208b77(0x1f0)][_0x208b77(0x1b7)](_0x208b77(_0xf55124._0x43e604)) ?? _0x208b77(0x226),
852
- 'data': Buffer[_0x208b77(_0xf55124._0x2818bc)](await _0x5364c7[_0x208b77(0x17f)]()),
853
- 'originalFilename': _0x33c645[_0x208b77(0x266)]?.[_0x208b77(_0xf55124._0x1a6d97)]
862
+ 'contentType': _0x5508ca[_0xf8a82a(0x369)]?.[_0xf8a82a(0x328)] ?? _0x1b50f6[_0xf8a82a(_0x332201._0x2bac49)][_0xf8a82a(_0x332201._0x5d0a21)]('content-type') ?? 'application/octet-stream',
863
+ 'data': Buffer[_0xf8a82a(_0x332201._0x5c7330)](await _0x1b50f6['arrayBuffer']()),
864
+ 'originalFilename': _0x5508ca[_0xf8a82a(0x369)]?.[_0xf8a82a(_0x332201._0x2ac55d)]
854
865
  };
855
866
  } finally {
856
- clearTimeout(_0x16bad4);
867
+ clearTimeout(_0x375473);
857
868
  }
858
869
  },
859
870
  async 'listServer'() {
860
- return _0x1e08f0({ 'forceRefresh': !![] });
871
+ return _0x552e56({ 'forceRefresh': !![] });
861
872
  },
862
- async 'readHistory'(_0x509829) {
863
- const _0x26125e = _0x32298c, _0x559d10 = await _0x44ad85(_0x509829[_0x26125e(_0x3b5beb._0x1c7514)]);
864
- return _0x4de117({
865
- 'after': _0x509829[_0x26125e(_0x3b5beb._0x487732)],
866
- 'before': _0x509829['before'],
867
- 'channelId': _0x559d10[_0x26125e(0x18d)],
868
- 'channelTarget': _0x559d10[_0x26125e(0x1da)],
869
- 'limit': _0x509829['limit'],
870
- 'threadId': _0x559d10[_0x26125e(_0x3b5beb._0x364651)]
873
+ async 'readHistory'(_0x1a8b18) {
874
+ const _0x193991 = _0x521ea7, _0x530235 = await _0x4fee2c(_0x1a8b18[_0x193991(_0x17d241._0x37c35a)]);
875
+ return _0x28c072({
876
+ 'after': _0x1a8b18['after'],
877
+ 'before': _0x1a8b18[_0x193991(0x315)],
878
+ 'channelId': _0x530235['channelId'],
879
+ 'channelTarget': _0x530235['target'],
880
+ 'limit': _0x1a8b18[_0x193991(_0x17d241._0x487301)],
881
+ 'threadId': _0x530235[_0x193991(_0x17d241._0x50cea9)]
871
882
  });
872
883
  },
873
- 'resolveTarget': _0x44ad85,
884
+ 'resolveTarget': _0x4fee2c,
874
885
  async 'checkMessages'() {
875
- const _0x41ae50 = _0x32298c, _0x1777f8 = new URLSearchParams();
876
- _0x1777f8[_0x41ae50(_0x4406e6._0x17105d)](_0x41ae50(0x2b1), String(_0x50c8f4));
877
- const _0x5310fa = _0x1777f8['toString'](), _0x4d70e7 = await _0x4c9943(_0x41ae50(_0x4406e6._0x1895f6) + _0x1a18d1[_0x41ae50(0x18b)] + _0x41ae50(0x280) + (_0x5310fa ? '?' + _0x5310fa : ''), {
878
- 'headers': _0x44d056,
879
- 'method': _0x41ae50(0x174)
880
- }), _0xbb051f = _0x4d70e7[_0x41ae50(_0x4406e6._0x2b881f)] ?? [], _0x39335a = _0x4d70e7['meta']?.['cursor'], _0x434840 = _0x39335a !== void 0x0 ? Math['max'](_0x50c8f4, _0x39335a) : _0xbb051f['length'] > 0x0 ? Math['max'](_0x50c8f4, _0xbb051f[_0xbb051f[_0x41ae50(0x240)] - 0x1][_0x41ae50(0x14d)]) : _0x50c8f4, _0x1e295d = _0xbb051f[_0x41ae50(_0x4406e6._0x6d737d)](_0x13f84a => _0x13f84a[_0x41ae50(0x153)] === _0x41ae50(0x2a2)), _0x311c76 = _0x39ff1c === void 0x0 && _0x56da89;
881
- let _0x4cdd18 = await _0x1e08f0(), _0xfa77fd = new Map(_0x4cdd18[_0x41ae50(_0x4406e6._0x47e6f9)][_0x41ae50(0x1d7)](_0x3561a0 => [
882
- _0x3561a0['id'],
883
- _0x3561a0
886
+ const _0x25748d = { _0x4b88c7: 0x34a }, _0x13bfa3 = _0x521ea7, _0x55eabd = new URLSearchParams();
887
+ _0x55eabd[_0x13bfa3(_0x4a34c6._0x2afd91)](_0x13bfa3(0x263), String(_0x1ddb77));
888
+ const _0x5ea965 = _0x55eabd[_0x13bfa3(_0x4a34c6._0x9fa3c)](), _0x1e18dd = await _0x401cce(_0x13bfa3(_0x4a34c6._0x382185) + _0x2805d5[_0x13bfa3(_0x4a34c6._0x517cdc)] + _0x13bfa3(0x270) + (_0x5ea965 ? '?' + _0x5ea965 : ''), {
889
+ 'headers': _0x1c43d2,
890
+ 'method': _0x13bfa3(_0x4a34c6._0xf5ba45)
891
+ }), _0x531a6f = _0x1e18dd[_0x13bfa3(_0x4a34c6._0x583ed6)] ?? [], _0x2d770f = _0x1e18dd[_0x13bfa3(0x332)]?.[_0x13bfa3(_0x4a34c6._0x1a47cf)], _0x2c9d8a = _0x2d770f !== void 0x0 ? Math['max'](_0x1ddb77, _0x2d770f) : _0x531a6f['length'] > 0x0 ? Math[_0x13bfa3(_0x4a34c6._0x4cc23e)](_0x1ddb77, _0x531a6f[_0x531a6f[_0x13bfa3(_0x4a34c6._0x2cc2d2)] - 0x1][_0x13bfa3(_0x4a34c6._0x4b36a8)]) : _0x1ddb77, _0x4190e6 = _0x531a6f[_0x13bfa3(_0x4a34c6._0x5d76f9)](_0x141851 => _0x141851['aggregateType'] === _0x13bfa3(0x27c)), _0x122a87 = _0x56a32d === void 0x0 && _0x3211ee;
892
+ let _0x372ce7 = await _0x552e56(), _0x15813b = new Map(_0x372ce7['channels']['map'](_0x23eebc => [
893
+ _0x23eebc['id'],
894
+ _0x23eebc
884
895
  ]));
885
- const _0x192004 = _0x1e295d[_0x41ae50(_0x4406e6._0x26bb5b)](_0x5d6ef7 => {
886
- const _0x377b25 = _0x41ae50, _0x17d5c2 = asRecord(_0x5d6ef7['payloadJson']), _0x9d2199 = typeof _0x17d5c2?.[_0x377b25(_0x1fec84._0x46fdcc)] === _0x377b25(_0x1fec84._0x4a6954) ? _0x17d5c2[_0x377b25(0x18d)] : '';
887
- return Boolean(_0x9d2199) && !_0xfa77fd[_0x377b25(0x209)](_0x9d2199);
896
+ const _0x7601dd = _0x4190e6[_0x13bfa3(_0x4a34c6._0x1899cf)](_0x1d7a03 => {
897
+ const _0x34e69a = _0x13bfa3, _0x3d938a = asRecord(_0x1d7a03[_0x34e69a(_0x25748d._0x4b88c7)]), _0x1d18e7 = typeof _0x3d938a?.[_0x34e69a(0x30b)] === _0x34e69a(0x2a5) ? _0x3d938a['channelId'] : '';
898
+ return Boolean(_0x1d18e7) && !_0x15813b[_0x34e69a(0x2ea)](_0x1d18e7);
888
899
  });
889
- _0x192004 && (_0x4cdd18 = await _0x1e08f0({ 'forceRefresh': !![] }), _0xfa77fd = new Map(_0x4cdd18[_0x41ae50(0x24a)][_0x41ae50(_0x4406e6._0x4fefc5)](_0x230b5c => [
890
- _0x230b5c['id'],
891
- _0x230b5c
900
+ _0x7601dd && (_0x372ce7 = await _0x552e56({ 'forceRefresh': !![] }), _0x15813b = new Map(_0x372ce7[_0x13bfa3(0x34d)]['map'](_0x4c0642 => [
901
+ _0x4c0642['id'],
902
+ _0x4c0642
892
903
  ])));
893
- const _0x9744e3 = new Map();
894
- for (const _0x2310e2 of _0x1e295d) {
895
- const _0x66d30b = asRecord(_0x2310e2['payloadJson']), _0x205a95 = typeof _0x66d30b[_0x41ae50(_0x4406e6._0x3d36b1)] === 'string' ? _0x66d30b[_0x41ae50(0x18d)] : '';
896
- if (!_0x205a95)
904
+ const _0x1146c7 = new Map();
905
+ for (const _0xc9fcf0 of _0x4190e6) {
906
+ const _0x13f821 = asRecord(_0xc9fcf0[_0x13bfa3(0x34a)]), _0x42d783 = typeof _0x13f821['channelId'] === _0x13bfa3(0x2a5) ? _0x13f821[_0x13bfa3(_0x4a34c6._0x141de3)] : '';
907
+ if (!_0x42d783)
897
908
  continue;
898
- const _0x44dc15 = typeof _0x66d30b[_0x41ae50(_0x4406e6._0x11b8f1)] === _0x41ae50(_0x4406e6._0x1af524) ? _0x66d30b['threadId'] : void 0x0, _0x410364 = typeof _0x66d30b[_0x41ae50(0x186)] === 'string' ? _0x66d30b[_0x41ae50(_0x4406e6._0x440fee)] : void 0x0, _0x63d07b = typeof _0x66d30b[_0x41ae50(0x229)] === 'number' && Number[_0x41ae50(_0x4406e6._0x150e3e)](_0x66d30b['threadNumber']) ? _0x66d30b[_0x41ae50(0x229)] : void 0x0, _0xf38c17 = Boolean(_0x44dc15 && (!_0x410364 || _0x2310e2[_0x41ae50(0x252)] !== _0x410364)), _0x1bf7da = _0xf38c17 ? _0x205a95 + ':' + _0x44dc15 : _0x205a95, _0x2443e8 = _0x9744e3['get'](_0x1bf7da) ?? {
909
+ const _0x29c8e1 = typeof _0x13f821[_0x13bfa3(_0x4a34c6._0x54d603)] === _0x13bfa3(_0x4a34c6._0x36f940) ? _0x13f821[_0x13bfa3(0x293)] : void 0x0, _0x49858c = typeof _0x13f821[_0x13bfa3(_0x4a34c6._0x47728e)] === _0x13bfa3(_0x4a34c6._0x53ef4f) ? _0x13f821[_0x13bfa3(_0x4a34c6._0x1de2e1)] : void 0x0, _0x269091 = typeof _0x13f821[_0x13bfa3(_0x4a34c6._0x5869e9)] === _0x13bfa3(_0x4a34c6._0x15f8fc) && Number['isInteger'](_0x13f821[_0x13bfa3(_0x4a34c6._0x5869e9)]) ? _0x13f821[_0x13bfa3(_0x4a34c6._0x5869e9)] : void 0x0, _0x44c953 = Boolean(_0x29c8e1 && (!_0x49858c || _0xc9fcf0[_0x13bfa3(_0x4a34c6._0x572fab)] !== _0x49858c)), _0x36fedc = _0x44c953 ? _0x42d783 + ':' + _0x29c8e1 : _0x42d783, _0x4573f0 = _0x1146c7[_0x13bfa3(0x295)](_0x36fedc) ?? {
899
910
  'aggregateIds': [],
900
- 'channelId': _0x205a95,
911
+ 'channelId': _0x42d783,
901
912
  'entries': new Map(),
902
- 'isThreadReply': _0xf38c17,
903
- 'rootMessageId': _0x410364,
904
- 'threadNumber': _0x63d07b,
905
- 'threadId': _0xf38c17 ? _0x44dc15 : void 0x0
913
+ 'isThreadReply': _0x44c953,
914
+ 'rootMessageId': _0x49858c,
915
+ 'threadNumber': _0x269091,
916
+ 'threadId': _0x44c953 ? _0x29c8e1 : void 0x0
906
917
  };
907
- _0x2443e8[_0x41ae50(0x229)] == null && _0x63d07b != null && (_0x2443e8['threadNumber'] = _0x63d07b), !_0x2443e8[_0x41ae50(_0x4406e6._0x24163b)] && _0x410364 && (_0x2443e8['rootMessageId'] = _0x410364), _0x2443e8[_0x41ae50(_0x4406e6._0x2b795c)][_0x41ae50(_0x4406e6._0x23c0ba)](_0x2310e2[_0x41ae50(_0x4406e6._0x50e977)]), _0x2443e8['entries'][_0x41ae50(0x184)](_0x2310e2[_0x41ae50(0x252)], {
908
- 'payloadJson': _0x2310e2[_0x41ae50(_0x4406e6._0x2bd4cf)],
909
- 'seq': _0x2310e2[_0x41ae50(_0x4406e6._0x199845)]
910
- }), _0x9744e3[_0x41ae50(0x184)](_0x1bf7da, _0x2443e8);
918
+ _0x4573f0['threadNumber'] == null && _0x269091 != null && (_0x4573f0['threadNumber'] = _0x269091), !_0x4573f0['rootMessageId'] && _0x49858c && (_0x4573f0[_0x13bfa3(_0x4a34c6._0x31e2e9)] = _0x49858c), _0x4573f0[_0x13bfa3(0x2a3)]['push'](_0xc9fcf0[_0x13bfa3(0x248)]), _0x4573f0['entries'][_0x13bfa3(0x249)](_0xc9fcf0[_0x13bfa3(_0x4a34c6._0x3afce4)], {
919
+ 'payloadJson': _0xc9fcf0[_0x13bfa3(_0x4a34c6._0x43f076)],
920
+ 'seq': _0xc9fcf0[_0x13bfa3(_0x4a34c6._0x45bfb1)]
921
+ }), _0x1146c7[_0x13bfa3(_0x4a34c6._0x5956e4)](_0x36fedc, _0x4573f0);
911
922
  }
912
- const _0xf6ed0d = [];
913
- for (const _0x7de448 of _0x9744e3['values']()) {
923
+ const _0x4b5ff3 = [];
924
+ for (const _0x1df363 of _0x1146c7[_0x13bfa3(_0x4a34c6._0x500d29)]()) {
914
925
  const {
915
- channelId: _0x17bbd9,
916
- threadId: _0x2cd93d,
917
- rootMessageId: _0x7b03c4,
918
- threadNumber: _0x4b062f,
919
- aggregateIds: _0x586c65,
920
- isThreadReply: _0x22933b,
921
- entries: _0x3bfde1
922
- } = _0x7de448, _0x2d29d6 = _0xfa77fd[_0x41ae50(0x1b7)](_0x17bbd9), _0x55dabf = _0x2d29d6?.[_0x41ae50(0x1e8)] ?? _0x17bbd9, _0x20df0e = _0x2d29d6?.[_0x41ae50(_0x4406e6._0x3f8013)] === 'dm' ? _0x41ae50(0x22d) + _0x55dabf : '#' + _0x55dabf, _0x1cf150 = {
923
- 'channelTarget': _0x20df0e,
924
- 'rootMessageId': _0x7b03c4,
925
- 'threadId': _0x2cd93d,
926
- 'threadNumber': _0x4b062f
927
- }, _0x1552f8 = await _0x4de117({
928
- 'channelId': _0x17bbd9,
929
- 'channelTarget': _0x20df0e,
930
- 'limit': Math[_0x41ae50(0x2ad)](_0x586c65[_0x41ae50(0x240)], 0x32),
931
- 'threadId': _0x2cd93d
932
- }), _0x3b9e64 = new Map(_0x1552f8[_0x41ae50(0x27f)][_0x41ae50(_0x4406e6._0x4fefc5)](_0x1d1ba7 => [
933
- _0x1d1ba7[_0x41ae50(0x215)],
934
- _0x1d1ba7
935
- ])), _0x1e40cf = _0x2cd93d ? _0x21cce1(_0x1cf150) : _0x20df0e, _0x5d0862 = _0x39ff1c ? _0x22933b && _0x1281d3(_0x39ff1c, _0x1cf150) : !![], _0x346faf = _0x22933b ? _0x5d0862 && _0x39ff1c ? _0x39ff1c : _0x1e40cf : _0x20df0e;
936
- for (const _0x3486a1 of _0x586c65) {
937
- if (!_0x5d0862)
926
+ channelId: _0x1e4bc4,
927
+ threadId: _0x363cdd,
928
+ rootMessageId: _0x388a31,
929
+ threadNumber: _0x212dd5,
930
+ aggregateIds: _0x4e277e,
931
+ isThreadReply: _0x312a44,
932
+ entries: _0x22b557
933
+ } = _0x1df363, _0x2445f0 = _0x15813b[_0x13bfa3(_0x4a34c6._0x3f1048)](_0x1e4bc4), _0x386ab1 = _0x2445f0?.[_0x13bfa3(0x2e7)] ?? _0x1e4bc4, _0x529f63 = _0x2445f0?.['kind'] === 'dm' ? _0x13bfa3(0x242) + _0x386ab1 : '#' + _0x386ab1, _0x209903 = {
934
+ 'channelTarget': _0x529f63,
935
+ 'rootMessageId': _0x388a31,
936
+ 'threadId': _0x363cdd,
937
+ 'threadNumber': _0x212dd5
938
+ }, _0x337d9b = await _0x28c072({
939
+ 'channelId': _0x1e4bc4,
940
+ 'channelTarget': _0x529f63,
941
+ 'limit': Math[_0x13bfa3(_0x4a34c6._0x175605)](_0x4e277e[_0x13bfa3(0x34b)], 0x32),
942
+ 'threadId': _0x363cdd
943
+ }), _0x2a923d = new Map(_0x337d9b[_0x13bfa3(0x2ca)][_0x13bfa3(_0x4a34c6._0x7aba5b)](_0x5c0af4 => [
944
+ _0x5c0af4[_0x13bfa3(0x35c)],
945
+ _0x5c0af4
946
+ ])), _0x38ca74 = _0x363cdd ? _0xf96b98(_0x209903) : _0x529f63, _0x298954 = _0x56a32d ? _0x312a44 && _0x5fc82a(_0x56a32d, _0x209903) : !![], _0x5856fc = _0x312a44 ? _0x298954 && _0x56a32d ? _0x56a32d : _0x38ca74 : _0x529f63;
947
+ for (const _0x4b8d22 of _0x4e277e) {
948
+ if (!_0x298954)
938
949
  continue;
939
- const _0x4f5aad = _0x3bfde1[_0x41ae50(_0x4406e6._0x24a4ce)](_0x3486a1), _0x35a28a = _0x4f5aad ? asRecord(_0x4f5aad['payloadJson']) : void 0x0, _0x4fa730 = _0x35a28a?.['taskDeliveryMode'] === _0x41ae50(_0x4406e6._0x16a6d6);
940
- if (_0x311c76 && _0x4fa730)
950
+ const _0x29f2c3 = _0x22b557[_0x13bfa3(0x295)](_0x4b8d22), _0x4e77f7 = _0x29f2c3 ? asRecord(_0x29f2c3[_0x13bfa3(0x34a)]) : void 0x0, _0x270b0e = _0x4e77f7?.[_0x13bfa3(_0x4a34c6._0x2cf8f6)] === 'targeted';
951
+ if (_0x122a87 && _0x270b0e)
941
952
  continue;
942
- const _0x3b0be8 = _0x3b9e64['get'](_0x3486a1);
943
- if (_0x3b0be8) {
944
- _0xf6ed0d[_0x41ae50(0x157)]({
945
- 'attachments': _0x3b0be8[_0x41ae50(_0x4406e6._0x58186a)],
946
- 'content': _0x3b0be8[_0x41ae50(_0x4406e6._0x168793)],
947
- 'createdAt': _0x3b0be8[_0x41ae50(_0x4406e6._0xf4ff9e)],
948
- 'messageId': _0x3b0be8[_0x41ae50(0x215)],
949
- 'senderName': _0x3b0be8[_0x41ae50(0x283)],
950
- 'senderType': _0x3b0be8['senderType'],
951
- 'target': _0x346faf,
952
- ..._0x4fa730 ? { 'targetedTask': !![] } : {}
953
+ const _0x552eb7 = _0x2a923d[_0x13bfa3(_0x4a34c6._0x3bfb4b)](_0x4b8d22);
954
+ if (_0x552eb7) {
955
+ _0x4b5ff3[_0x13bfa3(0x2df)]({
956
+ 'attachments': _0x552eb7[_0x13bfa3(0x304)],
957
+ 'content': _0x552eb7['content'],
958
+ 'createdAt': _0x552eb7[_0x13bfa3(_0x4a34c6._0x267c0d)],
959
+ ..._0x552eb7['kind'] ? { 'kind': _0x552eb7['kind'] } : {},
960
+ 'messageId': _0x552eb7[_0x13bfa3(0x35c)],
961
+ 'senderName': _0x552eb7[_0x13bfa3(_0x4a34c6._0x5cc2ce)],
962
+ 'senderType': _0x552eb7['senderType'],
963
+ 'target': _0x5856fc,
964
+ ..._0x270b0e ? { 'targetedTask': !![] } : {}
953
965
  });
954
966
  continue;
955
967
  }
956
- if (_0x4f5aad) {
957
- const _0x1881c1 = typeof _0x35a28a?.[_0x41ae50(_0x4406e6._0x4b09ef)] === _0x41ae50(0x156) ? _0x35a28a['senderParticipantId'] : '', _0x5d25cc = typeof _0x35a28a?.['bodyMarkdown'] === _0x41ae50(0x156) ? _0x35a28a[_0x41ae50(0x1b0)] : '';
958
- _0x1881c1 && _0x5d25cc && _0xf6ed0d['push']({
968
+ if (_0x29f2c3) {
969
+ const _0x36207e = typeof _0x4e77f7?.[_0x13bfa3(0x27a)] === _0x13bfa3(0x2a5) ? _0x4e77f7['senderParticipantId'] : '', _0x523e12 = typeof _0x4e77f7?.[_0x13bfa3(_0x4a34c6._0xddbe66)] === _0x13bfa3(0x2a5) ? _0x4e77f7['bodyMarkdown'] : '', _0x2ff627 = typeof _0x4e77f7?.[_0x13bfa3(0x2b2)] === _0x13bfa3(0x2a5) && _0x4e77f7[_0x13bfa3(0x2b2)] !== _0x13bfa3(_0x4a34c6._0x3efa26) ? _0x4e77f7[_0x13bfa3(0x2b2)] : void 0x0;
970
+ _0x36207e && _0x523e12 && _0x4b5ff3[_0x13bfa3(0x2df)]({
959
971
  'attachments': [],
960
- 'content': _0x5d25cc,
961
- 'createdAt': new Date()[_0x41ae50(_0x4406e6._0x2e495f)](),
962
- 'messageId': _0x3486a1,
963
- 'senderName': _0x1881c1,
964
- 'senderType': _0x2a98a4(_0x1881c1, _0x4cdd18),
965
- 'target': _0x346faf,
966
- ..._0x4fa730 ? { 'targetedTask': !![] } : {}
972
+ 'content': _0x523e12,
973
+ 'createdAt': new Date()['toISOString'](),
974
+ ..._0x2ff627 ? { 'kind': _0x2ff627 } : {},
975
+ 'messageId': _0x4b8d22,
976
+ 'senderName': _0x36207e,
977
+ 'senderType': _0x36bf2f(_0x36207e, _0x372ce7),
978
+ 'target': _0x5856fc,
979
+ ..._0x270b0e ? { 'targetedTask': !![] } : {}
967
980
  });
968
981
  }
969
982
  }
970
983
  }
971
- if (_0x434840 > 0x0) {
972
- if (_0x385890)
973
- await _0x5e478(_0x434840);
984
+ if (_0x2c9d8a > 0x0) {
985
+ if (_0x343f7c)
986
+ await _0x26688c(_0x2c9d8a);
974
987
  else
975
- _0x3fd298 && await _0x3901d3(_0x434840);
988
+ _0x3b4ad0 && await _0x563125(_0x2c9d8a);
976
989
  }
977
- return _0x434840 > _0x50c8f4 && (_0x50c8f4 = _0x434840), { 'messages': _0x39ff1c ? _0xf6ed0d : _0x311c76 ? _0xf6ed0d[_0x41ae50(0x136)](_0x4dea2e => _0x4dea2e[_0x41ae50(0x1f7)] !== !![]) : _0xf6ed0d };
990
+ return _0x2c9d8a > _0x1ddb77 && (_0x1ddb77 = _0x2c9d8a), { 'messages': _0x56a32d ? _0x4b5ff3 : _0x122a87 ? _0x4b5ff3[_0x13bfa3(_0x4a34c6._0x5d76f9)](_0x23647e => _0x23647e['targetedTask'] !== !![]) : _0x4b5ff3 };
978
991
  }
979
992
  };
980
993
  }
981
- function toLocalTime(_0x5566fb) {
982
- const _0x44a483 = {
983
- _0x238bc2: 0x291,
984
- _0x34450b: 0x1bd
985
- }, _0x3d6c75 = _0x229703, _0x3a1711 = new Date(_0x5566fb);
986
- if (Number[_0x3d6c75(_0x44a483._0x238bc2)](_0x3a1711[_0x3d6c75(0x225)]()))
987
- return _0x5566fb;
988
- const _0x51cf5b = _0x5e2721 => String(_0x5e2721)[_0x3d6c75(0x24b)](0x2, '0');
989
- return _0x3a1711['getFullYear']() + '-' + _0x51cf5b(_0x3a1711[_0x3d6c75(0x134)]() + 0x1) + '-' + _0x51cf5b(_0x3a1711[_0x3d6c75(0x172)]()) + '\x20' + _0x51cf5b(_0x3a1711[_0x3d6c75(_0x44a483._0x34450b)]()) + ':' + _0x51cf5b(_0x3a1711[_0x3d6c75(0x178)]()) + ':' + _0x51cf5b(_0x3a1711[_0x3d6c75(0x15f)]());
994
+ function toLocalTime(_0x136fe5) {
995
+ const _0x523c29 = {
996
+ _0x3ebc66: 0x1fb,
997
+ _0x2b1c50: 0x2ba
998
+ }, _0x13fa5f = _0x2d2fb4, _0x1d2abb = new Date(_0x136fe5);
999
+ if (Number[_0x13fa5f(0x25a)](_0x1d2abb[_0x13fa5f(0x2f7)]()))
1000
+ return _0x136fe5;
1001
+ const _0xec8866 = _0xd9293a => String(_0xd9293a)[_0x13fa5f(0x23a)](0x2, '0');
1002
+ return _0x1d2abb['getFullYear']() + '-' + _0xec8866(_0x1d2abb[_0x13fa5f(_0x523c29._0x3ebc66)]() + 0x1) + '-' + _0xec8866(_0x1d2abb[_0x13fa5f(0x225)]()) + '\x20' + _0xec8866(_0x1d2abb[_0x13fa5f(_0x523c29._0x2b1c50)]()) + ':' + _0xec8866(_0x1d2abb[_0x13fa5f(0x29b)]()) + ':' + _0xec8866(_0x1d2abb['getSeconds']());
990
1003
  }
991
- function formatAttachmentSuffix(_0x4ce87a) {
992
- const _0x457539 = { _0x19c51a: 0x1d7 }, _0x5ae32b = _0x229703;
993
- if (!_0x4ce87a || _0x4ce87a[_0x5ae32b(0x240)] === 0x0)
1004
+ function formatAttachmentSuffix(_0x42492e) {
1005
+ const _0x32f0e7 = {
1006
+ _0x373a9c: 0x34b,
1007
+ _0x1e1f60: 0x230,
1008
+ _0x238b81: 0x27e,
1009
+ _0x682edb: 0x274
1010
+ }, _0x345969 = _0x2d2fb4;
1011
+ if (!_0x42492e || _0x42492e[_0x345969(_0x32f0e7._0x373a9c)] === 0x0)
994
1012
  return '';
995
- return '\x20[' + _0x4ce87a[_0x5ae32b(0x240)] + '\x20attachment' + (_0x4ce87a['length'] > 0x1 ? 's' : '') + ':\x20' + _0x4ce87a[_0x5ae32b(_0x457539._0x19c51a)](_0x21ddce => _0x21ddce[_0x5ae32b(0x13f)] + _0x5ae32b(0x202) + _0x21ddce['id'] + ')')[_0x5ae32b(0x297)](',\x20') + _0x5ae32b(0x179);
1013
+ return '\x20[' + _0x42492e[_0x345969(0x34b)] + _0x345969(_0x32f0e7._0x1e1f60) + (_0x42492e[_0x345969(0x34b)] > 0x1 ? 's' : '') + ':\x20' + _0x42492e[_0x345969(_0x32f0e7._0x238b81)](_0x5537ee => _0x5537ee[_0x345969(0x269)] + _0x345969(0x29e) + _0x5537ee['id'] + ')')[_0x345969(_0x32f0e7._0x682edb)](',\x20') + _0x345969(0x350);
996
1014
  }
997
- function formatCheckMessages(_0xb4bc4e) {
998
- const _0x1458e8 = {
999
- _0x31f8b3: 0x28c,
1000
- _0x44503f: 0x2a0,
1001
- _0x24af68: 0x241,
1002
- _0x46afa3: 0x283
1003
- }, _0x1c36ba = _0x229703;
1004
- if (_0xb4bc4e[_0x1c36ba(0x240)] === 0x0)
1005
- return 'No\x20new\x20messages.';
1006
- return _0xb4bc4e[_0x1c36ba(0x1d7)](_0x2a00ae => {
1007
- const _0x252ab9 = _0x1c36ba, _0x3abea6 = _0x2a00ae[_0x252ab9(0x24d)] === _0x252ab9(_0x1458e8._0x31f8b3) ? _0x252ab9(0x1a2) : '';
1008
- return _0x252ab9(0x233) + _0x2a00ae['target'] + _0x252ab9(0x18c) + _0x2a00ae[_0x252ab9(0x215)][_0x252ab9(_0x1458e8._0x44503f)](0x0, 0x8) + _0x252ab9(_0x1458e8._0x24af68) + toLocalTime(_0x2a00ae[_0x252ab9(0x166)]) + _0x3abea6 + _0x252ab9(0x214) + _0x2a00ae[_0x252ab9(_0x1458e8._0x46afa3)] + ':\x20' + _0x2a00ae[_0x252ab9(0x17d)] + formatAttachmentSuffix(_0x2a00ae[_0x252ab9(0x230)]);
1009
- })[_0x1c36ba(0x297)]('\x0a');
1015
+ function formatCheckMessages(_0x4e4944) {
1016
+ const _0x3b9f4d = {
1017
+ _0x337458: 0x273,
1018
+ _0x3f4109: 0x2f6,
1019
+ _0x2524bc: 0x2b2,
1020
+ _0x48e4f7: 0x25c,
1021
+ _0x3fe08c: 0x2b2,
1022
+ _0x7038a5: 0x29c
1023
+ }, _0x2ef557 = _0x2d2fb4;
1024
+ if (_0x4e4944[_0x2ef557(0x34b)] === 0x0)
1025
+ return _0x2ef557(0x213);
1026
+ return _0x4e4944['map'](_0x21c165 => {
1027
+ const _0x5e7d6e = _0x2ef557, _0x49c770 = _0x21c165[_0x5e7d6e(_0x3b9f4d._0x337458)] === _0x5e7d6e(0x207) ? _0x5e7d6e(_0x3b9f4d._0x3f4109) : '', _0x5abe71 = _0x21c165[_0x5e7d6e(0x2b2)] && _0x21c165[_0x5e7d6e(_0x3b9f4d._0x2524bc)] !== _0x5e7d6e(_0x3b9f4d._0x48e4f7) ? _0x5e7d6e(0x370) + _0x21c165[_0x5e7d6e(_0x3b9f4d._0x3fe08c)] : '';
1028
+ return '[target=' + _0x21c165[_0x5e7d6e(0x1fd)] + '\x20msg=' + _0x21c165[_0x5e7d6e(0x35c)][_0x5e7d6e(0x33f)](0x0, 0x8) + _0x5e7d6e(0x30f) + toLocalTime(_0x21c165[_0x5e7d6e(_0x3b9f4d._0x7038a5)]) + _0x49c770 + _0x5abe71 + _0x5e7d6e(0x210) + _0x21c165[_0x5e7d6e(0x2c0)] + ':\x20' + _0x21c165[_0x5e7d6e(0x239)] + formatAttachmentSuffix(_0x21c165['attachments']);
1029
+ })[_0x2ef557(0x274)]('\x0a');
1010
1030
  }
1011
- function formatHistory(_0x23a289) {
1012
- const _0x54c6a3 = {
1013
- _0x2ef471: 0x240,
1014
- _0x241c9c: 0x180,
1015
- _0x4330ce: 0x243,
1016
- _0x3775de: 0x1ac,
1017
- _0x41e892: 0x2b4,
1018
- _0x23c3c4: 0x264,
1019
- _0x20e0b2: 0x1c5,
1020
- _0x1a4658: 0x1db,
1021
- _0x58c16f: 0x27f,
1022
- _0x5ae392: 0x167
1023
- }, _0x1efabb = {
1024
- _0x33d23f: 0x215,
1025
- _0x823dde: 0x17d
1026
- }, _0x394184 = _0x229703;
1027
- if (_0x23a289[_0x394184(0x27f)][_0x394184(_0x54c6a3._0x2ef471)] === 0x0)
1028
- return _0x394184(0x1c5) + _0x23a289['channel'] + _0x394184(_0x54c6a3._0x241c9c);
1029
- const _0x1ea1bb = _0x23a289[_0x394184(0x27f)][_0x394184(0x1d7)](_0x3d7dd8 => {
1030
- const _0x1ecddb = _0x394184, _0x545be5 = _0x3d7dd8[_0x1ecddb(0x24d)] === _0x1ecddb(0x28c) ? _0x1ecddb(0x1a2) : '';
1031
- return '[seq=' + _0x3d7dd8['seq'] + '\x20msg=' + _0x3d7dd8[_0x1ecddb(_0x1efabb._0x33d23f)] + '\x20time=' + toLocalTime(_0x3d7dd8['createdAt']) + _0x545be5 + _0x1ecddb(0x214) + _0x3d7dd8[_0x1ecddb(0x283)] + ':\x20' + _0x3d7dd8[_0x1ecddb(_0x1efabb._0x823dde)] + formatAttachmentSuffix(_0x3d7dd8['attachments']);
1032
- })[_0x394184(0x297)]('\x0a'), _0x53906d = _0x23a289[_0x394184(_0x54c6a3._0x4330ce)] && _0x23a289[_0x394184(0x2b4)] ? '\x0a\x0a---\x20' + _0x23a289[_0x394184(0x27f)][_0x394184(0x240)] + _0x394184(_0x54c6a3._0x3775de) + _0x23a289[_0x394184(_0x54c6a3._0x41e892)] + _0x394184(_0x54c6a3._0x23c3c4) : '';
1033
- return _0x394184(_0x54c6a3._0x20e0b2) + _0x23a289[_0x394184(_0x54c6a3._0x1a4658)] + '\x20(' + _0x23a289[_0x394184(_0x54c6a3._0x58c16f)]['length'] + _0x394184(_0x54c6a3._0x5ae392) + _0x1ea1bb + _0x53906d;
1031
+ function formatHistory(_0x1b3482) {
1032
+ const _0x1d5e9d = {
1033
+ _0x43cc06: 0x365,
1034
+ _0x18a130: 0x2ca,
1035
+ _0x45eb40: 0x27e,
1036
+ _0x54cadf: 0x274,
1037
+ _0x13f9f7: 0x204,
1038
+ _0x249d82: 0x2ae,
1039
+ _0x3cce1a: 0x2ca,
1040
+ _0x1a42c0: 0x34b,
1041
+ _0xf42d25: 0x2aa,
1042
+ _0x51964e: 0x298
1043
+ }, _0x3f5519 = {
1044
+ _0x2aff44: 0x207,
1045
+ _0x196906: 0x2b2,
1046
+ _0x515640: 0x25c,
1047
+ _0x3271a7: 0x30f,
1048
+ _0x4ef128: 0x210,
1049
+ _0x23ab0b: 0x2c0,
1050
+ _0x5848b4: 0x239,
1051
+ _0x3a2ce9: 0x304
1052
+ }, _0xf48b90 = _0x2d2fb4;
1053
+ if (_0x1b3482['messages'][_0xf48b90(0x34b)] === 0x0)
1054
+ return '##\x20Message\x20History\x20for\x20' + _0x1b3482[_0xf48b90(_0x1d5e9d._0x43cc06)] + _0xf48b90(0x235);
1055
+ const _0x1f185e = _0x1b3482[_0xf48b90(_0x1d5e9d._0x18a130)][_0xf48b90(_0x1d5e9d._0x45eb40)](_0x4984d8 => {
1056
+ const _0x42ccda = _0xf48b90, _0x51b4d2 = _0x4984d8[_0x42ccda(0x273)] === _0x42ccda(_0x3f5519._0x2aff44) ? '\x20type=agent' : '', _0x88d45b = _0x4984d8[_0x42ccda(0x2b2)] && _0x4984d8[_0x42ccda(_0x3f5519._0x196906)] !== _0x42ccda(_0x3f5519._0x515640) ? _0x42ccda(0x370) + _0x4984d8[_0x42ccda(_0x3f5519._0x196906)] : '';
1057
+ return '[seq=' + _0x4984d8['seq'] + _0x42ccda(0x2d1) + _0x4984d8[_0x42ccda(0x35c)] + _0x42ccda(_0x3f5519._0x3271a7) + toLocalTime(_0x4984d8[_0x42ccda(0x29c)]) + _0x51b4d2 + _0x88d45b + _0x42ccda(_0x3f5519._0x4ef128) + _0x4984d8[_0x42ccda(_0x3f5519._0x23ab0b)] + ':\x20' + _0x4984d8[_0x42ccda(_0x3f5519._0x5848b4)] + formatAttachmentSuffix(_0x4984d8[_0x42ccda(_0x3f5519._0x3a2ce9)]);
1058
+ })[_0xf48b90(_0x1d5e9d._0x54cadf)]('\x0a'), _0x797888 = _0x1b3482[_0xf48b90(_0x1d5e9d._0x13f9f7)] && _0x1b3482[_0xf48b90(_0x1d5e9d._0x249d82)] ? _0xf48b90(0x2f1) + _0x1b3482[_0xf48b90(_0x1d5e9d._0x3cce1a)][_0xf48b90(_0x1d5e9d._0x1a42c0)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x1b3482[_0xf48b90(0x2ae)] + _0xf48b90(_0x1d5e9d._0xf42d25) : '';
1059
+ return '##\x20Message\x20History\x20for\x20' + _0x1b3482[_0xf48b90(0x365)] + '\x20(' + _0x1b3482['messages'][_0xf48b90(0x34b)] + _0xf48b90(_0x1d5e9d._0x51964e) + _0x1f185e + _0x797888;
1034
1060
  }
1035
- function formatServerDirectory(_0x278324) {
1036
- const _0xfdc8e1 = {
1037
- _0x52126f: 0x24a,
1038
- _0x56ead8: 0x1d7,
1039
- _0x1264ad: 0x1fb,
1040
- _0x53d5a1: 0x1c3,
1041
- _0x44cbb6: 0x240,
1042
- _0x19cbba: 0x297,
1043
- _0x292b7e: 0x1fb,
1044
- _0x46ccd2: 0x1d7,
1045
- _0x5d20aa: 0x1e1
1046
- }, _0x43e6bd = _0x229703, _0x286fff = _0x278324[_0x43e6bd(_0xfdc8e1._0x52126f)][_0x43e6bd(0x240)] > 0x0 ? _0x278324[_0x43e6bd(0x24a)][_0x43e6bd(_0xfdc8e1._0x56ead8)](_0x1bd436 => _0x1bd436[_0x43e6bd(0x1ca)] ? _0x43e6bd(0x13d) + _0x1bd436['name'] + _0x43e6bd(0x192) + _0x1bd436[_0x43e6bd(0x1ca)] : '-\x20#' + _0x1bd436[_0x43e6bd(0x1e8)])[_0x43e6bd(0x297)]('\x0a') : _0x43e6bd(_0xfdc8e1._0x1264ad), _0x27e9d0 = _0x278324[_0x43e6bd(_0xfdc8e1._0x53d5a1)][_0x43e6bd(_0xfdc8e1._0x44cbb6)] > 0x0 ? _0x278324[_0x43e6bd(0x1c3)][_0x43e6bd(_0xfdc8e1._0x56ead8)](_0xa14586 => _0x43e6bd(0x181) + _0xa14586[_0x43e6bd(0x1e8)])[_0x43e6bd(_0xfdc8e1._0x19cbba)]('\x0a') : _0x43e6bd(_0xfdc8e1._0x292b7e), _0x16b021 = _0x278324[_0x43e6bd(0x258)][_0x43e6bd(0x240)] > 0x0 ? _0x278324[_0x43e6bd(0x258)][_0x43e6bd(_0xfdc8e1._0x46ccd2)](_0x2bb4cb => _0x43e6bd(0x181) + _0x2bb4cb[_0x43e6bd(0x1e8)])[_0x43e6bd(0x297)]('\x0a') : _0x43e6bd(0x1fb);
1061
+ function formatServerDirectory(_0x471280) {
1062
+ const _0x1d9611 = {
1063
+ _0x4a8adc: 0x34d,
1064
+ _0x21f184: 0x2de,
1065
+ _0x1123f6: 0x1e9,
1066
+ _0x56435d: 0x34b,
1067
+ _0xe6855d: 0x27e,
1068
+ _0xb5bd78: 0x309,
1069
+ _0x395cd1: 0x316
1070
+ }, _0x30b2a2 = _0x2d2fb4, _0x175f7b = _0x471280[_0x30b2a2(_0x1d9611._0x4a8adc)]['length'] > 0x0 ? _0x471280['channels']['map'](_0x2d24e9 => _0x2d24e9[_0x30b2a2(0x2d2)] ? _0x30b2a2(0x25b) + _0x2d24e9[_0x30b2a2(0x2e7)] + '\x20—\x20' + _0x2d24e9[_0x30b2a2(0x2d2)] : _0x30b2a2(0x25b) + _0x2d24e9[_0x30b2a2(0x2e7)])[_0x30b2a2(0x274)]('\x0a') : _0x30b2a2(_0x1d9611._0x21f184), _0x3dbf60 = _0x471280[_0x30b2a2(_0x1d9611._0x1123f6)][_0x30b2a2(0x34b)] > 0x0 ? _0x471280['agents']['map'](_0x4f55eb => _0x30b2a2(0x1f2) + _0x4f55eb[_0x30b2a2(0x2e7)])['join']('\x0a') : '(none)', _0x30bd1b = _0x471280[_0x30b2a2(0x2e3)][_0x30b2a2(_0x1d9611._0x56435d)] > 0x0 ? _0x471280[_0x30b2a2(0x2e3)][_0x30b2a2(_0x1d9611._0xe6855d)](_0x378ce2 => _0x30b2a2(0x1f2) + _0x378ce2['name'])[_0x30b2a2(0x274)]('\x0a') : _0x30b2a2(0x2de);
1047
1071
  return [
1048
- _0x43e6bd(0x2a3) + _0x278324[_0x43e6bd(0x1fe)],
1072
+ _0x30b2a2(_0x1d9611._0xb5bd78) + _0x471280[_0x30b2a2(0x314)],
1049
1073
  '',
1050
- _0x43e6bd(_0xfdc8e1._0x5d20aa),
1051
- _0x286fff,
1074
+ _0x30b2a2(_0x1d9611._0x395cd1),
1075
+ _0x175f7b,
1052
1076
  '',
1053
- _0x43e6bd(0x20e),
1054
- _0x27e9d0,
1077
+ '###\x20Agents',
1078
+ _0x3dbf60,
1055
1079
  '',
1056
- _0x43e6bd(0x1b8),
1057
- _0x16b021
1058
- ]['join']('\x0a');
1080
+ '###\x20Humans',
1081
+ _0x30bd1b
1082
+ ][_0x30b2a2(0x274)]('\x0a');
1059
1083
  }
1060
- function formatUploadResult(_0x311174) {
1061
- const _0x59def6 = {
1062
- _0x5319aa: 0x13f,
1063
- _0x1ea629: 0x194,
1064
- _0x3392c7: 0x1a0
1065
- }, _0x24ec80 = _0x229703;
1066
- return 'File\x20uploaded:\x20' + _0x311174[_0x24ec80(_0x59def6._0x5319aa)] + '\x20(' + (_0x311174[_0x24ec80(0x23f)] / 0x400)[_0x24ec80(0x19b)](0x1) + _0x24ec80(_0x59def6._0x1ea629) + _0x311174[_0x24ec80(0x28d)] + _0x24ec80(_0x59def6._0x3392c7);
1084
+ function formatUploadResult(_0x3bdc20) {
1085
+ const _0x154278 = {
1086
+ _0x561346: 0x269,
1087
+ _0x5d4b67: 0x348
1088
+ }, _0x50bac3 = _0x2d2fb4;
1089
+ return _0x50bac3(0x2e9) + _0x3bdc20[_0x50bac3(_0x154278._0x561346)] + '\x20(' + (_0x3bdc20[_0x50bac3(0x2c1)] / 0x400)[_0x50bac3(_0x154278._0x5d4b67)](0x1) + _0x50bac3(0x24a) + _0x3bdc20['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
1067
1090
  }
1068
- function formatViewFileResult(_0x3a5dbd, _0x912d21) {
1069
- const _0x574eb0 = _0x229703;
1070
- return _0x912d21 ? _0x574eb0(0x22f) + _0x3a5dbd : 'Downloaded\x20to:\x20' + _0x3a5dbd;
1091
+ function formatViewFileResult(_0xfc866e, _0x2075f7) {
1092
+ const _0xc40e87 = _0x2d2fb4;
1093
+ return _0x2075f7 ? _0xc40e87(0x21e) + _0xfc866e : _0xc40e87(0x233) + _0xfc866e;
1071
1094
  }
1072
- function formatTaskList(_0x130ef5, _0x2d05af) {
1073
- const _0x1bef1b = { _0x1732a4: 0x1d7 }, _0x5e6505 = {
1074
- _0x57cc21: 0x215,
1075
- _0x3274f4: 0x249
1076
- }, _0x155fa0 = _0x229703;
1077
- if (_0x130ef5[_0x155fa0(0x240)] === 0x0)
1095
+ function formatTaskList(_0x16df4d, _0x5a2657) {
1096
+ const _0x52a633 = { _0xe21dde: 0x27e }, _0x397ebf = {
1097
+ _0x20ab87: 0x366,
1098
+ _0x548f89: 0x35c,
1099
+ _0x8352f8: 0x2ea
1100
+ }, _0x5f501f = _0x2d2fb4;
1101
+ if (_0x16df4d['length'] === 0x0)
1078
1102
  return 'No\x20tasks\x20found.';
1079
- return _0x130ef5[_0x155fa0(_0x1bef1b._0x1732a4)](_0x49933a => {
1080
- const _0x1cc5ee = _0x155fa0, _0x3b734b = _0x49933a[_0x1cc5ee(0x249)] == null ? '(legacy)' : '#' + _0x49933a[_0x1cc5ee(0x249)], _0x222159 = _0x49933a[_0x1cc5ee(0x215)] ? '\x20message=' + _0x49933a[_0x1cc5ee(_0x5e6505._0x57cc21)] : '', _0x2bdd9d = _0x2d05af && _0x49933a['taskNumber'] != null && _0x2d05af['has'](_0x49933a[_0x1cc5ee(_0x5e6505._0x3274f4)]) ? _0x1cc5ee(0x14b) : '';
1081
- return _0x3b734b + '\x20[' + _0x49933a[_0x1cc5ee(0x239)] + ']\x20' + _0x49933a['title'] + _0x222159 + _0x2bdd9d;
1082
- })[_0x155fa0(0x297)]('\x0a');
1103
+ return _0x16df4d[_0x5f501f(_0x52a633._0xe21dde)](_0x10d0a6 => {
1104
+ const _0x1b4454 = _0x5f501f, _0xf2fe8e = _0x10d0a6['taskNumber'] == null ? '(legacy)' : '#' + _0x10d0a6[_0x1b4454(0x2cd)], _0x14665f = _0x10d0a6['messageId'] ? _0x1b4454(_0x397ebf._0x20ab87) + _0x10d0a6[_0x1b4454(_0x397ebf._0x548f89)] : '', _0x4a7913 = _0x5a2657 && _0x10d0a6['taskNumber'] != null && _0x5a2657[_0x1b4454(_0x397ebf._0x8352f8)](_0x10d0a6['taskNumber']) ? _0x1b4454(0x33c) : '';
1105
+ return _0xf2fe8e + '\x20[' + _0x10d0a6[_0x1b4454(0x1fe)] + ']\x20' + _0x10d0a6[_0x1b4454(0x2fd)] + _0x14665f + _0x4a7913;
1106
+ })[_0x5f501f(0x274)]('\x0a');
1083
1107
  }
1084
- function formatCreatedTasks(_0x1b52a9) {
1085
- const _0x431f0e = {
1086
- _0xb51588: 0x249,
1087
- _0x4cbf13: 0x249,
1088
- _0x3cdbe7: 0x1ba
1089
- }, _0xcfec60 = _0x229703;
1090
- if (_0x1b52a9[_0xcfec60(0x240)] === 0x0)
1091
- return 'No\x20tasks\x20created.';
1092
- return _0x1b52a9['map'](_0x84c4ab => {
1093
- const _0x510213 = _0xcfec60, _0x11907e = _0x84c4ab[_0x510213(_0x431f0e._0xb51588)] == null ? '(legacy)' : '#' + _0x84c4ab[_0x510213(_0x431f0e._0x4cbf13)];
1094
- return _0x11907e + '\x20' + _0x84c4ab[_0x510213(_0x431f0e._0x3cdbe7)] + _0x510213(0x160) + _0x84c4ab[_0x510213(0x215)];
1095
- })[_0xcfec60(0x297)]('\x0a');
1108
+ function formatCreatedTasks(_0x322690) {
1109
+ const _0x3721e3 = {
1110
+ _0x362dd6: 0x34b,
1111
+ _0x35be9d: 0x1f4,
1112
+ _0x4ad9a5: 0x27e
1113
+ }, _0x256373 = {
1114
+ _0x56f211: 0x2cd,
1115
+ _0x28f365: 0x2fd
1116
+ }, _0x285a8a = _0x2d2fb4;
1117
+ if (_0x322690[_0x285a8a(_0x3721e3._0x362dd6)] === 0x0)
1118
+ return _0x285a8a(_0x3721e3._0x35be9d);
1119
+ return _0x322690[_0x285a8a(_0x3721e3._0x4ad9a5)](_0x14b18c => {
1120
+ const _0x6427e6 = _0x285a8a, _0x332054 = _0x14b18c[_0x6427e6(_0x256373._0x56f211)] == null ? _0x6427e6(0x2a0) : '#' + _0x14b18c[_0x6427e6(_0x256373._0x56f211)];
1121
+ return _0x332054 + '\x20' + _0x14b18c[_0x6427e6(_0x256373._0x28f365)] + _0x6427e6(0x366) + _0x14b18c[_0x6427e6(0x35c)];
1122
+ })[_0x285a8a(0x274)]('\x0a');
1096
1123
  }
1097
- function formatClaimTaskResults(_0x1bf3ef) {
1098
- const _0x52b02e = {
1099
- _0x6790e: 0x240,
1100
- _0x16d08f: 0x29c
1101
- }, _0xcf755c = {
1102
- _0x113b99: 0x1b1,
1103
- _0x584cf5: 0x1e9,
1104
- _0x189e29: 0x234,
1105
- _0x5474df: 0x19a,
1106
- _0x18eb24: 0x19a,
1107
- _0x2e7fbb: 0x136,
1108
- _0x80b6d6: 0x267,
1109
- _0x428129: 0x1c8,
1110
- _0x2fc460: 0x133,
1111
- _0x100a1d: 0x25b,
1112
- _0x53b8ac: 0x249,
1113
- _0x3e70ff: 0x269
1114
- }, _0x546551 = _0x229703;
1115
- if (_0x1bf3ef[_0x546551(_0x52b02e._0x6790e)] === 0x0)
1116
- return _0x546551(_0x52b02e._0x16d08f);
1117
- return _0x1bf3ef['map'](_0x484dd1 => {
1118
- const _0x41cd2e = _0x546551;
1119
- if (_0x484dd1['success']) {
1120
- const _0x3c6edd = _0x484dd1[_0x41cd2e(0x249)] == null ? _0x41cd2e(_0xcf755c._0x113b99) : '#' + _0x484dd1[_0x41cd2e(0x249)], _0x3887a4 = _0x484dd1[_0x41cd2e(0x215)] ? '\x20message=' + _0x484dd1['messageId'] : '';
1121
- if (_0x484dd1['workerHandoff']) {
1122
- const _0x2478de = [
1123
- 'workerHandoff=true',
1124
- _0x484dd1[_0x41cd2e(_0xcf755c._0x584cf5)] ? 'stopMain=true' : null,
1125
- _0x484dd1[_0x41cd2e(_0xcf755c._0x189e29)] ? _0x41cd2e(0x218) + _0x484dd1[_0x41cd2e(0x234)] : null,
1126
- _0x484dd1[_0x41cd2e(_0xcf755c._0x5474df)] ? _0x41cd2e(0x21f) + _0x484dd1[_0x41cd2e(_0xcf755c._0x18eb24)] : null,
1127
- _0x484dd1['workerDisposition'] ? _0x41cd2e(0x152) + _0x484dd1[_0x41cd2e(0x193)] : null
1128
- ][_0x41cd2e(_0xcf755c._0x2e7fbb)](Boolean)[_0x41cd2e(0x297)]('\x20');
1129
- return _0x3c6edd + _0x41cd2e(0x25b) + _0x3887a4 + '\x20' + _0x2478de + _0x41cd2e(_0xcf755c._0x80b6d6);
1124
+ function formatClaimTaskResults(_0x2b8981) {
1125
+ const _0x3645b0 = { _0x46e85c: 0x274 }, _0x2094cb = {
1126
+ _0x43a829: 0x21b,
1127
+ _0x5d4a9d: 0x35c,
1128
+ _0x33028f: 0x2eb,
1129
+ _0xb5499: 0x252,
1130
+ _0x8513d4: 0x24d,
1131
+ _0x4e2c5f: 0x35a,
1132
+ _0x1ee531: 0x303,
1133
+ _0x328d7b: 0x2d8,
1134
+ _0x40f8df: 0x275
1135
+ }, _0x2ce2fb = _0x2d2fb4;
1136
+ if (_0x2b8981[_0x2ce2fb(0x34b)] === 0x0)
1137
+ return _0x2ce2fb(0x30d);
1138
+ return _0x2b8981['map'](_0x327c23 => {
1139
+ const _0x24b8f2 = _0x2ce2fb;
1140
+ if (_0x327c23[_0x24b8f2(_0x2094cb._0x43a829)]) {
1141
+ const _0x265481 = _0x327c23['taskNumber'] == null ? _0x24b8f2(0x2a0) : '#' + _0x327c23[_0x24b8f2(0x2cd)], _0x42c45f = _0x327c23[_0x24b8f2(_0x2094cb._0x5d4a9d)] ? _0x24b8f2(0x366) + _0x327c23[_0x24b8f2(0x35c)] : '';
1142
+ if (_0x327c23[_0x24b8f2(_0x2094cb._0x33028f)]) {
1143
+ const _0x29f7cd = [
1144
+ _0x24b8f2(0x209),
1145
+ _0x327c23[_0x24b8f2(_0x2094cb._0xb5499)] ? _0x24b8f2(_0x2094cb._0x8513d4) : null,
1146
+ _0x327c23[_0x24b8f2(0x2bb)] ? 'executionMode=' + _0x327c23[_0x24b8f2(0x2bb)] : null,
1147
+ _0x327c23[_0x24b8f2(0x20b)] ? _0x24b8f2(_0x2094cb._0x4e2c5f) + _0x327c23[_0x24b8f2(0x20b)] : null,
1148
+ _0x327c23[_0x24b8f2(0x31d)] ? _0x24b8f2(_0x2094cb._0x1ee531) + _0x327c23[_0x24b8f2(0x31d)] : null
1149
+ ][_0x24b8f2(0x1ef)](Boolean)[_0x24b8f2(0x274)]('\x20');
1150
+ return _0x265481 + _0x24b8f2(_0x2094cb._0x328d7b) + _0x42c45f + '\x20' + _0x29f7cd + _0x24b8f2(0x24b);
1130
1151
  }
1131
- const _0x4b450a = _0x484dd1['workerHandoffError'] ? _0x41cd2e(_0xcf755c._0x428129) + _0x484dd1[_0x41cd2e(_0xcf755c._0x2fc460)] : '';
1132
- return _0x3c6edd + _0x41cd2e(_0xcf755c._0x100a1d) + _0x3887a4 + _0x4b450a;
1152
+ const _0x16ea37 = _0x327c23[_0x24b8f2(0x325)] ? _0x24b8f2(0x330) + _0x327c23['workerHandoffError'] : '';
1153
+ return _0x265481 + '\x20claimed' + _0x42c45f + _0x16ea37;
1133
1154
  }
1134
- const _0x4eea4d = _0x484dd1[_0x41cd2e(_0xcf755c._0x53b8ac)] == null ? _0x484dd1[_0x41cd2e(0x215)] ?? _0x41cd2e(_0xcf755c._0x3e70ff) : '#' + _0x484dd1[_0x41cd2e(0x249)];
1135
- return _0x4eea4d + _0x41cd2e(0x1ea) + (_0x484dd1[_0x41cd2e(0x247)] ?? _0x41cd2e(0x250));
1136
- })[_0x546551(0x297)]('\x0a');
1155
+ const _0x3558a2 = _0x327c23[_0x24b8f2(0x2cd)] == null ? _0x327c23['messageId'] ?? _0x24b8f2(0x301) : '#' + _0x327c23['taskNumber'];
1156
+ return _0x3558a2 + '\x20failed:\x20' + (_0x327c23[_0x24b8f2(0x2cf)] ?? _0x24b8f2(_0x2094cb._0x40f8df));
1157
+ })[_0x2ce2fb(_0x3645b0._0x46e85c)]('\x0a');
1137
1158
  }
1138
- function formatUnclaimTaskResult(_0x369444) {
1139
- const _0x245d2b = { _0x38c9d3: 0x249 }, _0x483b51 = _0x229703, _0x59e509 = _0x369444[_0x483b51(_0x245d2b._0x38c9d3)] == null ? _0x483b51(0x1b1) : '#' + _0x369444[_0x483b51(0x249)];
1140
- return _0x59e509 + _0x483b51(0x16d) + _0x369444[_0x483b51(0x239)];
1159
+ function formatUnclaimTaskResult(_0x28950c) {
1160
+ const _0x159951 = {
1161
+ _0x257b2f: 0x2a0,
1162
+ _0x19ab0f: 0x2cd
1163
+ }, _0x5d479e = _0x2d2fb4, _0x51d3ca = _0x28950c['taskNumber'] == null ? _0x5d479e(_0x159951._0x257b2f) : '#' + _0x28950c[_0x5d479e(_0x159951._0x19ab0f)];
1164
+ return _0x51d3ca + _0x5d479e(0x2e8) + _0x28950c['status'];
1141
1165
  }
1142
- function formatUpdateTaskStatusResult(_0x3c8f75) {
1143
- const _0x1f5358 = _0x229703, _0x104a25 = _0x3c8f75[_0x1f5358(0x249)] == null ? '(legacy)' : '#' + _0x3c8f75[_0x1f5358(0x249)];
1144
- return _0x104a25 + '\x20status=' + _0x3c8f75['status'];
1166
+ function formatUpdateTaskStatusResult(_0x18c5cb) {
1167
+ const _0x42ec0c = {
1168
+ _0x51b6bf: 0x2cd,
1169
+ _0x44c051: 0x2a0,
1170
+ _0x2e5d5b: 0x2e8
1171
+ }, _0x968ff0 = _0x2d2fb4, _0x16e5bd = _0x18c5cb[_0x968ff0(_0x42ec0c._0x51b6bf)] == null ? _0x968ff0(_0x42ec0c._0x44c051) : '#' + _0x18c5cb['taskNumber'];
1172
+ return _0x16e5bd + _0x968ff0(_0x42ec0c._0x2e5d5b) + _0x18c5cb['status'];
1145
1173
  }
1146
1174
  function getChatBridgeToolDefinitions() {
1147
- const _0x18e514 = {
1148
- _0x215401: 0x28b,
1149
- _0x3f5f26: 0x22a,
1150
- _0x24d455: 0x19e,
1151
- _0x496680: 0x221
1152
- }, _0x3e0b15 = _0x229703;
1175
+ const _0x58bd1d = {
1176
+ _0x109161: 0x1f1,
1177
+ _0x4a452d: 0x22f,
1178
+ _0x47b26d: 0x29f,
1179
+ _0x2fc548: 0x30a,
1180
+ _0x56f813: 0x2dd,
1181
+ _0x2ebcae: 0x2bd,
1182
+ _0x3e3b90: 0x33d
1183
+ }, _0x220258 = _0x2d2fb4;
1153
1184
  return [
1154
- { 'name': _0x3e0b15(0x14f) },
1155
- { 'name': _0x3e0b15(_0x18e514._0x215401) },
1156
- { 'name': _0x3e0b15(0x27b) },
1157
- { 'name': _0x3e0b15(0x1c9) },
1158
- { 'name': _0x3e0b15(_0x18e514._0x3f5f26) },
1159
- { 'name': 'view_file' },
1160
- { 'name': _0x3e0b15(_0x18e514._0x24d455) },
1161
- { 'name': _0x3e0b15(0x151) },
1162
- { 'name': _0x3e0b15(0x276) },
1163
- { 'name': _0x3e0b15(0x154) },
1164
- { 'name': _0x3e0b15(0x255) },
1165
- { 'name': _0x3e0b15(_0x18e514._0x496680) },
1166
- { 'name': _0x3e0b15(0x26b) },
1167
- { 'name': _0x3e0b15(0x150) },
1168
- { 'name': 'escalate_to_main' },
1169
- { 'name': 'mark_waiting_input' }
1185
+ { 'name': _0x220258(0x31a) },
1186
+ { 'name': _0x220258(0x335) },
1187
+ { 'name': 'read_history' },
1188
+ { 'name': _0x220258(_0x58bd1d._0x109161) },
1189
+ { 'name': _0x220258(0x313) },
1190
+ { 'name': _0x220258(_0x58bd1d._0x4a452d) },
1191
+ { 'name': _0x220258(_0x58bd1d._0x47b26d) },
1192
+ { 'name': 'create_tasks' },
1193
+ { 'name': 'claim_tasks' },
1194
+ { 'name': _0x220258(_0x58bd1d._0x2fc548) },
1195
+ { 'name': _0x220258(_0x58bd1d._0x56f813) },
1196
+ { 'name': 'get_worker_status' },
1197
+ { 'name': _0x220258(_0x58bd1d._0x2ebcae) },
1198
+ { 'name': _0x220258(_0x58bd1d._0x3e3b90) },
1199
+ { 'name': _0x220258(0x236) },
1200
+ { 'name': _0x220258(0x32d) }
1170
1201
  ];
1171
1202
  }
1172
- function createChatBridgeHandlers(_0x33561b) {
1173
- const _0x42b0c4 = {
1174
- _0x13d304: 0x2be,
1175
- _0x137fe4: 0x16f
1176
- }, _0x548fe6 = {
1177
- _0x143308: 0x1ed,
1178
- _0x67ced0: 0x247
1179
- }, _0x2a60cf = {
1180
- _0x414632: 0x18b,
1181
- _0x2f3cd5: 0x200,
1182
- _0x16cb6c: 0x20a,
1183
- _0x55eb70: 0x1d9,
1184
- _0x41af14: 0x2aa,
1185
- _0x21241d: 0x21a,
1186
- _0x30e39a: 0x2b0
1187
- }, _0x5c7aa0 = {
1188
- _0x1fe661: 0x14e,
1189
- _0x394009: 0x1d9,
1190
- _0x5c79dc: 0x13c,
1191
- _0x1e5c19: 0x182,
1192
- _0x442ed9: 0x21d,
1193
- _0x55d86c: 0x262,
1194
- _0x22f349: 0x29f,
1195
- _0xff2ba7: 0x2aa
1196
- }, _0x563079 = {
1197
- _0x730e12: 0x293,
1198
- _0x579256: 0x13c
1199
- }, _0x5b045d = {
1200
- _0x5519dd: 0x14e,
1201
- _0x358801: 0x165,
1202
- _0x27547a: 0x13c,
1203
- _0x72cb9: 0x2b7
1204
- }, _0x3b0877 = { _0x30b820: 0x259 }, _0x214ffb = { _0x391226: 0x183 }, _0x133eac = { _0x534b10: 0x1b3 }, _0x48bbdf = { _0x23a0cd: 0x1b3 }, _0x4c23de = {
1205
- _0x4b0b90: 0x1f6,
1206
- _0x3cdc02: 0x1db,
1207
- _0x1e0a2b: 0x146,
1208
- _0x57c64a: 0x144
1209
- }, _0x53ef51 = {
1210
- _0x1c2fdb: 0x1b3,
1211
- _0xd2c833: 0x24e
1212
- }, _0x564cb7 = {
1213
- _0x1aac86: 0x15d,
1214
- _0x38314b: 0x18b,
1215
- _0x46b85f: 0x1db,
1216
- _0x4696cc: 0x290,
1217
- _0x2a8355: 0x1e7,
1218
- _0x6b02e6: 0x1a5,
1219
- _0x4d6799: 0x26e,
1220
- _0x282053: 0x249,
1221
- _0x3a50c0: 0x249
1222
- }, _0x3e3882 = { _0x1db7a0: 0x1b3 }, _0xf5e8b0 = {
1223
- _0x58df63: 0x2bb,
1224
- _0x429eed: 0x14e,
1225
- _0x4d9f08: 0x25c,
1226
- _0x50e810: 0x1da,
1227
- _0x5f5708: 0x1f5,
1228
- _0xcd8b86: 0x14a,
1229
- _0x35cbb0: 0x229,
1230
- _0x3db896: 0x1da,
1231
- _0x2426d5: 0x2a0,
1232
- _0x58f1af: 0x17c,
1233
- _0x12063d: 0x297,
1234
- _0x21c974: 0x1c1,
1235
- _0xf9d0fa: 0x17d,
1236
- _0x3e294d: 0x171,
1237
- _0x1566b8: 0x295,
1238
- _0x1ab4f3: 0x1d9,
1239
- _0x455462: 0x18b,
1240
- _0x3ab1f5: 0x2aa,
1241
- _0x49833f: 0x26d,
1242
- _0x2ffc8d: 0x29d,
1243
- _0x576599: 0x177,
1244
- _0x4e9522: 0x1f2,
1245
- _0x1d35a0: 0x1b3,
1246
- _0x386e84: 0x17e,
1247
- _0x516df8: 0x28a,
1248
- _0x3da7b3: 0x1d0
1249
- }, _0x3e0b6a = {
1250
- _0x573015: 0x14e,
1251
- _0x3e4149: 0x2bb,
1252
- _0x49ed07: 0x2aa,
1253
- _0x3828ba: 0x239,
1254
- _0x294371: 0x1e7
1255
- }, _0x35d589 = {
1256
- _0x485567: 0x14e,
1257
- _0x4f992e: 0x2aa,
1258
- _0x548c40: 0x1e7
1259
- }, _0x140297 = {
1260
- _0x5a2fea: 0x14e,
1261
- _0x5a7d13: 0x2bb,
1262
- _0x3d2e01: 0x131,
1263
- _0x4f17f0: 0x1b3,
1264
- _0x5640dc: 0x1b1,
1265
- _0x12322e: 0x241,
1266
- _0x225861: 0x173,
1267
- _0x3fb885: 0x17d,
1268
- _0x576cdb: 0x143,
1269
- _0x44753c: 0x297,
1270
- _0x3f01b7: 0x228,
1271
- _0x30fc7d: 0x146,
1272
- _0x43d521: 0x141,
1273
- _0xd66af7: 0x249,
1274
- _0x1f2c40: 0x13b,
1275
- _0x5bfab9: 0x2aa,
1276
- _0xbfd1a4: 0x21a,
1277
- _0x20b3c8: 0x1f2,
1278
- _0x4743d8: 0x212
1279
- }, _0x95c54b = _0x229703;
1280
- async function _0x45aeba(_0x4f6d6d) {
1281
- const _0x50455e = _0x549d;
1282
- if (!_0x33561b[_0x50455e(_0x140297._0x5a2fea)] || !_0x33561b[_0x50455e(0x18b)] || _0x33561b[_0x50455e(_0x140297._0x5a7d13)] || _0x33561b[_0x50455e(0x139)] !== !![])
1203
+ function createChatBridgeHandlers(_0x33c1d0) {
1204
+ const _0x578acf = { _0x5617be: 0x27f }, _0x45c950 = {
1205
+ _0x45f7d2: 0x231,
1206
+ _0x46d923: 0x288,
1207
+ _0x1aad04: 0x231,
1208
+ _0x171373: 0x243,
1209
+ _0x53bbd0: 0x286,
1210
+ _0x23d508: 0x2c2,
1211
+ _0x129475: 0x2cf
1212
+ }, _0x9c661d = {
1213
+ _0x31c225: 0x2a6,
1214
+ _0x259ad5: 0x286,
1215
+ _0x433232: 0x250
1216
+ }, _0xefc654 = {
1217
+ _0x12e3e7: 0x2a6,
1218
+ _0x334aeb: 0x286,
1219
+ _0x1fb9c0: 0x2d5,
1220
+ _0x377f43: 0x227
1221
+ }, _0x1c9892 = {
1222
+ _0x822c07: 0x231,
1223
+ _0x25316d: 0x2c4,
1224
+ _0x4da727: 0x21a,
1225
+ _0x5683dd: 0x356
1226
+ }, _0x546112 = {
1227
+ _0x23eb5a: 0x2b5,
1228
+ _0x3be6a8: 0x206,
1229
+ _0x6aca72: 0x356
1230
+ }, _0x52f58e = {
1231
+ _0x210288: 0x2c3,
1232
+ _0x4e7203: 0x32e,
1233
+ _0x1001d9: 0x21c,
1234
+ _0x2d65fe: 0x369,
1235
+ _0xfb7a0c: 0x268
1236
+ }, _0x362da6 = { _0x4cf253: 0x1ee }, _0x5b2d54 = { _0x7722d5: 0x261 }, _0x100a39 = { _0x5583e9: 0x32e }, _0x3f4542 = {
1237
+ _0x5176ae: 0x23f,
1238
+ _0x3431c5: 0x24c,
1239
+ _0x5c3ad2: 0x27d,
1240
+ _0x4fb72b: 0x27e
1241
+ }, _0x2a9436 = {
1242
+ _0x59f95a: 0x32e,
1243
+ _0x554116: 0x311
1244
+ }, _0x24ce88 = {
1245
+ _0x833bd3: 0x365,
1246
+ _0x568503: 0x1f8,
1247
+ _0x530c3f: 0x266,
1248
+ _0x2db893: 0x28d,
1249
+ _0x27b1e6: 0x34b,
1250
+ _0x466d1a: 0x201,
1251
+ _0x1c5eb7: 0x2cd,
1252
+ _0xf2efc9: 0x2a1,
1253
+ _0x4ca213: 0x2cd,
1254
+ _0x2e9ed8: 0x2cd
1255
+ }, _0x3c1785 = { _0xf2004f: 0x32e }, _0x140d9a = {
1256
+ _0x52135f: 0x32e,
1257
+ _0x50262f: 0x31c,
1258
+ _0x3b8b83: 0x2ca
1259
+ }, _0x15ee46 = {
1260
+ _0x68970d: 0x267,
1261
+ _0x157b3a: 0x250,
1262
+ _0x4787b7: 0x32e,
1263
+ _0x6c83f5: 0x363,
1264
+ _0x10c5a5: 0x363,
1265
+ _0x5223be: 0x26d,
1266
+ _0xb42b0f: 0x1fd,
1267
+ _0x238046: 0x1ff,
1268
+ _0x44cb63: 0x239,
1269
+ _0x3a39ef: 0x264,
1270
+ _0x2c5734: 0x274,
1271
+ _0x4dfe69: 0x2fe,
1272
+ _0x2c11b3: 0x286,
1273
+ _0x3816a1: 0x2c7,
1274
+ _0x1b3472: 0x2b5,
1275
+ _0x10787c: 0x36d,
1276
+ _0x1c52e1: 0x22b,
1277
+ _0x59b5d2: 0x28c,
1278
+ _0x3de60c: 0x33b,
1279
+ _0x4df0fb: 0x2dc,
1280
+ _0x293e08: 0x244,
1281
+ _0x518e2a: 0x336
1282
+ }, _0x157ba2 = {
1283
+ _0x1fa2d2: 0x231,
1284
+ _0x2fd303: 0x367,
1285
+ _0x1e41e6: 0x2b5,
1286
+ _0x8d4f: 0x2ea,
1287
+ _0x426c5f: 0x1fe,
1288
+ _0x4ee535: 0x2a1
1289
+ }, _0x50640b = {
1290
+ _0x28fb66: 0x231,
1291
+ _0x2de335: 0x1fe,
1292
+ _0x3a26ae: 0x2a1,
1293
+ _0x3f0762: 0x28d
1294
+ }, _0x4055ee = {
1295
+ _0x51cd49: 0x365,
1296
+ _0x27d037: 0x26d,
1297
+ _0x312e1b: 0x281,
1298
+ _0x2a5a41: 0x32e,
1299
+ _0x38b2ca: 0x234,
1300
+ _0x56f6ae: 0x1f3,
1301
+ _0x2a9707: 0x320,
1302
+ _0x1caf5d: 0x274,
1303
+ _0x36e3ce: 0x231,
1304
+ _0x4171c0: 0x2fe,
1305
+ _0x45351e: 0x1ed,
1306
+ _0x5b0e02: 0x250,
1307
+ _0x3d8ea7: 0x334,
1308
+ _0x1ebd6f: 0x334,
1309
+ _0x4de011: 0x2e4,
1310
+ _0x5b70f5: 0x33b,
1311
+ _0x382568: 0x354
1312
+ }, _0x2969dd = _0x2d2fb4;
1313
+ async function _0x102280(_0x3cd68e) {
1314
+ const _0x36f0b0 = _0x101e;
1315
+ if (!_0x33c1d0[_0x36f0b0(0x231)] || !_0x33c1d0[_0x36f0b0(0x250)] || _0x33c1d0['workerMode'] || _0x33c1d0[_0x36f0b0(0x267)] !== !![])
1283
1316
  return null;
1284
- const _0x14aac1 = parseTarget(_0x4f6d6d[_0x50455e(0x1db)]);
1285
- if (_0x14aac1['kind'] !== 'channel')
1317
+ const _0x4c3373 = parseTarget(_0x3cd68e['channel']);
1318
+ if (_0x4c3373['kind'] !== _0x36f0b0(_0x4055ee._0x51cd49))
1286
1319
  return null;
1287
- const _0x581da7 = _0x4f6d6d['threadNumber'] != null ? _0x14aac1[_0x50455e(_0x140297._0x3d2e01)] + ':t' + _0x4f6d6d['threadNumber'] : _0x14aac1[_0x50455e(0x131)] + ':' + _0x4f6d6d['messageId'];
1288
- let _0x55e123;
1320
+ const _0x45d98a = _0x3cd68e[_0x36f0b0(_0x4055ee._0x27d037)] != null ? _0x4c3373[_0x36f0b0(_0x4055ee._0x312e1b)] + ':t' + _0x3cd68e['threadNumber'] : _0x4c3373[_0x36f0b0(_0x4055ee._0x312e1b)] + ':' + _0x3cd68e['messageId'];
1321
+ let _0x5542e7;
1289
1322
  try {
1290
- const _0x129076 = await _0x33561b[_0x50455e(_0x140297._0x4f17f0)]['readHistory']({
1291
- 'channel': _0x581da7,
1323
+ const _0x11f350 = await _0x33c1d0[_0x36f0b0(_0x4055ee._0x2a5a41)][_0x36f0b0(_0x4055ee._0x38b2ca)]({
1324
+ 'channel': _0x45d98a,
1292
1325
  'limit': 0x14
1293
1326
  });
1294
- _0x55e123 = _0x129076['messages'][_0x50455e(0x1a5)](_0xfad7e0 => _0xfad7e0[_0x50455e(0x215)] === _0x4f6d6d[_0x50455e(0x215)]);
1327
+ _0x5542e7 = _0x11f350[_0x36f0b0(0x2ca)][_0x36f0b0(0x201)](_0x31fd01 => _0x31fd01[_0x36f0b0(0x35c)] === _0x3cd68e[_0x36f0b0(0x35c)]);
1295
1328
  } catch {
1296
- _0x55e123 = void 0x0;
1329
+ _0x5542e7 = void 0x0;
1297
1330
  }
1298
- const _0x3b9e36 = _0x4f6d6d[_0x50455e(0x249)] == null ? _0x50455e(_0x140297._0x5640dc) : '#' + _0x4f6d6d[_0x50455e(0x249)], _0x1074eb = [
1299
- '[target=' + _0x581da7 + _0x50455e(0x18c) + _0x4f6d6d['messageId'][_0x50455e(0x2a0)](0x0, 0x8) + _0x50455e(_0x140297._0x12322e) + new Date()['toISOString']() + _0x50455e(_0x140297._0x225861) + _0x3b9e36 + '\x20已切换到\x20worker\x20执行',
1331
+ const _0x196ae6 = _0x3cd68e[_0x36f0b0(0x2cd)] == null ? _0x36f0b0(0x2a0) : '#' + _0x3cd68e['taskNumber'], _0x57fce9 = [
1332
+ _0x36f0b0(0x24f) + _0x45d98a + _0x36f0b0(0x2d1) + _0x3cd68e[_0x36f0b0(0x35c)]['slice'](0x0, 0x8) + _0x36f0b0(0x30f) + new Date()[_0x36f0b0(_0x4055ee._0x56f6ae)]() + _0x36f0b0(0x319) + _0x196ae6 + _0x36f0b0(_0x4055ee._0x2a9707),
1300
1333
  '',
1301
- _0x55e123 ? _0x50455e(0x21c) + _0x55e123[_0x50455e(_0x140297._0x3fb885)] : _0x50455e(_0x140297._0x576cdb) + _0x4f6d6d[_0x50455e(0x215)],
1334
+ _0x5542e7 ? _0x36f0b0(0x321) + _0x5542e7['content'] : _0x36f0b0(0x2da) + _0x3cd68e[_0x36f0b0(0x35c)],
1302
1335
  '',
1303
- _0x50455e(0x273) + _0x581da7,
1304
- 'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
1305
- ][_0x50455e(_0x140297._0x44753c)]('\x0a'), _0xb3944f = await fetch(_0x33561b[_0x50455e(0x14e)] + _0x50455e(_0x140297._0x3f01b7), {
1306
- 'method': _0x50455e(0x285),
1307
- 'headers': { 'Content-Type': _0x50455e(0x15b) },
1308
- 'body': JSON[_0x50455e(0x1d9)]({
1309
- 'agent_id': _0x33561b['agentId'],
1310
- 'thread_target': _0x581da7,
1336
+ _0x36f0b0(0x22c) + _0x45d98a,
1337
+ _0x36f0b0(0x2bc)
1338
+ ][_0x36f0b0(_0x4055ee._0x1caf5d)]('\x0a'), _0x50c522 = await fetch(_0x33c1d0[_0x36f0b0(_0x4055ee._0x36e3ce)] + _0x36f0b0(_0x4055ee._0x4171c0), {
1339
+ 'method': _0x36f0b0(_0x4055ee._0x45351e),
1340
+ 'headers': { 'Content-Type': _0x36f0b0(0x2a6) },
1341
+ 'body': JSON[_0x36f0b0(0x286)]({
1342
+ 'agent_id': _0x33c1d0[_0x36f0b0(_0x4055ee._0x5b0e02)],
1343
+ 'thread_target': _0x45d98a,
1311
1344
  'spawn_packet': {
1312
- 'replyTarget': _0x581da7,
1313
- ..._0x4f6d6d[_0x50455e(_0x140297._0x30fc7d)] ? { 'taskId': _0x4f6d6d['taskId'] } : _0x4f6d6d[_0x50455e(0x249)] != null ? { 'taskId': _0x50455e(_0x140297._0x43d521) + _0x4f6d6d[_0x50455e(_0x140297._0xd66af7)] } : {}
1345
+ 'replyTarget': _0x45d98a,
1346
+ ..._0x3cd68e[_0x36f0b0(_0x4055ee._0x3d8ea7)] ? { 'taskId': _0x3cd68e[_0x36f0b0(_0x4055ee._0x1ebd6f)] } : _0x3cd68e[_0x36f0b0(0x2cd)] != null ? { 'taskId': _0x36f0b0(_0x4055ee._0x4de011) + _0x3cd68e[_0x36f0b0(0x2cd)] } : {}
1314
1347
  },
1315
1348
  'payload': {
1316
- 'mode': _0x50455e(_0x140297._0x1f2c40),
1317
- 'text': _0x1074eb
1349
+ 'mode': _0x36f0b0(0x2c7),
1350
+ 'text': _0x57fce9
1318
1351
  }
1319
1352
  })
1320
- }), _0x24bbcf = await _0xb3944f[_0x50455e(_0x140297._0x5bfab9)]();
1321
- if (!_0x24bbcf['ok'])
1322
- throw new Error(_0x24bbcf[_0x50455e(_0x140297._0xbfd1a4)] ?? 'worker\x20handoff\x20failed');
1353
+ }), _0x59deea = await _0x50c522[_0x36f0b0(0x2b5)]();
1354
+ if (!_0x59deea['ok'])
1355
+ throw new Error(_0x59deea[_0x36f0b0(0x2d5)] ?? _0x36f0b0(0x310));
1323
1356
  return {
1324
1357
  'stopMain': !![],
1325
- 'threadTarget': _0x581da7,
1326
- 'workerDisposition': _0x24bbcf[_0x50455e(0x177)] === _0x50455e(_0x140297._0x20b3c8) ? _0x50455e(0x1f2) : _0x50455e(_0x140297._0x4743d8),
1358
+ 'threadTarget': _0x45d98a,
1359
+ 'workerDisposition': _0x59deea[_0x36f0b0(_0x4055ee._0x5b70f5)] === 'queued' ? _0x36f0b0(0x2dc) : _0x36f0b0(_0x4055ee._0x382568),
1327
1360
  'workerHandoff': !![],
1328
- 'workerSessionId': _0x24bbcf[_0x50455e(0x2bd)] ?? '',
1329
- 'executionMode': _0x50455e(0x189)
1361
+ 'workerSessionId': _0x59deea[_0x36f0b0(0x285)] ?? '',
1362
+ 'executionMode': 'worker'
1330
1363
  };
1331
1364
  }
1332
- async function _0x2dc2b6() {
1333
- const _0x3034a7 = _0x549d;
1334
- if (!_0x33561b[_0x3034a7(_0x35d589._0x485567)] || !_0x33561b[_0x3034a7(0x18b)] || _0x33561b[_0x3034a7(0x2bb)])
1365
+ async function _0x5589cb() {
1366
+ const _0x273757 = _0x101e;
1367
+ if (!_0x33c1d0[_0x273757(0x231)] || !_0x33c1d0['agentId'] || _0x33c1d0[_0x273757(0x31e)])
1335
1368
  return null;
1336
1369
  try {
1337
- const _0x519943 = await fetch(_0x33561b[_0x3034a7(0x14e)] + _0x3034a7(0x1e6) + encodeURIComponent(_0x33561b[_0x3034a7(0x18b)])), _0x22bda1 = await _0x519943[_0x3034a7(_0x35d589._0x4f992e)]();
1338
- if (!_0x22bda1['ok'])
1370
+ const _0xe8df6 = await fetch(_0x33c1d0[_0x273757(_0x50640b._0x28fb66)] + '/workers/list?agent_id=' + encodeURIComponent(_0x33c1d0['agentId'])), _0x289e8d = await _0xe8df6['json']();
1371
+ if (!_0x289e8d['ok'])
1339
1372
  return null;
1340
- const _0x441662 = new Set();
1341
- for (const _0x3527e4 of _0x22bda1['workers']) {
1342
- _0x3527e4[_0x3034a7(0x239)] !== _0x3034a7(0x290) && _0x3527e4[_0x3034a7(0x1e7)] && _0x441662[_0x3034a7(0x26e)](_0x3527e4[_0x3034a7(_0x35d589._0x548c40)]);
1373
+ const _0x1d38f5 = new Set();
1374
+ for (const _0x206c6e of _0x289e8d['workers']) {
1375
+ _0x206c6e[_0x273757(_0x50640b._0x2de335)] !== 'destroyed' && _0x206c6e['thread_target'] && _0x1d38f5[_0x273757(_0x50640b._0x3a26ae)](_0x206c6e[_0x273757(_0x50640b._0x3f0762)]);
1343
1376
  }
1344
- return _0x441662[_0x3034a7(0x21b)] > 0x0 ? _0x441662 : null;
1377
+ return _0x1d38f5[_0x273757(0x333)] > 0x0 ? _0x1d38f5 : null;
1345
1378
  } catch {
1346
1379
  return null;
1347
1380
  }
1348
1381
  }
1349
- const _0x1e5cd5 = new Set([
1350
- _0x95c54b(0x2a1),
1351
- _0x95c54b(_0x42b0c4._0x13d304),
1352
- _0x95c54b(_0x42b0c4._0x137fe4)
1382
+ const _0x2b9299 = new Set([
1383
+ 'running',
1384
+ _0x2969dd(0x1f9),
1385
+ _0x2969dd(_0x578acf._0x5617be)
1353
1386
  ]);
1354
- async function _0x95f401() {
1355
- const _0x5af876 = _0x95c54b;
1356
- if (!_0x33561b[_0x5af876(_0x3e0b6a._0x573015)] || !_0x33561b['agentId'] || _0x33561b[_0x5af876(_0x3e0b6a._0x3e4149)])
1387
+ async function _0x5206e1() {
1388
+ const _0x1c263f = _0x2969dd;
1389
+ if (!_0x33c1d0[_0x1c263f(_0x157ba2._0x1fa2d2)] || !_0x33c1d0[_0x1c263f(0x250)] || _0x33c1d0[_0x1c263f(0x31e)])
1357
1390
  return null;
1358
1391
  try {
1359
- const _0x354ac5 = await fetch(_0x33561b[_0x5af876(_0x3e0b6a._0x573015)] + _0x5af876(0x1e6) + encodeURIComponent(_0x33561b[_0x5af876(0x18b)])), _0x5a3551 = await _0x354ac5[_0x5af876(_0x3e0b6a._0x49ed07)]();
1360
- if (!_0x5a3551['ok'])
1392
+ const _0x259ca8 = await fetch(_0x33c1d0['daemonLocalUrl'] + _0x1c263f(_0x157ba2._0x2fd303) + encodeURIComponent(_0x33c1d0[_0x1c263f(0x250)])), _0x168d27 = await _0x259ca8[_0x1c263f(_0x157ba2._0x1e41e6)]();
1393
+ if (!_0x168d27['ok'])
1361
1394
  return null;
1362
- const _0x5c6faa = new Set();
1363
- for (const _0x344b8b of _0x5a3551[_0x5af876(0x1cb)]) {
1364
- _0x1e5cd5['has'](_0x344b8b[_0x5af876(_0x3e0b6a._0x3828ba)]) && _0x344b8b[_0x5af876(0x1e7)] && _0x5c6faa['add'](_0x344b8b[_0x5af876(_0x3e0b6a._0x294371)]);
1395
+ const _0x7f6ea = new Set();
1396
+ for (const _0x14cc22 of _0x168d27['workers']) {
1397
+ _0x2b9299[_0x1c263f(_0x157ba2._0x8d4f)](_0x14cc22[_0x1c263f(_0x157ba2._0x426c5f)]) && _0x14cc22[_0x1c263f(0x28d)] && _0x7f6ea[_0x1c263f(_0x157ba2._0x4ee535)](_0x14cc22[_0x1c263f(0x28d)]);
1365
1398
  }
1366
- return _0x5c6faa['size'] > 0x0 ? _0x5c6faa : null;
1399
+ return _0x7f6ea[_0x1c263f(0x333)] > 0x0 ? _0x7f6ea : null;
1367
1400
  } catch {
1368
1401
  return null;
1369
1402
  }
1370
1403
  }
1371
1404
  return {
1372
- async 'send_message'(_0x436975) {
1373
- const _0x59d9e8 = _0x95c54b;
1374
- if (!_0x33561b[_0x59d9e8(_0xf5e8b0._0x58df63)] && _0x33561b[_0x59d9e8(0x139)] && _0x33561b[_0x59d9e8(_0xf5e8b0._0x429eed)] && _0x33561b[_0x59d9e8(0x18b)]) {
1375
- const _0x3f5bf5 = await _0x33561b[_0x59d9e8(0x1b3)][_0x59d9e8(_0xf5e8b0._0x4d9f08)](_0x436975[_0x59d9e8(_0xf5e8b0._0x50e810)]);
1376
- if (_0x3f5bf5['task'] && _0x3f5bf5[_0x59d9e8(_0xf5e8b0._0x5f5708)]) {
1377
- const _0x2b98f6 = _0x3f5bf5[_0x59d9e8(_0xf5e8b0._0xcd8b86)][_0x59d9e8(0x249)] != null ? '#' + _0x3f5bf5[_0x59d9e8(0x14a)][_0x59d9e8(0x249)] : '(legacy)', _0x40e666 = _0x3f5bf5[_0x59d9e8(_0xf5e8b0._0x35cbb0)] != null ? _0x3f5bf5[_0x59d9e8(0x1da)] + ':t' + _0x3f5bf5[_0x59d9e8(0x229)] : _0x3f5bf5[_0x59d9e8(_0xf5e8b0._0x3db896)] + ':' + _0x3f5bf5[_0x59d9e8(0x1f5)][_0x59d9e8(_0xf5e8b0._0x2426d5)](0x0, 0x8), _0x293e10 = await _0x95f401();
1378
- if (_0x293e10?.[_0x59d9e8(0x209)](_0x40e666))
1405
+ async 'send_message'(_0x5e943e) {
1406
+ const _0x5c5682 = _0x2969dd;
1407
+ if (!_0x33c1d0['workerMode'] && _0x33c1d0[_0x5c5682(_0x15ee46._0x68970d)] && _0x33c1d0['daemonLocalUrl'] && _0x33c1d0[_0x5c5682(_0x15ee46._0x157b3a)]) {
1408
+ const _0x4c9201 = await _0x33c1d0[_0x5c5682(_0x15ee46._0x4787b7)]['resolveTarget'](_0x5e943e[_0x5c5682(0x1fd)]);
1409
+ if (_0x4c9201[_0x5c5682(_0x15ee46._0x6c83f5)] && _0x4c9201[_0x5c5682(0x293)]) {
1410
+ const _0x3b824e = _0x4c9201['task']['taskNumber'] != null ? '#' + _0x4c9201[_0x5c5682(_0x15ee46._0x10c5a5)][_0x5c5682(0x2cd)] : _0x5c5682(0x2a0), _0x3876d9 = _0x4c9201[_0x5c5682(_0x15ee46._0x5223be)] != null ? _0x4c9201[_0x5c5682(_0x15ee46._0xb42b0f)] + ':t' + _0x4c9201['threadNumber'] : _0x4c9201[_0x5c5682(_0x15ee46._0xb42b0f)] + ':' + _0x4c9201['threadId']['slice'](0x0, 0x8), _0x46be08 = await _0x5206e1();
1411
+ if (_0x46be08?.[_0x5c5682(0x2ea)](_0x3876d9))
1379
1412
  return [
1380
- _0x59d9e8(0x1d1) + _0x2b98f6 + _0x59d9e8(_0xf5e8b0._0x58f1af) + _0x40e666 + _0x59d9e8(0x16e),
1381
- _0x59d9e8(0x256)
1382
- ][_0x59d9e8(_0xf5e8b0._0x12063d)]('\x0a');
1383
- const _0x500302 = [
1384
- '[target=' + _0x40e666 + '\x20msg=handoff\x20time=' + new Date()[_0x59d9e8(_0xf5e8b0._0x21c974)]() + _0x59d9e8(0x195),
1413
+ _0x5c5682(0x31f) + _0x3b824e + _0x5c5682(0x22b) + _0x3876d9 + _0x5c5682(_0x15ee46._0x238046),
1414
+ 'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
1415
+ ][_0x5c5682(0x274)]('\x0a');
1416
+ const _0x3bfe88 = [
1417
+ _0x5c5682(0x24f) + _0x3876d9 + _0x5c5682(0x284) + new Date()[_0x5c5682(0x1f3)]() + _0x5c5682(0x2af),
1385
1418
  '',
1386
- 'Original\x20message:\x20' + _0x436975[_0x59d9e8(_0xf5e8b0._0xf9d0fa)],
1387
- _0x59d9e8(_0xf5e8b0._0x3e294d) + _0x2b98f6 + '\x20(' + _0x3f5bf5[_0x59d9e8(0x14a)]['taskId'] + ')',
1388
- _0x59d9e8(0x273) + _0x40e666,
1389
- _0x59d9e8(_0xf5e8b0._0x1566b8)
1390
- ][_0x59d9e8(_0xf5e8b0._0x12063d)]('\x0a'), _0x1523d7 = await fetch(_0x33561b['daemonLocalUrl'] + '/workers/deliver', {
1391
- 'method': _0x59d9e8(0x285),
1392
- 'headers': { 'Content-Type': 'application/json' },
1393
- 'body': JSON[_0x59d9e8(_0xf5e8b0._0x1ab4f3)]({
1394
- 'agent_id': _0x33561b[_0x59d9e8(_0xf5e8b0._0x455462)],
1395
- 'thread_target': _0x40e666,
1419
+ _0x5c5682(0x2c5) + _0x5e943e[_0x5c5682(_0x15ee46._0x44cb63)],
1420
+ _0x5c5682(_0x15ee46._0x3a39ef) + _0x3b824e + '\x20(' + _0x4c9201['task']['taskId'] + ')',
1421
+ 'Thread\x20target:\x20' + _0x3876d9,
1422
+ _0x5c5682(0x36a)
1423
+ ][_0x5c5682(_0x15ee46._0x2c5734)]('\x0a'), _0x40d3e9 = await fetch(_0x33c1d0['daemonLocalUrl'] + _0x5c5682(_0x15ee46._0x4dfe69), {
1424
+ 'method': 'POST',
1425
+ 'headers': { 'Content-Type': _0x5c5682(0x2a6) },
1426
+ 'body': JSON[_0x5c5682(_0x15ee46._0x2c11b3)]({
1427
+ 'agent_id': _0x33c1d0[_0x5c5682(_0x15ee46._0x157b3a)],
1428
+ 'thread_target': _0x3876d9,
1396
1429
  'spawn_packet': {
1397
- 'replyTarget': _0x40e666,
1398
- 'taskId': _0x3f5bf5['task'][_0x59d9e8(0x146)]
1430
+ 'replyTarget': _0x3876d9,
1431
+ 'taskId': _0x4c9201['task'][_0x5c5682(0x334)]
1399
1432
  },
1400
1433
  'payload': {
1401
- 'mode': _0x59d9e8(0x13b),
1402
- 'text': _0x500302
1434
+ 'mode': _0x5c5682(_0x15ee46._0x3816a1),
1435
+ 'text': _0x3bfe88
1403
1436
  }
1404
1437
  })
1405
- }), _0x43e069 = await _0x1523d7[_0x59d9e8(_0xf5e8b0._0x3ab1f5)]();
1406
- if (!_0x43e069['ok'])
1407
- throw new Error(_0x43e069['error'] ?? _0x59d9e8(_0xf5e8b0._0x49833f));
1438
+ }), _0x232028 = await _0x40d3e9[_0x5c5682(_0x15ee46._0x1b3472)]();
1439
+ if (!_0x232028['ok'])
1440
+ throw new Error(_0x232028[_0x5c5682(0x2d5)] ?? _0x5c5682(_0x15ee46._0x10787c));
1408
1441
  return [
1409
- _0x59d9e8(0x170) + _0x2b98f6 + _0x59d9e8(0x17c) + _0x40e666 + '.\x20stopMain=true\x20executionMode=worker',
1410
- _0x59d9e8(_0xf5e8b0._0x2ffc8d) + (_0x43e069[_0x59d9e8(_0xf5e8b0._0x576599)] === _0x59d9e8(_0xf5e8b0._0x4e9522) ? _0x59d9e8(0x1f2) : 'started') + '.',
1411
- '⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
1442
+ _0x5c5682(0x2c9) + _0x3b824e + _0x5c5682(_0x15ee46._0x1c52e1) + _0x3876d9 + _0x5c5682(_0x15ee46._0x59b5d2),
1443
+ _0x5c5682(0x2e6) + (_0x232028[_0x5c5682(_0x15ee46._0x3de60c)] === _0x5c5682(_0x15ee46._0x4df0fb) ? _0x5c5682(0x2dc) : _0x5c5682(0x354)) + '.',
1444
+ _0x5c5682(0x312)
1412
1445
  ]['join']('\x0a');
1413
1446
  }
1414
1447
  }
1415
- const _0x4ce980 = await _0x33561b[_0x59d9e8(_0xf5e8b0._0x1d35a0)][_0x59d9e8(0x298)]({
1416
- 'attachmentIds': _0x436975[_0x59d9e8(_0xf5e8b0._0x386e84)],
1417
- 'content': _0x436975[_0x59d9e8(0x17d)],
1418
- 'target': _0x436975[_0x59d9e8(0x1da)],
1419
- 'visibility': _0x436975[_0x59d9e8(_0xf5e8b0._0x516df8)]
1448
+ const _0x2958d1 = await _0x33c1d0[_0x5c5682(_0x15ee46._0x4787b7)][_0x5c5682(_0x15ee46._0x293e08)]({
1449
+ 'attachmentIds': _0x5e943e[_0x5c5682(_0x15ee46._0x518e2a)],
1450
+ 'content': _0x5e943e['content'],
1451
+ 'target': _0x5e943e[_0x5c5682(_0x15ee46._0xb42b0f)],
1452
+ 'visibility': _0x5e943e['visibility']
1420
1453
  });
1421
- return _0x59d9e8(_0xf5e8b0._0x3da7b3) + _0x436975['target'] + _0x59d9e8(0x201) + _0x4ce980[_0x59d9e8(0x215)];
1454
+ return _0x5c5682(0x20d) + _0x5e943e[_0x5c5682(0x1fd)] + _0x5c5682(0x2b3) + _0x2958d1[_0x5c5682(0x35c)];
1422
1455
  },
1423
1456
  async 'check_messages'() {
1424
- const _0x4f7041 = _0x95c54b, _0x21cc66 = await _0x33561b['client'][_0x4f7041(0x26f)]();
1425
- if (!_0x33561b[_0x4f7041(0x2bb)]) {
1426
- const _0x431ece = await _0x2dc2b6();
1427
- if (_0x431ece)
1428
- return formatCheckMessages(_0x21cc66['messages'][_0x4f7041(0x136)](_0x2edf9f => !_0x431ece['has'](_0x2edf9f[_0x4f7041(0x1da)])));
1457
+ const _0x204716 = _0x2969dd, _0x49e5c5 = await _0x33c1d0[_0x204716(_0x140d9a._0x52135f)][_0x204716(_0x140d9a._0x50262f)]();
1458
+ if (!_0x33c1d0['workerMode']) {
1459
+ const _0x1699b9 = await _0x5589cb();
1460
+ if (_0x1699b9)
1461
+ return formatCheckMessages(_0x49e5c5[_0x204716(_0x140d9a._0x3b8b83)][_0x204716(0x1ef)](_0xb09f9b => !_0x1699b9[_0x204716(0x2ea)](_0xb09f9b[_0x204716(0x1fd)])));
1429
1462
  }
1430
- return formatCheckMessages(_0x21cc66['messages']);
1463
+ return formatCheckMessages(_0x49e5c5[_0x204716(0x2ca)]);
1431
1464
  },
1432
- async 'read_history'(_0x5853fc) {
1433
- const _0xd62259 = _0x95c54b, _0x338337 = await _0x33561b[_0xd62259(_0x3e3882._0x1db7a0)][_0xd62259(0x204)](_0x5853fc);
1434
- return formatHistory(_0x338337);
1465
+ async 'read_history'(_0x2ad0f5) {
1466
+ const _0x2bd75c = _0x2969dd, _0x4081dd = await _0x33c1d0[_0x2bd75c(0x32e)]['readHistory'](_0x2ad0f5);
1467
+ return formatHistory(_0x4081dd);
1435
1468
  },
1436
1469
  async 'list_server'() {
1437
- const _0x18b01e = _0x95c54b, _0x8d0c9e = await _0x33561b['client'][_0x18b01e(0x279)]();
1438
- return formatServerDirectory(_0x8d0c9e);
1470
+ const _0xe6f55c = _0x2969dd, _0x5efaaf = await _0x33c1d0[_0xe6f55c(_0x3c1785._0xf2004f)][_0xe6f55c(0x2d3)]();
1471
+ return formatServerDirectory(_0x5efaaf);
1439
1472
  },
1440
- async 'list_tasks'(_0x5ee048) {
1441
- const _0x3f7476 = _0x95c54b, _0x31bca0 = await _0x33561b['client'][_0x3f7476(_0x564cb7._0x1aac86)](_0x5ee048);
1442
- let _0xf9ac77;
1443
- if (_0x33561b[_0x3f7476(0x14e)] && _0x33561b[_0x3f7476(_0x564cb7._0x38314b)])
1473
+ async 'list_tasks'(_0x821610) {
1474
+ const _0x4c9e5d = _0x2969dd, _0x5b4d54 = await _0x33c1d0['client'][_0x4c9e5d(0x307)](_0x821610);
1475
+ let _0x477968;
1476
+ if (_0x33c1d0['daemonLocalUrl'] && _0x33c1d0[_0x4c9e5d(0x250)])
1444
1477
  try {
1445
- const _0x4b596b = await fetch(_0x33561b['daemonLocalUrl'] + _0x3f7476(0x1e6) + encodeURIComponent(_0x33561b['agentId'])), _0x30e010 = await _0x4b596b[_0x3f7476(0x2aa)]();
1446
- if (_0x30e010['ok']) {
1447
- const _0x593165 = _0x5ee048[_0x3f7476(_0x564cb7._0x46b85f)] + ':';
1448
- _0xf9ac77 = new Set();
1449
- for (const _0x33e7a0 of _0x30e010[_0x3f7476(0x1cb)]) {
1450
- if (_0x33e7a0[_0x3f7476(0x239)] === _0x3f7476(_0x564cb7._0x4696cc))
1478
+ const _0x45893f = await fetch(_0x33c1d0['daemonLocalUrl'] + '/workers/list?agent_id=' + encodeURIComponent(_0x33c1d0['agentId'])), _0x5d646f = await _0x45893f['json']();
1479
+ if (_0x5d646f['ok']) {
1480
+ const _0x2ba0c7 = _0x821610[_0x4c9e5d(_0x24ce88._0x833bd3)] + ':';
1481
+ _0x477968 = new Set();
1482
+ for (const _0x38541d of _0x5d646f[_0x4c9e5d(0x217)]) {
1483
+ if (_0x38541d[_0x4c9e5d(0x1fe)] === _0x4c9e5d(_0x24ce88._0x568503))
1451
1484
  continue;
1452
- if (_0x33e7a0[_0x3f7476(0x1e7)]?.[_0x3f7476(0x232)](_0x593165)) {
1453
- const _0x557145 = _0x33e7a0[_0x3f7476(_0x564cb7._0x2a8355)]['slice'](_0x593165['length']), _0x3791aa = _0x31bca0[_0x3f7476(0x24e)][_0x3f7476(_0x564cb7._0x6b02e6)](_0x274ab8 => _0x274ab8[_0x3f7476(0x215)]?.[_0x3f7476(0x232)](_0x557145) === !![]);
1454
- if (_0x3791aa?.['taskNumber'] != null) {
1455
- _0xf9ac77[_0x3f7476(_0x564cb7._0x4d6799)](_0x3791aa[_0x3f7476(_0x564cb7._0x282053)]);
1485
+ if (_0x38541d['thread_target']?.[_0x4c9e5d(_0x24ce88._0x530c3f)](_0x2ba0c7)) {
1486
+ const _0x2ba25a = _0x38541d[_0x4c9e5d(_0x24ce88._0x2db893)][_0x4c9e5d(0x33f)](_0x2ba0c7[_0x4c9e5d(_0x24ce88._0x27b1e6)]), _0x4f9646 = _0x5b4d54['tasks'][_0x4c9e5d(_0x24ce88._0x466d1a)](_0x17afda => _0x17afda['messageId']?.[_0x4c9e5d(0x266)](_0x2ba25a) === !![]);
1487
+ if (_0x4f9646?.[_0x4c9e5d(_0x24ce88._0x1c5eb7)] != null) {
1488
+ _0x477968[_0x4c9e5d(_0x24ce88._0xf2efc9)](_0x4f9646[_0x4c9e5d(_0x24ce88._0x4ca213)]);
1456
1489
  continue;
1457
1490
  }
1458
1491
  }
1459
- if (_0x33e7a0['task_id']) {
1460
- const _0x217a1d = _0x31bca0['tasks'][_0x3f7476(0x1a5)](_0x10324c => _0x10324c[_0x3f7476(0x146)] === _0x33e7a0[_0x3f7476(0x27d)]);
1461
- _0x217a1d?.[_0x3f7476(_0x564cb7._0x3a50c0)] != null && _0xf9ac77['add'](_0x217a1d['taskNumber']);
1492
+ if (_0x38541d[_0x4c9e5d(0x287)]) {
1493
+ const _0x2f3c99 = _0x5b4d54['tasks']['find'](_0x45d13f => _0x45d13f['taskId'] === _0x38541d['task_id']);
1494
+ _0x2f3c99?.['taskNumber'] != null && _0x477968['add'](_0x2f3c99[_0x4c9e5d(_0x24ce88._0x2e9ed8)]);
1462
1495
  }
1463
1496
  }
1464
1497
  }
1465
1498
  } catch {
1466
1499
  }
1467
- return formatTaskList(_0x31bca0['tasks'], _0xf9ac77);
1500
+ return formatTaskList(_0x5b4d54['tasks'], _0x477968);
1468
1501
  },
1469
- async 'create_tasks'(_0x1e3b5f) {
1470
- const _0x4b9c80 = _0x95c54b, _0x82003c = await _0x33561b[_0x4b9c80(_0x53ef51._0x1c2fdb)]['createTasks'](_0x1e3b5f);
1471
- return formatCreatedTasks(_0x82003c[_0x4b9c80(_0x53ef51._0xd2c833)]);
1502
+ async 'create_tasks'(_0x289218) {
1503
+ const _0x3d3487 = _0x2969dd, _0x46345a = await _0x33c1d0[_0x3d3487(_0x2a9436._0x59f95a)][_0x3d3487(0x276)](_0x289218);
1504
+ return formatCreatedTasks(_0x46345a[_0x3d3487(_0x2a9436._0x554116)]);
1472
1505
  },
1473
- async 'claim_tasks'(_0x1146f8) {
1474
- const _0x10e1ab = _0x95c54b, _0xcfc094 = await _0x33561b[_0x10e1ab(_0x48bbdf._0x23a0cd)]['claimTasks'](_0x1146f8), _0x49a75f = await Promise[_0x10e1ab(0x1fd)](_0xcfc094['results']['map'](async _0x306b07 => {
1475
- const _0x33f02a = _0x10e1ab;
1476
- if (!_0x306b07[_0x33f02a(_0x4c23de._0x4b0b90)] || !_0x306b07[_0x33f02a(0x215)])
1477
- return _0x306b07;
1506
+ async 'claim_tasks'(_0x12226e) {
1507
+ const _0x3f9d69 = {
1508
+ _0x74f905: 0x21b,
1509
+ _0x4a0917: 0x365,
1510
+ _0x2bed6e: 0x2cd,
1511
+ _0x45fae4: 0x26d,
1512
+ _0x47d3d8: 0x310
1513
+ }, _0x7e1cd = _0x2969dd, _0x6c739d = await _0x33c1d0[_0x7e1cd(0x32e)][_0x7e1cd(_0x3f4542._0x5176ae)](_0x12226e), _0x344305 = await Promise[_0x7e1cd(_0x3f4542._0x3431c5)](_0x6c739d[_0x7e1cd(_0x3f4542._0x5c3ad2)][_0x7e1cd(_0x3f4542._0x4fb72b)](async _0x4caac9 => {
1514
+ const _0x1ccb89 = _0x7e1cd;
1515
+ if (!_0x4caac9[_0x1ccb89(_0x3f9d69._0x74f905)] || !_0x4caac9[_0x1ccb89(0x35c)])
1516
+ return _0x4caac9;
1478
1517
  try {
1479
- const _0x3e1146 = await _0x45aeba({
1480
- 'channel': _0x1146f8[_0x33f02a(_0x4c23de._0x3cdc02)],
1481
- 'messageId': _0x306b07[_0x33f02a(0x215)],
1482
- 'taskId': _0x306b07[_0x33f02a(_0x4c23de._0x1e0a2b)],
1483
- 'taskNumber': _0x306b07['taskNumber'],
1484
- 'threadNumber': _0x306b07[_0x33f02a(0x229)]
1518
+ const _0x55ca4d = await _0x102280({
1519
+ 'channel': _0x12226e[_0x1ccb89(_0x3f9d69._0x4a0917)],
1520
+ 'messageId': _0x4caac9[_0x1ccb89(0x35c)],
1521
+ 'taskId': _0x4caac9[_0x1ccb89(0x334)],
1522
+ 'taskNumber': _0x4caac9[_0x1ccb89(_0x3f9d69._0x2bed6e)],
1523
+ 'threadNumber': _0x4caac9[_0x1ccb89(_0x3f9d69._0x45fae4)]
1485
1524
  });
1486
- return _0x3e1146 ? {
1487
- ..._0x306b07,
1488
- ..._0x3e1146
1489
- } : _0x306b07;
1490
- } catch (_0x1444a7) {
1525
+ return _0x55ca4d ? {
1526
+ ..._0x4caac9,
1527
+ ..._0x55ca4d
1528
+ } : _0x4caac9;
1529
+ } catch (_0x3d1392) {
1491
1530
  return {
1492
- ..._0x306b07,
1493
- 'workerHandoffError': _0x1444a7 instanceof Error ? _0x1444a7[_0x33f02a(0x2a2)] : _0x33f02a(_0x4c23de._0x57c64a)
1531
+ ..._0x4caac9,
1532
+ 'workerHandoffError': _0x3d1392 instanceof Error ? _0x3d1392[_0x1ccb89(0x27c)] : _0x1ccb89(_0x3f9d69._0x47d3d8)
1494
1533
  };
1495
1534
  }
1496
1535
  }));
1497
- return formatClaimTaskResults(_0x49a75f);
1536
+ return formatClaimTaskResults(_0x344305);
1498
1537
  },
1499
- async 'unclaim_task'(_0x1a23eb) {
1500
- const _0x258a35 = _0x95c54b, _0x56617b = await _0x33561b[_0x258a35(0x1b3)]['unclaimTask'](_0x1a23eb);
1501
- return formatUnclaimTaskResult(_0x56617b);
1538
+ async 'unclaim_task'(_0x3203d7) {
1539
+ const _0xdcedc8 = _0x2969dd, _0x12894e = await _0x33c1d0[_0xdcedc8(_0x100a39._0x5583e9)]['unclaimTask'](_0x3203d7);
1540
+ return formatUnclaimTaskResult(_0x12894e);
1502
1541
  },
1503
- async 'update_task_status'(_0xc0ddd6) {
1504
- const _0x188e22 = _0x95c54b, _0x8341ff = await _0x33561b[_0x188e22(_0x133eac._0x534b10)]['updateTaskStatus'](_0xc0ddd6);
1505
- return formatUpdateTaskStatusResult(_0x8341ff);
1542
+ async 'update_task_status'(_0x5a467a) {
1543
+ const _0x614511 = _0x2969dd, _0x260a91 = await _0x33c1d0['client'][_0x614511(_0x5b2d54._0x7722d5)](_0x5a467a);
1544
+ return formatUpdateTaskStatusResult(_0x260a91);
1506
1545
  },
1507
- async 'upload_file'(_0x533a49) {
1508
- const _0x33950c = _0x95c54b, _0x2ad632 = await _0x33561b['uploadPreparer'](_0x533a49[_0x33950c(_0x214ffb._0x391226)]), {
1509
- sizeBytes: _0x13da1d,
1510
- ..._0x416ed0
1511
- } = _0x2ad632, _0x396205 = await _0x33561b[_0x33950c(0x1b3)]['uploadFile']({
1512
- 'channel': _0x533a49[_0x33950c(0x1db)],
1513
- ..._0x416ed0
1546
+ async 'upload_file'(_0x254606) {
1547
+ const _0xd68a2a = _0x2969dd, _0x3a1482 = await _0x33c1d0[_0xd68a2a(_0x362da6._0x4cf253)](_0x254606[_0xd68a2a(0x36b)]), {
1548
+ sizeBytes: _0x122552,
1549
+ ..._0x28ff6e
1550
+ } = _0x3a1482, _0xb0ea92 = await _0x33c1d0['client']['uploadFile']({
1551
+ 'channel': _0x254606[_0xd68a2a(0x365)],
1552
+ ..._0x28ff6e
1514
1553
  });
1515
- return formatUploadResult(_0x396205);
1554
+ return formatUploadResult(_0xb0ea92);
1516
1555
  },
1517
- async 'view_file'(_0xd35b6d) {
1518
- const _0x30e43c = _0x95c54b, _0x2b9d1c = await _0x33561b[_0x30e43c(0x1b6)][_0x30e43c(0x190)](_0xd35b6d[_0x30e43c(_0x3b0877._0x30b820)]);
1519
- if (_0x2b9d1c)
1520
- return formatViewFileResult(_0x2b9d1c, !![]);
1521
- const _0x56f9e1 = await _0x33561b[_0x30e43c(0x1b3)][_0x30e43c(0x1b2)](_0xd35b6d[_0x30e43c(_0x3b0877._0x30b820)]), _0xc482e4 = await _0x33561b[_0x30e43c(0x1b6)]['save']({
1522
- 'attachmentId': _0xd35b6d['attachment_id'],
1523
- 'contentType': _0x56f9e1['contentType'],
1524
- 'data': _0x56f9e1['data'],
1525
- 'originalFilename': _0x56f9e1['originalFilename']
1556
+ async 'view_file'(_0x5511b1) {
1557
+ const _0x3e0a55 = _0x2969dd, _0x1d00ab = await _0x33c1d0[_0x3e0a55(_0x52f58e._0x210288)][_0x3e0a55(0x34c)](_0x5511b1[_0x3e0a55(0x2ed)]);
1558
+ if (_0x1d00ab)
1559
+ return formatViewFileResult(_0x1d00ab, !![]);
1560
+ const _0x59c8eb = await _0x33c1d0[_0x3e0a55(_0x52f58e._0x4e7203)][_0x3e0a55(_0x52f58e._0x1001d9)](_0x5511b1[_0x3e0a55(0x2ed)]), _0x9fe9cc = await _0x33c1d0['attachmentCache']['save']({
1561
+ 'attachmentId': _0x5511b1['attachment_id'],
1562
+ 'contentType': _0x59c8eb[_0x3e0a55(0x328)],
1563
+ 'data': _0x59c8eb[_0x3e0a55(_0x52f58e._0x2d65fe)],
1564
+ 'originalFilename': _0x59c8eb[_0x3e0a55(_0x52f58e._0xfb7a0c)]
1526
1565
  });
1527
- return formatViewFileResult(_0xc482e4, ![]);
1566
+ return formatViewFileResult(_0x9fe9cc, ![]);
1528
1567
  },
1529
- async 'get_worker_status'(_0x3e9cea) {
1530
- const _0x2ec848 = _0x95c54b;
1531
- if (!_0x33561b[_0x2ec848(_0x5b045d._0x5519dd)])
1532
- return 'Worker\x20features\x20not\x20available';
1533
- const _0x49f6a7 = await fetch(_0x33561b[_0x2ec848(0x14e)] + _0x2ec848(_0x5b045d._0x358801) + encodeURIComponent(_0x3e9cea[_0x2ec848(_0x5b045d._0x27547a)])), _0x2d36c4 = await _0x49f6a7['json']();
1534
- if (!_0x2d36c4['ok'])
1535
- return _0x2ec848(0x2b0) + _0x3e9cea['work_key'] + _0x2ec848(_0x5b045d._0x72cb9);
1536
- return _0x2ec848(0x2b0) + _0x3e9cea[_0x2ec848(_0x5b045d._0x27547a)] + _0x2ec848(0x2ba) + _0x2d36c4[_0x2ec848(0x239)];
1568
+ async 'get_worker_status'(_0x1b3ab7) {
1569
+ const _0x2bdc4f = _0x2969dd;
1570
+ if (!_0x33c1d0['daemonLocalUrl'])
1571
+ return _0x2bdc4f(0x288);
1572
+ const _0x23cba9 = await fetch(_0x33c1d0[_0x2bdc4f(0x231)] + _0x2bdc4f(0x205) + encodeURIComponent(_0x1b3ab7['work_key'])), _0x57f6c5 = await _0x23cba9[_0x2bdc4f(_0x546112._0x23eb5a)]();
1573
+ if (!_0x57f6c5['ok'])
1574
+ return _0x2bdc4f(0x206) + _0x1b3ab7['work_key'] + _0x2bdc4f(0x2d0);
1575
+ return _0x2bdc4f(_0x546112._0x3be6a8) + _0x1b3ab7[_0x2bdc4f(_0x546112._0x6aca72)] + _0x2bdc4f(0x36c) + _0x57f6c5[_0x2bdc4f(0x1fe)];
1537
1576
  },
1538
- async 'get_worker_result'(_0x3e470a) {
1539
- const _0x4a754d = _0x95c54b;
1540
- if (!_0x33561b['daemonLocalUrl'])
1541
- return _0x4a754d(0x1ed);
1542
- const _0x167bcb = await fetch(_0x33561b[_0x4a754d(0x14e)] + _0x4a754d(0x25e) + encodeURIComponent(_0x3e470a[_0x4a754d(0x13c)])), _0x2626e2 = await _0x167bcb[_0x4a754d(0x2aa)]();
1543
- if (!_0x2626e2['resume_packet'])
1544
- return _0x4a754d(_0x563079._0x730e12) + _0x3e470a[_0x4a754d(_0x563079._0x579256)] + '\x22';
1545
- return JSON[_0x4a754d(0x1d9)](_0x2626e2['resume_packet'], null, 0x2);
1577
+ async 'get_worker_result'(_0x2bc8d2) {
1578
+ const _0x23cc67 = _0x2969dd;
1579
+ if (!_0x33c1d0[_0x23cc67(_0x1c9892._0x822c07)])
1580
+ return 'Worker\x20features\x20not\x20available';
1581
+ const _0x2af2cb = await fetch(_0x33c1d0[_0x23cc67(0x231)] + _0x23cc67(0x327) + encodeURIComponent(_0x2bc8d2['work_key'])), _0x3aa215 = await _0x2af2cb['json']();
1582
+ if (!_0x3aa215[_0x23cc67(_0x1c9892._0x25316d)])
1583
+ return _0x23cc67(_0x1c9892._0x4da727) + _0x2bc8d2[_0x23cc67(_0x1c9892._0x5683dd)] + '\x22';
1584
+ return JSON[_0x23cc67(0x286)](_0x3aa215['resume_packet'], null, 0x2);
1546
1585
  },
1547
- async 'finish_worker'(_0x386924) {
1548
- const _0x4b09cb = _0x95c54b;
1549
- if (!_0x33561b[_0x4b09cb(_0x5c7aa0._0x1fe661)])
1550
- return _0x4b09cb(0x1ed);
1551
- const _0x381bb9 = await fetch(_0x33561b[_0x4b09cb(0x14e)] + '/workers/finish', {
1552
- 'method': _0x4b09cb(0x285),
1553
- 'headers': { 'Content-Type': _0x4b09cb(0x15b) },
1554
- 'body': JSON[_0x4b09cb(_0x5c7aa0._0x394009)]({
1555
- 'work_key': _0x386924[_0x4b09cb(_0x5c7aa0._0x5c79dc)],
1586
+ async 'finish_worker'(_0x3dcc14) {
1587
+ const _0x4d2358 = _0x2969dd;
1588
+ if (!_0x33c1d0['daemonLocalUrl'])
1589
+ return _0x4d2358(0x288);
1590
+ const _0x131a18 = await fetch(_0x33c1d0['daemonLocalUrl'] + _0x4d2358(0x221), {
1591
+ 'method': _0x4d2358(0x1ed),
1592
+ 'headers': { 'Content-Type': _0x4d2358(_0xefc654._0x12e3e7) },
1593
+ 'body': JSON[_0x4d2358(_0xefc654._0x334aeb)]({
1594
+ 'work_key': _0x3dcc14['work_key'],
1556
1595
  'resume_packet': {
1557
1596
  'objective': '',
1558
- 'result': _0x386924[_0x4b09cb(_0x5c7aa0._0x1e5c19)],
1559
- 'summary': _0x386924[_0x4b09cb(_0x5c7aa0._0x442ed9)],
1560
- 'decisions': _0x386924[_0x4b09cb(_0x5c7aa0._0x55d86c)] ?? [],
1561
- 'filesChanged': _0x386924[_0x4b09cb(0x161)] ?? [],
1562
- 'openIssues': _0x386924[_0x4b09cb(0x13e)] ?? [],
1563
- 'nextSteps': _0x386924[_0x4b09cb(_0x5c7aa0._0x22f349)] ?? []
1597
+ 'result': _0x3dcc14['result'],
1598
+ 'summary': _0x3dcc14['summary'],
1599
+ 'decisions': _0x3dcc14['decisions'] ?? [],
1600
+ 'filesChanged': _0x3dcc14[_0x4d2358(0x297)] ?? [],
1601
+ 'openIssues': _0x3dcc14['open_issues'] ?? [],
1602
+ 'nextSteps': _0x3dcc14[_0x4d2358(0x2f9)] ?? []
1564
1603
  }
1565
1604
  })
1566
- }), _0x14374e = await _0x381bb9[_0x4b09cb(_0x5c7aa0._0xff2ba7)]();
1567
- if (!_0x14374e['ok'])
1568
- throw new Error(_0x14374e[_0x4b09cb(0x21a)] ?? 'finish_worker\x20failed');
1569
- return _0x4b09cb(0x2b0) + _0x386924['work_key'] + '\x22\x20finished\x20with\x20result:\x20' + _0x386924[_0x4b09cb(0x182)];
1605
+ }), _0x481d6d = await _0x131a18[_0x4d2358(0x2b5)]();
1606
+ if (!_0x481d6d['ok'])
1607
+ throw new Error(_0x481d6d[_0x4d2358(_0xefc654._0x1fb9c0)] ?? 'finish_worker\x20failed');
1608
+ return 'Worker\x20\x22' + _0x3dcc14['work_key'] + _0x4d2358(_0xefc654._0x377f43) + _0x3dcc14['result'];
1570
1609
  },
1571
- async 'mark_waiting_input'(_0x31e44b) {
1572
- const _0x42d9da = _0x95c54b;
1573
- if (!_0x33561b[_0x42d9da(0x14e)] || !_0x33561b[_0x42d9da(_0x2a60cf._0x414632)])
1574
- return _0x42d9da(_0x2a60cf._0x2f3cd5);
1575
- const _0x5bc32d = await fetch(_0x33561b[_0x42d9da(0x14e)] + _0x42d9da(_0x2a60cf._0x16cb6c), {
1610
+ async 'mark_waiting_input'(_0x2f1302) {
1611
+ const _0x14e2ba = _0x2969dd;
1612
+ if (!_0x33c1d0[_0x14e2ba(0x231)] || !_0x33c1d0['agentId'])
1613
+ return _0x14e2ba(0x20f);
1614
+ const _0xe85e18 = await fetch(_0x33c1d0['daemonLocalUrl'] + _0x14e2ba(0x323), {
1576
1615
  'method': 'POST',
1577
- 'headers': { 'Content-Type': _0x42d9da(0x15b) },
1578
- 'body': JSON[_0x42d9da(_0x2a60cf._0x55eb70)]({
1579
- 'work_key': _0x31e44b[_0x42d9da(0x13c)],
1580
- 'agent_id': _0x33561b[_0x42d9da(0x18b)]
1616
+ 'headers': { 'Content-Type': _0x14e2ba(_0x9c661d._0x31c225) },
1617
+ 'body': JSON[_0x14e2ba(_0x9c661d._0x259ad5)]({
1618
+ 'work_key': _0x2f1302['work_key'],
1619
+ 'agent_id': _0x33c1d0[_0x14e2ba(_0x9c661d._0x433232)]
1581
1620
  })
1582
- }), _0x4a5516 = await _0x5bc32d[_0x42d9da(_0x2a60cf._0x41af14)]();
1583
- if (!_0x4a5516['ok'])
1584
- throw new Error(_0x4a5516[_0x42d9da(_0x2a60cf._0x21241d)] ?? 'mark_waiting_input\x20failed');
1585
- return _0x42d9da(_0x2a60cf._0x30e39a) + _0x31e44b['work_key'] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
1621
+ }), _0x456ba7 = await _0xe85e18[_0x14e2ba(0x2b5)]();
1622
+ if (!_0x456ba7['ok'])
1623
+ throw new Error(_0x456ba7[_0x14e2ba(0x2d5)] ?? _0x14e2ba(0x2be));
1624
+ return 'Worker\x20\x22' + _0x2f1302[_0x14e2ba(0x356)] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
1586
1625
  },
1587
- async 'escalate_to_main'(_0x437b99) {
1588
- const _0x15af17 = _0x95c54b;
1589
- if (!_0x33561b[_0x15af17(0x14e)])
1590
- return _0x15af17(_0x548fe6._0x143308);
1591
- const _0x212133 = await fetch(_0x33561b[_0x15af17(0x14e)] + _0x15af17(0x148), {
1592
- 'method': _0x15af17(0x285),
1593
- 'headers': { 'Content-Type': _0x15af17(0x15b) },
1594
- 'body': JSON['stringify']({
1595
- 'work_key': _0x437b99[_0x15af17(0x13c)],
1596
- 'reason': _0x437b99[_0x15af17(0x247)]
1626
+ async 'escalate_to_main'(_0x226016) {
1627
+ const _0x5d5581 = _0x2969dd;
1628
+ if (!_0x33c1d0[_0x5d5581(_0x45c950._0x45f7d2)])
1629
+ return _0x5d5581(_0x45c950._0x46d923);
1630
+ const _0x3d55f8 = await fetch(_0x33c1d0[_0x5d5581(_0x45c950._0x1aad04)] + _0x5d5581(_0x45c950._0x171373), {
1631
+ 'method': _0x5d5581(0x1ed),
1632
+ 'headers': { 'Content-Type': _0x5d5581(0x2a6) },
1633
+ 'body': JSON[_0x5d5581(_0x45c950._0x53bbd0)]({
1634
+ 'work_key': _0x226016[_0x5d5581(0x356)],
1635
+ 'reason': _0x226016[_0x5d5581(0x2cf)]
1597
1636
  })
1598
- }), _0x33911c = await _0x212133[_0x15af17(0x2aa)]();
1599
- if (!_0x33911c['ok'])
1600
- throw new Error(_0x33911c['error'] ?? 'escalate_to_main\x20failed');
1601
- return _0x15af17(0x238) + _0x437b99[_0x15af17(_0x548fe6._0x67ced0)];
1637
+ }), _0x493262 = await _0x3d55f8[_0x5d5581(0x2b5)]();
1638
+ if (!_0x493262['ok'])
1639
+ throw new Error(_0x493262['error'] ?? 'escalate_to_main\x20failed');
1640
+ return _0x5d5581(_0x45c950._0x23d508) + _0x226016[_0x5d5581(_0x45c950._0x129475)];
1602
1641
  }
1603
1642
  };
1604
1643
  }
1605
- function textResult(_0x5f12ac, _0x4aabf9 = ![]) {
1644
+ function textResult(_0x3b903f, _0x2350cf = ![]) {
1606
1645
  return {
1607
1646
  'content': [{
1608
1647
  'type': 'text',
1609
- 'text': _0x5f12ac
1648
+ 'text': _0x3b903f
1610
1649
  }],
1611
- ..._0x4aabf9 ? { 'isError': !![] } : {}
1650
+ ..._0x2350cf ? { 'isError': !![] } : {}
1612
1651
  };
1613
1652
  }
1614
- function _0x3714() {
1615
- const _0x28ac96 = [
1616
- 'C2v0',
1653
+ async function registerChatBridgeTools(_0x56548a, _0xd84252, _0x50b88d) {
1654
+ const _0x5ed8e8 = {
1655
+ _0x16deac: 0x202,
1656
+ _0x5f38be: 0x344,
1657
+ _0xe236a7: 0x255,
1658
+ _0x10ffe7: 0x353,
1659
+ _0x9a5619: 0x2a5,
1660
+ _0x659e57: 0x31b,
1661
+ _0x27dbd1: 0x32f,
1662
+ _0x2b7848: 0x2cc,
1663
+ _0x2e2257: 0x28b,
1664
+ _0x3ee669: 0x344,
1665
+ _0x49f360: 0x294,
1666
+ _0x3c4ee3: 0x1f6,
1667
+ _0x5a0855: 0x22e,
1668
+ _0x152891: 0x31b,
1669
+ _0x35f74a: 0x353,
1670
+ _0x2db59b: 0x2a5,
1671
+ _0x2aacd1: 0x272,
1672
+ _0xa127c8: 0x31b,
1673
+ _0x31a411: 0x344,
1674
+ _0x6bb968: 0x2ee,
1675
+ _0x3454d4: 0x31b,
1676
+ _0x5422c6: 0x2dd,
1677
+ _0x4d7189: 0x279,
1678
+ _0x2d1c14: 0x33e,
1679
+ _0x3e34d7: 0x329,
1680
+ _0x7b0228: 0x313,
1681
+ _0x238e57: 0x23b,
1682
+ _0x11dc57: 0x22f,
1683
+ _0x25d01a: 0x296,
1684
+ _0x2a6cd8: 0x344,
1685
+ _0x85fa43: 0x2ec,
1686
+ _0x298cfa: 0x360,
1687
+ _0x3a4ece: 0x200,
1688
+ _0xb8fb04: 0x31b,
1689
+ _0x369c76: 0x353,
1690
+ _0x672f6d: 0x271,
1691
+ _0x1c9c21: 0x31e
1692
+ }, _0x32fdf7 = { _0xfc0bcf: 0x2be }, _0x38f44d = { _0x427ffb: 0x33d }, _0x46136b = {
1693
+ _0x1f41d5: 0x2bd,
1694
+ _0x2e20b3: 0x27c,
1695
+ _0x21daa3: 0x2ff
1696
+ }, _0x54a8d4 = {
1697
+ _0x1c3bc4: 0x296,
1698
+ _0x431854: 0x25f
1699
+ }, _0x588eb0 = { _0x42dc5c: 0x27c }, _0x2cce43 = { _0x47de83: 0x313 }, _0x247de4 = {
1700
+ _0x393762: 0x27c,
1701
+ _0x673b2f: 0x355
1702
+ }, _0x4866c5 = {
1703
+ _0x522d32: 0x27c,
1704
+ _0x674126: 0x2d9
1705
+ }, _0x353db1 = {
1706
+ _0x3b23df: 0x2d4,
1707
+ _0x3c17bd: 0x27c
1708
+ }, _0x3441d0 = { _0x3b7fcd: 0x27c }, _0x13d453 = { _0x247a54: 0x27c }, _0x32e08c = { _0x543cde: 0x34f }, _0x9c6e14 = { _0x170143: 0x27c }, _0x5f4255 = {
1709
+ _0x561000: 0x335,
1710
+ _0x4e2f23: 0x27c
1711
+ }, _0x193c2f = { _0x7046b5: 0x27c }, _0x6e3103 = _0x2d2fb4, {z: _0x599697} = await import(_0x6e3103(_0x5ed8e8._0x16deac));
1712
+ _0x56548a[_0x6e3103(_0x5ed8e8._0x5f38be)]('send_message', _0x6e3103(_0x5ed8e8._0xe236a7), {
1713
+ 'target': _0x599697[_0x6e3103(0x2a5)](),
1714
+ 'content': _0x599697['string'](),
1715
+ 'attachment_ids': _0x599697[_0x6e3103(_0x5ed8e8._0x10ffe7)](_0x599697[_0x6e3103(_0x5ed8e8._0x9a5619)]())[_0x6e3103(_0x5ed8e8._0x659e57)](),
1716
+ 'visibility': _0x599697[_0x6e3103(0x294)]([
1717
+ _0x6e3103(_0x5ed8e8._0x27dbd1),
1718
+ _0x6e3103(0x30c)
1719
+ ])['optional']()[_0x6e3103(0x351)](_0x6e3103(_0x5ed8e8._0x2b7848))
1720
+ }, async _0x2e8275 => {
1721
+ const _0x3e8177 = _0x6e3103;
1722
+ try {
1723
+ return textResult(await _0xd84252['send_message'](_0x2e8275));
1724
+ } catch (_0xd4b6bb) {
1725
+ return textResult(_0xd4b6bb instanceof Error ? _0xd4b6bb[_0x3e8177(_0x193c2f._0x7046b5)] : 'send_message\x20failed', !![]);
1726
+ }
1727
+ }), _0x56548a[_0x6e3103(0x344)](_0x6e3103(0x335), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
1728
+ const _0x210b18 = _0x6e3103;
1729
+ try {
1730
+ return textResult(await _0xd84252[_0x210b18(_0x5f4255._0x561000)]());
1731
+ } catch (_0x35faf7) {
1732
+ return textResult(_0x35faf7 instanceof Error ? _0x35faf7[_0x210b18(_0x5f4255._0x4e2f23)] : 'check_messages\x20failed', !![]);
1733
+ }
1734
+ }), _0x56548a['tool'](_0x6e3103(0x338), _0x6e3103(0x246), {
1735
+ 'channel': _0x599697[_0x6e3103(0x2a5)](),
1736
+ 'limit': _0x599697['number']()['optional'](),
1737
+ 'before': _0x599697[_0x6e3103(_0x5ed8e8._0x2e2257)]()[_0x6e3103(0x31b)](),
1738
+ 'after': _0x599697[_0x6e3103(_0x5ed8e8._0x2e2257)]()[_0x6e3103(_0x5ed8e8._0x659e57)]()
1739
+ }, async _0x1433f7 => {
1740
+ const _0x5b7098 = _0x6e3103;
1741
+ try {
1742
+ return textResult(await _0xd84252['read_history'](_0x1433f7));
1743
+ } catch (_0x1f002e) {
1744
+ return textResult(_0x1f002e instanceof Error ? _0x1f002e[_0x5b7098(_0x9c6e14._0x170143)] : _0x5b7098(0x324), !![]);
1745
+ }
1746
+ }), _0x56548a[_0x6e3103(0x344)](_0x6e3103(0x1f1), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
1747
+ const _0x45a077 = _0x6e3103;
1748
+ try {
1749
+ return textResult(await _0xd84252[_0x45a077(0x1f1)]());
1750
+ } catch (_0x5c2768) {
1751
+ return textResult(_0x5c2768 instanceof Error ? _0x5c2768[_0x45a077(0x27c)] : _0x45a077(_0x32e08c._0x543cde), !![]);
1752
+ }
1753
+ }), _0x56548a[_0x6e3103(_0x5ed8e8._0x3ee669)](_0x6e3103(0x29f), 'List\x20tasks\x20in\x20a\x20channel.', {
1754
+ 'channel': _0x599697[_0x6e3103(0x2a5)](),
1755
+ 'status': _0x599697[_0x6e3103(_0x5ed8e8._0x49f360)]([
1756
+ _0x6e3103(0x33e),
1757
+ _0x6e3103(0x329),
1758
+ _0x6e3103(_0x5ed8e8._0x3c4ee3),
1759
+ _0x6e3103(0x226)
1760
+ ])['optional']()
1761
+ }, async _0x15c90b => {
1762
+ const _0x2b9013 = _0x6e3103;
1763
+ try {
1764
+ return textResult(await _0xd84252['list_tasks'](_0x15c90b));
1765
+ } catch (_0x6ba203) {
1766
+ return textResult(_0x6ba203 instanceof Error ? _0x6ba203[_0x2b9013(_0x13d453._0x247a54)] : 'list_tasks\x20failed', !![]);
1767
+ }
1768
+ }), _0x56548a[_0x6e3103(0x344)]('create_tasks', _0x6e3103(_0x5ed8e8._0x5a0855), {
1769
+ 'channel': _0x599697[_0x6e3103(0x2a5)](),
1770
+ 'idempotency_key': _0x599697['string']()[_0x6e3103(_0x5ed8e8._0x152891)](),
1771
+ 'tasks': _0x599697[_0x6e3103(_0x5ed8e8._0x35f74a)](_0x599697[_0x6e3103(0x35d)]({
1772
+ 'title': _0x599697[_0x6e3103(_0x5ed8e8._0x2db59b)](),
1773
+ 'description': _0x599697[_0x6e3103(_0x5ed8e8._0x2db59b)]()['optional'](),
1774
+ 'priority': _0x599697[_0x6e3103(0x294)]([
1775
+ _0x6e3103(0x223),
1776
+ 'medium',
1777
+ _0x6e3103(_0x5ed8e8._0x2aacd1),
1778
+ 'urgent'
1779
+ ])[_0x6e3103(_0x5ed8e8._0xa127c8)]()
1780
+ }))
1781
+ }, async _0x3454f2 => {
1782
+ const _0x270be2 = _0x6e3103;
1783
+ try {
1784
+ return textResult(await _0xd84252['create_tasks'](_0x3454f2));
1785
+ } catch (_0x2c63a5) {
1786
+ return textResult(_0x2c63a5 instanceof Error ? _0x2c63a5[_0x270be2(_0x3441d0._0x3b7fcd)] : _0x270be2(0x251), !![]);
1787
+ }
1788
+ }), _0x56548a[_0x6e3103(_0x5ed8e8._0x31a411)](_0x6e3103(0x2d4), _0x6e3103(0x343), {
1789
+ 'channel': _0x599697[_0x6e3103(0x2a5)](),
1790
+ 'task_numbers': _0x599697[_0x6e3103(_0x5ed8e8._0x10ffe7)](_0x599697[_0x6e3103(0x28b)]())[_0x6e3103(0x31b)](),
1791
+ 'message_ids': _0x599697[_0x6e3103(_0x5ed8e8._0x35f74a)](_0x599697[_0x6e3103(0x2a5)]())[_0x6e3103(0x31b)](),
1792
+ 'evidence': _0x599697[_0x6e3103(0x257)](_0x599697[_0x6e3103(0x2a5)](), _0x599697[_0x6e3103(0x35d)]({
1793
+ 'create_thread': _0x599697[_0x6e3103(0x322)]()[_0x6e3103(0x31b)](),
1794
+ 'create_task': _0x599697[_0x6e3103(0x322)]()[_0x6e3103(0x31b)]()
1795
+ }))[_0x6e3103(0x31b)](),
1796
+ 'idempotency_key': _0x599697['string']()[_0x6e3103(0x31b)]()
1797
+ }, async _0x15d98f => {
1798
+ const _0x4f850e = _0x6e3103;
1799
+ try {
1800
+ return textResult(await _0xd84252[_0x4f850e(_0x353db1._0x3b23df)](_0x15d98f));
1801
+ } catch (_0x391578) {
1802
+ return textResult(_0x391578 instanceof Error ? _0x391578[_0x4f850e(_0x353db1._0x3c17bd)] : 'claim_tasks\x20failed', !![]);
1803
+ }
1804
+ }), _0x56548a[_0x6e3103(0x344)]('unclaim_task', _0x6e3103(_0x5ed8e8._0x6bb968), {
1805
+ 'channel': _0x599697['string'](),
1806
+ 'task_number': _0x599697['number'](),
1807
+ 'idempotency_key': _0x599697['string']()[_0x6e3103(_0x5ed8e8._0x3454d4)]()
1808
+ }, async _0x406eed => {
1809
+ const _0x597dd8 = _0x6e3103;
1810
+ try {
1811
+ return textResult(await _0xd84252['unclaim_task'](_0x406eed));
1812
+ } catch (_0x1583d2) {
1813
+ return textResult(_0x1583d2 instanceof Error ? _0x1583d2[_0x597dd8(_0x4866c5._0x522d32)] : _0x597dd8(_0x4866c5._0x674126), !![]);
1814
+ }
1815
+ }), _0x56548a[_0x6e3103(0x344)](_0x6e3103(_0x5ed8e8._0x5422c6), _0x6e3103(_0x5ed8e8._0x4d7189), {
1816
+ 'channel': _0x599697[_0x6e3103(_0x5ed8e8._0x2db59b)](),
1817
+ 'task_number': _0x599697['number'](),
1818
+ 'status': _0x599697[_0x6e3103(0x294)]([
1819
+ _0x6e3103(_0x5ed8e8._0x2d1c14),
1820
+ _0x6e3103(_0x5ed8e8._0x3e34d7),
1821
+ _0x6e3103(0x1f6),
1822
+ _0x6e3103(0x226)
1823
+ ]),
1824
+ 'idempotency_key': _0x599697[_0x6e3103(0x2a5)]()[_0x6e3103(0x31b)]()
1825
+ }, async _0x48c154 => {
1826
+ const _0x5cf111 = _0x6e3103;
1827
+ try {
1828
+ return textResult(await _0xd84252[_0x5cf111(0x2dd)](_0x48c154));
1829
+ } catch (_0x396558) {
1830
+ return textResult(_0x396558 instanceof Error ? _0x396558[_0x5cf111(_0x247de4._0x393762)] : _0x5cf111(_0x247de4._0x673b2f), !![]);
1831
+ }
1832
+ }), _0x56548a[_0x6e3103(0x344)](_0x6e3103(_0x5ed8e8._0x7b0228), _0x6e3103(_0x5ed8e8._0x238e57), {
1833
+ 'channel': _0x599697[_0x6e3103(0x2a5)](),
1834
+ 'file_path': _0x599697[_0x6e3103(0x2a5)]()
1835
+ }, async _0x899c2c => {
1836
+ const _0x83294 = _0x6e3103;
1837
+ try {
1838
+ return textResult(await _0xd84252[_0x83294(_0x2cce43._0x47de83)](_0x899c2c));
1839
+ } catch (_0x17587e) {
1840
+ return textResult(_0x17587e instanceof Error ? _0x17587e['message'] : 'upload_file\x20failed', !![]);
1841
+ }
1842
+ }), _0x56548a[_0x6e3103(0x344)](_0x6e3103(_0x5ed8e8._0x11dc57), _0x6e3103(0x240), { 'attachment_id': _0x599697['string']() }, async _0x6179b6 => {
1843
+ const _0x4e65a8 = _0x6e3103;
1844
+ try {
1845
+ return textResult(await _0xd84252[_0x4e65a8(0x22f)](_0x6179b6));
1846
+ } catch (_0x34cd5e) {
1847
+ return textResult(_0x34cd5e instanceof Error ? _0x34cd5e[_0x4e65a8(_0x588eb0._0x42dc5c)] : 'view_file\x20failed', !![]);
1848
+ }
1849
+ }), _0x56548a[_0x6e3103(_0x5ed8e8._0x5f38be)](_0x6e3103(_0x5ed8e8._0x25d01a), 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x599697['string']() }, async _0x4cea15 => {
1850
+ const _0x2a6c7f = _0x6e3103;
1851
+ try {
1852
+ return textResult(await _0xd84252[_0x2a6c7f(_0x54a8d4._0x1c3bc4)](_0x4cea15));
1853
+ } catch (_0x993e88) {
1854
+ return textResult(_0x993e88 instanceof Error ? _0x993e88[_0x2a6c7f(0x27c)] : _0x2a6c7f(_0x54a8d4._0x431854), !![]);
1855
+ }
1856
+ }), _0x56548a[_0x6e3103(_0x5ed8e8._0x2a6cd8)]('get_worker_result', 'Retrieve\x20the\x20result\x20(resume\x20packet)\x20of\x20a\x20completed\x20worker.', { 'work_key': _0x599697[_0x6e3103(0x2a5)]() }, async _0xff4976 => {
1857
+ const _0xe61b28 = _0x6e3103;
1858
+ try {
1859
+ return textResult(await _0xd84252[_0xe61b28(_0x46136b._0x1f41d5)](_0xff4976));
1860
+ } catch (_0x275266) {
1861
+ return textResult(_0x275266 instanceof Error ? _0x275266[_0xe61b28(_0x46136b._0x2e20b3)] : _0xe61b28(_0x46136b._0x21daa3), !![]);
1862
+ }
1863
+ }), _0x56548a[_0x6e3103(0x344)]('finish_worker', _0x6e3103(_0x5ed8e8._0x85fa43), {
1864
+ 'work_key': _0x599697['string'](),
1865
+ 'result': _0x599697['enum']([
1866
+ _0x6e3103(0x318),
1867
+ _0x6e3103(_0x5ed8e8._0x298cfa),
1868
+ _0x6e3103(_0x5ed8e8._0x3a4ece)
1869
+ ]),
1870
+ 'summary': _0x599697[_0x6e3103(_0x5ed8e8._0x2db59b)](),
1871
+ 'decisions': _0x599697['array'](_0x599697[_0x6e3103(_0x5ed8e8._0x2db59b)]())[_0x6e3103(_0x5ed8e8._0xb8fb04)](),
1872
+ 'files_changed': _0x599697[_0x6e3103(0x353)](_0x599697['string']())[_0x6e3103(0x31b)](),
1873
+ 'open_issues': _0x599697['array'](_0x599697['string']())['optional'](),
1874
+ 'next_steps': _0x599697[_0x6e3103(_0x5ed8e8._0x369c76)](_0x599697[_0x6e3103(0x2a5)]())[_0x6e3103(0x31b)]()
1875
+ }, async _0x3c47a2 => {
1876
+ const _0x31710c = _0x6e3103;
1877
+ try {
1878
+ return textResult(await _0xd84252[_0x31710c(_0x38f44d._0x427ffb)](_0x3c47a2));
1879
+ } catch (_0x550ee9) {
1880
+ return textResult(_0x550ee9 instanceof Error ? _0x550ee9[_0x31710c(0x27c)] : _0x31710c(0x2a4), !![]);
1881
+ }
1882
+ }), _0x56548a[_0x6e3103(_0x5ed8e8._0x2a6cd8)]('escalate_to_main', _0x6e3103(_0x5ed8e8._0x672f6d), {
1883
+ 'work_key': _0x599697['string'](),
1884
+ 'reason': _0x599697[_0x6e3103(_0x5ed8e8._0x9a5619)]()
1885
+ }, async _0x53186d => {
1886
+ try {
1887
+ return textResult(await _0xd84252['escalate_to_main'](_0x53186d));
1888
+ } catch (_0x59d70c) {
1889
+ return textResult(_0x59d70c instanceof Error ? _0x59d70c['message'] : 'escalate_to_main\x20failed', !![]);
1890
+ }
1891
+ }), _0x50b88d?.[_0x6e3103(_0x5ed8e8._0x1c9c21)] && _0x56548a[_0x6e3103(0x344)]('mark_waiting_input', 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x599697[_0x6e3103(0x2a5)]() }, async _0x4fb6a4 => {
1892
+ const _0x222a08 = _0x6e3103;
1893
+ try {
1894
+ return textResult(await _0xd84252['mark_waiting_input'](_0x4fb6a4));
1895
+ } catch (_0x16b660) {
1896
+ return textResult(_0x16b660 instanceof Error ? _0x16b660[_0x222a08(0x27c)] : _0x222a08(_0x32fdf7._0xfc0bcf), !![]);
1897
+ }
1898
+ });
1899
+ }
1900
+ async function createChatBridgeServer(_0x2db3cb) {
1901
+ const _0x48dbdf = {
1902
+ _0x54859e: 0x25c,
1903
+ _0x3cd62f: 0x36e,
1904
+ _0x454526: 0x31e
1905
+ }, _0x1ad481 = _0x2d2fb4, {McpServer: _0x29365c} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0xa5e12a = new _0x29365c({
1906
+ 'name': _0x1ad481(_0x48dbdf._0x54859e),
1907
+ 'version': _0x1ad481(_0x48dbdf._0x3cd62f)
1908
+ }), _0x566955 = createChatBridgeHandlers(_0x2db3cb);
1909
+ return await registerChatBridgeTools(_0xa5e12a, _0x566955, { 'workerMode': _0x2db3cb[_0x1ad481(_0x48dbdf._0x454526)] }), {
1910
+ 'handlers': _0x566955,
1911
+ 'server': _0xa5e12a
1912
+ };
1913
+ }
1914
+ function readFlag(_0x2c405a, _0x88ed04) {
1915
+ const _0xde2b03 = _0x2d2fb4, _0x1e8515 = _0x2c405a[_0xde2b03(0x35b)](_0x88ed04);
1916
+ if (_0x1e8515 === -0x1)
1917
+ return void 0x0;
1918
+ return _0x2c405a[_0x1e8515 + 0x1];
1919
+ }
1920
+ function parseChatBridgeArgs(_0x33eaf7) {
1921
+ const _0x2a8891 = {
1922
+ _0x3653ae: 0x331,
1923
+ _0x2d9be8: 0x2b8,
1924
+ _0xf8c326: 0x21d,
1925
+ _0x49c3ac: 0x306,
1926
+ _0x48f8a3: 0x256,
1927
+ _0x3461c5: 0x215
1928
+ }, _0x5460df = _0x2d2fb4, _0x4127c2 = readFlag(_0x33eaf7, '--agent-id'), _0x1b624a = readFlag(_0x33eaf7, '--daemon-api-key'), _0x44aa15 = readFlag(_0x33eaf7, _0x5460df(0x305)), _0x32d3d2 = readFlag(_0x33eaf7, _0x5460df(_0x2a8891._0x3653ae)) ?? _0x5460df(_0x2a8891._0x2d9be8), _0x2f5079 = readFlag(_0x33eaf7, _0x5460df(0x2b0)), _0x23035e = readFlag(_0x33eaf7, _0x5460df(0x282)), _0x532b8a = readFlag(_0x33eaf7, _0x5460df(_0x2a8891._0xf8c326)), _0x3b48e6 = readFlag(_0x33eaf7, _0x5460df(_0x2a8891._0x49c3ac)), _0x446729 = readFlag(_0x33eaf7, _0x5460df(0x2ac)), _0x36d637 = _0x33eaf7[_0x5460df(0x2ad)](_0x5460df(_0x2a8891._0x48f8a3)), _0x15dfff = _0x44aa15 === void 0x0 ? void 0x0 : Number[_0x5460df(_0x2a8891._0x3461c5)](_0x44aa15, 0xa);
1929
+ if (!_0x4127c2)
1930
+ throw new Error(_0x5460df(0x238));
1931
+ if (!_0x1b624a)
1932
+ throw new Error(_0x5460df(0x2d7));
1933
+ if (_0x44aa15 !== void 0x0 && (_0x15dfff === void 0x0 || !Number[_0x5460df(0x2fb)](_0x15dfff) || _0x15dfff < 0x0))
1934
+ throw new Error('Invalid\x20--initial-last-seen-seq');
1935
+ return {
1936
+ 'agentId': _0x4127c2,
1937
+ 'daemonApiKey': _0x1b624a,
1938
+ 'daemonLocalUrl': _0x2f5079,
1939
+ 'initialLastSeenSeq': _0x15dfff,
1940
+ 'sessionId': _0x23035e,
1941
+ 'serverUrl': _0x32d3d2,
1942
+ 'workerModeEnabled': _0x532b8a === void 0x0 ? void 0x0 : _0x532b8a !== 'false',
1943
+ 'workerSessionId': _0x3b48e6,
1944
+ 'workerThreadTarget': _0x446729,
1945
+ 'workerMode': _0x36d637
1946
+ };
1947
+ }
1948
+ async function runChatBridgeCli(_0x10b45b) {
1949
+ const _0x389283 = { _0x510f71: 0x231 }, _0x3de10b = _0x2d2fb4, _0x1bad23 = parseChatBridgeArgs(_0x10b45b), {StdioServerTransport: _0x2518dd} = await import(_0x3de10b(0x2db)), _0x2aa1c3 = createInternalAgentClient(_0x1bad23), _0x3a4255 = createAttachmentCache(), _0x4ca07f = await createChatBridgeServer({
1950
+ 'agentId': _0x1bad23[_0x3de10b(0x250)],
1951
+ 'attachmentCache': _0x3a4255,
1952
+ 'client': _0x2aa1c3,
1953
+ 'daemonLocalUrl': _0x1bad23[_0x3de10b(_0x389283._0x510f71)],
1954
+ 'uploadPreparer': prepareUploadFile,
1955
+ 'workerModeEnabled': _0x1bad23[_0x3de10b(0x267)],
1956
+ 'workerMode': _0x1bad23['workerMode']
1957
+ });
1958
+ await _0x4ca07f[_0x3de10b(0x2f4)][_0x3de10b(0x2ef)](new _0x2518dd());
1959
+ }
1960
+ var executedAsEntry = process[_0x2d2fb4(0x237)][0x1] ? import.meta.url === pathToFileURL(process[_0x2d2fb4(0x237)][0x1])[_0x2d2fb4(0x22d)] : ![];
1961
+ executedAsEntry && await runChatBridgeCli(process[_0x2d2fb4(0x237)][_0x2d2fb4(0x33f)](0x2));
1962
+ function _0x11ab() {
1963
+ const _0x12e639 = [
1964
+ 'DgfZAY0',
1965
+ 'l3nLBMq',
1966
+ 'v29YA2vYia',
1967
+ 'BMfTzq',
1968
+ 'ihn0yxr1CZ0',
1969
+ 'rMLSzsb1CgXVywrLzdOG',
1970
+ 'AgfZ',
1971
+ 'D29YA2vYsgfUzg9MzG',
1972
+ 'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
1973
+ 'yxr0ywnOBwvUDf9Pza',
1974
+ 'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
1975
+ 'y29UBMvJDa',
1976
+ 'Dg9mB2nHBgvmB3DLCKnHC2u',
1977
+ 'cGOTls0G',
1978
+ 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
1979
+ 'y29UDgvUDejHC2u2na',
1980
+ 'C2vYDMvY',
1981
+ 'rMLSzsbUB3qGzM91BMq6ia',
1982
+ 'ihr5Cgu9ywDLBNq',
1983
+ 'z2v0vgLTzq',
1984
+ 'D29YA2vYu2vZC2LVBKLK',
1985
+ 'BMv4Df9ZDgvWCW',
1986
+ 'C2vYDMvYvxjS',
1987
+ 'AxngAw5PDgu',
1988
+ 'ndyXotKYzMDYC2PK',
1989
+ 'DgL0Bgu',
1990
+ 'l3DVCMTLCNmVzgvSAxzLCG',
1991
+ 'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
1992
+ 'Agv4',
1993
+ 'khvUA25VD24P',
1994
+ 'DhjPBq',
1995
+ 'D29YA2vYrgLZCg9ZAxrPB249',
1996
+ 'yxr0ywnOBwvUDhm',
1997
+ 'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
1998
+ 'ls13B3jRzxiTC2vZC2LVBI1Pza',
1999
+ 'BgLZDfrHC2TZ',
2000
+ 'y3jLyxrLx3rHC2TZ',
2001
+ 'iYmGu2vYDMvYoIa',
2002
+ 'Dw5JBgfPBv90yxnR',
2003
+ 'y2HHBM5LBeLK',
1617
2004
  'yxnPzgu',
1618
- 'CM9VDe1LC3nHz2vjza',
2005
+ 'tM8GDgfZA3mGy2XHAw1Lzc4',
2006
+ 'Dgv4Dc9TyxjRzg93BG',
2007
+ 'ihrPBwu9',
2008
+ 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
2009
+ 'DgfZA3m',
2010
+ '4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
2011
+ 'DxbSB2fKx2zPBgu',
2012
+ 'C2vYDMvYtMfTzq',
2013
+ 'yMvMB3jL',
2014
+ 'iYmJienOyw5UzwXZ',
2015
+ 'yxbWBgLJyxrPB24VEMLW',
1619
2016
  'y29TCgXLDgvK',
1620
- 'l3nLCNzLCG',
1621
- 'D29YA2vY',
1622
- 'BgLTAxq',
1623
- 'ywDLBNrjza',
1624
- 'ig1ZzZ0',
1625
- 'y2HHBM5LBeLK',
1626
- 'CMvZDwX0sNnVBG',
1627
- 'DxrMoa',
1628
- 'zMLUzenHy2HLzfbHDgG',
1629
- 'AhjLzG',
1630
- 'iokaLca',
2017
+ 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
2018
+ 'C2vUzf9TzxnZywDL',
2019
+ 'B3b0Aw9UywW',
2020
+ 'y2HLy2TnzxnZywDLCW',
1631
2021
  'D29YA2vYrgLZCg9ZAxrPB24',
1632
- 's0iPcKf0DgfJAg1LBNqGsuq6ia',
1633
- 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
1634
- 'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
1635
- 'A2LUza',
1636
- 'B3jPz2LUywXgAwXLBMfTzq',
1637
- 'Dg9tDhjPBMC',
1638
- 'DgHYzwfKvgfYz2v0',
1639
- 'Dg9gAxHLza',
1640
- 'zMv0y2HjBxbS',
1641
- 'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
1642
- 'BgLZDf90yxnRCW',
1643
- 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
1644
- 'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
1645
- 'mc4WlJa',
1646
- 'ihr5Cgu9ywDLBNq',
1647
- 'DMfSDwu',
1648
- 'lcbJB250zw50lxr5Cgu9',
1649
- 'zMLUza',
1650
- 'zMfPBgvK',
1651
- 'y3jLyxrLx3rHC2TZigzHAwXLza',
1652
- 'C2nOzwr1BgvKrM9Y',
1653
- 'DhLWzq',
1654
- 'CMvJB3jK',
1655
- 'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
1656
- 'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
1657
- 'l3rHC2TZpW',
1658
- 'mJm5nJb6u1HIt2u',
1659
- 'twLZC2LUzYaTlwfNzw50lwLK',
1660
- 'yM9KEu1HCMTKB3DU',
1661
- 'kgXLz2fJEsK',
1662
- 'zg93BMXVywrbDhrHy2HTzw50',
2022
+ 'D29YA2vYtw9Kzq',
2023
+ 'vgfZAYa',
2024
+ 'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
2025
+ 'uM9VDcb0yxnRig1LC3nHz2u6cG',
2026
+ 'Dw5RBM93BG',
2027
+ 'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
2028
+ 'CMvHzf9OAxn0B3j5igzHAwXLza',
2029
+ 'D29YA2vYsgfUzg9MzKvYCM9Y',
2030
+ 'zNjVBq',
2031
+ 'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
2032
+ 'y29UDgvUDfr5Cgu',
2033
+ 'Aw5FChjVz3jLC3m',
2034
+ 'mML0qxrbsG',
2035
+ 'l3rHC2TZl3vUy2XHAw0',
2036
+ 'CMvZDwX0sNnVBG',
2037
+ 'BwfYA193ywL0Aw5Nx2LUChv0',
1663
2038
  'y2XPzw50',
1664
- 'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
1665
- 'l2nVBNrLBNq',
1666
- 'yxr0ywnOBwvUDenHy2HL',
1667
- 'z2v0',
1668
- 'iYmJieH1BwfUCW',
1669
- 'AwrLBxbVDgvUy3LFA2v5',
1670
- 'DgL0Bgu',
1671
- 'CMvWBgfJzq',
1672
- 'Aw1Hz2uVC3zNk3HTBa',
1673
- 'z2v0sg91CNm',
1674
- 'zg0T',
1675
- 'CNvUswq',
1676
- 'Aw1Hz2uVz2LM',
1677
- 'Dg9ju09tDhjPBMC',
2039
+ 'ChvIBgLJ',
2040
+ 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
2041
+ 'ls1Zzxj2zxiTDxjS',
2042
+ 'Bwv0yq',
2043
+ 'C2L6zq',
2044
+ 'DgfZA0LK',
2045
+ 'y2HLy2TFBwvZC2fNzxm',
2046
+ 'yxr0ywnOBwvUDf9Pzhm',
2047
+ 'Dg9mB3DLCKnHC2u',
2048
+ 'CMvHzf9OAxn0B3j5',
2049
+ 'AgvHzgvYCW',
2050
+ 'C2LNBMfS',
2051
+ 'zgLZCg9ZAxrPB24',
2052
+ 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
2053
+ 'zMLUAxnOx3DVCMTLCG',
2054
+ 'Dg9KBW',
2055
+ 'C2XPy2u',
2056
+ 'Aw5PDgLHBeXHC3rtzwvUu2vX',
2057
+ 'BgLTAxq',
2058
+ 'AxngAwXL',
2059
+ 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
2060
+ 'Dg9VBa',
2061
+ 'zxH0BMfTzq',
2062
+ 'mtK3nJmWEuHAsg1y',
2063
+ 'yxjYyxLcDwzMzxi',
2064
+ 'Dg9gAxHLza',
2065
+ 'CgfYC2u',
2066
+ 'Cgf5Bg9HzePZB24',
2067
+ 'BgvUz3rO',
2068
+ 'zMLUzenHy2HLzfbHDgG',
2069
+ 'y2HHBM5LBhm',
2070
+ 'yMfZzw5HBwu',
2071
+ 'BgLZDf9Zzxj2zxiGzMfPBgvK',
2072
+ 'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
2073
+ 'zgvZy3jPyMu',
1678
2074
  'y2f0y2G',
2075
+ 'yxjYyxK',
2076
+ 'C3rHCNrLza',
2077
+ 'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
2078
+ 'D29YA19RzxK',
2079
+ 'yxbWBgLJyxrPB24VEg1S',
2080
+ 'zxzLBNrtzxe',
2081
+ 'mJmYnJmWmefJtuTtvq',
2082
+ 'DgHYzwfKvgfYz2v0pq',
2083
+ 'Aw5KzxHpzG',
2084
+ 'BwvZC2fNzuLK',
2085
+ 'B2jQzwn0',
2086
+ 'Aw1Hz2uVANbLzW',
2087
+ 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
2088
+ 'yMXVy2TLza',
2089
+ 'yxr0ywnOBwvUDeLKCW',
2090
+ 'yM9KEvrLEhq',
2091
+ 'DgfZAW',
2092
+ 'Aw1Hz2uVC3zNk3HTBa',
2093
+ 'y2HHBM5LBa',
2094
+ 'ig1LC3nHz2u9',
2095
+ 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
2096
+ 'ouLTC2X0EG',
2097
+ 'zgf0yq',
2098
+ 'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
2099
+ 'zMLSzv9WyxrO',
2100
+ 'iJOGC3rHDhvZpq',
2101
+ 'zw50zxiTAgfUzg9MzIbMywLSzwq',
2102
+ 'mc4WlJa',
2103
+ 'DgHYzwfK',
2104
+ 'igTPBMq9',
2105
+ 'ywz0zxi',
1679
2106
  'ywDLBNrZ',
1680
- 'l3rHC2TZ',
1681
- 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
1682
- 'zgLNzxn0',
1683
- 'ywjVCNq',
1684
- 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
2107
+ 'zxHWAxjLC0f0',
2108
+ 'CMvXDwvZDfvYBa',
2109
+ 'l2HPC3rVCNK/',
2110
+ 'ue9tva',
2111
+ 'DxbSB2fKuhjLCgfYzxi',
2112
+ 'zMLSDgvY',
2113
+ 'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
1685
2114
  'BgLZDf9Zzxj2zxi',
1686
- 'zgvZy3jPChrPB24',
1687
- 'D29YA2vYCW',
1688
- 'l2fWAs9HDhrHy2HTzw50CY8',
1689
- 'AxnjBNrLz2vY',
1690
- 'yxbWBgLJyxrPB24VEMLW',
1691
- 'ls1Hz2vUDc1Pza',
1692
- 'twvZC2fNzsbZzw50ihrVia',
1693
- 'vgfZAYa',
1694
- 'l2zPBMLZAa',
1695
- 'uefuq0G',
1696
- 'CMvZCg9UC2u',
1697
- 'DxbSB2fKx2zPBguGzMfPBgvK',
1698
- 'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
1699
- 'BwfW',
2115
+ 'lsba',
2116
+ 'Dg9ju09tDhjPBMC',
2117
+ 'tM8GDgfZA3mGy3jLyxrLzc4',
2118
+ 'l3nLCNzLCG',
2119
+ 'Aw5FCMv2Awv3',
2120
+ 'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
2121
+ 'zgvZDhjVEwvK',
2122
+ 'AwrSzq',
2123
+ 'DhLWzq',
2124
+ 'z2v0tw9UDgG',
1700
2125
  'l2LUDgvYBMfSl2fNzw50lW',
1701
- 'C3rYAw5NAwz5',
1702
2126
  'DgfYz2v0',
1703
- 'y2HHBM5LBa',
1704
- 'yMfZzty0',
1705
- 'yxv0BZO',
1706
- 'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
1707
- 'y29UDgvUDejHC2u2na',
1708
- 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
1709
- 'iYmJienOyw5UzwXZ',
2127
+ 'C3rHDhvZ',
2128
+ 'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
2129
+ 'zMfPBgvK',
2130
+ 'zMLUza',
2131
+ 'EM9K',
2132
+ 'mJu0mdaYoe52vfrLDq',
2133
+ 'AgfZtw9Yzq',
2134
+ 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
2135
+ 'v29YA2vYici',
2136
+ 'ywDLBNq',
2137
+ 'sfruuca',
2138
+ 'D29YA2vYsgfUzg9MzJ10CNvL',
1710
2139
  'l2nVBNrLEhqTBwv0CMLJCW',
1711
- '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
1712
- 'Cgf5Bg9HzePZB24',
1713
- 'Agv4',
1714
- 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
1715
- 'DgHYzwfKx3rHCMDLDa',
1716
- 'BMfTzq',
1717
- 'C3rVCe1HAw4',
1718
- 'igzHAwXLzdOG',
1719
- 'DxbKyxrL',
1720
- 'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
1721
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
1722
- 'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
1723
- 'ls1ZzxnZAw9UlwLK',
1724
- 'AgvHzgvYCW',
1725
- 'lMjPBG',
1726
- 'CxvLDwvK',
1727
- 'C29YDa',
1728
- 'mJm4ntLLshjOBhe',
1729
- 'DgHYzwfKswq',
1730
- 'C3vJy2vZCW',
1731
- 'DgfYz2v0zwruyxnR',
1732
- 'B2jQzwn0',
1733
- 'CMvXDwvZDfvYBa',
1734
- 'D29YA2vYvgHYzwfKvgfYz2v0',
1735
- 'kg5VBMuP',
1736
- 'Dgv4Dc9JC3y',
1737
- 'ywXS',
1738
- 'C2vYDMvYtMfTzq',
1739
- 'zgvSzxrL',
2140
+ 'DgHYzwfKvgfYz2v0',
2141
+ 'l2nVBNrLBNq',
2142
+ 'twvZC2fNzsbZzw50ihrVia',
2143
+ 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
1740
2144
  'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
1741
- 'lIbnzxnZywDLieLeoIa',
1742
- 'icHPzdO',
1743
- '6k+35Rgcia',
1744
- 'CMvHzeHPC3rVCNK',
1745
- 'C29Tzq',
1746
- 'y2XHAw1FDgfZA3mGzMfPBgvK',
1747
- 'Bwf0y2Hoyw1Ltg93zxi',
1748
- 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
1749
- 'AgfZ',
1750
- 'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
1751
- 'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
1752
- 'BwLU',
1753
- 'yMvMB3jL',
1754
- 'iYmJiefNzw50CW',
1755
- 'Dg9VBa',
1756
- 'DgfYz2v0zwq',
1757
- 'CgfYC2u',
1758
- 'C3rHCNrLza',
1759
- 'Aw5KzxHpzG',
1760
2145
  'xsba',
1761
- 'BwvZC2fNzuLK',
1762
- 'AxngAw5PDgu',
1763
- 'y2fJAgveAxi',
1764
- 'zxHLy3v0Aw9Utw9Kzt0',
1765
- 'y3vYC29Y',
1766
- 'zxjYB3i',
1767
- 'C2L6zq',
1768
- 'uM9VDcb0yxnRig1LC3nHz2u6cG',
1769
- 'C3vTBwfYEq',
1770
- 'ywz0zxi',
1771
- 'DgHYzwfKvgfYz2v0pq',
1772
- 'CgfYDgLJAxbHBNrjza',
1773
- 'z2v0x3DVCMTLCL9ZDgf0Dxm',
1774
- 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
1775
- 'zw51Bq',
1776
- 'zMfSC2u',
1777
- 'z2v0vgLTzq',
1778
- 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
1779
- 'Ahr0Chm6',
1780
- 'l3DVCMTLCNmVzgvSAxzLCG',
1781
- 'DgHYzwfKtNvTyMvY',
1782
- 'DxbSB2fKx2zPBgu',
1783
- 'ls13B3jRzxiTBw9Kzq',
1784
- 'Bg93',
1785
- 'zg06',
1786
- 'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
2146
+ 'Bwf0y2Hoyw1L',
2147
+ 'lcbWCMv2Awv3pq',
2148
+ 'tM8GBMv3ig1LC3nHz2vZlG',
2149
+ 'C2vX',
2150
+ 'CgfYC2vjBNq',
2151
+ 'Dgv4Dc9JC3y',
2152
+ 'D29YA2vYCW',
2153
+ 'yMfZzty0',
2154
+ 'Bwf0y2Hoyw1Ltg93zxi',
2155
+ 'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
2156
+ 'C3vJy2vZCW',
2157
+ 'zg93BMXVywrbDhrHy2HTzw50',
2158
+ 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
1787
2159
  'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
1788
- 'yxr0ywnOBwvUDhm',
1789
- 'zw50CMLLCW',
1790
- 'C3rHCNrZv2L0Aa',
1791
- 'w3rHCMDLDd0',
1792
- 'zxHLy3v0Aw9Utw9Kzq',
1793
- 'ls1KywvTB24TBg9JywWTDxjS',
1794
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
1795
- 'EM9K',
1796
- 'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
1797
- 'C3rHDhvZ',
1798
- 'Dw5JBgfPBv90yxnRigzHAwXLza',
1799
- 'BwvTyMvY',
2160
+ 'BwvTyMvYCW',
2161
+ 'mZqZntq5s2npCvLA',
2162
+ 'l3DVCMTLCNmVzMLUAxnO',
2163
+ 'C2vZC2LVBKLK',
2164
+ 'Bg93',
2165
+ 'Bwf4',
2166
+ 'z2v0rgf0zq',
2167
+ 'zg9Uzq',
2168
+ 'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
2169
+ 'zMv0y2HuAw1LB3v0txm',
2170
+ 'l3rHC2TZl2nSywLT',
2171
+ 'DMLZAwjPBgL0Eq',
2172
+ 'igLUia',
2173
+ 'vgHYzwfKihrHCMDLDdOG',
2174
+ 'AhjLzG',
2175
+ 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
2176
+ 'DMLLD19MAwXL',
2177
+ 'igf0DgfJAg1LBNq',
2178
+ 'zgfLBw9Utg9JywXvCMW',
2179
+ 'ChjVDg9JB2W',
2180
+ 'rg93BMXVywrLzcb0BZOG',
2181
+ 'CMvHzeHPC3rVCNK',
2182
+ 'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
1800
2183
  'zxnJywXHDgvFDg9FBwfPBG',
1801
- 'zxzLBNrtzxe',
1802
- 'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
1803
- 'C2L6zuj5DgvZ',
1804
- 'BgvUz3rO',
1805
- 'ihrPBwu9',
1806
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
1807
- 'AgfZtw9Yzq',
1808
- 'yxr0ywnOBwvUDeLKCW',
1809
- 'ntuXntK2EvjIyMrO',
1810
- 'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
1811
- 'CMvHC29U',
1812
2184
  'yxjNDG',
1813
- 'DgfZA051BwjLCG',
1814
- 'y2HHBM5LBhm',
2185
+ 'twLZC2LUzYaTlwfNzw50lwLK',
2186
+ 'y29UDgvUDa',
1815
2187
  'CgfKu3rHCNq',
1816
- 'mti1m2jvzufoqG',
1817
- 'C2vUzgvYvhLWzq',
1818
- 'DgfZA3m',
1819
- 'Bwf4rMLSzvnPEMvcExrLCW',
1820
- 'y2XHAw0GzMfPBgvK',
1821
- 'rMLSzsbUB3qGzM91BMq6ia',
2188
+ 'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
2189
+ '6k+35Rgcia',
2190
+ 'zMv0y2HjBxbS',
2191
+ 'zM9Yy2vszwzYzxnO',
2192
+ 'y2XHAw1uyxnRCW',
2193
+ 'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
2194
+ 'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
2195
+ 'zg06',
2196
+ 'l3DVCMTLCNmVzxnJywXHDgu',
2197
+ 'C2vUze1LC3nHz2u',
2198
+ 'yxr0ywnOBwvUDeLK',
2199
+ 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
2200
+ 'otyWnJu3BNPTBLPx',
1822
2201
  'ywDNCMvNyxrLswq',
1823
- 'Dgv4Dc9TyxjRzg93BG',
1824
- 'mZGYotiZEwLQzgrJ',
1825
- 'DxbKyxrLx3rHC2TFC3rHDhvZ',
1826
- 'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
1827
- 'ChvIBgLJ',
1828
- 'AhvTyw5Z',
1829
- 'yxr0ywnOBwvUDf9Pza',
1830
- 'BwfYA193ywL0Aw5Nx2LUChv0',
1831
- 'ignSywLTzwq',
1832
- 'CMvZB2X2zvrHCMDLDa',
1833
- 'Ahr0CdO',
1834
- 'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
1835
- 'D29YA2vYu2vZC2LVBKLK',
1836
- 'DgHYzwfK',
1837
- 'BwvTyMvYCW',
1838
- 'zgvJAxnPB25Z',
1839
- 'CMvHzf9OAxn0B3j5igzHAwXLza',
1840
- 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
1841
- 'lcbWCMv2Awv3pq',
1842
- 'zgf0yq',
2202
+ 'C2v0',
2203
+ 's0iPcKf0DgfJAg1LBNqGsuq6ia',
1843
2204
  'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
1844
- 'ywjVCNrLza',
1845
- 'khvUA25VD24P',
1846
- 'mtiXmeToAhrcCq',
1847
- 'z2v0x3DVCMTLCL9Yzxn1Bhq',
1848
- 'yxbWBgLJyxrPB24VEg1S',
1849
- 'zw50zxiTAgfUzg9MzIbMywLSzwq',
1850
- 'ywrK',
1851
- 'y2HLy2TnzxnZywDLCW',
1852
- 't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
1853
- 'DMLLD19MAwXLigzHAwXLza',
1854
- 'pgvTChr5pG',
1855
- 'vgHYzwfKihrHCMDLDdOG',
1856
- 'y29UDgvUDfr5Cgu',
1857
- 'C2LNBMfS',
1858
- 'y2XHAw1FDgfZA3m',
1859
- 'DMLLD19MAwXL',
1860
- 'Bg9JywXLq29TCgfYzq',
1861
- 'BgLZDfnLCNzLCG',
1862
- 'ndy4nJuYsNnqA2PY',
1863
- 'CMvHzf9OAxn0B3j5',
1864
- 'yxbWBgLJyxrPB24VCgrM',
1865
- 'DgfZA19Pza',
1866
- 'Aw5FChjVz3jLC3m',
1867
- 'BwvZC2fNzxm',
1868
- 'l3jLy2vPDMu',
1869
- 'BgLZDf9Zzxj2zxiGzMfPBgvK',
1870
- 'ywrKrxzLBNrmAxn0zw5LCG',
1871
- 'C2vUzgvYtMfTzq',
1872
- 'Dg9mB2nHBgvmB3DLCKnHC2u',
1873
- 'ue9tva',
1874
- 'mtiYngLprvL2yW',
1875
- 'C2vUzgvYugfYDgLJAxbHBNrjza',
1876
- 'Aw5FCMv2Awv3',
1877
- 'yM9KEvrLEhq',
1878
- 'DMLZAwjPBgL0Eq',
1879
- 'y2HLy2TFBwvZC2fNzxm',
1880
- 'ywDLBNq',
1881
- 'yxr0ywnOBwvUDeLK',
1882
- 'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
1883
- 'C2vYDMvYvxjS',
1884
- 'zgvZDhjVEwvK',
2205
+ 'ywXS',
2206
+ 'C3rVCe1HAw49Dhj1zq',
2207
+ 'mJmYnJa1nNPquMrMrW',
2208
+ 'w3rHCMDLDd0',
2209
+ 'ywDLBNrjza',
2210
+ 'y3jLyxrLx3rHC2TZigzHAwXLza',
2211
+ 'C3rVCe1HAw4',
2212
+ 'CNvUswq',
2213
+ 'Dgv4Dc9WBgfPBG',
2214
+ 'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
2215
+ 'ls13B3jRzxiTBw9Kzq',
2216
+ 'CMvJB3jK',
2217
+ 'CMvWBgfJzq',
2218
+ 'l3rHC2TZpW',
1885
2219
  'Axnoyu4',
1886
- 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
1887
- 'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
1888
- 'Dw5RBM93BG',
1889
- 'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
1890
- 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
1891
- 'AM9PBG',
1892
- 'C2vUze1LC3nHz2u',
1893
- 'l3rHC2TZl3vUy2XHAw0',
1894
- 'Aw1Hz2uVCg5N',
1895
- 'yMfZzw5HBwu',
1896
- 'tM8GDgfZA3mGy2XHAw1Lzc4',
1897
- 'v29YA2vYia',
1898
- 'BNvTyMvY',
1899
- 'BMv4Df9ZDgvWCW',
1900
- 'C2XPy2u',
1901
- 'CNvUBMLUzW',
1902
- 'BwvZC2fNzq',
1903
- 'iYmGu2vYDMvYoIa',
2220
+ 'lsaJ',
2221
+ 'y2HHDa',
2222
+ 'y29UDgvUDc10ExbL',
2223
+ 'C29YDa',
2224
+ 'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
1904
2225
  'DgHYzwfKu2HVCNrjza',
1905
- 'yMXVy2TLza',
1906
- 'yxjYyxK',
1907
- 'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
1908
- 'C2vYDMvY',
1909
- 'zgfLBw9UqxbPs2v5',
1910
- 'ANnVBG',
1911
- 'Dg9KBW',
1912
- 'CgfYDgLJAxbHBNq',
1913
- 'Bwf4',
1914
- 'Bwv0yq',
1915
- 'DhjPBq',
1916
- 'v29YA2vYici',
2226
+ 'DxbKyxrLvgfZA1n0yxr1CW',
2227
+ 'l3vWBg9Hza',
1917
2228
  'ywz0zxjtzxe',
1918
- 'Aw5JBhvKzxm',
1919
- 'sfruuca',
1920
- 'BMv4Den1CNnVCG',
1921
- 'DgvZDa',
1922
- 'zxH0BMfTzq',
1923
- 'iIbUB3qGzM91BMq',
1924
- 'AhvTyw4',
1925
- 'zM9Yy2vszwzYzxnO',
1926
- 'iJOGC3rHDhvZpq',
1927
- 'D29YA2vYtw9Kzq',
1928
- 'lNnSB2nR',
1929
- 'D29YA2vYx3nLC3nPB25FAwq',
1930
- 'AwrSzq',
1931
- 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
1932
- 'l3jLC29SDMuTy2HHBM5LBa',
1933
- 'ywDNCMvNyxrLswrZ',
1934
- 'y2HHBM5LBfrHCMDLDa',
1935
- 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
1936
- 'D29YA2vYsgfUzg9MzKvYCM9Y',
1937
- 'z2v0tw9UDgG',
1938
- 'BwvKAxvT',
1939
- 'zMLSDgvY',
1940
- 'ls13B3jRzxiTC2vZC2LVBI1Pza',
1941
- 'Aw1Hz2uVD2vICa',
2229
+ 'vgfZAZOG',
2230
+ 'y3vYC29Y',
2231
+ 'C3rHCNrZv2L0Aa',
1942
2232
  'D29YA2vYtw9KzuvUywjSzwq',
1943
- 'C2vZC2LVBKLK',
1944
- 'DxnLCG',
1945
- 'D29YA19RzxK',
1946
- 'lsaJ',
1947
- 'B3bLBL9PC3n1zxm',
2233
+ 'B3jPz2LUywXgAwXLBMfTzq',
1948
2234
  'zMLSzw5HBwu',
1949
- 'zg9Uzq',
1950
- 'DgfZAY0',
1951
- 'Bwf0y2Hoyw1L',
1952
- 'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
1953
- 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
1954
- 'y2HHBM5LBe5HBwu',
1955
- 'DgfZA0LK',
1956
- 'CgfYC2vjBNq',
1957
- 'l3DVCMTLCNmVzxnJywXHDgu',
1958
- 'ndiXnJu5q1rLuNjw',
1959
- 'DgfZAW',
1960
- 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
1961
- 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
1962
- 'C2vX',
1963
- 'zgfLBw9Utg9JywXvCMW',
1964
- 'C2vUzf9TzxnZywDL',
1965
- 'zMLUAxnOx3DVCMTLCG',
1966
- 'y3jLyxrLx3rHC2TZ',
1967
- 'D29YA2vYrgLZCg9ZAxrPB249',
1968
- 'ywDNCMvNyxrLvhLWzq',
1969
- 'Dw5JBgfPBv90yxnR',
1970
- 'Dgv4Dc9WBgfPBG',
1971
- 'C3rYAw5N',
1972
- 'ChvZAa',
2235
+ 'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
2236
+ 'lNnSB2nR',
2237
+ 'CgfYDgLJAxbHBNq',
2238
+ 'DgHYzwfKtNvTyMvY',
2239
+ 'BwLU',
2240
+ 'DgfZA0rLBgL2zxj5tw9Kzq',
2241
+ 'l3jLy2vPDMu',
2242
+ 'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
1973
2243
  'AgLNAa',
1974
- 'zgvZy3jPyMu',
1975
- 'ls1KywvTB24TyxbPlwTLEq',
1976
- 'yxbWBgLJyxrPB24VANnVBG',
1977
- 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
1978
- 'BgLZDfrHC2TZ',
1979
- 'zMLUAxnOx3DVCMTLCIbMywLSzwq',
1980
- 'z2v0u2vJB25KCW',
1981
- 'ig1LC3nHz2u9',
2244
+ 'C2vUzgvYvhLWzq',
2245
+ 'AM9PBG',
2246
+ 'y2XHAw0GzMfPBgvK',
2247
+ 'y3jLyxrLvgfZA3m',
2248
+ 'r0vu',
2249
+ 'yxv0BZO',
2250
+ 'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
2251
+ 'C2vUzgvYugfYDgLJAxbHBNrjza',
2252
+ 'CgfYDgLJAxbHBNrjza',
2253
+ 'BwvZC2fNzq',
2254
+ 'CMvZDwX0CW',
2255
+ 'BwfW',
2256
+ 'D2fPDgLUz19PBNb1Da',
2257
+ 'DxbKyxrL',
2258
+ 'y2HHBM5LBfrHCMDLDa',
2259
+ 'ls1ZzxnZAw9UlwLK',
2260
+ 'C2nOzwr1BgvKrM9Y',
2261
+ 'ig1ZzZ1Oyw5KB2zMihrPBwu9',
2262
+ 'D29YA2vYx3nLC3nPB25FAwq',
2263
+ 'C3rYAw5NAwz5',
2264
+ 'DgfZA19Pza',
2265
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
2266
+ 'D3nZoG',
2267
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
2268
+ 'BNvTyMvY',
2269
+ 'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
2270
+ 'DgHYzwfKx3rHCMDLDa',
2271
+ 'CM9VDe1LC3nHz2vjza',
2272
+ 'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
2273
+ 'Bwf4rMLSzvnPEMvcExrLCW',
2274
+ 'ywjVCNq',
2275
+ 'zw50CMLLCW',
2276
+ 'DgHYzwfKswq',
2277
+ 'zw51Bq',
2278
+ 'z2v0',
2279
+ 'z2v0x3DVCMTLCL9ZDgf0Dxm',
1982
2280
  'zMLSzxnFy2HHBMDLza',
1983
- 'zxHWAxjLC0f0',
1984
- 'Aw1Hz2uVANbLzW',
1985
- 'AxnbyNnVBhv0zq',
1986
- 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
1987
- 'y3jLyxrLzef0',
1988
2281
  'ig1LC3nHz2vZkqOk',
1989
- 'B3b0Aw9UywW',
1990
- 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
1991
- 'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
1992
- 'ChjVDg9JB2W',
1993
- 'Aw5PDgLHBeXHC3rtzwvUu2vX',
1994
- 'ihn0yxr1CZ0',
1995
- 'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
1996
- 'D2fPDgLUz19PBNb1Da',
1997
- 'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
1998
- 'vgfZAZOG',
1999
- 'z2v0rgf0zq',
2000
- 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
2001
- 'r0vu',
2002
- 'mJe5mgj5r1HMqG',
2003
- 'zNjVBq',
2004
- 'zgLZCg9ZAxrPB24',
2282
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
2283
+ 'DgvZDa',
2005
2284
  'z2v0twLUDxrLCW',
2006
- 'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
2007
- 'y29UDgvUDc10ExbL',
2285
+ 'y3jLyxrLzef0',
2286
+ 'y2fJAgveAxi',
2287
+ 'icHPzdO',
2288
+ 'BgLZDf90yxnRCW',
2289
+ 'kgXLz2fJEsK',
2290
+ 'ywrK',
2291
+ 'l3n0yxj0',
2292
+ 'ywDNCMvNyxrLswrZ',
2293
+ 'zMLUAxnOx3DVCMTLCIbMywLSzwq',
2294
+ 'C3rYAw5N',
2295
+ 'yxbWBgLJyxrPB24VANnVBG',
2296
+ '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
2297
+ 'n3rAqNfXva',
2298
+ 'Dg9tDhjPBMC',
2299
+ 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
2300
+ 'DxrMoa',
2301
+ 'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
2302
+ 'Aw5JBhvKzxm',
2303
+ 'BMv4Den1CNnVCG',
2304
+ 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
2305
+ 'ls1KywvTB24TBg9JywWTDxjS',
2306
+ 'zg0T',
2307
+ 'A2LUza',
2308
+ 'lIbnzxnZywDLieLeoIa',
2309
+ 'l2zPBMLZAa',
2310
+ 'ANnVBG',
2311
+ 'y2HHBM5LBe5HBwu',
2312
+ 'DMfSDwvZ',
2313
+ 'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
2314
+ 'DMfSDwu',
2315
+ 'z2v0sg91CNm',
2316
+ 'zxHLy3v0Aw9Utw9Kzq',
2317
+ 'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
2318
+ 'z2v0x3DVCMTLCL9Yzxn1Bhq',
2319
+ 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
2320
+ 'Ahr0CdO',
2321
+ 'C2vUzgvYtMfTzq',
2322
+ 'C2L6zuj5DgvZ',
2323
+ 'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
2324
+ 'yxr0ywnOBwvUDenHy2HL',
2325
+ 'CMvZDw1Lx3bHy2TLDa',
2326
+ 't3jPz2LUywWGBwvZC2fNztOG',
2327
+ 'C29Tzq',
2328
+ 'DxnLCG',
2329
+ 'BwvTyMvY',
2330
+ 'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
2331
+ 'BwvZC2fNzxm',
2332
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
2333
+ 't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
2334
+ 'DgfZA051BwjLCG',
2335
+ 'uefuq0G',
2336
+ 'CMvHC29U',
2337
+ 'iIbUB3qGzM91BMq',
2338
+ 'ig1ZzZ0',
2339
+ 'zgvZy3jPChrPB24',
2340
+ 'BgLZDfnLCNzLCG',
2341
+ 'y2XHAw1FDgfZA3m',
2342
+ 'zxjYB3i',
2343
+ 'l3jLC29SDMuTy2HHBM5LBa',
2008
2344
  'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
2009
- 'igLUia',
2010
- 'y29UDgvUDa',
2011
- 'yxr0ywnOBwvUDf9Pzhm',
2012
- 'yxjYyxLcDwzMzxi',
2013
- 'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
2014
- 'lsba',
2015
- 'CMvZDwX0',
2016
- 'zMLSzv9WyxrO'
2345
+ 'ignSywLTzwq',
2346
+ 'Dw5JBgfPBv90yxnRigzHAwXLza',
2347
+ 'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
2348
+ 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
2349
+ 'CxvLDwvK',
2350
+ 'DxbKyxrLx3rHC2TFC3rHDhvZ',
2351
+ 'kg5VBMuP',
2352
+ 'ChvZAa',
2353
+ 'CMvZCg9UC2u',
2354
+ 'C2HHmJu2',
2355
+ 'yM9KEu1HCMTKB3DU',
2356
+ 'AhvTyw5Z'
2017
2357
  ];
2018
- _0x3714 = function () {
2019
- return _0x28ac96;
2020
- };
2021
- return _0x3714();
2022
- }
2023
- async function registerChatBridgeTools(_0x562250, _0x22eb8e, _0x2437f9) {
2024
- const _0xf27065 = {
2025
- _0x394908: 0x20f,
2026
- _0x5c1ed0: 0x14f,
2027
- _0x505129: 0x1de,
2028
- _0xc9dc79: 0x156,
2029
- _0x4d105c: 0x156,
2030
- _0x408f58: 0x223,
2031
- _0x5e0c36: 0x20f,
2032
- _0x53a0b2: 0x168,
2033
- _0x114a2d: 0x20f,
2034
- _0x5f4a03: 0x1ab,
2035
- _0x134646: 0x19f,
2036
- _0x23e332: 0x2ab,
2037
- _0x321d9b: 0x27e,
2038
- _0x31f0a7: 0x288,
2039
- _0x5efbf8: 0x140,
2040
- _0x3cfb3f: 0x2a6,
2041
- _0x578fbe: 0x135,
2042
- _0xb0b51e: 0x168,
2043
- _0x53f40f: 0x276,
2044
- _0x38f0a8: 0x296,
2045
- _0x46f880: 0x29e,
2046
- _0xdc30e8: 0x2a6,
2047
- _0x1a50f6: 0x294,
2048
- _0x4729a9: 0x168,
2049
- _0x2f070b: 0x156,
2050
- _0x48b868: 0x23e,
2051
- _0x242f77: 0x156,
2052
- _0x26bae8: 0x22a,
2053
- _0x547f93: 0x1ee,
2054
- _0x1495e4: 0x156,
2055
- _0x17e573: 0x156,
2056
- _0x4eb4c0: 0x277,
2057
- _0x4111c3: 0x246,
2058
- _0x137c9c: 0x156,
2059
- _0x1f3dc3: 0x156,
2060
- _0x4b6270: 0x28e,
2061
- _0x37289a: 0x156,
2062
- _0x56d5ab: 0x187,
2063
- _0x48fb9b: 0x2a5,
2064
- _0x10fb7a: 0x1a6,
2065
- _0x556c93: 0x156,
2066
- _0x170ee3: 0x168,
2067
- _0xd9bacb: 0x156,
2068
- _0x279172: 0x20f,
2069
- _0x38a365: 0x23c,
2070
- _0x29372f: 0x2a7,
2071
- _0xb0b475: 0x2bb,
2072
- _0x1282ff: 0x156
2073
- }, _0x59eec4 = { _0x5cf31b: 0x23c }, _0x1275fb = {
2074
- _0x10fe00: 0x2a2,
2075
- _0x1bdfbd: 0x15e
2076
- }, _0x2857f7 = { _0x117048: 0x2a2 }, _0x49e851 = {
2077
- _0x47b880: 0x2a2,
2078
- _0x477b01: 0x1d5
2079
- }, _0x15793d = {
2080
- _0x4090b8: 0x255,
2081
- _0x4133be: 0x2a2
2082
- }, _0x1e7f99 = {
2083
- _0x35029f: 0x154,
2084
- _0xe78729: 0x2a2,
2085
- _0x5d18dc: 0x23a
2086
- }, _0x2e81c7 = {
2087
- _0x3471dc: 0x2a2,
2088
- _0x4d63bf: 0x206
2089
- }, _0x2e0312 = {
2090
- _0x479ca3: 0x151,
2091
- _0x44da30: 0x2a2,
2092
- _0x4a4ed7: 0x1a7
2093
- }, _0x526e78 = { _0x576755: 0x1c9 }, _0x3c8885 = { _0x15014d: 0x2a2 }, _0x245f35 = { _0x55275d: 0x1ec }, _0x3e97b8 = _0x229703, {z: _0x128a5e} = await import(_0x3e97b8(0x237));
2094
- _0x562250[_0x3e97b8(_0xf27065._0x394908)](_0x3e97b8(_0xf27065._0x5c1ed0), _0x3e97b8(_0xf27065._0x505129), {
2095
- 'target': _0x128a5e['string'](),
2096
- 'content': _0x128a5e[_0x3e97b8(_0xf27065._0xc9dc79)](),
2097
- 'attachment_ids': _0x128a5e[_0x3e97b8(0x2a6)](_0x128a5e[_0x3e97b8(_0xf27065._0x4d105c)]())[_0x3e97b8(0x168)](),
2098
- 'visibility': _0x128a5e[_0x3e97b8(_0xf27065._0x408f58)]([
2099
- _0x3e97b8(0x257),
2100
- _0x3e97b8(0x185)
2101
- ])['optional']()[_0x3e97b8(0x159)](_0x3e97b8(0x270))
2102
- }, async _0x3916a3 => {
2103
- const _0x5dc7e = _0x3e97b8;
2104
- try {
2105
- return textResult(await _0x22eb8e[_0x5dc7e(0x14f)](_0x3916a3));
2106
- } catch (_0x533aa4) {
2107
- return textResult(_0x533aa4 instanceof Error ? _0x533aa4[_0x5dc7e(0x2a2)] : 'send_message\x20failed', !![]);
2108
- }
2109
- }), _0x562250[_0x3e97b8(_0xf27065._0x5e0c36)]('check_messages', 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
2110
- const _0x5a4301 = _0x3e97b8;
2111
- try {
2112
- return textResult(await _0x22eb8e[_0x5a4301(0x28b)]());
2113
- } catch (_0x41bde3) {
2114
- return textResult(_0x41bde3 instanceof Error ? _0x41bde3[_0x5a4301(0x2a2)] : _0x5a4301(_0x245f35._0x55275d), !![]);
2115
- }
2116
- }), _0x562250[_0x3e97b8(0x20f)]('read_history', _0x3e97b8(0x208), {
2117
- 'channel': _0x128a5e[_0x3e97b8(0x156)](),
2118
- 'limit': _0x128a5e['number']()[_0x3e97b8(_0xf27065._0x53a0b2)](),
2119
- 'before': _0x128a5e[_0x3e97b8(0x29e)]()[_0x3e97b8(0x168)](),
2120
- 'after': _0x128a5e['number']()[_0x3e97b8(_0xf27065._0x53a0b2)]()
2121
- }, async _0x30c541 => {
2122
- const _0x152c1b = _0x3e97b8;
2123
- try {
2124
- return textResult(await _0x22eb8e[_0x152c1b(0x27b)](_0x30c541));
2125
- } catch (_0x335171) {
2126
- return textResult(_0x335171 instanceof Error ? _0x335171[_0x152c1b(_0x3c8885._0x15014d)] : _0x152c1b(0x263), !![]);
2127
- }
2128
- }), _0x562250[_0x3e97b8(_0xf27065._0x114a2d)]('list_server', _0x3e97b8(_0xf27065._0x5f4a03), {}, async () => {
2129
- const _0x4dcbe4 = _0x3e97b8;
2130
- try {
2131
- return textResult(await _0x22eb8e[_0x4dcbe4(_0x526e78._0x576755)]());
2132
- } catch (_0x5b8020) {
2133
- return textResult(_0x5b8020 instanceof Error ? _0x5b8020[_0x4dcbe4(0x2a2)] : _0x4dcbe4(0x281), !![]);
2134
- }
2135
- }), _0x562250[_0x3e97b8(0x20f)](_0x3e97b8(0x19e), _0x3e97b8(_0xf27065._0x134646), {
2136
- 'channel': _0x128a5e['string'](),
2137
- 'status': _0x128a5e[_0x3e97b8(0x223)]([
2138
- _0x3e97b8(_0xf27065._0x23e332),
2139
- _0x3e97b8(_0xf27065._0x321d9b),
2140
- _0x3e97b8(_0xf27065._0x31f0a7),
2141
- _0x3e97b8(_0xf27065._0x5efbf8)
2142
- ])['optional']()
2143
- }, async _0x41ece3 => {
2144
- try {
2145
- return textResult(await _0x22eb8e['list_tasks'](_0x41ece3));
2146
- } catch (_0x2b9a4d) {
2147
- return textResult(_0x2b9a4d instanceof Error ? _0x2b9a4d['message'] : 'list_tasks\x20failed', !![]);
2148
- }
2149
- }), _0x562250[_0x3e97b8(0x20f)](_0x3e97b8(0x151), _0x3e97b8(0x12e), {
2150
- 'channel': _0x128a5e['string'](),
2151
- 'idempotency_key': _0x128a5e[_0x3e97b8(0x156)]()[_0x3e97b8(0x168)](),
2152
- 'tasks': _0x128a5e[_0x3e97b8(_0xf27065._0x3cfb3f)](_0x128a5e[_0x3e97b8(0x1f8)]({
2153
- 'title': _0x128a5e['string'](),
2154
- 'description': _0x128a5e[_0x3e97b8(0x156)]()[_0x3e97b8(0x168)](),
2155
- 'priority': _0x128a5e[_0x3e97b8(0x223)]([
2156
- _0x3e97b8(0x22c),
2157
- _0x3e97b8(_0xf27065._0x578fbe),
2158
- _0x3e97b8(0x158),
2159
- 'urgent'
2160
- ])[_0x3e97b8(_0xf27065._0xb0b51e)]()
2161
- }))
2162
- }, async _0x53920c => {
2163
- const _0x161d6f = _0x3e97b8;
2164
- try {
2165
- return textResult(await _0x22eb8e[_0x161d6f(_0x2e0312._0x479ca3)](_0x53920c));
2166
- } catch (_0xbf9c3e) {
2167
- return textResult(_0xbf9c3e instanceof Error ? _0xbf9c3e[_0x161d6f(_0x2e0312._0x44da30)] : _0x161d6f(_0x2e0312._0x4a4ed7), !![]);
2168
- }
2169
- }), _0x562250[_0x3e97b8(_0xf27065._0x5e0c36)](_0x3e97b8(_0xf27065._0x53f40f), _0x3e97b8(_0xf27065._0x38f0a8), {
2170
- 'channel': _0x128a5e[_0x3e97b8(0x156)](),
2171
- 'task_numbers': _0x128a5e['array'](_0x128a5e[_0x3e97b8(_0xf27065._0x46f880)]())[_0x3e97b8(_0xf27065._0x53a0b2)](),
2172
- 'message_ids': _0x128a5e[_0x3e97b8(_0xf27065._0xdc30e8)](_0x128a5e['string']())['optional'](),
2173
- 'evidence': _0x128a5e[_0x3e97b8(0x1aa)](_0x128a5e[_0x3e97b8(_0xf27065._0x4d105c)](), _0x128a5e[_0x3e97b8(0x1f8)]({
2174
- 'create_thread': _0x128a5e[_0x3e97b8(0x294)]()[_0x3e97b8(0x168)](),
2175
- 'create_task': _0x128a5e[_0x3e97b8(_0xf27065._0x1a50f6)]()[_0x3e97b8(0x168)]()
2176
- }))[_0x3e97b8(0x168)](),
2177
- 'idempotency_key': _0x128a5e['string']()[_0x3e97b8(_0xf27065._0x4729a9)]()
2178
- }, async _0x251d43 => {
2179
- const _0x4feace = _0x3e97b8;
2180
- try {
2181
- return textResult(await _0x22eb8e[_0x4feace(0x276)](_0x251d43));
2182
- } catch (_0xdd235) {
2183
- return textResult(_0xdd235 instanceof Error ? _0xdd235[_0x4feace(_0x2e81c7._0x3471dc)] : _0x4feace(_0x2e81c7._0x4d63bf), !![]);
2184
- }
2185
- }), _0x562250[_0x3e97b8(_0xf27065._0x394908)](_0x3e97b8(0x154), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.', {
2186
- 'channel': _0x128a5e[_0x3e97b8(_0xf27065._0x2f070b)](),
2187
- 'task_number': _0x128a5e[_0x3e97b8(0x29e)](),
2188
- 'idempotency_key': _0x128a5e[_0x3e97b8(_0xf27065._0xc9dc79)]()[_0x3e97b8(0x168)]()
2189
- }, async _0x3aa07e => {
2190
- const _0x47921c = _0x3e97b8;
2191
- try {
2192
- return textResult(await _0x22eb8e[_0x47921c(_0x1e7f99._0x35029f)](_0x3aa07e));
2193
- } catch (_0x1d6f6f) {
2194
- return textResult(_0x1d6f6f instanceof Error ? _0x1d6f6f[_0x47921c(_0x1e7f99._0xe78729)] : _0x47921c(_0x1e7f99._0x5d18dc), !![]);
2195
- }
2196
- }), _0x562250[_0x3e97b8(0x20f)]('update_task_status', _0x3e97b8(_0xf27065._0x48b868), {
2197
- 'channel': _0x128a5e['string'](),
2198
- 'task_number': _0x128a5e[_0x3e97b8(0x29e)](),
2199
- 'status': _0x128a5e[_0x3e97b8(0x223)]([
2200
- 'todo',
2201
- 'in_progress',
2202
- _0x3e97b8(0x288),
2203
- 'done'
2204
- ]),
2205
- 'idempotency_key': _0x128a5e[_0x3e97b8(_0xf27065._0x242f77)]()[_0x3e97b8(0x168)]()
2206
- }, async _0x147c7c => {
2207
- const _0x10449a = _0x3e97b8;
2208
- try {
2209
- return textResult(await _0x22eb8e[_0x10449a(_0x15793d._0x4090b8)](_0x147c7c));
2210
- } catch (_0x81058a) {
2211
- return textResult(_0x81058a instanceof Error ? _0x81058a[_0x10449a(_0x15793d._0x4133be)] : 'update_task_status\x20failed', !![]);
2212
- }
2213
- }), _0x562250[_0x3e97b8(0x20f)](_0x3e97b8(_0xf27065._0x26bae8), _0x3e97b8(_0xf27065._0x547f93), {
2214
- 'channel': _0x128a5e[_0x3e97b8(_0xf27065._0x1495e4)](),
2215
- 'file_path': _0x128a5e[_0x3e97b8(_0xf27065._0x17e573)]()
2216
- }, async _0x280dc4 => {
2217
- const _0x5996fe = _0x3e97b8;
2218
- try {
2219
- return textResult(await _0x22eb8e[_0x5996fe(0x22a)](_0x280dc4));
2220
- } catch (_0x5add96) {
2221
- return textResult(_0x5add96 instanceof Error ? _0x5add96[_0x5996fe(_0x49e851._0x47b880)] : _0x5996fe(_0x49e851._0x477b01), !![]);
2222
- }
2223
- }), _0x562250[_0x3e97b8(0x20f)](_0x3e97b8(_0xf27065._0x4eb4c0), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x128a5e[_0x3e97b8(0x156)]() }, async _0x3ff7a1 => {
2224
- const _0x32aaeb = _0x3e97b8;
2225
- try {
2226
- return textResult(await _0x22eb8e['view_file'](_0x3ff7a1));
2227
- } catch (_0x30e159) {
2228
- return textResult(_0x30e159 instanceof Error ? _0x30e159['message'] : _0x32aaeb(0x271), !![]);
2229
- }
2230
- }), _0x562250[_0x3e97b8(0x20f)](_0x3e97b8(0x221), _0x3e97b8(_0xf27065._0x4111c3), { 'work_key': _0x128a5e[_0x3e97b8(_0xf27065._0x137c9c)]() }, async _0x5f1c42 => {
2231
- const _0x42cd96 = _0x3e97b8;
2232
- try {
2233
- return textResult(await _0x22eb8e['get_worker_status'](_0x5f1c42));
2234
- } catch (_0x12753d) {
2235
- return textResult(_0x12753d instanceof Error ? _0x12753d[_0x42cd96(_0x2857f7._0x117048)] : 'get_worker_status\x20failed', !![]);
2236
- }
2237
- }), _0x562250[_0x3e97b8(0x20f)](_0x3e97b8(0x26b), _0x3e97b8(0x1b4), { 'work_key': _0x128a5e[_0x3e97b8(_0xf27065._0x1f3dc3)]() }, async _0x4254d8 => {
2238
- try {
2239
- return textResult(await _0x22eb8e['get_worker_result'](_0x4254d8));
2240
- } catch (_0x6563c4) {
2241
- return textResult(_0x6563c4 instanceof Error ? _0x6563c4['message'] : 'get_worker_result\x20failed', !![]);
2242
- }
2243
- }), _0x562250['tool'](_0x3e97b8(0x150), _0x3e97b8(_0xf27065._0x4b6270), {
2244
- 'work_key': _0x128a5e[_0x3e97b8(_0xf27065._0x37289a)](),
2245
- 'result': _0x128a5e['enum']([
2246
- _0x3e97b8(_0xf27065._0x56d5ab),
2247
- _0x3e97b8(_0xf27065._0x48fb9b),
2248
- _0x3e97b8(_0xf27065._0x10fb7a)
2249
- ]),
2250
- 'summary': _0x128a5e[_0x3e97b8(0x156)](),
2251
- 'decisions': _0x128a5e[_0x3e97b8(0x2a6)](_0x128a5e[_0x3e97b8(0x156)]())['optional'](),
2252
- 'files_changed': _0x128a5e[_0x3e97b8(0x2a6)](_0x128a5e[_0x3e97b8(_0xf27065._0x556c93)]())[_0x3e97b8(_0xf27065._0x170ee3)](),
2253
- 'open_issues': _0x128a5e[_0x3e97b8(0x2a6)](_0x128a5e[_0x3e97b8(0x156)]())['optional'](),
2254
- 'next_steps': _0x128a5e[_0x3e97b8(0x2a6)](_0x128a5e[_0x3e97b8(_0xf27065._0xd9bacb)]())[_0x3e97b8(0x168)]()
2255
- }, async _0x29bf44 => {
2256
- const _0x29a652 = _0x3e97b8;
2257
- try {
2258
- return textResult(await _0x22eb8e[_0x29a652(0x150)](_0x29bf44));
2259
- } catch (_0x400917) {
2260
- return textResult(_0x400917 instanceof Error ? _0x400917[_0x29a652(_0x1275fb._0x10fe00)] : _0x29a652(_0x1275fb._0x1bdfbd), !![]);
2261
- }
2262
- }), _0x562250[_0x3e97b8(_0xf27065._0x279172)](_0x3e97b8(_0xf27065._0x38a365), _0x3e97b8(_0xf27065._0x29372f), {
2263
- 'work_key': _0x128a5e[_0x3e97b8(_0xf27065._0x1f3dc3)](),
2264
- 'reason': _0x128a5e['string']()
2265
- }, async _0x12dd06 => {
2266
- const _0x44af94 = _0x3e97b8;
2267
- try {
2268
- return textResult(await _0x22eb8e[_0x44af94(_0x59eec4._0x5cf31b)](_0x12dd06));
2269
- } catch (_0x3babc0) {
2270
- return textResult(_0x3babc0 instanceof Error ? _0x3babc0[_0x44af94(0x2a2)] : _0x44af94(0x14c), !![]);
2271
- }
2272
- }), _0x2437f9?.[_0x3e97b8(_0xf27065._0xb0b475)] && _0x562250[_0x3e97b8(_0xf27065._0x114a2d)](_0x3e97b8(0x25a), _0x3e97b8(0x196), { 'work_key': _0x128a5e[_0x3e97b8(_0xf27065._0x1282ff)]() }, async _0x9b2886 => {
2273
- const _0x4370bf = _0x3e97b8;
2274
- try {
2275
- return textResult(await _0x22eb8e[_0x4370bf(0x25a)](_0x9b2886));
2276
- } catch (_0x34a0ef) {
2277
- return textResult(_0x34a0ef instanceof Error ? _0x34a0ef[_0x4370bf(0x2a2)] : _0x4370bf(0x292), !![]);
2278
- }
2279
- });
2280
- }
2281
- async function createChatBridgeServer(_0xcf54a4) {
2282
- const _0x351e91 = {
2283
- _0x35db39: 0x132,
2284
- _0x398bab: 0x2bb
2285
- }, _0x40a50b = _0x229703, {McpServer: _0x280c28} = await import(_0x40a50b(_0x351e91._0x35db39)), _0xece01d = new _0x280c28({
2286
- 'name': 'chat',
2287
- 'version': _0x40a50b(0x1a1)
2288
- }), _0x203499 = createChatBridgeHandlers(_0xcf54a4);
2289
- return await registerChatBridgeTools(_0xece01d, _0x203499, { 'workerMode': _0xcf54a4[_0x40a50b(_0x351e91._0x398bab)] }), {
2290
- 'handlers': _0x203499,
2291
- 'server': _0xece01d
2292
- };
2293
- }
2294
- function readFlag(_0x259526, _0x484307) {
2295
- const _0x4f9205 = _0x229703, _0x5e9fd0 = _0x259526[_0x4f9205(0x213)](_0x484307);
2296
- if (_0x5e9fd0 === -0x1)
2297
- return void 0x0;
2298
- return _0x259526[_0x5e9fd0 + 0x1];
2299
- }
2300
- function parseChatBridgeArgs(_0x567af8) {
2301
- const _0x3e65c7 = {
2302
- _0x5ed796: 0x1cf,
2303
- _0x26860c: 0x15a,
2304
- _0x235abc: 0x16a,
2305
- _0x293534: 0x19d,
2306
- _0x316d8f: 0x1ef,
2307
- _0x258380: 0x1d6,
2308
- _0x20de4b: 0x22b,
2309
- _0x4e8cb5: 0x1af,
2310
- _0x131279: 0x17b
2311
- }, _0x56923b = _0x229703, _0xc3ba35 = readFlag(_0x567af8, _0x56923b(_0x3e65c7._0x5ed796)), _0x1ee95b = readFlag(_0x567af8, _0x56923b(_0x3e65c7._0x26860c)), _0x14d79c = readFlag(_0x567af8, _0x56923b(_0x3e65c7._0x235abc)), _0x1fa5da = readFlag(_0x567af8, '--server-url') ?? _0x56923b(_0x3e65c7._0x293534), _0x2e7cea = readFlag(_0x567af8, _0x56923b(0x235)), _0x45b0c2 = readFlag(_0x567af8, _0x56923b(_0x3e65c7._0x316d8f)), _0x1c06d9 = readFlag(_0x567af8, '--worker-mode-enabled'), _0x4159b7 = readFlag(_0x567af8, _0x56923b(0x137)), _0x216383 = readFlag(_0x567af8, _0x56923b(_0x3e65c7._0x258380)), _0x1bfd41 = _0x567af8['includes'](_0x56923b(_0x3e65c7._0x20de4b)), _0x51a21a = _0x14d79c === void 0x0 ? void 0x0 : Number[_0x56923b(0x147)](_0x14d79c, 0xa);
2312
- if (!_0xc3ba35)
2313
- throw new Error(_0x56923b(_0x3e65c7._0x4e8cb5));
2314
- if (!_0x1ee95b)
2315
- throw new Error(_0x56923b(_0x3e65c7._0x131279));
2316
- if (_0x14d79c !== void 0x0 && (_0x51a21a === void 0x0 || !Number[_0x56923b(0x216)](_0x51a21a) || _0x51a21a < 0x0))
2317
- throw new Error('Invalid\x20--initial-last-seen-seq');
2318
- return {
2319
- 'agentId': _0xc3ba35,
2320
- 'daemonApiKey': _0x1ee95b,
2321
- 'daemonLocalUrl': _0x2e7cea,
2322
- 'initialLastSeenSeq': _0x51a21a,
2323
- 'sessionId': _0x45b0c2,
2324
- 'serverUrl': _0x1fa5da,
2325
- 'workerModeEnabled': _0x1c06d9 === void 0x0 ? void 0x0 : _0x1c06d9 !== _0x56923b(0x224),
2326
- 'workerSessionId': _0x4159b7,
2327
- 'workerThreadTarget': _0x216383,
2328
- 'workerMode': _0x1bfd41
2358
+ _0x11ab = function () {
2359
+ return _0x12e639;
2329
2360
  };
2361
+ return _0x11ab();
2330
2362
  }
2331
- async function runChatBridgeCli(_0x4d9419) {
2332
- const _0x2d7ab3 = {
2333
- _0x1cea88: 0x222,
2334
- _0xe7c37f: 0x14e,
2335
- _0x56c5b2: 0x2bb
2336
- }, _0xdb5010 = _0x229703, _0x429fde = parseChatBridgeArgs(_0x4d9419), {StdioServerTransport: _0x3954d6} = await import(_0xdb5010(_0x2d7ab3._0x1cea88)), _0x56297c = createInternalAgentClient(_0x429fde), _0x100597 = createAttachmentCache(), _0x2a9cfa = await createChatBridgeServer({
2337
- 'agentId': _0x429fde['agentId'],
2338
- 'attachmentCache': _0x100597,
2339
- 'client': _0x56297c,
2340
- 'daemonLocalUrl': _0x429fde[_0xdb5010(_0x2d7ab3._0xe7c37f)],
2341
- 'uploadPreparer': prepareUploadFile,
2342
- 'workerModeEnabled': _0x429fde[_0xdb5010(0x139)],
2343
- 'workerMode': _0x429fde[_0xdb5010(_0x2d7ab3._0x56c5b2)]
2344
- });
2345
- await _0x2a9cfa[_0xdb5010(0x2a8)]['connect'](new _0x3954d6());
2346
- }
2347
- var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process[_0x229703(0x248)][0x1])[_0x229703(0x191)] : ![];
2348
- executedAsEntry && await runChatBridgeCli(process[_0x229703(0x248)][_0x229703(0x2a0)](0x2));
2349
2363
  export {
2350
2364
  createChatBridgeHandlers,
2351
2365
  createChatBridgeServer,