@dscord/daemon 0.1.42 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat-bridge.js +2104 -2115
- package/dist/index.js +8783 -8796
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,22 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
function _0x4754(_0x1a992b, _0x2c03da) {
|
|
2
|
+
_0x1a992b = _0x1a992b - 0xce;
|
|
3
|
+
const _0x4cbf2b = _0x4cbf();
|
|
4
|
+
let _0x475477 = _0x4cbf2b[_0x1a992b];
|
|
5
|
+
if (_0x4754['mOANpg'] === undefined) {
|
|
6
|
+
var _0x321fbd = function (_0x596030) {
|
|
7
|
+
const _0x2cd77d = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
8
|
+
let _0x55c6fc = '', _0x5da96b = '';
|
|
9
|
+
for (let _0x24ab4e = 0x0, _0x3fcd39, _0x52091d, _0x77189c = 0x0; _0x52091d = _0x596030['charAt'](_0x77189c++); ~_0x52091d && (_0x3fcd39 = _0x24ab4e % 0x4 ? _0x3fcd39 * 0x40 + _0x52091d : _0x52091d, _0x24ab4e++ % 0x4) ? _0x55c6fc += String['fromCharCode'](0xff & _0x3fcd39 >> (-0x2 * _0x24ab4e & 0x6)) : 0x0) {
|
|
10
|
+
_0x52091d = _0x2cd77d['indexOf'](_0x52091d);
|
|
11
|
+
}
|
|
12
|
+
for (let _0x52024a = 0x0, _0x1bcc69 = _0x55c6fc['length']; _0x52024a < _0x1bcc69; _0x52024a++) {
|
|
13
|
+
_0x5da96b += '%' + ('00' + _0x55c6fc['charCodeAt'](_0x52024a)['toString'](0x10))['slice'](-0x2);
|
|
14
|
+
}
|
|
15
|
+
return decodeURIComponent(_0x5da96b);
|
|
16
|
+
};
|
|
17
|
+
_0x4754['LmbUqo'] = _0x321fbd, _0x4754['WXYPfn'] = {}, _0x4754['mOANpg'] = !![];
|
|
18
|
+
}
|
|
19
|
+
const _0x2eb491 = _0x4cbf2b[0x0], _0x3e78e2 = _0x1a992b + _0x2eb491, _0x4bfd19 = _0x4754['WXYPfn'][_0x3e78e2];
|
|
20
|
+
return !_0x4bfd19 ? (_0x475477 = _0x4754['LmbUqo'](_0x475477), _0x4754['WXYPfn'][_0x3e78e2] = _0x475477) : _0x475477 = _0x4bfd19, _0x475477;
|
|
21
|
+
}
|
|
22
|
+
const _0x27ce1c = _0x4754;
|
|
23
|
+
(function (_0x4e403d, _0x3d80f6) {
|
|
24
|
+
const _0x3569b1 = {
|
|
25
|
+
_0x4ba8b0: 0x1cb,
|
|
26
|
+
_0x24c73c: 0x135,
|
|
27
|
+
_0x585230: 0x17e,
|
|
28
|
+
_0x65b7a7: 0x13a,
|
|
29
|
+
_0x133f0d: 0xd7,
|
|
30
|
+
_0x588695: 0x1c9
|
|
31
|
+
}, _0x3c078a = _0x4754, _0x2ed3e5 = _0x4e403d();
|
|
8
32
|
while (!![]) {
|
|
9
33
|
try {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
34
|
+
const _0x3c60ac = parseInt(_0x3c078a(_0x3569b1._0x4ba8b0)) / 0x1 * (-parseInt(_0x3c078a(0x16b)) / 0x2) + -parseInt(_0x3c078a(_0x3569b1._0x24c73c)) / 0x3 + parseInt(_0x3c078a(0x168)) / 0x4 * (-parseInt(_0x3c078a(_0x3569b1._0x585230)) / 0x5) + -parseInt(_0x3c078a(_0x3569b1._0x65b7a7)) / 0x6 * (parseInt(_0x3c078a(0x1d0)) / 0x7) + parseInt(_0x3c078a(_0x3569b1._0x133f0d)) / 0x8 * (-parseInt(_0x3c078a(0x17c)) / 0x9) + -parseInt(_0x3c078a(_0x3569b1._0x588695)) / 0xa * (-parseInt(_0x3c078a(0x166)) / 0xb) + parseInt(_0x3c078a(0x249)) / 0xc;
|
|
35
|
+
if (_0x3c60ac === _0x3d80f6)
|
|
12
36
|
break;
|
|
13
37
|
else
|
|
14
|
-
|
|
15
|
-
} catch (
|
|
16
|
-
|
|
38
|
+
_0x2ed3e5['push'](_0x2ed3e5['shift']());
|
|
39
|
+
} catch (_0x1d0587) {
|
|
40
|
+
_0x2ed3e5['push'](_0x2ed3e5['shift']());
|
|
17
41
|
}
|
|
18
42
|
}
|
|
19
|
-
}(
|
|
43
|
+
}(_0x4cbf, 0xa0d1f));
|
|
20
44
|
import { pathToFileURL } from 'node:url';
|
|
21
45
|
import {
|
|
22
46
|
mkdir,
|
|
@@ -26,106 +50,77 @@ import {
|
|
|
26
50
|
writeFile
|
|
27
51
|
} from 'node:fs/promises';
|
|
28
52
|
import { homedir } from 'node:os';
|
|
29
|
-
|
|
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';
|
|
53
|
+
import _0x55c6fc from 'node:path';
|
|
51
54
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
52
|
-
'.csv':
|
|
53
|
-
'.gif':
|
|
54
|
-
'.jpeg':
|
|
55
|
-
'.jpg':
|
|
55
|
+
'.csv': _0x27ce1c(0x1da),
|
|
56
|
+
'.gif': _0x27ce1c(0x180),
|
|
57
|
+
'.jpeg': _0x27ce1c(0x126),
|
|
58
|
+
'.jpg': _0x27ce1c(0x126),
|
|
56
59
|
'.json': 'application/json',
|
|
57
|
-
'.md':
|
|
60
|
+
'.md': _0x27ce1c(0x16f),
|
|
58
61
|
'.pdf': 'application/pdf',
|
|
59
62
|
'.png': 'image/png',
|
|
60
|
-
'.svg':
|
|
61
|
-
'.txt':
|
|
62
|
-
'.webp':
|
|
63
|
-
'.xml':
|
|
64
|
-
'.zip':
|
|
63
|
+
'.svg': 'image/svg+xml',
|
|
64
|
+
'.txt': _0x27ce1c(0x153),
|
|
65
|
+
'.webp': _0x27ce1c(0x191),
|
|
66
|
+
'.xml': _0x27ce1c(0x21a),
|
|
67
|
+
'.zip': _0x27ce1c(0x167)
|
|
65
68
|
};
|
|
66
|
-
function guessContentType(
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
+
function guessContentType(_0x5da96b) {
|
|
70
|
+
const _0xf5a365 = {
|
|
71
|
+
_0x53becf: 0x152,
|
|
72
|
+
_0x516573: 0x1d1,
|
|
73
|
+
_0x24f7dd: 0x124
|
|
74
|
+
}, _0x4e15d9 = _0x27ce1c;
|
|
75
|
+
return MIME_BY_EXTENSION[_0x55c6fc[_0x4e15d9(_0xf5a365._0x53becf)](_0x5da96b)[_0x4e15d9(_0xf5a365._0x516573)]()] ?? _0x4e15d9(_0xf5a365._0x24f7dd);
|
|
69
76
|
}
|
|
70
|
-
function safeFilename(
|
|
71
|
-
return
|
|
77
|
+
function safeFilename(_0x24ab4e) {
|
|
78
|
+
return _0x24ab4e['replace'](/[\\/]/g, '-');
|
|
72
79
|
}
|
|
73
|
-
function extensionFor(
|
|
74
|
-
const
|
|
75
|
-
|
|
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';
|
|
80
|
+
function extensionFor(_0x3fcd39) {
|
|
81
|
+
const _0x593a46 = _0x27ce1c, _0x52091d = Object[_0x593a46(0x1b9)](MIME_BY_EXTENSION)['find'](([, _0x77189c]) => _0x77189c === _0x3fcd39);
|
|
82
|
+
return _0x52091d?.[0x0] ?? '.bin';
|
|
79
83
|
}
|
|
80
|
-
async function prepareUploadFile(
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
throw new Error(_0x3de585(_0x560aec._0x19c44f) + _0x3e4e1d[_0x3de585(0x333)]);
|
|
96
|
-
const _0x3d6ce8 = await readFile(_0x100a9f), _0x51248b = _0x76e9e3[_0x3de585(0x34e)](_0x100a9f);
|
|
84
|
+
async function prepareUploadFile(_0x52024a, _0x1bcc69 = {}) {
|
|
85
|
+
const _0xd2ff9 = {
|
|
86
|
+
_0x4f7523: 0x23f,
|
|
87
|
+
_0x364655: 0x164,
|
|
88
|
+
_0x21db47: 0x164
|
|
89
|
+
}, _0x473488 = _0x27ce1c;
|
|
90
|
+
if (!_0x55c6fc[_0x473488(0x24e)](_0x52024a))
|
|
91
|
+
throw new Error(_0x473488(0x1f9));
|
|
92
|
+
const _0xbd79b7 = await stat(_0x52024a)[_0x473488(_0xd2ff9._0x4f7523)](() => null);
|
|
93
|
+
if (!_0xbd79b7 || !_0xbd79b7[_0x473488(0xf6)]())
|
|
94
|
+
throw new Error(_0x473488(0x227) + _0x52024a);
|
|
95
|
+
const _0x4b3f6e = _0x1bcc69[_0x473488(0x201)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
96
|
+
if (_0xbd79b7[_0x473488(_0xd2ff9._0x364655)] > _0x4b3f6e)
|
|
97
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0xbd79b7[_0x473488(_0xd2ff9._0x21db47)]);
|
|
98
|
+
const _0x473e2b = await readFile(_0x52024a), _0x14f177 = _0x55c6fc[_0x473488(0x1f8)](_0x52024a);
|
|
97
99
|
return {
|
|
98
|
-
'contentBase64':
|
|
99
|
-
'contentType': guessContentType(
|
|
100
|
-
'filename':
|
|
101
|
-
'sizeBytes':
|
|
100
|
+
'contentBase64': _0x473e2b['toString']('base64'),
|
|
101
|
+
'contentType': guessContentType(_0x14f177),
|
|
102
|
+
'filename': _0x14f177,
|
|
103
|
+
'sizeBytes': _0xbd79b7[_0x473488(0x164)]
|
|
102
104
|
};
|
|
103
105
|
}
|
|
104
|
-
function createAttachmentCache(
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
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));
|
|
106
|
+
function createAttachmentCache(_0x122645 = {}) {
|
|
107
|
+
const _0x1c59db = { _0xfbe394: 0x172 }, _0x16442b = {
|
|
108
|
+
_0x1cb9ac: 0x1d7,
|
|
109
|
+
_0x2b042b: 0x1c7
|
|
110
|
+
}, _0x21eae7 = _0x27ce1c, _0x2b7cd1 = _0x122645[_0x21eae7(0x10c)] ?? _0x55c6fc[_0x21eae7(_0x1c59db._0xfbe394)](homedir(), _0x21eae7(0x145), _0x21eae7(0x101));
|
|
116
111
|
return {
|
|
117
|
-
'cacheDir':
|
|
118
|
-
async 'findCachedPath'(
|
|
119
|
-
const
|
|
120
|
-
await mkdir(
|
|
121
|
-
const
|
|
122
|
-
return
|
|
112
|
+
'cacheDir': _0x2b7cd1,
|
|
113
|
+
async 'findCachedPath'(_0x4b26cf) {
|
|
114
|
+
const _0x1d8b82 = _0x21eae7;
|
|
115
|
+
await mkdir(_0x2b7cd1, { 'recursive': !![] });
|
|
116
|
+
const _0x2537fe = await readdir(_0x2b7cd1), _0x3e3eb8 = _0x2537fe['find'](_0x463e3b => _0x463e3b[_0x1d8b82(0x1cc)](_0x4b26cf + '-') || _0x463e3b['startsWith'](_0x4b26cf));
|
|
117
|
+
return _0x3e3eb8 ? _0x55c6fc[_0x1d8b82(0x172)](_0x2b7cd1, _0x3e3eb8) : null;
|
|
123
118
|
},
|
|
124
|
-
async 'save'(
|
|
125
|
-
const
|
|
126
|
-
await mkdir(
|
|
127
|
-
const
|
|
128
|
-
return await writeFile(
|
|
119
|
+
async 'save'(_0x49f073) {
|
|
120
|
+
const _0x2f1cca = _0x21eae7;
|
|
121
|
+
await mkdir(_0x2b7cd1, { 'recursive': !![] });
|
|
122
|
+
const _0x4597dd = _0x49f073[_0x2f1cca(0x223)]?.[_0x2f1cca(_0x16442b._0x1cb9ac)]() ? safeFilename(_0x49f073[_0x2f1cca(0x223)]) : '' + _0x49f073[_0x2f1cca(0x141)] + extensionFor(_0x49f073[_0x2f1cca(0x15f)]), _0x2d734a = _0x55c6fc['join'](_0x2b7cd1, _0x49f073['attachmentId'] + '-' + _0x4597dd);
|
|
123
|
+
return await writeFile(_0x2d734a, _0x49f073[_0x2f1cca(_0x16442b._0x2b042b)]), _0x2d734a;
|
|
129
124
|
}
|
|
130
125
|
};
|
|
131
126
|
}
|
|
@@ -133,2233 +128,2227 @@ import {
|
|
|
133
128
|
createHash,
|
|
134
129
|
randomUUID
|
|
135
130
|
} from 'node:crypto';
|
|
136
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
137
|
-
function ensureSegment(
|
|
138
|
-
const
|
|
139
|
-
if (!
|
|
131
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x27ce1c(0x1e6);
|
|
132
|
+
function ensureSegment(_0x402c60) {
|
|
133
|
+
const _0x581e1f = _0x27ce1c, _0x54d56c = _0x402c60['trim']();
|
|
134
|
+
if (!_0x54d56c || _0x54d56c[_0x581e1f(0x19e)](':'))
|
|
140
135
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
141
|
-
return
|
|
136
|
+
return _0x54d56c;
|
|
142
137
|
}
|
|
143
|
-
function parseThreadParts(
|
|
144
|
-
const
|
|
145
|
-
if (
|
|
138
|
+
function parseThreadParts(_0x2b5fb7) {
|
|
139
|
+
const _0x19f7fd = { _0x37c3ad: 0x160 }, _0x369a84 = _0x27ce1c, _0x246d15 = _0x2b5fb7[_0x369a84(_0x19f7fd._0x37c3ad)](':');
|
|
140
|
+
if (_0x246d15[_0x369a84(0x255)] < 0x1 || _0x246d15['length'] > 0x2)
|
|
146
141
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
147
142
|
return {
|
|
148
|
-
'channelName': ensureSegment(
|
|
149
|
-
'threadShortId':
|
|
143
|
+
'channelName': ensureSegment(_0x246d15[0x0] ?? ''),
|
|
144
|
+
'threadShortId': _0x246d15[0x1] ? ensureSegment(_0x246d15[0x1]) : null
|
|
150
145
|
};
|
|
151
146
|
}
|
|
152
|
-
function parseTarget(
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
147
|
+
function parseTarget(_0x21451a) {
|
|
148
|
+
const _0x25bbe = {
|
|
149
|
+
_0x1ef932: 0x1d7,
|
|
150
|
+
_0x587777: 0x1cc,
|
|
151
|
+
_0x53545c: 0xd0,
|
|
152
|
+
_0x4f4afe: 0x256,
|
|
153
|
+
_0xdbce16: 0x115,
|
|
154
|
+
_0x5b6d10: 0x115,
|
|
155
|
+
_0xbb5290: 0xd0,
|
|
156
|
+
_0x59effe: 0x11a,
|
|
157
|
+
_0x251e03: 0x256,
|
|
158
|
+
_0x5dd046: 0x115,
|
|
159
|
+
_0x3e5014: 0x256,
|
|
160
|
+
_0x157eb7: 0x12b,
|
|
161
|
+
_0x1ac50c: 0x115
|
|
162
|
+
}, _0x97f0d2 = _0x27ce1c, _0xe0dce6 = _0x21451a[_0x97f0d2(_0x25bbe._0x1ef932)]();
|
|
163
|
+
if (!_0xe0dce6)
|
|
168
164
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
169
|
-
if (
|
|
170
|
-
const
|
|
171
|
-
if (!
|
|
165
|
+
if (_0xe0dce6[_0x97f0d2(_0x25bbe._0x587777)]('#')) {
|
|
166
|
+
const _0x1feb21 = parseThreadParts(_0xe0dce6[_0x97f0d2(_0x25bbe._0x53545c)](0x1)), _0x481da2 = '#' + _0x1feb21[_0x97f0d2(0x256)];
|
|
167
|
+
if (!_0x1feb21[_0x97f0d2(0x115)])
|
|
172
168
|
return {
|
|
173
|
-
'channelName':
|
|
174
|
-
'channelTarget':
|
|
175
|
-
'kind':
|
|
176
|
-
'target':
|
|
169
|
+
'channelName': _0x1feb21['channelName'],
|
|
170
|
+
'channelTarget': _0x481da2,
|
|
171
|
+
'kind': _0x97f0d2(0xf3),
|
|
172
|
+
'target': _0x481da2
|
|
177
173
|
};
|
|
178
174
|
return {
|
|
179
|
-
'channelName':
|
|
180
|
-
'channelTarget':
|
|
181
|
-
'kind':
|
|
182
|
-
'target':
|
|
183
|
-
'threadShortId':
|
|
175
|
+
'channelName': _0x1feb21[_0x97f0d2(_0x25bbe._0x4f4afe)],
|
|
176
|
+
'channelTarget': _0x481da2,
|
|
177
|
+
'kind': 'thread',
|
|
178
|
+
'target': _0x481da2 + ':' + _0x1feb21[_0x97f0d2(_0x25bbe._0xdbce16)],
|
|
179
|
+
'threadShortId': _0x1feb21[_0x97f0d2(_0x25bbe._0x5b6d10)]
|
|
184
180
|
};
|
|
185
181
|
}
|
|
186
|
-
if (
|
|
187
|
-
const
|
|
188
|
-
if (!
|
|
182
|
+
if (_0xe0dce6[_0x97f0d2(0x1cc)]('dm:')) {
|
|
183
|
+
const _0x100dd0 = parseThreadParts(_0xe0dce6[_0x97f0d2(_0x25bbe._0xbb5290)](0x3));
|
|
184
|
+
if (!_0x100dd0['channelName']['startsWith'](_0x97f0d2(_0x25bbe._0x59effe)))
|
|
189
185
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
186
|
+
const _0x368bd8 = _0x97f0d2(0x138) + _0x100dd0[_0x97f0d2(_0x25bbe._0x251e03)];
|
|
187
|
+
if (!_0x100dd0[_0x97f0d2(_0x25bbe._0x5dd046)])
|
|
192
188
|
return {
|
|
193
|
-
'channelName':
|
|
194
|
-
'channelTarget':
|
|
195
|
-
'kind':
|
|
196
|
-
'target':
|
|
189
|
+
'channelName': _0x100dd0[_0x97f0d2(_0x25bbe._0x3e5014)],
|
|
190
|
+
'channelTarget': _0x368bd8,
|
|
191
|
+
'kind': 'channel',
|
|
192
|
+
'target': _0x368bd8
|
|
197
193
|
};
|
|
198
194
|
return {
|
|
199
|
-
'channelName':
|
|
200
|
-
'channelTarget':
|
|
201
|
-
'kind':
|
|
202
|
-
'target':
|
|
203
|
-
'threadShortId':
|
|
195
|
+
'channelName': _0x100dd0['channelName'],
|
|
196
|
+
'channelTarget': _0x368bd8,
|
|
197
|
+
'kind': _0x97f0d2(_0x25bbe._0x157eb7),
|
|
198
|
+
'target': _0x368bd8 + ':' + _0x100dd0[_0x97f0d2(_0x25bbe._0x1ac50c)],
|
|
199
|
+
'threadShortId': _0x100dd0[_0x97f0d2(0x115)]
|
|
204
200
|
};
|
|
205
201
|
}
|
|
206
202
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
207
203
|
}
|
|
208
|
-
function asErrorMessage(
|
|
209
|
-
const
|
|
210
|
-
if (typeof
|
|
211
|
-
return
|
|
212
|
-
return
|
|
204
|
+
function asErrorMessage(_0x3132f7, _0x5709e2) {
|
|
205
|
+
const _0xa04268 = _0x27ce1c;
|
|
206
|
+
if (typeof _0x3132f7 === 'string' && _0x3132f7[_0xa04268(0x1d7)]())
|
|
207
|
+
return _0x3132f7;
|
|
208
|
+
return _0x5709e2;
|
|
213
209
|
}
|
|
214
|
-
function asRecord(
|
|
215
|
-
const
|
|
216
|
-
return typeof
|
|
210
|
+
function asRecord(_0x16cc54) {
|
|
211
|
+
const _0x518e4b = _0x27ce1c;
|
|
212
|
+
return typeof _0x16cc54 === _0x518e4b(0xe3) && _0x16cc54 !== null ? _0x16cc54 : {};
|
|
217
213
|
}
|
|
218
|
-
function stableStringify(
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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)](',') + '}';
|
|
214
|
+
function stableStringify(_0x18bdb8) {
|
|
215
|
+
const _0x2dc80d = { _0x45845f: 0x121 }, _0x19040c = _0x27ce1c;
|
|
216
|
+
if (_0x18bdb8 === null || typeof _0x18bdb8 !== _0x19040c(0xe3))
|
|
217
|
+
return JSON[_0x19040c(0x142)](_0x18bdb8);
|
|
218
|
+
if (Array[_0x19040c(_0x2dc80d._0x45845f)](_0x18bdb8))
|
|
219
|
+
return '[' + _0x18bdb8['map'](_0x457682 => stableStringify(_0x457682))[_0x19040c(0x172)](',') + ']';
|
|
220
|
+
const _0x7c819b = Object['entries'](_0x18bdb8)['filter'](([, _0x5ca41b]) => _0x5ca41b !== void 0x0)[_0x19040c(0x1ff)](([_0x36ce67], [_0x298bf6]) => _0x36ce67[_0x19040c(0x1ad)](_0x298bf6))[_0x19040c(0x14e)](([_0x2c681a, _0x406e94]) => JSON[_0x19040c(0x142)](_0x2c681a) + ':' + stableStringify(_0x406e94));
|
|
221
|
+
return '{' + _0x7c819b[_0x19040c(0x172)](',') + '}';
|
|
231
222
|
}
|
|
232
|
-
function createHeaders(
|
|
233
|
-
const
|
|
223
|
+
function createHeaders(_0x2ca748) {
|
|
224
|
+
const _0x207040 = { _0x43676e: 0x170 }, _0xd720c0 = _0x27ce1c;
|
|
234
225
|
return {
|
|
235
|
-
'Content-Type':
|
|
236
|
-
'x-daemon-api-key':
|
|
226
|
+
'Content-Type': _0xd720c0(_0x207040._0x43676e),
|
|
227
|
+
'x-daemon-api-key': _0x2ca748
|
|
237
228
|
};
|
|
238
229
|
}
|
|
239
|
-
function toHttpBaseUrl(
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
if (_0x13bd58[_0x53d967(_0x5d87ba._0xe5e17e)] === 'ws:')
|
|
248
|
-
_0x13bd58[_0x53d967(_0x5d87ba._0x2219f4)] = _0x53d967(_0x5d87ba._0x33f533);
|
|
230
|
+
function toHttpBaseUrl(_0xfea23c) {
|
|
231
|
+
const _0x592071 = {
|
|
232
|
+
_0x91dd62: 0x10f,
|
|
233
|
+
_0x4b6852: 0x1a0,
|
|
234
|
+
_0x3e5f74: 0x13f
|
|
235
|
+
}, _0x18919a = _0x27ce1c, _0x48b3d8 = new URL(_0xfea23c);
|
|
236
|
+
if (_0x48b3d8['protocol'] === _0x18919a(0xd3))
|
|
237
|
+
_0x48b3d8[_0x18919a(_0x592071._0x91dd62)] = 'http:';
|
|
249
238
|
else
|
|
250
|
-
|
|
251
|
-
return
|
|
239
|
+
_0x48b3d8['protocol'] === _0x18919a(_0x592071._0x4b6852) && (_0x48b3d8['protocol'] = _0x18919a(0x188));
|
|
240
|
+
return _0x48b3d8[_0x18919a(_0x592071._0x3e5f74)]()['replace'](/\/$/, '');
|
|
252
241
|
}
|
|
253
|
-
function isMentionBoundary(
|
|
254
|
-
|
|
242
|
+
function isMentionBoundary(_0x532780) {
|
|
243
|
+
const _0x2e9669 = _0x27ce1c;
|
|
244
|
+
return !_0x532780 || /\s|[([{'",。!?、:;]/[_0x2e9669(0x147)](_0x532780);
|
|
255
245
|
}
|
|
256
|
-
function isMentionTerminal(
|
|
257
|
-
const
|
|
258
|
-
return !
|
|
246
|
+
function isMentionTerminal(_0x2360ad) {
|
|
247
|
+
const _0x2e3c30 = _0x27ce1c;
|
|
248
|
+
return !_0x2360ad || /\s|[)\]}'",。!?、:;,.!?]/[_0x2e3c30(0x147)](_0x2360ad);
|
|
259
249
|
}
|
|
260
|
-
function buildMatchableEntries(
|
|
261
|
-
const
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
..._0x3e06a5[_0x1ca0c2(_0x4acc56._0x228667)],
|
|
269
|
-
..._0x3e06a5['humans']
|
|
250
|
+
function buildMatchableEntries(_0x2d95e6) {
|
|
251
|
+
const _0x43a654 = {
|
|
252
|
+
_0x57ccd0: 0x22e,
|
|
253
|
+
_0x520deb: 0x1ac
|
|
254
|
+
}, _0x39061f = _0x27ce1c, _0x5b567c = [];
|
|
255
|
+
for (const _0x51543b of [
|
|
256
|
+
..._0x2d95e6[_0x39061f(_0x43a654._0x57ccd0)],
|
|
257
|
+
..._0x2d95e6[_0x39061f(0x1e0)]
|
|
270
258
|
]) {
|
|
271
|
-
|
|
272
|
-
'matchName':
|
|
273
|
-
'matchNameLower':
|
|
274
|
-
'participantId':
|
|
275
|
-
}),
|
|
276
|
-
'matchName':
|
|
277
|
-
'matchNameLower':
|
|
278
|
-
'participantId':
|
|
259
|
+
_0x5b567c['push']({
|
|
260
|
+
'matchName': _0x51543b['name'],
|
|
261
|
+
'matchNameLower': _0x51543b[_0x39061f(0x1c5)][_0x39061f(_0x43a654._0x520deb)](),
|
|
262
|
+
'participantId': _0x51543b['id']
|
|
263
|
+
}), _0x51543b['id'] !== _0x51543b['name'] && _0x5b567c['push']({
|
|
264
|
+
'matchName': _0x51543b['id'],
|
|
265
|
+
'matchNameLower': _0x51543b['id'][_0x39061f(_0x43a654._0x520deb)](),
|
|
266
|
+
'participantId': _0x51543b['id']
|
|
279
267
|
});
|
|
280
268
|
}
|
|
281
|
-
return
|
|
269
|
+
return _0x5b567c;
|
|
282
270
|
}
|
|
283
|
-
function extractMentionedParticipantIds(
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
},
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
},
|
|
294
|
-
for (let
|
|
295
|
-
if (
|
|
271
|
+
function extractMentionedParticipantIds(_0x2bd934, _0x1e692b) {
|
|
272
|
+
const _0x36128a = {
|
|
273
|
+
_0x23689d: 0x255,
|
|
274
|
+
_0x5d5b6d: 0x187,
|
|
275
|
+
_0x1f6feb: 0x125,
|
|
276
|
+
_0x9e5f69: 0x18f,
|
|
277
|
+
_0x262dcd: 0xdf
|
|
278
|
+
}, _0x412144 = {
|
|
279
|
+
_0x4c7355: 0x1cc,
|
|
280
|
+
_0x599392: 0xdf
|
|
281
|
+
}, _0x5dddf2 = _0x27ce1c, _0x23c057 = buildMatchableEntries(_0x1e692b)['sort']((_0x550322, _0x1557a3) => _0x1557a3['matchName'][_0x5dddf2(0x255)] - _0x550322['matchName'][_0x5dddf2(0x255)]), _0x565c79 = [], _0x3bd457 = new Set();
|
|
282
|
+
for (let _0x3dc237 = 0x0; _0x3dc237 < _0x2bd934[_0x5dddf2(_0x36128a._0x23689d)]; _0x3dc237 += 0x1) {
|
|
283
|
+
if (_0x2bd934[_0x3dc237] !== '@' || !isMentionBoundary(_0x2bd934[_0x3dc237 - 0x1]))
|
|
296
284
|
continue;
|
|
297
|
-
const
|
|
298
|
-
const
|
|
299
|
-
if (!
|
|
285
|
+
const _0x2d24fc = _0x2bd934['slice'](_0x3dc237 + 0x1), _0x466ade = _0x2d24fc[_0x5dddf2(0x1ac)](), _0x33b9bf = _0x23c057[_0x5dddf2(_0x36128a._0x5d5b6d)](_0x4e5dc5 => {
|
|
286
|
+
const _0x133e02 = _0x5dddf2;
|
|
287
|
+
if (!_0x466ade[_0x133e02(_0x412144._0x4c7355)](_0x4e5dc5['matchNameLower']))
|
|
300
288
|
return ![];
|
|
301
|
-
return isMentionTerminal(
|
|
289
|
+
return isMentionTerminal(_0x2d24fc[_0x4e5dc5[_0x133e02(_0x412144._0x599392)][_0x133e02(0x255)]]);
|
|
302
290
|
});
|
|
303
|
-
if (!
|
|
291
|
+
if (!_0x33b9bf || _0x3bd457[_0x5dddf2(0x129)](_0x33b9bf[_0x5dddf2(_0x36128a._0x1f6feb)]))
|
|
304
292
|
continue;
|
|
305
|
-
|
|
293
|
+
_0x3bd457[_0x5dddf2(_0x36128a._0x9e5f69)](_0x33b9bf[_0x5dddf2(_0x36128a._0x1f6feb)]), _0x565c79[_0x5dddf2(0x1fb)](_0x33b9bf[_0x5dddf2(0x125)]), _0x3dc237 += _0x33b9bf[_0x5dddf2(_0x36128a._0x262dcd)][_0x5dddf2(0x255)];
|
|
306
294
|
}
|
|
307
|
-
return
|
|
295
|
+
return _0x565c79;
|
|
308
296
|
}
|
|
309
297
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
310
|
-
function anySignal(...
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
298
|
+
function anySignal(..._0xa53121) {
|
|
299
|
+
const _0xca843b = {
|
|
300
|
+
_0x2da2fb: 0xcf,
|
|
301
|
+
_0x10a598: 0x1b7,
|
|
302
|
+
_0x200623: 0x182
|
|
303
|
+
}, _0x544140 = _0x27ce1c, _0x5bbf31 = new AbortController();
|
|
304
|
+
for (const _0x366def of _0xa53121) {
|
|
305
|
+
if (_0x366def[_0x544140(0x11e)])
|
|
306
|
+
return _0x5bbf31[_0x544140(_0xca843b._0x2da2fb)](_0x366def[_0x544140(_0xca843b._0x10a598)]), _0x5bbf31[_0x544140(_0xca843b._0x200623)];
|
|
307
|
+
_0x366def[_0x544140(0x10e)](_0x544140(0xcf), () => _0x5bbf31[_0x544140(0xcf)](_0x366def[_0x544140(0x1b7)]), {
|
|
319
308
|
'once': !![],
|
|
320
|
-
'signal':
|
|
309
|
+
'signal': _0x5bbf31[_0x544140(_0xca843b._0x200623)]
|
|
321
310
|
});
|
|
322
311
|
}
|
|
323
|
-
return
|
|
312
|
+
return _0x5bbf31[_0x544140(_0xca843b._0x200623)];
|
|
324
313
|
}
|
|
325
|
-
function createInternalAgentClient(
|
|
326
|
-
const
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
},
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
},
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
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);
|
|
314
|
+
function createInternalAgentClient(_0x6a4cfc) {
|
|
315
|
+
const _0x443555 = {
|
|
316
|
+
_0x549365: 0x13d,
|
|
317
|
+
_0x26ffae: 0x1fd
|
|
318
|
+
}, _0x551076 = {
|
|
319
|
+
_0x3fc951: 0x102,
|
|
320
|
+
_0x2d8afa: 0x1a6,
|
|
321
|
+
_0x2b62bd: 0xeb,
|
|
322
|
+
_0x4f580a: 0x1c7,
|
|
323
|
+
_0x44fded: 0x1ca,
|
|
324
|
+
_0x4934f5: 0xe5,
|
|
325
|
+
_0x3b88dc: 0x230,
|
|
326
|
+
_0x15d1a7: 0x156,
|
|
327
|
+
_0x59ad90: 0x252,
|
|
328
|
+
_0x9442b4: 0x252,
|
|
329
|
+
_0x32d96f: 0x236,
|
|
330
|
+
_0xb2e733: 0x204,
|
|
331
|
+
_0x589c0f: 0xea,
|
|
332
|
+
_0x45caa3: 0x1cf,
|
|
333
|
+
_0x1e498e: 0x104,
|
|
334
|
+
_0x1959dd: 0x1b9,
|
|
335
|
+
_0x125564: 0x102,
|
|
336
|
+
_0x567c6c: 0x1c5,
|
|
337
|
+
_0xd4a0d0: 0x1dd,
|
|
338
|
+
_0x2230b2: 0x101,
|
|
339
|
+
_0x18f43c: 0x215,
|
|
340
|
+
_0x200d3c: 0x150,
|
|
341
|
+
_0x4f5eea: 0x208,
|
|
342
|
+
_0x63cd7f: 0xfe,
|
|
343
|
+
_0x2d4a71: 0x1fb
|
|
344
|
+
}, _0x2a4651 = { _0x5f6f7: 0x207 }, _0xb831af = {
|
|
345
|
+
_0x124476: 0xf3,
|
|
346
|
+
_0x2a8e75: 0x15b,
|
|
347
|
+
_0x395a59: 0x252
|
|
348
|
+
}, _0x19dcad = {
|
|
349
|
+
_0x136584: 0x158,
|
|
350
|
+
_0x2d3c12: 0xeb,
|
|
351
|
+
_0x46aa36: 0x196,
|
|
352
|
+
_0x1dd3b2: 0x1c7,
|
|
353
|
+
_0x27c70e: 0x15f,
|
|
354
|
+
_0x1e693c: 0x223
|
|
355
|
+
}, _0x23d865 = {
|
|
356
|
+
_0x59f2f1: 0x1b5,
|
|
357
|
+
_0x5166b1: 0x219,
|
|
358
|
+
_0x31c645: 0x14f,
|
|
359
|
+
_0x15bb47: 0xe1,
|
|
360
|
+
_0x2e8c2c: 0x1c4,
|
|
361
|
+
_0x3a9f44: 0x1c7,
|
|
362
|
+
_0xbbf33e: 0x1c7,
|
|
363
|
+
_0x4be844: 0x223
|
|
364
|
+
}, _0x1d0822 = {
|
|
365
|
+
_0x1b58a0: 0x1f1,
|
|
366
|
+
_0x341813: 0x1bb
|
|
367
|
+
}, _0x434471 = {
|
|
368
|
+
_0x5ea0a7: 0x142,
|
|
369
|
+
_0x344455: 0x19f,
|
|
370
|
+
_0x3e200a: 0x1bb
|
|
371
|
+
}, _0xf970d4 = {
|
|
372
|
+
_0x3a2ae8: 0x18b,
|
|
373
|
+
_0x4b6aab: 0x195,
|
|
374
|
+
_0x480eb3: 0x1bb
|
|
375
|
+
}, _0x198b78 = {
|
|
376
|
+
_0xff391: 0x195,
|
|
377
|
+
_0x53b579: 0x117,
|
|
378
|
+
_0x2f7abf: 0x192,
|
|
379
|
+
_0x3301e8: 0x1bb
|
|
380
|
+
}, _0x1a21d5 = {
|
|
381
|
+
_0x399573: 0xf3,
|
|
382
|
+
_0x586483: 0x18b,
|
|
383
|
+
_0x594d51: 0x195
|
|
384
|
+
}, _0x2e4ccd = {
|
|
385
|
+
_0x41aad0: 0x16e,
|
|
386
|
+
_0x510391: 0x142,
|
|
387
|
+
_0x3d71e0: 0x1bb
|
|
388
|
+
}, _0xa2065e = {
|
|
389
|
+
_0xeaf51a: 0x108,
|
|
390
|
+
_0x5b32c4: 0x142
|
|
391
|
+
}, _0x58c0cb = {
|
|
392
|
+
_0xf8215f: 0x246,
|
|
393
|
+
_0x192550: 0x202
|
|
394
|
+
}, _0xd7145f = {
|
|
395
|
+
_0x1ee543: 0xe1,
|
|
396
|
+
_0x111f95: 0x157,
|
|
397
|
+
_0x5e57ab: 0x142,
|
|
398
|
+
_0x5b917d: 0x252,
|
|
399
|
+
_0x189379: 0x21b,
|
|
400
|
+
_0x29851b: 0x21b,
|
|
401
|
+
_0x2aaf20: 0x1c7
|
|
402
|
+
}, _0x4d379d = {
|
|
403
|
+
_0x3812f6: 0xf9,
|
|
404
|
+
_0x868186: 0x1b5,
|
|
405
|
+
_0xa8dd3c: 0x102,
|
|
406
|
+
_0x1648c0: 0x252,
|
|
407
|
+
_0x504812: 0x209,
|
|
408
|
+
_0x29f2a2: 0x15b,
|
|
409
|
+
_0x1b1c01: 0x248,
|
|
410
|
+
_0x583935: 0x13f,
|
|
411
|
+
_0x288ca3: 0xeb,
|
|
412
|
+
_0x1c9919: 0x1ca,
|
|
413
|
+
_0x3aac13: 0x130,
|
|
414
|
+
_0x3db26a: 0x1ca
|
|
415
|
+
}, _0x2e447b = {
|
|
416
|
+
_0x543ca7: 0x118,
|
|
417
|
+
_0x4900bf: 0x125,
|
|
418
|
+
_0x5dac02: 0x23a,
|
|
419
|
+
_0x110812: 0x125
|
|
420
|
+
}, _0x5dba3f = {
|
|
421
|
+
_0x29a607: 0x12b,
|
|
422
|
+
_0x552e1f: 0x1cf,
|
|
423
|
+
_0x2e7c7c: 0x236,
|
|
424
|
+
_0x57181c: 0x115
|
|
425
|
+
}, _0x3d5e5d = {
|
|
426
|
+
_0x2f2a2f: 0x12f,
|
|
427
|
+
_0x27e5a4: 0x236,
|
|
428
|
+
_0x2283cb: 0x12f,
|
|
429
|
+
_0x565d4a: 0x1b5,
|
|
430
|
+
_0x3bc153: 0xd0
|
|
431
|
+
}, _0x593033 = { _0x1d4dfd: 0x1e5 }, _0x1f4a7a = { _0xaabfec: 0x226 }, _0x264efb = {
|
|
432
|
+
_0x413c95: 0x18b,
|
|
433
|
+
_0x763db9: 0xe1,
|
|
434
|
+
_0x39c8aa: 0x1bb,
|
|
435
|
+
_0x330c7f: 0x1c7,
|
|
436
|
+
_0x530a06: 0x1c7
|
|
437
|
+
}, _0x2e3207 = { _0x26bfb5: 0x1aa }, _0x2ea52e = {
|
|
438
|
+
_0x39877f: 0x142,
|
|
439
|
+
_0x52212c: 0x1c8
|
|
440
|
+
}, _0x32bc42 = {
|
|
441
|
+
_0x4c2904: 0x182,
|
|
442
|
+
_0x51c2eb: 0x155,
|
|
443
|
+
_0x134961: 0x1aa
|
|
444
|
+
}, _0x3f8bfb = {
|
|
445
|
+
_0x196f32: 0x1be,
|
|
446
|
+
_0x389d0e: 0x1d7,
|
|
447
|
+
_0x2d5c84: 0x20a,
|
|
448
|
+
_0x2a48db: 0xed,
|
|
449
|
+
_0x104b58: 0x102
|
|
450
|
+
}, _0x2b1a5e = {
|
|
451
|
+
_0xc2de1c: 0x21c,
|
|
452
|
+
_0x4bb27b: 0x13f
|
|
453
|
+
}, _0x25ea65 = {
|
|
454
|
+
_0x46f9a5: 0x231,
|
|
455
|
+
_0x5c2b2f: 0x174,
|
|
456
|
+
_0x20e676: 0x19c,
|
|
457
|
+
_0x59a94e: 0x24c,
|
|
458
|
+
_0x44371d: 0x1d7,
|
|
459
|
+
_0x347b65: 0x21d,
|
|
460
|
+
_0x380fec: 0xd0,
|
|
461
|
+
_0x425e70: 0xff,
|
|
462
|
+
_0x501227: 0x1bf,
|
|
463
|
+
_0x5a8989: 0x1aa,
|
|
464
|
+
_0x56b56a: 0x17d
|
|
465
|
+
}, _0x4621fb = _0x27ce1c, _0x34531b = _0x6a4cfc[_0x4621fb(_0x443555._0x549365)] ?? fetch, _0x49738b = _0x6a4cfc[_0x4621fb(0x1f2)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x589311 = typeof _0x6a4cfc[_0x4621fb(0x229)] === _0x4621fb(0x204) && _0x6a4cfc[_0x4621fb(0x229)] > 0x0 ? _0x6a4cfc[_0x4621fb(0x229)] : 0x0, _0x2acb95 = _0x6a4cfc[_0x4621fb(0xdc)]?.['trim']() || void 0x0, _0x505c02 = _0x6a4cfc[_0x4621fb(0x14c)]?.['trim']() || void 0x0, _0x538a73 = _0x6a4cfc[_0x4621fb(0x179)] === !![], _0x3b3722 = _0x6a4cfc['workerSessionId']?.[_0x4621fb(0x1d7)]() || void 0x0, _0x267aba = _0x6a4cfc[_0x4621fb(0x1fa)]?.[_0x4621fb(0x1d7)]() || void 0x0, _0x4b9d76 = createHeaders(_0x6a4cfc[_0x4621fb(0xe7)]), _0x222fb8 = toHttpBaseUrl(_0x6a4cfc[_0x4621fb(_0x443555._0x26ffae)]);
|
|
466
|
+
let _0x4ca346 = null;
|
|
467
|
+
const _0x26564e = new Map();
|
|
468
|
+
let _0x19d497 = _0x589311, _0x512667 = _0x589311;
|
|
469
|
+
function _0x1042f7(_0x114cc4) {
|
|
470
|
+
const _0x2e0ba7 = _0x4621fb, _0x197701 = _0x114cc4['response'][_0x2e0ba7(_0x25ea65._0x46f9a5)][_0x2e0ba7(0x1b6)](_0x2e0ba7(_0x25ea65._0x5c2b2f)) ?? _0x2e0ba7(_0x25ea65._0x20e676), _0x3a640f = _0x114cc4[_0x2e0ba7(_0x25ea65._0x59a94e)][_0x2e0ba7(_0x25ea65._0x44371d)]()[_0x2e0ba7(_0x25ea65._0x347b65)](/\s+/g, '\x20')[_0x2e0ba7(_0x25ea65._0x380fec)](0x0, 0x78) || _0x2e0ba7(0x1d5);
|
|
471
|
+
return _0x2e0ba7(0x132) + _0x114cc4[_0x2e0ba7(_0x25ea65._0x425e70)] + _0x2e0ba7(_0x25ea65._0x501227) + _0x114cc4[_0x2e0ba7(0x1bd)][_0x2e0ba7(_0x25ea65._0x5a8989)] + _0x2e0ba7(0x11b) + _0x197701 + ',\x20preview=' + _0x3a640f + _0x2e0ba7(_0x25ea65._0x56b56a);
|
|
510
472
|
}
|
|
511
|
-
async function
|
|
512
|
-
const
|
|
513
|
-
if (!
|
|
473
|
+
async function _0x11cd42(_0x443ad1, _0x475d06) {
|
|
474
|
+
const _0x454696 = _0x4621fb, _0x1d516d = Buffer[_0x454696(_0x2b1a5e._0xc2de1c)](await _0x475d06['arrayBuffer']())[_0x454696(_0x2b1a5e._0x4bb27b)]('utf8');
|
|
475
|
+
if (!_0x1d516d['trim']())
|
|
514
476
|
return {};
|
|
515
477
|
try {
|
|
516
|
-
return JSON[
|
|
478
|
+
return JSON[_0x454696(0x169)](_0x1d516d);
|
|
517
479
|
} catch {
|
|
518
|
-
throw new Error(
|
|
519
|
-
'bodyText':
|
|
520
|
-
'requestUrl':
|
|
521
|
-
'response':
|
|
480
|
+
throw new Error(_0x1042f7({
|
|
481
|
+
'bodyText': _0x1d516d,
|
|
482
|
+
'requestUrl': _0x443ad1,
|
|
483
|
+
'response': _0x475d06
|
|
522
484
|
}));
|
|
523
485
|
}
|
|
524
486
|
}
|
|
525
|
-
function
|
|
526
|
-
const
|
|
527
|
-
if (
|
|
528
|
-
return
|
|
529
|
-
const
|
|
530
|
-
for (const [
|
|
531
|
-
|
|
487
|
+
function _0x438753(_0x4c260f, _0x4be24a) {
|
|
488
|
+
const _0x144bf0 = _0x4621fb, _0x2c1367 = typeof _0x4be24a[_0x144bf0(0x1be)] === 'string' ? _0x4be24a[_0x144bf0(_0x3f8bfb._0x196f32)][_0x144bf0(_0x3f8bfb._0x389d0e)]() : '';
|
|
489
|
+
if (_0x2c1367)
|
|
490
|
+
return _0x2c1367;
|
|
491
|
+
const _0x5cc80e = Date[_0x144bf0(0x214)]();
|
|
492
|
+
for (const [_0x241c9d, _0x1b0835] of _0x26564e) {
|
|
493
|
+
_0x1b0835[_0x144bf0(_0x3f8bfb._0x2d5c84)] <= _0x5cc80e && _0x26564e[_0x144bf0(0x193)](_0x241c9d);
|
|
532
494
|
}
|
|
533
|
-
const
|
|
534
|
-
...
|
|
495
|
+
const _0x13904e = {
|
|
496
|
+
..._0x4be24a,
|
|
535
497
|
'idempotency_key': void 0x0
|
|
536
|
-
},
|
|
537
|
-
if (
|
|
538
|
-
return
|
|
539
|
-
const
|
|
540
|
-
return
|
|
541
|
-
'expiresAt':
|
|
542
|
-
'value':
|
|
543
|
-
}),
|
|
498
|
+
}, _0x1e2126 = createHash(_0x144bf0(0x16c))[_0x144bf0(_0x3f8bfb._0x2a48db)](_0x4c260f + ':' + stableStringify(_0x13904e))[_0x144bf0(0x23e)](_0x144bf0(0x105)), _0x45e796 = _0x4c260f + ':' + _0x1e2126, _0x12cc28 = _0x26564e['get'](_0x45e796);
|
|
499
|
+
if (_0x12cc28)
|
|
500
|
+
return _0x12cc28['value'];
|
|
501
|
+
const _0x2cca0e = _0x144bf0(0xf7) + _0x4c260f + ':' + randomUUID();
|
|
502
|
+
return _0x26564e[_0x144bf0(_0x3f8bfb._0x104b58)](_0x45e796, {
|
|
503
|
+
'expiresAt': _0x5cc80e + 0x5 * 0x3c * 0x3e8,
|
|
504
|
+
'value': _0x2cca0e
|
|
505
|
+
}), _0x2cca0e;
|
|
544
506
|
}
|
|
545
|
-
async function
|
|
546
|
-
const
|
|
507
|
+
async function _0x44de4d(_0x2d9f67, _0x596076) {
|
|
508
|
+
const _0x4d60f1 = _0x4621fb, _0x1fea45 = new AbortController(), _0x5d58bc = setTimeout(() => _0x1fea45[_0x4d60f1(0xcf)](), _0x49738b), _0x32c6d8 = _0x596076?.[_0x4d60f1(0x182)] ? anySignal(_0x596076[_0x4d60f1(0x182)], _0x1fea45['signal']) : _0x1fea45[_0x4d60f1(0x182)], _0x4f9147 = '' + _0x222fb8 + _0x2d9f67;
|
|
547
509
|
try {
|
|
548
|
-
const
|
|
549
|
-
...
|
|
550
|
-
'signal':
|
|
551
|
-
}),
|
|
552
|
-
if (!
|
|
553
|
-
throw new Error(asErrorMessage(
|
|
554
|
-
return
|
|
510
|
+
const _0x460d23 = await _0x34531b(_0x4f9147, {
|
|
511
|
+
..._0x596076,
|
|
512
|
+
'signal': _0x32c6d8
|
|
513
|
+
}), _0x3c5089 = await _0x11cd42(_0x4f9147, _0x460d23);
|
|
514
|
+
if (!_0x460d23['ok'] || _0x3c5089[_0x4d60f1(0x1db)] === ![])
|
|
515
|
+
throw new Error(asErrorMessage(_0x3c5089['error'], _0x4d60f1(0x196) + _0x460d23['status']));
|
|
516
|
+
return _0x3c5089;
|
|
555
517
|
} finally {
|
|
556
|
-
clearTimeout(
|
|
518
|
+
clearTimeout(_0x5d58bc);
|
|
557
519
|
}
|
|
558
520
|
}
|
|
559
|
-
async function
|
|
560
|
-
const
|
|
521
|
+
async function _0x378f05(_0x38fdcb, _0x5037e0) {
|
|
522
|
+
const _0x1b3db8 = _0x4621fb, _0x2587c7 = new AbortController(), _0x24e7f4 = setTimeout(() => _0x2587c7[_0x1b3db8(0xcf)](), _0x49738b), _0x423878 = _0x5037e0?.['signal'] ? anySignal(_0x5037e0[_0x1b3db8(0x182)], _0x2587c7['signal']) : _0x2587c7[_0x1b3db8(_0x32bc42._0x4c2904)], _0x390fb0 = '' + _0x222fb8 + _0x38fdcb;
|
|
561
523
|
try {
|
|
562
|
-
const
|
|
563
|
-
...
|
|
564
|
-
'signal':
|
|
565
|
-
}),
|
|
566
|
-
if (!
|
|
567
|
-
throw new Error(asErrorMessage(
|
|
568
|
-
return
|
|
524
|
+
const _0x4d332c = await _0x34531b(_0x390fb0, {
|
|
525
|
+
..._0x5037e0,
|
|
526
|
+
'signal': _0x423878
|
|
527
|
+
}), _0x5b6dc6 = await _0x11cd42(_0x390fb0, _0x4d332c);
|
|
528
|
+
if (!_0x4d332c['ok'])
|
|
529
|
+
throw new Error(asErrorMessage(_0x5b6dc6[_0x1b3db8(_0x32bc42._0x51c2eb)], _0x1b3db8(0x196) + _0x4d332c[_0x1b3db8(_0x32bc42._0x134961)]));
|
|
530
|
+
return _0x5b6dc6;
|
|
569
531
|
} finally {
|
|
570
|
-
clearTimeout(
|
|
532
|
+
clearTimeout(_0x24e7f4);
|
|
571
533
|
}
|
|
572
534
|
}
|
|
573
|
-
async function
|
|
574
|
-
const
|
|
575
|
-
if (!
|
|
535
|
+
async function _0x140aa8(_0x1d57a5) {
|
|
536
|
+
const _0x3c56cf = _0x4621fb;
|
|
537
|
+
if (!_0x505c02 || _0x1d57a5 <= _0x512667)
|
|
576
538
|
return;
|
|
577
|
-
await
|
|
578
|
-
'body': JSON[
|
|
579
|
-
'headers':
|
|
580
|
-
'method':
|
|
581
|
-
}),
|
|
539
|
+
await _0x44de4d('/api/agent-sessions/' + encodeURIComponent(_0x505c02) + _0x3c56cf(0x123), {
|
|
540
|
+
'body': JSON[_0x3c56cf(_0x2ea52e._0x39877f)]({ 'lastSeenSeq': _0x1d57a5 }),
|
|
541
|
+
'headers': _0x4b9d76,
|
|
542
|
+
'method': _0x3c56cf(_0x2ea52e._0x52212c)
|
|
543
|
+
}), _0x512667 = _0x1d57a5;
|
|
582
544
|
}
|
|
583
|
-
async function
|
|
584
|
-
const
|
|
585
|
-
if (!
|
|
545
|
+
async function _0x53d021(_0x234b38) {
|
|
546
|
+
const _0x261381 = _0x4621fb;
|
|
547
|
+
if (!_0x2acb95 || !_0x3b3722 || _0x234b38 <= _0x512667)
|
|
586
548
|
return;
|
|
587
|
-
const
|
|
588
|
-
'body': JSON[
|
|
589
|
-
'last_seen_seq':
|
|
590
|
-
'worker_session_id':
|
|
549
|
+
const _0x5cfe17 = await _0x34531b(_0x2acb95 + '/workers/context-metrics', {
|
|
550
|
+
'body': JSON[_0x261381(0x142)]({
|
|
551
|
+
'last_seen_seq': _0x234b38,
|
|
552
|
+
'worker_session_id': _0x3b3722
|
|
591
553
|
}),
|
|
592
|
-
'headers': { 'Content-Type':
|
|
593
|
-
'method':
|
|
554
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
555
|
+
'method': 'POST'
|
|
594
556
|
});
|
|
595
|
-
if (!
|
|
596
|
-
throw new Error(
|
|
597
|
-
|
|
557
|
+
if (!_0x5cfe17['ok'])
|
|
558
|
+
throw new Error(_0x261381(0x196) + _0x5cfe17[_0x261381(_0x2e3207._0x26bfb5)]);
|
|
559
|
+
_0x512667 = _0x234b38;
|
|
598
560
|
}
|
|
599
|
-
async function
|
|
600
|
-
const
|
|
601
|
-
'body': JSON[
|
|
602
|
-
'headers':
|
|
603
|
-
'method':
|
|
561
|
+
async function _0x2cc5dd(_0x388022) {
|
|
562
|
+
const _0xe7ab0a = _0x4621fb, _0x5411d1 = parseTarget(_0x388022), _0x29c69a = await _0x44de4d(_0xe7ab0a(_0x264efb._0x413c95) + _0x6a4cfc['agentId'] + '/resolve-channel', {
|
|
563
|
+
'body': JSON[_0xe7ab0a(0x142)]({ 'target': _0x5411d1[_0xe7ab0a(_0x264efb._0x763db9)] }),
|
|
564
|
+
'headers': _0x4b9d76,
|
|
565
|
+
'method': _0xe7ab0a(_0x264efb._0x39c8aa)
|
|
604
566
|
});
|
|
605
567
|
return {
|
|
606
|
-
'channelId':
|
|
607
|
-
'target':
|
|
608
|
-
'task':
|
|
609
|
-
'threadId':
|
|
610
|
-
'threadNumber':
|
|
568
|
+
'channelId': _0x29c69a[_0xe7ab0a(_0x264efb._0x330c7f)]?.['channelId'] ?? '',
|
|
569
|
+
'target': _0x5411d1['channelTarget'],
|
|
570
|
+
'task': _0x29c69a[_0xe7ab0a(_0x264efb._0x330c7f)]?.[_0xe7ab0a(0xf5)],
|
|
571
|
+
'threadId': _0x29c69a[_0xe7ab0a(_0x264efb._0x330c7f)]?.[_0xe7ab0a(0x1b5)],
|
|
572
|
+
'threadNumber': _0x29c69a[_0xe7ab0a(_0x264efb._0x530a06)]?.['threadNumber']
|
|
611
573
|
};
|
|
612
574
|
}
|
|
613
|
-
async function
|
|
614
|
-
const
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
'
|
|
626
|
-
'
|
|
627
|
-
}))[
|
|
575
|
+
async function _0x52bbc5(_0xd9160e = {}) {
|
|
576
|
+
const _0x51cc46 = {
|
|
577
|
+
_0x32fd98: 0x18b,
|
|
578
|
+
_0x12bb17: 0x1c7,
|
|
579
|
+
_0x4fa4d5: 0x1ae,
|
|
580
|
+
_0x1c72e9: 0x14e,
|
|
581
|
+
_0x317bb5: 0x1c5
|
|
582
|
+
}, _0x4699a3 = _0x4621fb;
|
|
583
|
+
if (!_0xd9160e[_0x4699a3(_0x1f4a7a._0xaabfec)] && _0x4ca346)
|
|
584
|
+
return _0x4ca346;
|
|
585
|
+
return _0x4ca346 = (async () => {
|
|
586
|
+
const _0x49059f = _0x4699a3, _0x396c72 = await _0x44de4d(_0x49059f(_0x51cc46._0x32fd98) + _0x6a4cfc[_0x49059f(0x195)] + _0x49059f(0x143), {
|
|
587
|
+
'headers': _0x4b9d76,
|
|
588
|
+
'method': _0x49059f(0xeb)
|
|
589
|
+
}), _0x379ea4 = _0x396c72[_0x49059f(_0x51cc46._0x12bb17)]?.[_0x49059f(_0x51cc46._0x4fa4d5)] ?? [], _0x302611 = _0x379ea4['filter'](_0xa5749e => _0xa5749e[_0x49059f(0x23a)]?.[_0x49059f(0xd4)] === _0x49059f(0x1e5))[_0x49059f(_0x51cc46._0x1c72e9)](_0x2f2e29 => ({
|
|
590
|
+
'id': _0x45c277(_0x2f2e29),
|
|
591
|
+
'name': _0x137263(_0x2f2e29)
|
|
592
|
+
}))['filter'](_0xfe30d0 => _0xfe30d0['id']), _0x4f3af1 = _0x379ea4[_0x49059f(0x15c)](_0x32cc03 => _0x32cc03['participant']?.[_0x49059f(0xd4)] !== _0x49059f(0x1e5))[_0x49059f(0x14e)](_0x25de18 => ({
|
|
593
|
+
'id': _0x45c277(_0x25de18),
|
|
594
|
+
'name': _0x137263(_0x25de18)
|
|
595
|
+
}))['filter'](_0x1f1bad => _0x1f1bad['id']), _0x473452 = _0x396c72[_0x49059f(0x1c7)]?.[_0x49059f(0x18c)]['id'] ?? '';
|
|
628
596
|
return {
|
|
629
|
-
'agents':
|
|
630
|
-
'channels':
|
|
631
|
-
'humans':
|
|
632
|
-
'serverId':
|
|
633
|
-
'serverName':
|
|
597
|
+
'agents': _0x302611,
|
|
598
|
+
'channels': _0x396c72[_0x49059f(0x1c7)]?.['channels'] ?? [],
|
|
599
|
+
'humans': _0x4f3af1,
|
|
600
|
+
'serverId': _0x473452,
|
|
601
|
+
'serverName': _0x396c72[_0x49059f(0x1c7)]?.[_0x49059f(0x18c)][_0x49059f(_0x51cc46._0x317bb5)] ?? _0x473452
|
|
634
602
|
};
|
|
635
|
-
})()[
|
|
636
|
-
|
|
637
|
-
throw
|
|
638
|
-
}),
|
|
603
|
+
})()[_0x4699a3(0x23f)](_0x2c0e5d => {
|
|
604
|
+
_0x4ca346 = null;
|
|
605
|
+
throw _0x2c0e5d;
|
|
606
|
+
}), _0x4ca346;
|
|
639
607
|
}
|
|
640
|
-
function
|
|
641
|
-
const
|
|
642
|
-
return
|
|
608
|
+
function _0x1ea2c2(_0x5db21c, _0x88ea2c) {
|
|
609
|
+
const _0x3719fb = _0x4621fb;
|
|
610
|
+
return _0x88ea2c['agents'][_0x3719fb(0x230)](_0x511d20 => _0x511d20['id'] === _0x5db21c || _0x511d20[_0x3719fb(0x1c5)] === _0x5db21c) ? _0x3719fb(_0x593033._0x1d4dfd) : _0x3719fb(0x197);
|
|
643
611
|
}
|
|
644
|
-
function
|
|
645
|
-
const
|
|
646
|
-
if (
|
|
647
|
-
return
|
|
648
|
-
if (
|
|
649
|
-
return
|
|
650
|
-
if (
|
|
651
|
-
return
|
|
652
|
-
return
|
|
612
|
+
function _0x38340d(_0x331622) {
|
|
613
|
+
const _0x505b59 = _0x4621fb;
|
|
614
|
+
if (_0x331622[_0x505b59(0x1cf)] != null)
|
|
615
|
+
return _0x331622[_0x505b59(0x12f)] + ':t' + _0x331622[_0x505b59(0x1cf)];
|
|
616
|
+
if (_0x331622[_0x505b59(0x236)])
|
|
617
|
+
return _0x331622[_0x505b59(_0x3d5e5d._0x2f2a2f)] + ':' + _0x331622[_0x505b59(_0x3d5e5d._0x27e5a4)];
|
|
618
|
+
if (_0x331622['threadId'])
|
|
619
|
+
return _0x331622[_0x505b59(_0x3d5e5d._0x2283cb)] + ':' + _0x331622[_0x505b59(_0x3d5e5d._0x565d4a)][_0x505b59(_0x3d5e5d._0x3bc153)](0x0, 0x8);
|
|
620
|
+
return _0x331622['channelTarget'];
|
|
653
621
|
}
|
|
654
|
-
function
|
|
655
|
-
const
|
|
622
|
+
function _0x595abf(_0x510c97, _0x3082a8) {
|
|
623
|
+
const _0x58d99d = _0x4621fb;
|
|
656
624
|
try {
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
625
|
+
const _0x24205f = parseTarget(_0x510c97);
|
|
626
|
+
if (_0x24205f['kind'] !== _0x58d99d(_0x5dba3f._0x29a607) || _0x24205f['channelTarget'] !== _0x3082a8[_0x58d99d(0x12f)])
|
|
659
627
|
return ![];
|
|
660
|
-
if (
|
|
628
|
+
if (_0x3082a8['threadNumber'] != null && _0x24205f[_0x58d99d(0x115)] === 't' + _0x3082a8[_0x58d99d(_0x5dba3f._0x552e1f)])
|
|
661
629
|
return !![];
|
|
662
|
-
if (
|
|
663
|
-
return
|
|
664
|
-
if (
|
|
665
|
-
return
|
|
630
|
+
if (_0x3082a8[_0x58d99d(_0x5dba3f._0x2e7c7c)])
|
|
631
|
+
return _0x24205f[_0x58d99d(0x115)] === _0x3082a8['rootMessageId'] || _0x3082a8[_0x58d99d(0x236)][_0x58d99d(0x1cc)](_0x24205f[_0x58d99d(0x115)]);
|
|
632
|
+
if (_0x3082a8['threadId'])
|
|
633
|
+
return _0x24205f[_0x58d99d(_0x5dba3f._0x57181c)] === _0x3082a8[_0x58d99d(0x1b5)] || _0x3082a8[_0x58d99d(0x1b5)]['startsWith'](_0x24205f[_0x58d99d(0x115)]);
|
|
666
634
|
return ![];
|
|
667
635
|
} catch {
|
|
668
636
|
return ![];
|
|
669
637
|
}
|
|
670
638
|
}
|
|
671
|
-
function
|
|
672
|
-
const
|
|
673
|
-
return
|
|
639
|
+
function _0x45c277(_0xcf851c) {
|
|
640
|
+
const _0x5d8e06 = _0x4621fb;
|
|
641
|
+
return _0xcf851c[_0x5d8e06(_0x2e447b._0x543ca7)]?.[_0x5d8e06(_0x2e447b._0x4900bf)] ?? _0xcf851c[_0x5d8e06(_0x2e447b._0x5dac02)]?.['id'] ?? _0xcf851c[_0x5d8e06(_0x2e447b._0x110812)] ?? '';
|
|
674
642
|
}
|
|
675
|
-
function
|
|
676
|
-
const
|
|
677
|
-
return
|
|
643
|
+
function _0x137263(_0x1b45ad) {
|
|
644
|
+
const _0x11092f = _0x4621fb;
|
|
645
|
+
return _0x1b45ad[_0x11092f(0x23a)]?.['name'] ?? _0x45c277(_0x1b45ad);
|
|
678
646
|
}
|
|
679
|
-
async function
|
|
680
|
-
const
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
const
|
|
686
|
-
'headers':
|
|
687
|
-
'method':
|
|
688
|
-
}),
|
|
689
|
-
'attachments': (
|
|
690
|
-
'filename':
|
|
691
|
-
'id':
|
|
647
|
+
async function _0x8b961e(_0x46ea20) {
|
|
648
|
+
const _0x528b58 = _0x4621fb, _0x28780d = Math['min'](_0x46ea20[_0x528b58(_0x4d379d._0x3812f6)] ?? 0x32, 0x64), _0x93e272 = await _0x52bbc5(), _0x31ccbf = new URLSearchParams();
|
|
649
|
+
_0x31ccbf[_0x528b58(0x102)]('limit', String(_0x28780d));
|
|
650
|
+
_0x46ea20['threadId'] ? (_0x31ccbf['set'](_0x528b58(_0x4d379d._0x868186), _0x46ea20[_0x528b58(0x1b5)]), _0x31ccbf[_0x528b58(_0x4d379d._0xa8dd3c)](_0x528b58(_0x4d379d._0x1648c0), _0x46ea20['channelId'])) : _0x31ccbf['set'](_0x528b58(_0x4d379d._0x1648c0), _0x46ea20[_0x528b58(0x252)]);
|
|
651
|
+
_0x46ea20[_0x528b58(_0x4d379d._0x504812)] && _0x31ccbf[_0x528b58(_0x4d379d._0xa8dd3c)]('cursor', String(_0x46ea20[_0x528b58(0x209)]));
|
|
652
|
+
_0x46ea20[_0x528b58(_0x4d379d._0x29f2a2)] !== void 0x0 && _0x31ccbf[_0x528b58(0x102)](_0x528b58(0x15b), String(_0x46ea20[_0x528b58(0x15b)]));
|
|
653
|
+
const _0xf73d4b = await _0x44de4d('/internal/agent/' + _0x6a4cfc[_0x528b58(0x195)] + _0x528b58(_0x4d379d._0x1b1c01) + _0x31ccbf[_0x528b58(_0x4d379d._0x583935)](), {
|
|
654
|
+
'headers': _0x4b9d76,
|
|
655
|
+
'method': _0x528b58(_0x4d379d._0x288ca3)
|
|
656
|
+
}), _0x411e11 = (_0xf73d4b[_0x528b58(0x1c7)] ?? [])[_0x528b58(0x14e)](_0x144651 => ({
|
|
657
|
+
'attachments': (_0x144651[_0x528b58(0x101)] ?? [])[_0x528b58(0x14e)](_0x1d7826 => ({
|
|
658
|
+
'filename': _0x1d7826[_0x528b58(0x1c4)] ?? _0x1d7826['id'],
|
|
659
|
+
'id': _0x1d7826['id']
|
|
692
660
|
})),
|
|
693
|
-
'content':
|
|
694
|
-
'createdAt':
|
|
695
|
-
...
|
|
696
|
-
'messageId':
|
|
697
|
-
'senderName':
|
|
698
|
-
'senderType':
|
|
699
|
-
'seq':
|
|
661
|
+
'content': _0x144651[_0x528b58(0x200)] ?? '',
|
|
662
|
+
'createdAt': _0x144651['createdAt'],
|
|
663
|
+
..._0x144651[_0x528b58(0x215)] && _0x144651['kind'] !== _0x528b58(0xfe) ? { 'kind': _0x144651[_0x528b58(0x215)] } : {},
|
|
664
|
+
'messageId': _0x144651['id'],
|
|
665
|
+
'senderName': _0x144651[_0x528b58(0x208)],
|
|
666
|
+
'senderType': _0x1ea2c2(_0x144651[_0x528b58(0x208)], _0x93e272),
|
|
667
|
+
'seq': _0x144651[_0x528b58(0x119)] ?? 0x0
|
|
700
668
|
}));
|
|
701
669
|
return {
|
|
702
|
-
'channel':
|
|
703
|
-
'hasMore':
|
|
704
|
-
'messages':
|
|
705
|
-
'nextCursor':
|
|
670
|
+
'channel': _0x46ea20[_0x528b58(0x12f)],
|
|
671
|
+
'hasMore': _0xf73d4b[_0x528b58(_0x4d379d._0x1c9919)]?.[_0x528b58(_0x4d379d._0x3aac13)] ?? ![],
|
|
672
|
+
'messages': _0x411e11,
|
|
673
|
+
'nextCursor': _0xf73d4b[_0x528b58(_0x4d379d._0x3db26a)]?.[_0x528b58(0x225)]
|
|
706
674
|
};
|
|
707
675
|
}
|
|
708
676
|
return {
|
|
709
|
-
async 'sendMessage'(
|
|
710
|
-
const
|
|
711
|
-
'body': JSON[
|
|
712
|
-
'attachment_ids':
|
|
713
|
-
'bodyMarkdown':
|
|
714
|
-
'channelId':
|
|
715
|
-
...
|
|
716
|
-
'threadId':
|
|
717
|
-
...
|
|
677
|
+
async 'sendMessage'(_0x25fd2f) {
|
|
678
|
+
const _0x13230d = _0x4621fb, _0x144db7 = await _0x2cc5dd(_0x25fd2f[_0x13230d(_0xd7145f._0x1ee543)]), _0x410388 = _0x25fd2f['content']['includes']('@') ? extractMentionedParticipantIds(_0x25fd2f[_0x13230d(_0xd7145f._0x111f95)], await _0x52bbc5()) : [], _0x5d1be6 = await _0x44de4d(_0x13230d(0x18b) + _0x6a4cfc['agentId'] + _0x13230d(0x107), {
|
|
679
|
+
'body': JSON[_0x13230d(_0xd7145f._0x5e57ab)]({
|
|
680
|
+
'attachment_ids': _0x25fd2f[_0x13230d(0x240)],
|
|
681
|
+
'bodyMarkdown': _0x25fd2f[_0x13230d(0x157)],
|
|
682
|
+
'channelId': _0x144db7[_0x13230d(_0xd7145f._0x5b917d)],
|
|
683
|
+
..._0x410388[_0x13230d(0x255)] > 0x0 ? { 'mentionedParticipantIds': _0x410388 } : {},
|
|
684
|
+
'threadId': _0x144db7[_0x13230d(0x1b5)],
|
|
685
|
+
..._0x25fd2f[_0x13230d(_0xd7145f._0x189379)] ? { 'visibility': _0x25fd2f[_0x13230d(_0xd7145f._0x29851b)] } : {}
|
|
718
686
|
}),
|
|
719
|
-
'headers':
|
|
720
|
-
'method':
|
|
687
|
+
'headers': _0x4b9d76,
|
|
688
|
+
'method': _0x13230d(0x1bb)
|
|
721
689
|
});
|
|
722
|
-
return { 'messageId':
|
|
690
|
+
return { 'messageId': _0x5d1be6[_0x13230d(_0xd7145f._0x2aaf20)]?.['id'] ?? '' };
|
|
723
691
|
},
|
|
724
692
|
async 'listSchedules'() {
|
|
725
|
-
const
|
|
726
|
-
'headers':
|
|
727
|
-
'method':
|
|
693
|
+
const _0x48bb12 = _0x4621fb, _0x3f030c = await _0x44de4d('/api/internal/schedules', {
|
|
694
|
+
'headers': _0x4b9d76,
|
|
695
|
+
'method': _0x48bb12(0xeb)
|
|
728
696
|
});
|
|
729
|
-
return
|
|
697
|
+
return _0x3f030c[_0x48bb12(0x1c7)] ?? [];
|
|
730
698
|
},
|
|
731
|
-
async 'claimScheduleRun'(
|
|
732
|
-
const
|
|
733
|
-
'body': JSON[
|
|
734
|
-
'headers':
|
|
735
|
-
'method':
|
|
699
|
+
async 'claimScheduleRun'(_0x1857d9) {
|
|
700
|
+
const _0x278149 = _0x4621fb, _0x113145 = await _0x44de4d(_0x278149(_0x58c0cb._0xf8215f), {
|
|
701
|
+
'body': JSON[_0x278149(0x142)](_0x1857d9),
|
|
702
|
+
'headers': _0x4b9d76,
|
|
703
|
+
'method': 'POST'
|
|
736
704
|
});
|
|
737
|
-
return
|
|
705
|
+
return _0x113145['data'] ?? {
|
|
738
706
|
'granted': ![],
|
|
739
707
|
'runId': null,
|
|
740
708
|
'schedule': null,
|
|
741
|
-
'scheduledFor':
|
|
709
|
+
'scheduledFor': _0x1857d9[_0x278149(_0x58c0cb._0x192550)]
|
|
742
710
|
};
|
|
743
711
|
},
|
|
744
|
-
async 'startScheduleRun'(
|
|
745
|
-
const
|
|
746
|
-
'body': JSON[
|
|
747
|
-
'headers':
|
|
748
|
-
'method':
|
|
712
|
+
async 'startScheduleRun'(_0x736c0b) {
|
|
713
|
+
const _0x460ac3 = _0x4621fb, _0x236c00 = await _0x44de4d(_0x460ac3(_0xa2065e._0xeaf51a) + encodeURIComponent(_0x736c0b[_0x460ac3(0x16e)]) + '/start', {
|
|
714
|
+
'body': JSON[_0x460ac3(_0xa2065e._0x5b32c4)]({}),
|
|
715
|
+
'headers': _0x4b9d76,
|
|
716
|
+
'method': _0x460ac3(0x1bb)
|
|
749
717
|
});
|
|
750
|
-
return
|
|
718
|
+
return _0x236c00[_0x460ac3(0x1c7)] ?? {
|
|
751
719
|
'claimedByDaemonId': '',
|
|
752
|
-
'id':
|
|
720
|
+
'id': _0x736c0b[_0x460ac3(0x16e)],
|
|
753
721
|
'scheduleId': '',
|
|
754
|
-
'status':
|
|
722
|
+
'status': _0x460ac3(0x113)
|
|
755
723
|
};
|
|
756
724
|
},
|
|
757
|
-
async 'finishScheduleRun'(
|
|
758
|
-
const
|
|
759
|
-
'body': JSON[
|
|
760
|
-
'error':
|
|
761
|
-
'resultJson':
|
|
762
|
-
'status':
|
|
725
|
+
async 'finishScheduleRun'(_0x3f77db) {
|
|
726
|
+
const _0x3ddb44 = _0x4621fb, _0x316bde = await _0x44de4d('/api/internal/schedules/' + encodeURIComponent(_0x3f77db[_0x3ddb44(_0x2e4ccd._0x41aad0)]) + '/finish', {
|
|
727
|
+
'body': JSON[_0x3ddb44(_0x2e4ccd._0x510391)]({
|
|
728
|
+
'error': _0x3f77db['error'],
|
|
729
|
+
'resultJson': _0x3f77db[_0x3ddb44(0x241)],
|
|
730
|
+
'status': _0x3f77db[_0x3ddb44(0x1aa)]
|
|
763
731
|
}),
|
|
764
|
-
'headers':
|
|
765
|
-
'method':
|
|
732
|
+
'headers': _0x4b9d76,
|
|
733
|
+
'method': _0x3ddb44(_0x2e4ccd._0x3d71e0)
|
|
766
734
|
});
|
|
767
|
-
return
|
|
735
|
+
return _0x316bde[_0x3ddb44(0x1c7)] ?? {
|
|
768
736
|
'nextRunAt': null,
|
|
769
737
|
'run': {
|
|
770
738
|
'claimedByDaemonId': '',
|
|
771
|
-
'id':
|
|
739
|
+
'id': _0x3f77db[_0x3ddb44(0x16e)],
|
|
772
740
|
'scheduleId': '',
|
|
773
|
-
'status':
|
|
741
|
+
'status': _0x3f77db[_0x3ddb44(0x1aa)]
|
|
774
742
|
}
|
|
775
743
|
};
|
|
776
744
|
},
|
|
777
|
-
async 'listTasks'(
|
|
778
|
-
const
|
|
779
|
-
return
|
|
780
|
-
'headers':
|
|
781
|
-
'method':
|
|
745
|
+
async 'listTasks'(_0x4ec2f8) {
|
|
746
|
+
const _0x1455c4 = _0x4621fb, _0x2c8ae3 = new URLSearchParams();
|
|
747
|
+
return _0x2c8ae3[_0x1455c4(0x102)](_0x1455c4(0xf3), _0x4ec2f8[_0x1455c4(_0x1a21d5._0x399573)]), _0x4ec2f8['status'] && _0x2c8ae3[_0x1455c4(0x102)]('status', _0x4ec2f8['status']), _0x378f05(_0x1455c4(_0x1a21d5._0x586483) + _0x6a4cfc[_0x1455c4(_0x1a21d5._0x594d51)] + _0x1455c4(0x232) + _0x2c8ae3[_0x1455c4(0x13f)](), {
|
|
748
|
+
'headers': _0x4b9d76,
|
|
749
|
+
'method': _0x1455c4(0xeb)
|
|
782
750
|
});
|
|
783
751
|
},
|
|
784
|
-
async 'createTasks'(
|
|
785
|
-
const
|
|
786
|
-
return
|
|
752
|
+
async 'createTasks'(_0x565e1a) {
|
|
753
|
+
const _0x5982d6 = _0x4621fb;
|
|
754
|
+
return _0x378f05(_0x5982d6(0x18b) + _0x6a4cfc[_0x5982d6(_0x198b78._0xff391)] + _0x5982d6(_0x198b78._0x53b579), {
|
|
787
755
|
'body': JSON['stringify']({
|
|
788
|
-
...
|
|
789
|
-
'idempotency_key':
|
|
756
|
+
..._0x565e1a,
|
|
757
|
+
'idempotency_key': _0x438753(_0x5982d6(_0x198b78._0x2f7abf), _0x565e1a)
|
|
790
758
|
}),
|
|
791
|
-
'headers':
|
|
792
|
-
'method':
|
|
759
|
+
'headers': _0x4b9d76,
|
|
760
|
+
'method': _0x5982d6(_0x198b78._0x3301e8)
|
|
793
761
|
});
|
|
794
762
|
},
|
|
795
|
-
async 'claimTasks'(
|
|
796
|
-
const
|
|
797
|
-
return
|
|
798
|
-
'body': JSON[
|
|
799
|
-
...
|
|
800
|
-
'idempotency_key':
|
|
763
|
+
async 'claimTasks'(_0x3548a0) {
|
|
764
|
+
const _0x4e32df = _0x4621fb;
|
|
765
|
+
return _0x378f05(_0x4e32df(_0xf970d4._0x3a2ae8) + _0x6a4cfc[_0x4e32df(_0xf970d4._0x4b6aab)] + _0x4e32df(0x111), {
|
|
766
|
+
'body': JSON['stringify']({
|
|
767
|
+
..._0x3548a0,
|
|
768
|
+
'idempotency_key': _0x438753(_0x4e32df(0x23b), _0x3548a0)
|
|
801
769
|
}),
|
|
802
|
-
'headers':
|
|
803
|
-
'method':
|
|
770
|
+
'headers': _0x4b9d76,
|
|
771
|
+
'method': _0x4e32df(_0xf970d4._0x480eb3)
|
|
804
772
|
});
|
|
805
773
|
},
|
|
806
|
-
async 'unclaimTask'(
|
|
807
|
-
const
|
|
808
|
-
return
|
|
809
|
-
'body': JSON[
|
|
810
|
-
...
|
|
811
|
-
'idempotency_key':
|
|
774
|
+
async 'unclaimTask'(_0x199c9c) {
|
|
775
|
+
const _0x359bb2 = _0x4621fb;
|
|
776
|
+
return _0x378f05('/internal/agent/' + _0x6a4cfc[_0x359bb2(0x195)] + _0x359bb2(0xfa), {
|
|
777
|
+
'body': JSON[_0x359bb2(_0x434471._0x5ea0a7)]({
|
|
778
|
+
..._0x199c9c,
|
|
779
|
+
'idempotency_key': _0x438753(_0x359bb2(_0x434471._0x344455), _0x199c9c)
|
|
812
780
|
}),
|
|
813
|
-
'headers':
|
|
814
|
-
'method':
|
|
781
|
+
'headers': _0x4b9d76,
|
|
782
|
+
'method': _0x359bb2(_0x434471._0x3e200a)
|
|
815
783
|
});
|
|
816
784
|
},
|
|
817
|
-
async 'updateTaskStatus'(
|
|
818
|
-
const
|
|
819
|
-
return
|
|
820
|
-
'body': JSON[
|
|
821
|
-
...
|
|
822
|
-
'idempotency_key':
|
|
785
|
+
async 'updateTaskStatus'(_0x44ba09) {
|
|
786
|
+
const _0xdb17e5 = _0x4621fb;
|
|
787
|
+
return _0x378f05(_0xdb17e5(0x18b) + _0x6a4cfc[_0xdb17e5(0x195)] + _0xdb17e5(0x25a), {
|
|
788
|
+
'body': JSON[_0xdb17e5(0x142)]({
|
|
789
|
+
..._0x44ba09,
|
|
790
|
+
'idempotency_key': _0x438753(_0xdb17e5(_0x1d0822._0x1b58a0), _0x44ba09)
|
|
823
791
|
}),
|
|
824
|
-
'headers':
|
|
825
|
-
'method':
|
|
792
|
+
'headers': _0x4b9d76,
|
|
793
|
+
'method': _0xdb17e5(_0x1d0822._0x341813)
|
|
826
794
|
});
|
|
827
795
|
},
|
|
828
|
-
async 'uploadFile'(
|
|
829
|
-
const
|
|
830
|
-
if (
|
|
831
|
-
throw new Error(
|
|
832
|
-
const
|
|
833
|
-
'body': JSON[
|
|
834
|
-
'channel':
|
|
835
|
-
'contentBase64':
|
|
836
|
-
'contentType':
|
|
837
|
-
'originalFilename':
|
|
796
|
+
async 'uploadFile'(_0x54c19b) {
|
|
797
|
+
const _0x551178 = _0x4621fb, _0x3f093e = await _0x2cc5dd(_0x54c19b['channel']);
|
|
798
|
+
if (_0x3f093e[_0x551178(_0x23d865._0x59f2f1)])
|
|
799
|
+
throw new Error(_0x551178(_0x23d865._0x5166b1));
|
|
800
|
+
const _0x19d81f = await _0x44de4d(_0x551178(0x18b) + _0x6a4cfc[_0x551178(0x195)] + _0x551178(_0x23d865._0x31c645), {
|
|
801
|
+
'body': JSON[_0x551178(0x142)]({
|
|
802
|
+
'channel': _0x3f093e[_0x551178(_0x23d865._0x15bb47)],
|
|
803
|
+
'contentBase64': _0x54c19b[_0x551178(0x1d2)],
|
|
804
|
+
'contentType': _0x54c19b[_0x551178(0x15f)],
|
|
805
|
+
'originalFilename': _0x54c19b[_0x551178(_0x23d865._0x2e8c2c)]
|
|
838
806
|
}),
|
|
839
|
-
'headers':
|
|
840
|
-
'method':
|
|
807
|
+
'headers': _0x4b9d76,
|
|
808
|
+
'method': _0x551178(0x1bb)
|
|
841
809
|
});
|
|
842
810
|
return {
|
|
843
|
-
'attachmentId':
|
|
844
|
-
'filename':
|
|
845
|
-
'sizeBytes':
|
|
811
|
+
'attachmentId': _0x19d81f[_0x551178(_0x23d865._0x3a9f44)]?.['id'] ?? '',
|
|
812
|
+
'filename': _0x19d81f[_0x551178(_0x23d865._0xbbf33e)]?.[_0x551178(_0x23d865._0x4be844)] ?? _0x54c19b[_0x551178(_0x23d865._0x2e8c2c)],
|
|
813
|
+
'sizeBytes': _0x19d81f[_0x551178(0x1c7)]?.[_0x551178(0x189)] ?? 0x0
|
|
846
814
|
};
|
|
847
815
|
},
|
|
848
|
-
async 'downloadAttachment'(
|
|
849
|
-
const
|
|
850
|
-
'headers':
|
|
851
|
-
'method':
|
|
852
|
-
}),
|
|
816
|
+
async 'downloadAttachment'(_0x4b61d9) {
|
|
817
|
+
const _0x1c6686 = _0x4621fb, _0xbd7f3b = await _0x44de4d(_0x1c6686(_0x19dcad._0x136584) + _0x4b61d9, {
|
|
818
|
+
'headers': _0x4b9d76,
|
|
819
|
+
'method': _0x1c6686(_0x19dcad._0x2d3c12)
|
|
820
|
+
}), _0x7c6521 = new AbortController(), _0x5c48f8 = setTimeout(() => _0x7c6521[_0x1c6686(0xcf)](), _0x49738b);
|
|
853
821
|
try {
|
|
854
|
-
const
|
|
855
|
-
'headers':
|
|
856
|
-
'method':
|
|
857
|
-
'signal':
|
|
822
|
+
const _0x1a725b = await _0x34531b(_0x222fb8 + _0x1c6686(0x158) + _0x4b61d9 + '/content', {
|
|
823
|
+
'headers': _0x4b9d76,
|
|
824
|
+
'method': _0x1c6686(_0x19dcad._0x2d3c12),
|
|
825
|
+
'signal': _0x7c6521[_0x1c6686(0x182)]
|
|
858
826
|
});
|
|
859
|
-
if (!
|
|
860
|
-
throw new Error(
|
|
827
|
+
if (!_0x1a725b['ok'])
|
|
828
|
+
throw new Error(_0x1c6686(_0x19dcad._0x46aa36) + _0x1a725b[_0x1c6686(0x1aa)]);
|
|
861
829
|
return {
|
|
862
|
-
'contentType':
|
|
863
|
-
'data': Buffer[
|
|
864
|
-
'originalFilename':
|
|
830
|
+
'contentType': _0xbd7f3b[_0x1c6686(_0x19dcad._0x1dd3b2)]?.[_0x1c6686(_0x19dcad._0x27c70e)] ?? _0x1a725b['headers'][_0x1c6686(0x1b6)](_0x1c6686(0x174)) ?? _0x1c6686(0x124),
|
|
831
|
+
'data': Buffer[_0x1c6686(0x21c)](await _0x1a725b[_0x1c6686(0x12c)]()),
|
|
832
|
+
'originalFilename': _0xbd7f3b[_0x1c6686(_0x19dcad._0x1dd3b2)]?.[_0x1c6686(_0x19dcad._0x1e693c)]
|
|
865
833
|
};
|
|
866
834
|
} finally {
|
|
867
|
-
clearTimeout(
|
|
835
|
+
clearTimeout(_0x5c48f8);
|
|
868
836
|
}
|
|
869
837
|
},
|
|
870
838
|
async 'listServer'() {
|
|
871
|
-
return
|
|
839
|
+
return _0x52bbc5({ 'forceRefresh': !![] });
|
|
872
840
|
},
|
|
873
|
-
async 'readHistory'(
|
|
874
|
-
const
|
|
875
|
-
return
|
|
876
|
-
'after':
|
|
877
|
-
'before':
|
|
878
|
-
'channelId':
|
|
879
|
-
'channelTarget':
|
|
880
|
-
'limit':
|
|
881
|
-
'threadId':
|
|
841
|
+
async 'readHistory'(_0x4382a1) {
|
|
842
|
+
const _0x4db98a = _0x4621fb, _0x1fd0fd = await _0x2cc5dd(_0x4382a1[_0x4db98a(_0xb831af._0x124476)]);
|
|
843
|
+
return _0x8b961e({
|
|
844
|
+
'after': _0x4382a1[_0x4db98a(_0xb831af._0x2a8e75)],
|
|
845
|
+
'before': _0x4382a1['before'],
|
|
846
|
+
'channelId': _0x1fd0fd[_0x4db98a(_0xb831af._0x395a59)],
|
|
847
|
+
'channelTarget': _0x1fd0fd['target'],
|
|
848
|
+
'limit': _0x4382a1[_0x4db98a(0xf9)],
|
|
849
|
+
'threadId': _0x1fd0fd[_0x4db98a(0x1b5)]
|
|
882
850
|
});
|
|
883
851
|
},
|
|
884
|
-
'resolveTarget':
|
|
852
|
+
'resolveTarget': _0x2cc5dd,
|
|
885
853
|
async 'checkMessages'() {
|
|
886
|
-
const
|
|
887
|
-
|
|
888
|
-
const
|
|
889
|
-
'headers':
|
|
890
|
-
'method':
|
|
891
|
-
}),
|
|
892
|
-
let
|
|
893
|
-
|
|
894
|
-
|
|
854
|
+
const _0x5befba = _0x4621fb, _0x573cda = new URLSearchParams();
|
|
855
|
+
_0x573cda[_0x5befba(_0x551076._0x3fc951)](_0x5befba(0x149), String(_0x19d497));
|
|
856
|
+
const _0x19e491 = _0x573cda['toString'](), _0x2209d7 = await _0x44de4d(_0x5befba(0x18b) + _0x6a4cfc[_0x5befba(0x195)] + _0x5befba(_0x551076._0x2d8afa) + (_0x19e491 ? '?' + _0x19e491 : ''), {
|
|
857
|
+
'headers': _0x4b9d76,
|
|
858
|
+
'method': _0x5befba(_0x551076._0x2b62bd)
|
|
859
|
+
}), _0x519fa9 = _0x2209d7[_0x5befba(_0x551076._0x4f580a)] ?? [], _0x87401e = _0x2209d7[_0x5befba(_0x551076._0x44fded)]?.[_0x5befba(0x225)], _0xbc8188 = _0x87401e !== void 0x0 ? Math[_0x5befba(0xe5)](_0x19d497, _0x87401e) : _0x519fa9[_0x5befba(0x255)] > 0x0 ? Math[_0x5befba(_0x551076._0x4934f5)](_0x19d497, _0x519fa9[_0x519fa9['length'] - 0x1][_0x5befba(0x185)]) : _0x19d497, _0x5a83a4 = _0x519fa9['filter'](_0x192b49 => _0x192b49[_0x5befba(0xe4)] === _0x5befba(0x1c3)), _0x5159be = _0x267aba === void 0x0 && _0x538a73;
|
|
860
|
+
let _0x701325 = await _0x52bbc5(), _0xc78ac0 = new Map(_0x701325[_0x5befba(0x156)][_0x5befba(0x14e)](_0x1cc92e => [
|
|
861
|
+
_0x1cc92e['id'],
|
|
862
|
+
_0x1cc92e
|
|
895
863
|
]));
|
|
896
|
-
const
|
|
897
|
-
const
|
|
898
|
-
return Boolean(
|
|
864
|
+
const _0x1bcadc = _0x5a83a4[_0x5befba(_0x551076._0x3b88dc)](_0x521450 => {
|
|
865
|
+
const _0x1a66d8 = _0x5befba, _0x7c6716 = asRecord(_0x521450['payloadJson']), _0x5bab99 = typeof _0x7c6716?.[_0x1a66d8(0x252)] === _0x1a66d8(_0x2a4651._0x5f6f7) ? _0x7c6716['channelId'] : '';
|
|
866
|
+
return Boolean(_0x5bab99) && !_0xc78ac0['has'](_0x5bab99);
|
|
899
867
|
});
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
868
|
+
_0x1bcadc && (_0x701325 = await _0x52bbc5({ 'forceRefresh': !![] }), _0xc78ac0 = new Map(_0x701325[_0x5befba(_0x551076._0x15d1a7)]['map'](_0x3ef69b => [
|
|
869
|
+
_0x3ef69b['id'],
|
|
870
|
+
_0x3ef69b
|
|
903
871
|
])));
|
|
904
|
-
const
|
|
905
|
-
for (const
|
|
906
|
-
const
|
|
907
|
-
if (!
|
|
872
|
+
const _0x2e56b2 = new Map();
|
|
873
|
+
for (const _0x252aee of _0x5a83a4) {
|
|
874
|
+
const _0x6fd130 = asRecord(_0x252aee[_0x5befba(0x203)]), _0x4bd5ac = typeof _0x6fd130[_0x5befba(_0x551076._0x59ad90)] === 'string' ? _0x6fd130[_0x5befba(_0x551076._0x9442b4)] : '';
|
|
875
|
+
if (!_0x4bd5ac)
|
|
908
876
|
continue;
|
|
909
|
-
const
|
|
877
|
+
const _0x1d224c = typeof _0x6fd130[_0x5befba(0x1b5)] === _0x5befba(0x207) ? _0x6fd130['threadId'] : void 0x0, _0x13fd06 = typeof _0x6fd130[_0x5befba(_0x551076._0x32d96f)] === 'string' ? _0x6fd130['rootMessageId'] : void 0x0, _0x4b77a7 = typeof _0x6fd130['threadNumber'] === _0x5befba(_0x551076._0xb2e733) && Number[_0x5befba(_0x551076._0x589c0f)](_0x6fd130[_0x5befba(0x1cf)]) ? _0x6fd130[_0x5befba(0x1cf)] : void 0x0, _0xa05b1b = Boolean(_0x1d224c && (!_0x13fd06 || _0x252aee[_0x5befba(0x104)] !== _0x13fd06)), _0x9f67e8 = _0xa05b1b ? _0x4bd5ac + ':' + _0x1d224c : _0x4bd5ac, _0x472b44 = _0x2e56b2['get'](_0x9f67e8) ?? {
|
|
910
878
|
'aggregateIds': [],
|
|
911
|
-
'channelId':
|
|
879
|
+
'channelId': _0x4bd5ac,
|
|
912
880
|
'entries': new Map(),
|
|
913
|
-
'isThreadReply':
|
|
914
|
-
'rootMessageId':
|
|
915
|
-
'threadNumber':
|
|
916
|
-
'threadId':
|
|
881
|
+
'isThreadReply': _0xa05b1b,
|
|
882
|
+
'rootMessageId': _0x13fd06,
|
|
883
|
+
'threadNumber': _0x4b77a7,
|
|
884
|
+
'threadId': _0xa05b1b ? _0x1d224c : void 0x0
|
|
917
885
|
};
|
|
918
|
-
|
|
919
|
-
'payloadJson':
|
|
920
|
-
'seq':
|
|
921
|
-
}),
|
|
886
|
+
_0x472b44[_0x5befba(0x1cf)] == null && _0x4b77a7 != null && (_0x472b44[_0x5befba(_0x551076._0x45caa3)] = _0x4b77a7), !_0x472b44[_0x5befba(0x236)] && _0x13fd06 && (_0x472b44[_0x5befba(_0x551076._0x32d96f)] = _0x13fd06), _0x472b44['aggregateIds']['push'](_0x252aee[_0x5befba(_0x551076._0x1e498e)]), _0x472b44[_0x5befba(_0x551076._0x1959dd)][_0x5befba(_0x551076._0x3fc951)](_0x252aee[_0x5befba(_0x551076._0x1e498e)], {
|
|
887
|
+
'payloadJson': _0x252aee[_0x5befba(0x203)],
|
|
888
|
+
'seq': _0x252aee['seq']
|
|
889
|
+
}), _0x2e56b2[_0x5befba(_0x551076._0x125564)](_0x9f67e8, _0x472b44);
|
|
922
890
|
}
|
|
923
|
-
const
|
|
924
|
-
for (const
|
|
891
|
+
const _0x146882 = [];
|
|
892
|
+
for (const _0x47a398 of _0x2e56b2[_0x5befba(0x239)]()) {
|
|
925
893
|
const {
|
|
926
|
-
channelId:
|
|
927
|
-
threadId:
|
|
928
|
-
rootMessageId:
|
|
929
|
-
threadNumber:
|
|
930
|
-
aggregateIds:
|
|
931
|
-
isThreadReply:
|
|
932
|
-
entries:
|
|
933
|
-
} =
|
|
934
|
-
'channelTarget':
|
|
935
|
-
'rootMessageId':
|
|
936
|
-
'threadId':
|
|
937
|
-
'threadNumber':
|
|
938
|
-
},
|
|
939
|
-
'channelId':
|
|
940
|
-
'channelTarget':
|
|
941
|
-
'limit': Math[
|
|
942
|
-
'threadId':
|
|
943
|
-
}),
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
])),
|
|
947
|
-
for (const
|
|
948
|
-
if (!
|
|
894
|
+
channelId: _0x559fa1,
|
|
895
|
+
threadId: _0x168838,
|
|
896
|
+
rootMessageId: _0x4dfa8d,
|
|
897
|
+
threadNumber: _0x4317eb,
|
|
898
|
+
aggregateIds: _0x3f4f3a,
|
|
899
|
+
isThreadReply: _0x4d4402,
|
|
900
|
+
entries: _0x511cdb
|
|
901
|
+
} = _0x47a398, _0x382ae4 = _0xc78ac0[_0x5befba(0x1b6)](_0x559fa1), _0x3e5170 = _0x382ae4?.[_0x5befba(_0x551076._0x567c6c)] ?? _0x559fa1, _0x317445 = _0x382ae4?.['kind'] === 'dm' ? _0x5befba(0x138) + _0x3e5170 : '#' + _0x3e5170, _0x5c3451 = {
|
|
902
|
+
'channelTarget': _0x317445,
|
|
903
|
+
'rootMessageId': _0x4dfa8d,
|
|
904
|
+
'threadId': _0x168838,
|
|
905
|
+
'threadNumber': _0x4317eb
|
|
906
|
+
}, _0x5f3839 = await _0x8b961e({
|
|
907
|
+
'channelId': _0x559fa1,
|
|
908
|
+
'channelTarget': _0x317445,
|
|
909
|
+
'limit': Math[_0x5befba(0xe5)](_0x3f4f3a['length'], 0x32),
|
|
910
|
+
'threadId': _0x168838
|
|
911
|
+
}), _0x57cacb = new Map(_0x5f3839['messages']['map'](_0x1bb599 => [
|
|
912
|
+
_0x1bb599[_0x5befba(0x139)],
|
|
913
|
+
_0x1bb599
|
|
914
|
+
])), _0x33c726 = _0x168838 ? _0x38340d(_0x5c3451) : _0x317445, _0x48eff4 = _0x267aba ? _0x4d4402 && _0x595abf(_0x267aba, _0x5c3451) : !![], _0x45f7a5 = _0x4d4402 ? _0x48eff4 && _0x267aba ? _0x267aba : _0x33c726 : _0x317445;
|
|
915
|
+
for (const _0x3dcce1 of _0x3f4f3a) {
|
|
916
|
+
if (!_0x48eff4)
|
|
949
917
|
continue;
|
|
950
|
-
const
|
|
951
|
-
if (
|
|
918
|
+
const _0x48f389 = _0x511cdb[_0x5befba(0x1b6)](_0x3dcce1), _0x3fe429 = _0x48f389 ? asRecord(_0x48f389['payloadJson']) : void 0x0, _0x26c2be = _0x3fe429?.['taskDeliveryMode'] === _0x5befba(_0x551076._0xd4a0d0);
|
|
919
|
+
if (_0x5159be && _0x26c2be)
|
|
952
920
|
continue;
|
|
953
|
-
const
|
|
954
|
-
if (
|
|
955
|
-
|
|
956
|
-
'attachments':
|
|
957
|
-
'content':
|
|
958
|
-
'createdAt':
|
|
959
|
-
...
|
|
960
|
-
'messageId':
|
|
961
|
-
'senderName':
|
|
962
|
-
'senderType':
|
|
963
|
-
'target':
|
|
964
|
-
...
|
|
921
|
+
const _0x410cc7 = _0x57cacb[_0x5befba(0x1b6)](_0x3dcce1);
|
|
922
|
+
if (_0x410cc7) {
|
|
923
|
+
_0x146882[_0x5befba(0x1fb)]({
|
|
924
|
+
'attachments': _0x410cc7[_0x5befba(_0x551076._0x2230b2)],
|
|
925
|
+
'content': _0x410cc7[_0x5befba(0x157)],
|
|
926
|
+
'createdAt': _0x410cc7['createdAt'],
|
|
927
|
+
..._0x410cc7['kind'] ? { 'kind': _0x410cc7[_0x5befba(_0x551076._0x18f43c)] } : {},
|
|
928
|
+
'messageId': _0x410cc7[_0x5befba(0x139)],
|
|
929
|
+
'senderName': _0x410cc7[_0x5befba(_0x551076._0x200d3c)],
|
|
930
|
+
'senderType': _0x410cc7[_0x5befba(0x1a7)],
|
|
931
|
+
'target': _0x45f7a5,
|
|
932
|
+
..._0x26c2be ? { 'targetedTask': !![] } : {}
|
|
965
933
|
});
|
|
966
934
|
continue;
|
|
967
935
|
}
|
|
968
|
-
if (
|
|
969
|
-
const
|
|
970
|
-
|
|
936
|
+
if (_0x48f389) {
|
|
937
|
+
const _0x5b4524 = typeof _0x3fe429?.[_0x5befba(_0x551076._0x4f5eea)] === _0x5befba(0x207) ? _0x3fe429[_0x5befba(0x208)] : '', _0x11ec6f = typeof _0x3fe429?.[_0x5befba(0x200)] === 'string' ? _0x3fe429[_0x5befba(0x200)] : '', _0x11dbc4 = typeof _0x3fe429?.[_0x5befba(_0x551076._0x18f43c)] === _0x5befba(0x207) && _0x3fe429[_0x5befba(0x215)] !== _0x5befba(_0x551076._0x63cd7f) ? _0x3fe429[_0x5befba(_0x551076._0x18f43c)] : void 0x0;
|
|
938
|
+
_0x5b4524 && _0x11ec6f && _0x146882[_0x5befba(_0x551076._0x2d4a71)]({
|
|
971
939
|
'attachments': [],
|
|
972
|
-
'content':
|
|
973
|
-
'createdAt': new Date()[
|
|
974
|
-
...
|
|
975
|
-
'messageId':
|
|
976
|
-
'senderName':
|
|
977
|
-
'senderType':
|
|
978
|
-
'target':
|
|
979
|
-
...
|
|
940
|
+
'content': _0x11ec6f,
|
|
941
|
+
'createdAt': new Date()[_0x5befba(0x161)](),
|
|
942
|
+
..._0x11dbc4 ? { 'kind': _0x11dbc4 } : {},
|
|
943
|
+
'messageId': _0x3dcce1,
|
|
944
|
+
'senderName': _0x5b4524,
|
|
945
|
+
'senderType': _0x1ea2c2(_0x5b4524, _0x701325),
|
|
946
|
+
'target': _0x45f7a5,
|
|
947
|
+
..._0x26c2be ? { 'targetedTask': !![] } : {}
|
|
980
948
|
});
|
|
981
949
|
}
|
|
982
950
|
}
|
|
983
951
|
}
|
|
984
|
-
if (
|
|
985
|
-
if (
|
|
986
|
-
await
|
|
952
|
+
if (_0xbc8188 > 0x0) {
|
|
953
|
+
if (_0x505c02)
|
|
954
|
+
await _0x140aa8(_0xbc8188);
|
|
987
955
|
else
|
|
988
|
-
|
|
956
|
+
_0x3b3722 && await _0x53d021(_0xbc8188);
|
|
989
957
|
}
|
|
990
|
-
return
|
|
958
|
+
return _0xbc8188 > _0x19d497 && (_0x19d497 = _0xbc8188), { 'messages': _0x267aba ? _0x146882 : _0x5159be ? _0x146882['filter'](_0x2f8c77 => _0x2f8c77['targetedTask'] !== !![]) : _0x146882 };
|
|
991
959
|
}
|
|
992
960
|
};
|
|
993
961
|
}
|
|
994
|
-
function toLocalTime(
|
|
995
|
-
const
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
962
|
+
function toLocalTime(_0x3cc81e) {
|
|
963
|
+
const _0x4c7f4e = {
|
|
964
|
+
_0x586581: 0x257,
|
|
965
|
+
_0x127550: 0xd6,
|
|
966
|
+
_0xba1e6a: 0x12a,
|
|
967
|
+
_0xccf87d: 0x22c
|
|
968
|
+
}, _0x2bcf77 = _0x27ce1c, _0x474eb5 = new Date(_0x3cc81e);
|
|
969
|
+
if (Number[_0x2bcf77(0x1ef)](_0x474eb5[_0x2bcf77(_0x4c7f4e._0x586581)]()))
|
|
970
|
+
return _0x3cc81e;
|
|
971
|
+
const _0x323b09 = _0x16b847 => String(_0x16b847)[_0x2bcf77(0x120)](0x2, '0');
|
|
972
|
+
return _0x474eb5[_0x2bcf77(_0x4c7f4e._0x127550)]() + '-' + _0x323b09(_0x474eb5[_0x2bcf77(_0x4c7f4e._0xba1e6a)]() + 0x1) + '-' + _0x323b09(_0x474eb5[_0x2bcf77(0x244)]()) + '\x20' + _0x323b09(_0x474eb5['getHours']()) + ':' + _0x323b09(_0x474eb5[_0x2bcf77(_0x4c7f4e._0xccf87d)]()) + ':' + _0x323b09(_0x474eb5[_0x2bcf77(0x18a)]());
|
|
1003
973
|
}
|
|
1004
|
-
function formatAttachmentSuffix(
|
|
1005
|
-
const
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
}, _0x345969 = _0x2d2fb4;
|
|
1011
|
-
if (!_0x42492e || _0x42492e[_0x345969(_0x32f0e7._0x373a9c)] === 0x0)
|
|
974
|
+
function formatAttachmentSuffix(_0x5a9a6c) {
|
|
975
|
+
const _0x289290 = {
|
|
976
|
+
_0x26fdf3: 0x255,
|
|
977
|
+
_0x3018bd: 0x255
|
|
978
|
+
}, _0x2dbb3b = _0x27ce1c;
|
|
979
|
+
if (!_0x5a9a6c || _0x5a9a6c[_0x2dbb3b(_0x289290._0x26fdf3)] === 0x0)
|
|
1012
980
|
return '';
|
|
1013
|
-
return '\x20[' +
|
|
1014
|
-
}
|
|
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');
|
|
1030
|
-
}
|
|
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;
|
|
1060
|
-
}
|
|
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);
|
|
1071
|
-
return [
|
|
1072
|
-
_0x30b2a2(_0x1d9611._0xb5bd78) + _0x471280[_0x30b2a2(0x314)],
|
|
1073
|
-
'',
|
|
1074
|
-
_0x30b2a2(_0x1d9611._0x395cd1),
|
|
1075
|
-
_0x175f7b,
|
|
1076
|
-
'',
|
|
1077
|
-
'###\x20Agents',
|
|
1078
|
-
_0x3dbf60,
|
|
1079
|
-
'',
|
|
1080
|
-
'###\x20Humans',
|
|
1081
|
-
_0x30bd1b
|
|
1082
|
-
][_0x30b2a2(0x274)]('\x0a');
|
|
1083
|
-
}
|
|
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.';
|
|
1090
|
-
}
|
|
1091
|
-
function formatViewFileResult(_0xfc866e, _0x2075f7) {
|
|
1092
|
-
const _0xc40e87 = _0x2d2fb4;
|
|
1093
|
-
return _0x2075f7 ? _0xc40e87(0x21e) + _0xfc866e : _0xc40e87(0x233) + _0xfc866e;
|
|
1094
|
-
}
|
|
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)
|
|
1102
|
-
return 'No\x20tasks\x20found.';
|
|
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');
|
|
1107
|
-
}
|
|
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');
|
|
1123
|
-
}
|
|
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);
|
|
1151
|
-
}
|
|
1152
|
-
const _0x16ea37 = _0x327c23[_0x24b8f2(0x325)] ? _0x24b8f2(0x330) + _0x327c23['workerHandoffError'] : '';
|
|
1153
|
-
return _0x265481 + '\x20claimed' + _0x42c45f + _0x16ea37;
|
|
1154
|
-
}
|
|
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');
|
|
1158
|
-
}
|
|
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'];
|
|
1165
|
-
}
|
|
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'];
|
|
1173
|
-
}
|
|
1174
|
-
function getChatBridgeToolDefinitions() {
|
|
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;
|
|
1184
|
-
return [
|
|
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) }
|
|
1201
|
-
];
|
|
1202
|
-
}
|
|
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)] !== !![])
|
|
1316
|
-
return null;
|
|
1317
|
-
const _0x4c3373 = parseTarget(_0x3cd68e['channel']);
|
|
1318
|
-
if (_0x4c3373['kind'] !== _0x36f0b0(_0x4055ee._0x51cd49))
|
|
1319
|
-
return null;
|
|
1320
|
-
const _0x45d98a = _0x3cd68e[_0x36f0b0(_0x4055ee._0x27d037)] != null ? _0x4c3373[_0x36f0b0(_0x4055ee._0x312e1b)] + ':t' + _0x3cd68e['threadNumber'] : _0x4c3373[_0x36f0b0(_0x4055ee._0x312e1b)] + ':' + _0x3cd68e['messageId'];
|
|
1321
|
-
let _0x5542e7;
|
|
1322
|
-
try {
|
|
1323
|
-
const _0x11f350 = await _0x33c1d0[_0x36f0b0(_0x4055ee._0x2a5a41)][_0x36f0b0(_0x4055ee._0x38b2ca)]({
|
|
1324
|
-
'channel': _0x45d98a,
|
|
1325
|
-
'limit': 0x14
|
|
1326
|
-
});
|
|
1327
|
-
_0x5542e7 = _0x11f350[_0x36f0b0(0x2ca)][_0x36f0b0(0x201)](_0x31fd01 => _0x31fd01[_0x36f0b0(0x35c)] === _0x3cd68e[_0x36f0b0(0x35c)]);
|
|
1328
|
-
} catch {
|
|
1329
|
-
_0x5542e7 = void 0x0;
|
|
1330
|
-
}
|
|
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),
|
|
1333
|
-
'',
|
|
1334
|
-
_0x5542e7 ? _0x36f0b0(0x321) + _0x5542e7['content'] : _0x36f0b0(0x2da) + _0x3cd68e[_0x36f0b0(0x35c)],
|
|
1335
|
-
'',
|
|
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,
|
|
1344
|
-
'spawn_packet': {
|
|
1345
|
-
'replyTarget': _0x45d98a,
|
|
1346
|
-
..._0x3cd68e[_0x36f0b0(_0x4055ee._0x3d8ea7)] ? { 'taskId': _0x3cd68e[_0x36f0b0(_0x4055ee._0x1ebd6f)] } : _0x3cd68e[_0x36f0b0(0x2cd)] != null ? { 'taskId': _0x36f0b0(_0x4055ee._0x4de011) + _0x3cd68e[_0x36f0b0(0x2cd)] } : {}
|
|
1347
|
-
},
|
|
1348
|
-
'payload': {
|
|
1349
|
-
'mode': _0x36f0b0(0x2c7),
|
|
1350
|
-
'text': _0x57fce9
|
|
1351
|
-
}
|
|
1352
|
-
})
|
|
1353
|
-
}), _0x59deea = await _0x50c522[_0x36f0b0(0x2b5)]();
|
|
1354
|
-
if (!_0x59deea['ok'])
|
|
1355
|
-
throw new Error(_0x59deea[_0x36f0b0(0x2d5)] ?? _0x36f0b0(0x310));
|
|
1356
|
-
return {
|
|
1357
|
-
'stopMain': !![],
|
|
1358
|
-
'threadTarget': _0x45d98a,
|
|
1359
|
-
'workerDisposition': _0x59deea[_0x36f0b0(_0x4055ee._0x5b70f5)] === 'queued' ? _0x36f0b0(0x2dc) : _0x36f0b0(_0x4055ee._0x382568),
|
|
1360
|
-
'workerHandoff': !![],
|
|
1361
|
-
'workerSessionId': _0x59deea[_0x36f0b0(0x285)] ?? '',
|
|
1362
|
-
'executionMode': 'worker'
|
|
1363
|
-
};
|
|
1364
|
-
}
|
|
1365
|
-
async function _0x5589cb() {
|
|
1366
|
-
const _0x273757 = _0x101e;
|
|
1367
|
-
if (!_0x33c1d0[_0x273757(0x231)] || !_0x33c1d0['agentId'] || _0x33c1d0[_0x273757(0x31e)])
|
|
1368
|
-
return null;
|
|
1369
|
-
try {
|
|
1370
|
-
const _0xe8df6 = await fetch(_0x33c1d0[_0x273757(_0x50640b._0x28fb66)] + '/workers/list?agent_id=' + encodeURIComponent(_0x33c1d0['agentId'])), _0x289e8d = await _0xe8df6['json']();
|
|
1371
|
-
if (!_0x289e8d['ok'])
|
|
1372
|
-
return null;
|
|
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)]);
|
|
1376
|
-
}
|
|
1377
|
-
return _0x1d38f5[_0x273757(0x333)] > 0x0 ? _0x1d38f5 : null;
|
|
1378
|
-
} catch {
|
|
1379
|
-
return null;
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
const _0x2b9299 = new Set([
|
|
1383
|
-
'running',
|
|
1384
|
-
_0x2969dd(0x1f9),
|
|
1385
|
-
_0x2969dd(_0x578acf._0x5617be)
|
|
1386
|
-
]);
|
|
1387
|
-
async function _0x5206e1() {
|
|
1388
|
-
const _0x1c263f = _0x2969dd;
|
|
1389
|
-
if (!_0x33c1d0[_0x1c263f(_0x157ba2._0x1fa2d2)] || !_0x33c1d0[_0x1c263f(0x250)] || _0x33c1d0[_0x1c263f(0x31e)])
|
|
1390
|
-
return null;
|
|
1391
|
-
try {
|
|
1392
|
-
const _0x259ca8 = await fetch(_0x33c1d0['daemonLocalUrl'] + _0x1c263f(_0x157ba2._0x2fd303) + encodeURIComponent(_0x33c1d0[_0x1c263f(0x250)])), _0x168d27 = await _0x259ca8[_0x1c263f(_0x157ba2._0x1e41e6)]();
|
|
1393
|
-
if (!_0x168d27['ok'])
|
|
1394
|
-
return null;
|
|
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)]);
|
|
1398
|
-
}
|
|
1399
|
-
return _0x7f6ea[_0x1c263f(0x333)] > 0x0 ? _0x7f6ea : null;
|
|
1400
|
-
} catch {
|
|
1401
|
-
return null;
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
return {
|
|
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))
|
|
1412
|
-
return [
|
|
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),
|
|
1418
|
-
'',
|
|
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,
|
|
1429
|
-
'spawn_packet': {
|
|
1430
|
-
'replyTarget': _0x3876d9,
|
|
1431
|
-
'taskId': _0x4c9201['task'][_0x5c5682(0x334)]
|
|
1432
|
-
},
|
|
1433
|
-
'payload': {
|
|
1434
|
-
'mode': _0x5c5682(_0x15ee46._0x3816a1),
|
|
1435
|
-
'text': _0x3bfe88
|
|
1436
|
-
}
|
|
1437
|
-
})
|
|
1438
|
-
}), _0x232028 = await _0x40d3e9[_0x5c5682(_0x15ee46._0x1b3472)]();
|
|
1439
|
-
if (!_0x232028['ok'])
|
|
1440
|
-
throw new Error(_0x232028[_0x5c5682(0x2d5)] ?? _0x5c5682(_0x15ee46._0x10787c));
|
|
1441
|
-
return [
|
|
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)
|
|
1445
|
-
]['join']('\x0a');
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
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']
|
|
1453
|
-
});
|
|
1454
|
-
return _0x5c5682(0x20d) + _0x5e943e[_0x5c5682(0x1fd)] + _0x5c5682(0x2b3) + _0x2958d1[_0x5c5682(0x35c)];
|
|
1455
|
-
},
|
|
1456
|
-
async 'check_messages'() {
|
|
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)])));
|
|
1462
|
-
}
|
|
1463
|
-
return formatCheckMessages(_0x49e5c5[_0x204716(0x2ca)]);
|
|
1464
|
-
},
|
|
1465
|
-
async 'read_history'(_0x2ad0f5) {
|
|
1466
|
-
const _0x2bd75c = _0x2969dd, _0x4081dd = await _0x33c1d0[_0x2bd75c(0x32e)]['readHistory'](_0x2ad0f5);
|
|
1467
|
-
return formatHistory(_0x4081dd);
|
|
1468
|
-
},
|
|
1469
|
-
async 'list_server'() {
|
|
1470
|
-
const _0xe6f55c = _0x2969dd, _0x5efaaf = await _0x33c1d0[_0xe6f55c(_0x3c1785._0xf2004f)][_0xe6f55c(0x2d3)]();
|
|
1471
|
-
return formatServerDirectory(_0x5efaaf);
|
|
1472
|
-
},
|
|
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)])
|
|
1477
|
-
try {
|
|
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))
|
|
1484
|
-
continue;
|
|
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)]);
|
|
1489
|
-
continue;
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
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)]);
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
} catch {
|
|
1499
|
-
}
|
|
1500
|
-
return formatTaskList(_0x5b4d54['tasks'], _0x477968);
|
|
1501
|
-
},
|
|
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)]);
|
|
1505
|
-
},
|
|
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;
|
|
1517
|
-
try {
|
|
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)]
|
|
1524
|
-
});
|
|
1525
|
-
return _0x55ca4d ? {
|
|
1526
|
-
..._0x4caac9,
|
|
1527
|
-
..._0x55ca4d
|
|
1528
|
-
} : _0x4caac9;
|
|
1529
|
-
} catch (_0x3d1392) {
|
|
1530
|
-
return {
|
|
1531
|
-
..._0x4caac9,
|
|
1532
|
-
'workerHandoffError': _0x3d1392 instanceof Error ? _0x3d1392[_0x1ccb89(0x27c)] : _0x1ccb89(_0x3f9d69._0x47d3d8)
|
|
1533
|
-
};
|
|
1534
|
-
}
|
|
1535
|
-
}));
|
|
1536
|
-
return formatClaimTaskResults(_0x344305);
|
|
1537
|
-
},
|
|
1538
|
-
async 'unclaim_task'(_0x3203d7) {
|
|
1539
|
-
const _0xdcedc8 = _0x2969dd, _0x12894e = await _0x33c1d0[_0xdcedc8(_0x100a39._0x5583e9)]['unclaimTask'](_0x3203d7);
|
|
1540
|
-
return formatUnclaimTaskResult(_0x12894e);
|
|
1541
|
-
},
|
|
1542
|
-
async 'update_task_status'(_0x5a467a) {
|
|
1543
|
-
const _0x614511 = _0x2969dd, _0x260a91 = await _0x33c1d0['client'][_0x614511(_0x5b2d54._0x7722d5)](_0x5a467a);
|
|
1544
|
-
return formatUpdateTaskStatusResult(_0x260a91);
|
|
1545
|
-
},
|
|
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
|
|
1553
|
-
});
|
|
1554
|
-
return formatUploadResult(_0xb0ea92);
|
|
1555
|
-
},
|
|
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)]
|
|
1565
|
-
});
|
|
1566
|
-
return formatViewFileResult(_0x9fe9cc, ![]);
|
|
1567
|
-
},
|
|
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)];
|
|
1576
|
-
},
|
|
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);
|
|
1585
|
-
},
|
|
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'],
|
|
1595
|
-
'resume_packet': {
|
|
1596
|
-
'objective': '',
|
|
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)] ?? []
|
|
1603
|
-
}
|
|
1604
|
-
})
|
|
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'];
|
|
1609
|
-
},
|
|
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), {
|
|
1615
|
-
'method': 'POST',
|
|
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)]
|
|
1620
|
-
})
|
|
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.';
|
|
1625
|
-
},
|
|
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)]
|
|
1636
|
-
})
|
|
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)];
|
|
1641
|
-
}
|
|
1642
|
-
};
|
|
1643
|
-
}
|
|
1644
|
-
function textResult(_0x3b903f, _0x2350cf = ![]) {
|
|
1645
|
-
return {
|
|
1646
|
-
'content': [{
|
|
1647
|
-
'type': 'text',
|
|
1648
|
-
'text': _0x3b903f
|
|
1649
|
-
}],
|
|
1650
|
-
..._0x2350cf ? { 'isError': !![] } : {}
|
|
1651
|
-
};
|
|
1652
|
-
}
|
|
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
|
-
};
|
|
981
|
+
return '\x20[' + _0x5a9a6c[_0x2dbb3b(_0x289290._0x3018bd)] + '\x20attachment' + (_0x5a9a6c['length'] > 0x1 ? 's' : '') + ':\x20' + _0x5a9a6c[_0x2dbb3b(0x14e)](_0x44a2eb => _0x44a2eb['filename'] + _0x2dbb3b(0x233) + _0x44a2eb['id'] + ')')[_0x2dbb3b(0x172)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1913
982
|
}
|
|
1914
|
-
function
|
|
1915
|
-
const
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
},
|
|
1929
|
-
if (
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
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
|
-
};
|
|
983
|
+
function formatCheckMessages(_0x4660a9) {
|
|
984
|
+
const _0x442a2c = {
|
|
985
|
+
_0x2e88a0: 0x255,
|
|
986
|
+
_0x24dc48: 0x14e
|
|
987
|
+
}, _0x23c641 = {
|
|
988
|
+
_0x3c7351: 0x1a7,
|
|
989
|
+
_0x4311ad: 0x1e5,
|
|
990
|
+
_0x80fd8c: 0xfe,
|
|
991
|
+
_0x1a9e2f: 0x12e,
|
|
992
|
+
_0x56a66c: 0x139,
|
|
993
|
+
_0xe5bb54: 0xd0,
|
|
994
|
+
_0x3b6837: 0x21f,
|
|
995
|
+
_0x5d70a4: 0x10b,
|
|
996
|
+
_0x2541b6: 0x157
|
|
997
|
+
}, _0x122826 = _0x27ce1c;
|
|
998
|
+
if (_0x4660a9[_0x122826(_0x442a2c._0x2e88a0)] === 0x0)
|
|
999
|
+
return _0x122826(0x1d6);
|
|
1000
|
+
return _0x4660a9[_0x122826(_0x442a2c._0x24dc48)](_0x147050 => {
|
|
1001
|
+
const _0x14a8c4 = _0x122826, _0x5826bd = _0x147050[_0x14a8c4(_0x23c641._0x3c7351)] === _0x14a8c4(_0x23c641._0x4311ad) ? _0x14a8c4(0x128) : '', _0x18c95d = _0x147050['kind'] && _0x147050['kind'] !== _0x14a8c4(_0x23c641._0x80fd8c) ? _0x14a8c4(_0x23c641._0x1a9e2f) + _0x147050[_0x14a8c4(0x215)] : '';
|
|
1002
|
+
return _0x14a8c4(0x1fe) + _0x147050['target'] + _0x14a8c4(0x20e) + _0x147050[_0x14a8c4(_0x23c641._0x56a66c)][_0x14a8c4(_0x23c641._0xe5bb54)](0x0, 0x8) + _0x14a8c4(_0x23c641._0x3b6837) + toLocalTime(_0x147050[_0x14a8c4(_0x23c641._0x5d70a4)]) + _0x5826bd + _0x18c95d + _0x14a8c4(0x165) + _0x147050[_0x14a8c4(0x150)] + ':\x20' + _0x147050[_0x14a8c4(_0x23c641._0x2541b6)] + formatAttachmentSuffix(_0x147050['attachments']);
|
|
1003
|
+
})[_0x122826(0x172)]('\x0a');
|
|
1947
1004
|
}
|
|
1948
|
-
|
|
1949
|
-
const
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
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',
|
|
1005
|
+
function _0x4cbf() {
|
|
1006
|
+
const _0x263ca4 = [
|
|
1007
|
+
'zg0T',
|
|
1008
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
1009
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
1010
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1011
|
+
'ywjVCNrLza',
|
|
1012
|
+
'iYmJiefNzw50CW',
|
|
1013
|
+
'CgfKu3rHCNq',
|
|
1014
|
+
'AxnbCNjHEq',
|
|
1015
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
1016
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1017
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1018
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1019
|
+
'Aw1Hz2uVANbLzW',
|
|
1020
|
+
'C2vUzf9TzxnZywDL',
|
|
1982
1021
|
'ihr5Cgu9ywDLBNq',
|
|
1983
|
-
'
|
|
1984
|
-
'
|
|
1985
|
-
'
|
|
1986
|
-
'
|
|
1987
|
-
'
|
|
1988
|
-
'
|
|
1989
|
-
'
|
|
1022
|
+
'AgfZ',
|
|
1023
|
+
'z2v0tw9UDgG',
|
|
1024
|
+
'DgHYzwfK',
|
|
1025
|
+
'yxjYyxLcDwzMzxi',
|
|
1026
|
+
'v29YA2vYici',
|
|
1027
|
+
'igTPBMq9',
|
|
1028
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1029
|
+
'AgfZtw9Yzq',
|
|
1030
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1031
|
+
'6k+35Rgcia',
|
|
1032
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1990
1033
|
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1991
|
-
'
|
|
1992
|
-
'
|
|
1993
|
-
'
|
|
1994
|
-
'
|
|
1995
|
-
'
|
|
1996
|
-
'
|
|
1997
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1998
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1999
|
-
'BgLZDfrHC2TZ',
|
|
2000
|
-
'y3jLyxrLx3rHC2TZ',
|
|
2001
|
-
'iYmGu2vYDMvYoIa',
|
|
2002
|
-
'Dw5JBgfPBv90yxnR',
|
|
2003
|
-
'y2HHBM5LBeLK',
|
|
2004
|
-
'yxnPzgu',
|
|
1034
|
+
'mZu5ntG5ouzVAfvqCq',
|
|
1035
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
1036
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
1037
|
+
'zg06',
|
|
1038
|
+
'BwvZC2fNzuLK',
|
|
1039
|
+
'oti1mJKWv2T6qNDN',
|
|
2005
1040
|
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
2006
|
-
'
|
|
2007
|
-
'
|
|
2008
|
-
'
|
|
2009
|
-
'
|
|
2010
|
-
'
|
|
2011
|
-
'
|
|
2012
|
-
'
|
|
2013
|
-
'
|
|
2014
|
-
'iYmJienOyw5UzwXZ',
|
|
2015
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
2016
|
-
'y29TCgXLDgvK',
|
|
2017
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
2018
|
-
'C2vUzf9TzxnZywDL',
|
|
1041
|
+
'vgfZAZOG',
|
|
1042
|
+
'zMv0y2HjBxbS',
|
|
1043
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1044
|
+
'Dg9tDhjPBMC',
|
|
1045
|
+
'ANnVBG',
|
|
1046
|
+
'yxr0ywnOBwvUDeLK',
|
|
1047
|
+
'C3rYAw5NAwz5',
|
|
1048
|
+
'l3nLCNzLCG',
|
|
2019
1049
|
'B3b0Aw9UywW',
|
|
2020
|
-
'
|
|
2021
|
-
'
|
|
2022
|
-
'
|
|
2023
|
-
'
|
|
2024
|
-
'
|
|
2025
|
-
'
|
|
2026
|
-
'
|
|
2027
|
-
'
|
|
2028
|
-
'
|
|
2029
|
-
'
|
|
2030
|
-
'
|
|
2031
|
-
'
|
|
2032
|
-
'
|
|
2033
|
-
'
|
|
2034
|
-
'
|
|
2035
|
-
'
|
|
2036
|
-
'
|
|
2037
|
-
'
|
|
2038
|
-
'
|
|
2039
|
-
'
|
|
1050
|
+
'lNnSB2nR',
|
|
1051
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1052
|
+
'DgvZDa',
|
|
1053
|
+
'zg9Uzq',
|
|
1054
|
+
'ywz0zxjtzxe',
|
|
1055
|
+
'ig1LC3nHz2vZkqOk',
|
|
1056
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
1057
|
+
'C2vZC2LVBKLK',
|
|
1058
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1059
|
+
'BwfW',
|
|
1060
|
+
'l3vWBg9Hza',
|
|
1061
|
+
'C2vUzgvYtMfTzq',
|
|
1062
|
+
'lsba',
|
|
1063
|
+
'zxH0BMfTzq',
|
|
1064
|
+
'Dgv4Dc9WBgfPBG',
|
|
1065
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1066
|
+
'zxjYB3i',
|
|
1067
|
+
'y2HHBM5LBhm',
|
|
1068
|
+
'y29UDgvUDa',
|
|
1069
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1070
|
+
'ls1Hz2vUDc1Pza',
|
|
1071
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1072
|
+
'ywz0zxi',
|
|
1073
|
+
'zMLSDgvY',
|
|
1074
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
2040
1075
|
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
2041
|
-
'
|
|
2042
|
-
'
|
|
1076
|
+
'y29UDgvUDfr5Cgu',
|
|
1077
|
+
'C3bSAxq',
|
|
1078
|
+
'Dg9ju09tDhjPBMC',
|
|
1079
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1080
|
+
'zw51Bq',
|
|
2043
1081
|
'C2L6zq',
|
|
2044
|
-
'
|
|
2045
|
-
'
|
|
2046
|
-
'
|
|
2047
|
-
'
|
|
2048
|
-
'
|
|
2049
|
-
'
|
|
2050
|
-
'
|
|
1082
|
+
'xsba',
|
|
1083
|
+
'otmZndq1n3HfC2zKDW',
|
|
1084
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
1085
|
+
'nJbnyKz0zLm',
|
|
1086
|
+
'CgfYC2u',
|
|
1087
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1088
|
+
'nZKXndbhBuXJCfu',
|
|
1089
|
+
'C2HHmJu2',
|
|
2051
1090
|
'zgLZCg9ZAxrPB24',
|
|
2052
|
-
'
|
|
2053
|
-
'
|
|
2054
|
-
'
|
|
2055
|
-
'
|
|
2056
|
-
'
|
|
2057
|
-
'
|
|
2058
|
-
'
|
|
2059
|
-
'
|
|
1091
|
+
'CNvUswq',
|
|
1092
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1093
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1094
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
1095
|
+
'AM9PBG',
|
|
1096
|
+
'iYmJieH1BwfUCW',
|
|
1097
|
+
'y29UDgvUDc10ExbL',
|
|
1098
|
+
'CxvLDwvK',
|
|
1099
|
+
'y3jLyxrLvgfZA3m',
|
|
1100
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
1101
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1102
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1103
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1104
|
+
'lsaJ',
|
|
1105
|
+
'nJi1ntCWmNrhyLPjEG',
|
|
1106
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1107
|
+
'nda1mJiWC0LHt2Pp',
|
|
1108
|
+
'C2vUze1LC3nHz2u',
|
|
1109
|
+
'Aw1Hz2uVz2LM',
|
|
1110
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1111
|
+
'C2LNBMfS',
|
|
1112
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
1113
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1114
|
+
'C2vX',
|
|
1115
|
+
'ig1LC3nHz2u9',
|
|
1116
|
+
'zMLUza',
|
|
1117
|
+
'Ahr0Chm6',
|
|
1118
|
+
'C2L6zuj5DgvZ',
|
|
1119
|
+
'z2v0u2vJB25KCW',
|
|
1120
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1121
|
+
'C2vYDMvY',
|
|
1122
|
+
'kg5VBMuP',
|
|
1123
|
+
'BMv4Den1CNnVCG',
|
|
1124
|
+
'ywrK',
|
|
1125
|
+
'DgfZA19Pza',
|
|
1126
|
+
'Aw1Hz2uVD2vICa',
|
|
1127
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1128
|
+
'zgvSzxrL',
|
|
1129
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1130
|
+
'ywDLBNrjza',
|
|
1131
|
+
'sfruuca',
|
|
1132
|
+
'AhvTyw4',
|
|
1133
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
2060
1134
|
'Dg9VBa',
|
|
2061
|
-
'
|
|
2062
|
-
'
|
|
2063
|
-
'
|
|
2064
|
-
'
|
|
2065
|
-
'
|
|
2066
|
-
'
|
|
2067
|
-
'
|
|
2068
|
-
'
|
|
2069
|
-
'y2HHBM5LBhm',
|
|
2070
|
-
'yMfZzw5HBwu',
|
|
2071
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
2072
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
2073
|
-
'zgvZy3jPyMu',
|
|
2074
|
-
'y2f0y2G',
|
|
2075
|
-
'yxjYyxK',
|
|
2076
|
-
'C3rHCNrLza',
|
|
2077
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1135
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1136
|
+
'Aw5FCMv2Awv3',
|
|
1137
|
+
'Dw5RBM93BG',
|
|
1138
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
1139
|
+
'Aw5JBhvKzxm',
|
|
1140
|
+
'Dw5JBgfPBv90yxnR',
|
|
1141
|
+
'D3nZoG',
|
|
1142
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
2078
1143
|
'D29YA19RzxK',
|
|
2079
|
-
'
|
|
2080
|
-
'
|
|
2081
|
-
'
|
|
2082
|
-
'
|
|
2083
|
-
'
|
|
2084
|
-
'
|
|
2085
|
-
'
|
|
2086
|
-
'
|
|
2087
|
-
'
|
|
2088
|
-
'
|
|
2089
|
-
'
|
|
2090
|
-
'
|
|
2091
|
-
'
|
|
2092
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
2093
|
-
'y2HHBM5LBa',
|
|
2094
|
-
'ig1LC3nHz2u9',
|
|
2095
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
2096
|
-
'ouLTC2X0EG',
|
|
2097
|
-
'zgf0yq',
|
|
2098
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1144
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1145
|
+
'iYmGu2vYDMvYoIa',
|
|
1146
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1147
|
+
'l3jLy2vPDMu',
|
|
1148
|
+
'C2vUzgvYvhLWzq',
|
|
1149
|
+
'CMvZDwX0CW',
|
|
1150
|
+
'BMv4Df9ZDgvWCW',
|
|
1151
|
+
'C3rHDhvZ',
|
|
1152
|
+
'zMLSzxnFy2HHBMDLza',
|
|
1153
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1154
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1155
|
+
'BwvTyMvYCW',
|
|
1156
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
2099
1157
|
'zMLSzv9WyxrO',
|
|
2100
|
-
'
|
|
2101
|
-
'
|
|
2102
|
-
'
|
|
2103
|
-
'
|
|
2104
|
-
'
|
|
2105
|
-
'
|
|
2106
|
-
'
|
|
2107
|
-
'
|
|
2108
|
-
'
|
|
2109
|
-
'
|
|
1158
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1159
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1160
|
+
'ChvIBgLJ',
|
|
1161
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1162
|
+
'DgHYzwfKswq',
|
|
1163
|
+
'z2v0',
|
|
1164
|
+
'CMvHC29U',
|
|
1165
|
+
'DgfZA051BwjLCG',
|
|
1166
|
+
'zw50CMLLCW',
|
|
1167
|
+
'CMvHzeHPC3rVCNK',
|
|
2110
1168
|
'ue9tva',
|
|
2111
|
-
'
|
|
2112
|
-
'
|
|
2113
|
-
'
|
|
2114
|
-
'BgLZDf9Zzxj2zxi',
|
|
2115
|
-
'lsba',
|
|
2116
|
-
'Dg9ju09tDhjPBMC',
|
|
2117
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
2118
|
-
'l3nLCNzLCG',
|
|
2119
|
-
'Aw5FCMv2Awv3',
|
|
1169
|
+
'AgLNAa',
|
|
1170
|
+
'CMvZCg9UC2u',
|
|
1171
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
2120
1172
|
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
2121
|
-
'
|
|
2122
|
-
'
|
|
2123
|
-
'DhLWzq',
|
|
2124
|
-
'z2v0tw9UDgG',
|
|
2125
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
2126
|
-
'DgfYz2v0',
|
|
2127
|
-
'C3rHDhvZ',
|
|
2128
|
-
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
2129
|
-
'zMfPBgvK',
|
|
2130
|
-
'zMLUza',
|
|
2131
|
-
'EM9K',
|
|
2132
|
-
'mJu0mdaYoe52vfrLDq',
|
|
2133
|
-
'AgfZtw9Yzq',
|
|
2134
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
2135
|
-
'v29YA2vYici',
|
|
2136
|
-
'ywDLBNq',
|
|
2137
|
-
'sfruuca',
|
|
2138
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
2139
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1173
|
+
'DxbSB2fKx2zPBgu',
|
|
1174
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
2140
1175
|
'DgHYzwfKvgfYz2v0',
|
|
2141
|
-
'
|
|
2142
|
-
'
|
|
2143
|
-
'
|
|
2144
|
-
'
|
|
2145
|
-
'
|
|
2146
|
-
'
|
|
2147
|
-
'
|
|
1176
|
+
'BwvZC2fNzq',
|
|
1177
|
+
'zMLSzw5HBwu',
|
|
1178
|
+
'BMfTzq',
|
|
1179
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1180
|
+
'zgf0yq',
|
|
1181
|
+
'uefuq0G',
|
|
1182
|
+
'mtbIBvfutgi',
|
|
1183
|
+
'Bwv0yq',
|
|
1184
|
+
'mJDgCxrsqvK',
|
|
1185
|
+
'C3rHCNrZv2L0Aa',
|
|
1186
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1187
|
+
'ihn0yxr1CZ0',
|
|
1188
|
+
'DgHYzwfKtNvTyMvY',
|
|
1189
|
+
'mZvAthb0zeG',
|
|
1190
|
+
'Dg9mB3DLCKnHC2u',
|
|
1191
|
+
'y29UDgvUDejHC2u2na',
|
|
1192
|
+
'yxjNDG',
|
|
1193
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
1194
|
+
'pgvTChr5pG',
|
|
2148
1195
|
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
2149
|
-
'
|
|
2150
|
-
'
|
|
1196
|
+
'DhjPBq',
|
|
1197
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1198
|
+
'igLUia',
|
|
2151
1199
|
'Dgv4Dc9JC3y',
|
|
2152
|
-
'D29YA2vYCW',
|
|
2153
|
-
'yMfZzty0',
|
|
2154
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
2155
|
-
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
2156
1200
|
'C3vJy2vZCW',
|
|
2157
|
-
'
|
|
2158
|
-
'
|
|
2159
|
-
'
|
|
2160
|
-
'
|
|
2161
|
-
'
|
|
2162
|
-
'
|
|
2163
|
-
'
|
|
2164
|
-
'
|
|
2165
|
-
'
|
|
2166
|
-
'
|
|
2167
|
-
'
|
|
2168
|
-
'
|
|
1201
|
+
'DgL0Bgu',
|
|
1202
|
+
'DgfYz2v0zwq',
|
|
1203
|
+
'w3nLCt0',
|
|
1204
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1205
|
+
'AhvTyw5Z',
|
|
1206
|
+
'zgvJAxnPB25Z',
|
|
1207
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
1208
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1209
|
+
'cGOTls0G',
|
|
1210
|
+
'ywDLBNq',
|
|
1211
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1212
|
+
'ignSywLTzwq',
|
|
1213
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1214
|
+
'y29TCgXLDgvK',
|
|
1215
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1216
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1217
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1218
|
+
'ls1Zzxj2zxiTDxjS',
|
|
1219
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1220
|
+
'Axnoyu4',
|
|
1221
|
+
'y2XHAw0GzMfPBgvK',
|
|
1222
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
2169
1223
|
'zMv0y2HuAw1LB3v0txm',
|
|
2170
|
-
'
|
|
2171
|
-
'
|
|
2172
|
-
'
|
|
2173
|
-
'
|
|
2174
|
-
'
|
|
2175
|
-
'
|
|
2176
|
-
'
|
|
2177
|
-
'
|
|
2178
|
-
'
|
|
2179
|
-
'
|
|
2180
|
-
'
|
|
2181
|
-
'CMvHzeHPC3rVCNK',
|
|
2182
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
2183
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
2184
|
-
'yxjNDG',
|
|
2185
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
2186
|
-
'y29UDgvUDa',
|
|
2187
|
-
'CgfKu3rHCNq',
|
|
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',
|
|
2201
|
-
'ywDNCMvNyxrLswq',
|
|
2202
|
-
'C2v0',
|
|
2203
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
2204
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
2205
|
-
'ywXS',
|
|
2206
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
2207
|
-
'mJmYnJa1nNPquMrMrW',
|
|
1224
|
+
'iokaLca',
|
|
1225
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1226
|
+
'D2fPDgLUz19PBNb1Da',
|
|
1227
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1228
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1229
|
+
'yMfZzw5HBwu',
|
|
1230
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1231
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1232
|
+
'ChvZAa',
|
|
1233
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1234
|
+
'C2vYDMvYvxjS',
|
|
2208
1235
|
'w3rHCMDLDd0',
|
|
2209
|
-
'ywDLBNrjza',
|
|
2210
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
2211
|
-
'C3rVCe1HAw4',
|
|
2212
|
-
'CNvUswq',
|
|
2213
|
-
'Dgv4Dc9WBgfPBG',
|
|
2214
|
-
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
2215
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
2216
|
-
'CMvJB3jK',
|
|
2217
|
-
'CMvWBgfJzq',
|
|
2218
|
-
'l3rHC2TZpW',
|
|
2219
|
-
'Axnoyu4',
|
|
2220
|
-
'lsaJ',
|
|
2221
|
-
'y2HHDa',
|
|
2222
|
-
'y29UDgvUDc10ExbL',
|
|
2223
1236
|
'C29YDa',
|
|
2224
|
-
'
|
|
2225
|
-
'
|
|
2226
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
2227
|
-
'l3vWBg9Hza',
|
|
2228
|
-
'ywz0zxjtzxe',
|
|
2229
|
-
'vgfZAZOG',
|
|
2230
|
-
'y3vYC29Y',
|
|
2231
|
-
'C3rHCNrZv2L0Aa',
|
|
2232
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
2233
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
2234
|
-
'zMLSzw5HBwu',
|
|
2235
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
2236
|
-
'lNnSB2nR',
|
|
2237
|
-
'CgfYDgLJAxbHBNq',
|
|
2238
|
-
'DgHYzwfKtNvTyMvY',
|
|
2239
|
-
'BwLU',
|
|
2240
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
2241
|
-
'l3jLy2vPDMu',
|
|
2242
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
2243
|
-
'AgLNAa',
|
|
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',
|
|
1237
|
+
'yM9KEu1HCMTKB3DU',
|
|
1238
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
2260
1239
|
'C2nOzwr1BgvKrM9Y',
|
|
2261
|
-
'
|
|
2262
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
2263
|
-
'C3rYAw5NAwz5',
|
|
2264
|
-
'DgfZA19Pza',
|
|
2265
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
2266
|
-
'D3nZoG',
|
|
2267
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1240
|
+
'Cgf5Bg9HzePZB24',
|
|
2268
1241
|
'BNvTyMvY',
|
|
2269
|
-
'
|
|
2270
|
-
'
|
|
2271
|
-
'CM9VDe1LC3nHz2vjza',
|
|
2272
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
2273
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
2274
|
-
'ywjVCNq',
|
|
2275
|
-
'zw50CMLLCW',
|
|
2276
|
-
'DgHYzwfKswq',
|
|
2277
|
-
'zw51Bq',
|
|
2278
|
-
'z2v0',
|
|
2279
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
2280
|
-
'zMLSzxnFy2HHBMDLza',
|
|
2281
|
-
'ig1LC3nHz2vZkqOk',
|
|
2282
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
2283
|
-
'DgvZDa',
|
|
2284
|
-
'z2v0twLUDxrLCW',
|
|
2285
|
-
'y3jLyxrLzef0',
|
|
2286
|
-
'y2fJAgveAxi',
|
|
2287
|
-
'icHPzdO',
|
|
2288
|
-
'BgLZDf90yxnRCW',
|
|
2289
|
-
'kgXLz2fJEsK',
|
|
2290
|
-
'ywrK',
|
|
2291
|
-
'l3n0yxj0',
|
|
2292
|
-
'ywDNCMvNyxrLswrZ',
|
|
2293
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1242
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1243
|
+
'CMvJB3jK',
|
|
2294
1244
|
'C3rYAw5N',
|
|
2295
|
-
'
|
|
2296
|
-
'
|
|
2297
|
-
'
|
|
2298
|
-
'
|
|
2299
|
-
'
|
|
2300
|
-
'
|
|
2301
|
-
'
|
|
2302
|
-
'
|
|
2303
|
-
'
|
|
2304
|
-
'
|
|
2305
|
-
'
|
|
2306
|
-
'
|
|
1245
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1246
|
+
'yMvMB3jL',
|
|
1247
|
+
'zxHWAxjLC0f0',
|
|
1248
|
+
'DgfZA3m',
|
|
1249
|
+
'Dg9KBW',
|
|
1250
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1251
|
+
'ig1ZzZ0',
|
|
1252
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1253
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1254
|
+
'yxnPzgu',
|
|
1255
|
+
'y2XHAw1uyxnRCW',
|
|
1256
|
+
'D29YA2vYCW',
|
|
1257
|
+
'BM93',
|
|
2307
1258
|
'A2LUza',
|
|
2308
|
-
'
|
|
2309
|
-
'
|
|
2310
|
-
'
|
|
2311
|
-
'
|
|
2312
|
-
'
|
|
2313
|
-
'
|
|
2314
|
-
'
|
|
2315
|
-
'
|
|
2316
|
-
'
|
|
2317
|
-
'
|
|
1259
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1260
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1261
|
+
'zgvZy3jPChrPB24',
|
|
1262
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1263
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1264
|
+
'DMLZAwjPBgL0Eq',
|
|
1265
|
+
'zNjVBq',
|
|
1266
|
+
'CMvWBgfJzq',
|
|
1267
|
+
'DMLLD19MAwXL',
|
|
1268
|
+
'ihrPBwu9',
|
|
2318
1269
|
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
2319
|
-
'
|
|
2320
|
-
'
|
|
2321
|
-
'
|
|
2322
|
-
'
|
|
2323
|
-
'
|
|
2324
|
-
'
|
|
2325
|
-
'
|
|
2326
|
-
'
|
|
1270
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1271
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
1272
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1273
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1274
|
+
'y3vYC29Y',
|
|
1275
|
+
'zM9Yy2vszwzYzxnO',
|
|
1276
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1277
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1278
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1279
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1280
|
+
'zgvZDhjVEwvK',
|
|
1281
|
+
'z2v0twLUDxrLCW',
|
|
1282
|
+
'DgfZA0LK',
|
|
1283
|
+
'ywDLBNrZ',
|
|
1284
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
2327
1285
|
'C29Tzq',
|
|
2328
|
-
'
|
|
2329
|
-
'
|
|
2330
|
-
'
|
|
1286
|
+
'AgvHzgvYCW',
|
|
1287
|
+
'l3rHC2TZpW',
|
|
1288
|
+
'icHPzdO',
|
|
1289
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1290
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1291
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1292
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
2331
1293
|
'BwvZC2fNzxm',
|
|
1294
|
+
'DMfSDwvZ',
|
|
1295
|
+
'CgfYDgLJAxbHBNq',
|
|
1296
|
+
'y2XHAw1FDgfZA3m',
|
|
1297
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1298
|
+
'kgXLz2fJEsK',
|
|
1299
|
+
'zgLNzxn0',
|
|
1300
|
+
'y2f0y2G',
|
|
1301
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1302
|
+
'CMvZDwX0sNnVBG',
|
|
1303
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1304
|
+
'zMfSC2u',
|
|
1305
|
+
'z2v0rgf0zq',
|
|
1306
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
2332
1307
|
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1308
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1309
|
+
'l2HPC3rVCNK/',
|
|
1310
|
+
'ntCXmdC2mtzXvxL4Bvq',
|
|
1311
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
2333
1312
|
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
2334
|
-
'
|
|
2335
|
-
'
|
|
2336
|
-
'
|
|
2337
|
-
'
|
|
2338
|
-
'
|
|
2339
|
-
'
|
|
1313
|
+
'yM9KEvrLEhq',
|
|
1314
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1315
|
+
'AxnbyNnVBhv0zq',
|
|
1316
|
+
'ywXS',
|
|
1317
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
1318
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1319
|
+
'y2HHBM5LBeLK',
|
|
1320
|
+
'BgLZDfrHC2TZ',
|
|
1321
|
+
'CMvHzf9OAxn0B3j5',
|
|
1322
|
+
'BgvUz3rO',
|
|
1323
|
+
'y2HHBM5LBe5HBwu',
|
|
1324
|
+
'z2v0vgLTzq',
|
|
1325
|
+
'EM9K',
|
|
1326
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1327
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1328
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
1329
|
+
'ywjVCNq',
|
|
1330
|
+
'C2XPy2u',
|
|
1331
|
+
'DxnLCG',
|
|
1332
|
+
'BgLZDf9Zzxj2zxi',
|
|
1333
|
+
'D3m6',
|
|
1334
|
+
'DhLWzq',
|
|
1335
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1336
|
+
'z2v0rNvSBfLLyxi',
|
|
1337
|
+
'ogPUEfnYwG',
|
|
1338
|
+
'D29YA2vYtw9Kzq',
|
|
1339
|
+
'Dw5JBgfPBvrHC2S',
|
|
1340
|
+
'B3bLBL9PC3n1zxm',
|
|
1341
|
+
'C3rHCNrLza',
|
|
1342
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1343
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1344
|
+
'yMXVy2TLza',
|
|
1345
|
+
'Bwf0y2Hoyw1L',
|
|
1346
|
+
'mc4WlJa',
|
|
1347
|
+
'DgfYz2v0',
|
|
1348
|
+
'iJOGC3rHDhvZpq',
|
|
1349
|
+
'B2jQzwn0',
|
|
1350
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1351
|
+
'Bwf4',
|
|
1352
|
+
'D29YA2vY',
|
|
1353
|
+
'zgfLBw9UqxbPs2v5',
|
|
1354
|
+
'y2XPzw50',
|
|
1355
|
+
'yxjYyxK',
|
|
1356
|
+
'AxnjBNrLz2vY',
|
|
1357
|
+
'r0vu',
|
|
1358
|
+
'CgfYC2vjBNq',
|
|
1359
|
+
'DxbKyxrL',
|
|
1360
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
1361
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
1362
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
1363
|
+
'C2vYDMvYtMfTzq',
|
|
1364
|
+
'C2f2zq',
|
|
1365
|
+
'y2HHBM5LBa',
|
|
1366
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1367
|
+
'DgfZAW',
|
|
1368
|
+
'AxngAwXL',
|
|
1369
|
+
'yxv0BZO',
|
|
1370
|
+
'AhjLzG',
|
|
1371
|
+
'BgLTAxq',
|
|
1372
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
1373
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1374
|
+
'Dg9gAxHLza',
|
|
1375
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
1376
|
+
'y2HHDa',
|
|
1377
|
+
'CMvXDwvZDfvYBa',
|
|
1378
|
+
'igzHAwXLzdOG',
|
|
1379
|
+
'yxr0ywnOBwvUDhm',
|
|
1380
|
+
'C2v0',
|
|
1381
|
+
'AxngAw5PDgu',
|
|
1382
|
+
'ywDNCMvNyxrLswq',
|
|
1383
|
+
'Agv4',
|
|
1384
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1385
|
+
'l3nLBMq',
|
|
1386
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1387
|
+
'BgLZDf90yxnRCW',
|
|
1388
|
+
'CMvZDwX0',
|
|
1389
|
+
'y3jLyxrLzef0',
|
|
1390
|
+
'y2fJAgveAxi',
|
|
1391
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1392
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1393
|
+
'ChjVDg9JB2W',
|
|
2340
1394
|
'BgLZDfnLCNzLCG',
|
|
2341
|
-
'
|
|
2342
|
-
'
|
|
2343
|
-
'
|
|
2344
|
-
'
|
|
2345
|
-
'
|
|
2346
|
-
'
|
|
2347
|
-
'
|
|
2348
|
-
'
|
|
2349
|
-
'
|
|
2350
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
2351
|
-
'kg5VBMuP',
|
|
2352
|
-
'ChvZAa',
|
|
2353
|
-
'CMvZCg9UC2u',
|
|
2354
|
-
'C2HHmJu2',
|
|
2355
|
-
'yM9KEu1HCMTKB3DU',
|
|
2356
|
-
'AhvTyw5Z'
|
|
1395
|
+
'l3rHC2TZl2nSywLT',
|
|
1396
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
1397
|
+
'CNvUBMLUzW',
|
|
1398
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1399
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1400
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1401
|
+
'l3rHC2TZ',
|
|
1402
|
+
'BwvTyMvY',
|
|
1403
|
+
'zxzLBNrtzxe'
|
|
2357
1404
|
];
|
|
2358
|
-
|
|
2359
|
-
return
|
|
1405
|
+
_0x4cbf = function () {
|
|
1406
|
+
return _0x263ca4;
|
|
2360
1407
|
};
|
|
2361
|
-
return
|
|
1408
|
+
return _0x4cbf();
|
|
1409
|
+
}
|
|
1410
|
+
function formatHistory(_0x1f0bed) {
|
|
1411
|
+
const _0x25bdf1 = {
|
|
1412
|
+
_0x4b86c4: 0x130,
|
|
1413
|
+
_0x2d37fa: 0x1e4,
|
|
1414
|
+
_0x39939e: 0x238,
|
|
1415
|
+
_0x7e005c: 0x13e,
|
|
1416
|
+
_0x404728: 0x255,
|
|
1417
|
+
_0x25cf70: 0x14a
|
|
1418
|
+
}, _0x393fcc = {
|
|
1419
|
+
_0xc37653: 0x128,
|
|
1420
|
+
_0x3696a1: 0x215,
|
|
1421
|
+
_0x54885b: 0xfe,
|
|
1422
|
+
_0x42de0e: 0x1de,
|
|
1423
|
+
_0x9ba198: 0x10b,
|
|
1424
|
+
_0x59ebef: 0x157
|
|
1425
|
+
}, _0xf0dac4 = _0x27ce1c;
|
|
1426
|
+
if (_0x1f0bed[_0xf0dac4(0x238)][_0xf0dac4(0x255)] === 0x0)
|
|
1427
|
+
return _0xf0dac4(0x251) + _0x1f0bed[_0xf0dac4(0xf3)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1428
|
+
const _0x26cd34 = _0x1f0bed[_0xf0dac4(0x238)]['map'](_0x3e1944 => {
|
|
1429
|
+
const _0x232262 = _0xf0dac4, _0x94c4bc = _0x3e1944[_0x232262(0x1a7)] === _0x232262(0x1e5) ? _0x232262(_0x393fcc._0xc37653) : '', _0x3c004f = _0x3e1944[_0x232262(_0x393fcc._0x3696a1)] && _0x3e1944[_0x232262(_0x393fcc._0x3696a1)] !== _0x232262(_0x393fcc._0x54885b) ? _0x232262(0x12e) + _0x3e1944[_0x232262(0x215)] : '';
|
|
1430
|
+
return _0x232262(_0x393fcc._0x42de0e) + _0x3e1944['seq'] + _0x232262(0x20e) + _0x3e1944[_0x232262(0x139)] + _0x232262(0x21f) + toLocalTime(_0x3e1944[_0x232262(_0x393fcc._0x9ba198)]) + _0x94c4bc + _0x3c004f + ']\x20@' + _0x3e1944['senderName'] + ':\x20' + _0x3e1944[_0x232262(_0x393fcc._0x59ebef)] + formatAttachmentSuffix(_0x3e1944[_0x232262(0x101)]);
|
|
1431
|
+
})[_0xf0dac4(0x172)]('\x0a'), _0x2f5a66 = _0x1f0bed[_0xf0dac4(_0x25bdf1._0x4b86c4)] && _0x1f0bed[_0xf0dac4(0x18e)] ? _0xf0dac4(_0x25bdf1._0x2d37fa) + _0x1f0bed[_0xf0dac4(_0x25bdf1._0x39939e)][_0xf0dac4(0x255)] + _0xf0dac4(_0x25bdf1._0x7e005c) + _0x1f0bed[_0xf0dac4(0x18e)] + _0xf0dac4(0xd5) : '';
|
|
1432
|
+
return _0xf0dac4(0x251) + _0x1f0bed['channel'] + '\x20(' + _0x1f0bed[_0xf0dac4(_0x25bdf1._0x39939e)][_0xf0dac4(_0x25bdf1._0x404728)] + _0xf0dac4(_0x25bdf1._0x25cf70) + _0x26cd34 + _0x2f5a66;
|
|
1433
|
+
}
|
|
1434
|
+
function formatServerDirectory(_0x1da499) {
|
|
1435
|
+
const _0x517645 = {
|
|
1436
|
+
_0xc7def7: 0x255,
|
|
1437
|
+
_0x477ccf: 0x156,
|
|
1438
|
+
_0x2895ff: 0x172,
|
|
1439
|
+
_0x4bf52c: 0x18d,
|
|
1440
|
+
_0x49e360: 0x1e0,
|
|
1441
|
+
_0x4bcc76: 0x14e,
|
|
1442
|
+
_0x5643e6: 0x172,
|
|
1443
|
+
_0x516082: 0x1a4,
|
|
1444
|
+
_0x43d631: 0x173
|
|
1445
|
+
}, _0x1c5240 = _0x27ce1c, _0x79025a = _0x1da499['channels'][_0x1c5240(_0x517645._0xc7def7)] > 0x0 ? _0x1da499[_0x1c5240(_0x517645._0x477ccf)][_0x1c5240(0x14e)](_0x2e9ba7 => _0x2e9ba7[_0x1c5240(0x218)] ? _0x1c5240(0x17b) + _0x2e9ba7[_0x1c5240(0x1c5)] + _0x1c5240(0x1f3) + _0x2e9ba7['description'] : '-\x20#' + _0x2e9ba7[_0x1c5240(0x1c5)])[_0x1c5240(_0x517645._0x2895ff)]('\x0a') : _0x1c5240(0x18d), _0x1b1e5b = _0x1da499[_0x1c5240(0x22e)][_0x1c5240(0x255)] > 0x0 ? _0x1da499[_0x1c5240(0x22e)]['map'](_0x203bc9 => _0x1c5240(0x151) + _0x203bc9['name'])[_0x1c5240(_0x517645._0x2895ff)]('\x0a') : _0x1c5240(_0x517645._0x4bf52c), _0x367d1d = _0x1da499[_0x1c5240(_0x517645._0x49e360)][_0x1c5240(0x255)] > 0x0 ? _0x1da499[_0x1c5240(0x1e0)][_0x1c5240(_0x517645._0x4bcc76)](_0x575011 => _0x1c5240(0x151) + _0x575011[_0x1c5240(0x1c5)])[_0x1c5240(_0x517645._0x5643e6)]('\x0a') : _0x1c5240(_0x517645._0x4bf52c);
|
|
1446
|
+
return [
|
|
1447
|
+
_0x1c5240(_0x517645._0x516082) + _0x1da499[_0x1c5240(0xf1)],
|
|
1448
|
+
'',
|
|
1449
|
+
'###\x20Channels',
|
|
1450
|
+
_0x79025a,
|
|
1451
|
+
'',
|
|
1452
|
+
_0x1c5240(0x11f),
|
|
1453
|
+
_0x1b1e5b,
|
|
1454
|
+
'',
|
|
1455
|
+
_0x1c5240(_0x517645._0x43d631),
|
|
1456
|
+
_0x367d1d
|
|
1457
|
+
][_0x1c5240(_0x517645._0x2895ff)]('\x0a');
|
|
1458
|
+
}
|
|
1459
|
+
function formatUploadResult(_0x1f4730) {
|
|
1460
|
+
const _0x431f2c = {
|
|
1461
|
+
_0x2b4ab6: 0x24a,
|
|
1462
|
+
_0x44bbad: 0x189,
|
|
1463
|
+
_0x48d88d: 0xfc,
|
|
1464
|
+
_0x41b356: 0x141,
|
|
1465
|
+
_0x1e0d52: 0x19d
|
|
1466
|
+
}, _0x20a3da = _0x27ce1c;
|
|
1467
|
+
return _0x20a3da(_0x431f2c._0x2b4ab6) + _0x1f4730[_0x20a3da(0x1c4)] + '\x20(' + (_0x1f4730[_0x20a3da(_0x431f2c._0x44bbad)] / 0x400)[_0x20a3da(_0x431f2c._0x48d88d)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x1f4730[_0x20a3da(_0x431f2c._0x41b356)] + _0x20a3da(_0x431f2c._0x1e0d52);
|
|
1468
|
+
}
|
|
1469
|
+
function formatViewFileResult(_0x39e42a, _0x5447ab) {
|
|
1470
|
+
const _0x4e188f = _0x27ce1c;
|
|
1471
|
+
return _0x5447ab ? _0x4e188f(0x234) + _0x39e42a : 'Downloaded\x20to:\x20' + _0x39e42a;
|
|
1472
|
+
}
|
|
1473
|
+
function formatTaskList(_0x3efaea, _0x50b469) {
|
|
1474
|
+
const _0x34fafd = {
|
|
1475
|
+
_0x7fd243: 0x1b8,
|
|
1476
|
+
_0x2c7239: 0x186,
|
|
1477
|
+
_0x4f4d44: 0x139,
|
|
1478
|
+
_0x36e603: 0x129,
|
|
1479
|
+
_0x10b4cd: 0x1b8,
|
|
1480
|
+
_0x41ee1d: 0x1c6,
|
|
1481
|
+
_0x2af3d0: 0x1aa,
|
|
1482
|
+
_0x2e5fb4: 0x1dc
|
|
1483
|
+
}, _0x5ec371 = _0x27ce1c;
|
|
1484
|
+
if (_0x3efaea['length'] === 0x0)
|
|
1485
|
+
return 'No\x20tasks\x20found.';
|
|
1486
|
+
return _0x3efaea[_0x5ec371(0x14e)](_0xde3ec2 => {
|
|
1487
|
+
const _0x528ad3 = _0x5ec371, _0x5e3457 = _0xde3ec2[_0x528ad3(_0x34fafd._0x7fd243)] == null ? '(legacy)' : '#' + _0xde3ec2['taskNumber'], _0x1d1914 = _0xde3ec2[_0x528ad3(0x139)] ? _0x528ad3(_0x34fafd._0x2c7239) + _0xde3ec2[_0x528ad3(_0x34fafd._0x4f4d44)] : '', _0x2ab2f4 = _0x50b469 && _0xde3ec2[_0x528ad3(0x1b8)] != null && _0x50b469[_0x528ad3(_0x34fafd._0x36e603)](_0xde3ec2[_0x528ad3(_0x34fafd._0x10b4cd)]) ? _0x528ad3(_0x34fafd._0x41ee1d) : '';
|
|
1488
|
+
return _0x5e3457 + '\x20[' + _0xde3ec2[_0x528ad3(_0x34fafd._0x2af3d0)] + ']\x20' + _0xde3ec2[_0x528ad3(_0x34fafd._0x2e5fb4)] + _0x1d1914 + _0x2ab2f4;
|
|
1489
|
+
})[_0x5ec371(0x172)]('\x0a');
|
|
1490
|
+
}
|
|
1491
|
+
function formatCreatedTasks(_0xec9f7f) {
|
|
1492
|
+
const _0x588d58 = { _0x2ff5e4: 0x255 }, _0x1ee9cd = {
|
|
1493
|
+
_0x5a6d47: 0x1b8,
|
|
1494
|
+
_0x4f8d85: 0x1b8,
|
|
1495
|
+
_0x49e8b0: 0x186,
|
|
1496
|
+
_0x27bfe6: 0x139
|
|
1497
|
+
}, _0x281aea = _0x27ce1c;
|
|
1498
|
+
if (_0xec9f7f[_0x281aea(_0x588d58._0x2ff5e4)] === 0x0)
|
|
1499
|
+
return 'No\x20tasks\x20created.';
|
|
1500
|
+
return _0xec9f7f[_0x281aea(0x14e)](_0x1be1cd => {
|
|
1501
|
+
const _0xab97c5 = _0x281aea, _0x4aab22 = _0x1be1cd[_0xab97c5(_0x1ee9cd._0x5a6d47)] == null ? '(legacy)' : '#' + _0x1be1cd[_0xab97c5(_0x1ee9cd._0x4f8d85)];
|
|
1502
|
+
return _0x4aab22 + '\x20' + _0x1be1cd[_0xab97c5(0x1dc)] + _0xab97c5(_0x1ee9cd._0x49e8b0) + _0x1be1cd[_0xab97c5(_0x1ee9cd._0x27bfe6)];
|
|
1503
|
+
})[_0x281aea(0x172)]('\x0a');
|
|
1504
|
+
}
|
|
1505
|
+
function formatClaimTaskResults(_0x58c11f) {
|
|
1506
|
+
const _0x4fdf53 = {
|
|
1507
|
+
_0x2cff01: 0x255,
|
|
1508
|
+
_0x418d85: 0x13b,
|
|
1509
|
+
_0x47305f: 0x14e,
|
|
1510
|
+
_0x531e23: 0x172
|
|
1511
|
+
}, _0x17af06 = {
|
|
1512
|
+
_0x1d7a86: 0x23d,
|
|
1513
|
+
_0x511899: 0x139,
|
|
1514
|
+
_0x1af2b4: 0x186,
|
|
1515
|
+
_0x4cbfe3: 0x216,
|
|
1516
|
+
_0x585472: 0x250,
|
|
1517
|
+
_0x2960d6: 0x1a3,
|
|
1518
|
+
_0xe60bec: 0x198,
|
|
1519
|
+
_0x5e2199: 0x16a,
|
|
1520
|
+
_0x321aec: 0x15c,
|
|
1521
|
+
_0x1d5c7c: 0x1e7,
|
|
1522
|
+
_0x80bcda: 0x1b8
|
|
1523
|
+
}, _0x51e6a9 = _0x27ce1c;
|
|
1524
|
+
if (_0x58c11f[_0x51e6a9(_0x4fdf53._0x2cff01)] === 0x0)
|
|
1525
|
+
return _0x51e6a9(_0x4fdf53._0x418d85);
|
|
1526
|
+
return _0x58c11f[_0x51e6a9(_0x4fdf53._0x47305f)](_0x250e78 => {
|
|
1527
|
+
const _0x576306 = _0x51e6a9;
|
|
1528
|
+
if (_0x250e78['success']) {
|
|
1529
|
+
const _0x36cf2f = _0x250e78['taskNumber'] == null ? _0x576306(_0x17af06._0x1d7a86) : '#' + _0x250e78[_0x576306(0x1b8)], _0x29be57 = _0x250e78[_0x576306(_0x17af06._0x511899)] ? _0x576306(_0x17af06._0x1af2b4) + _0x250e78[_0x576306(0x139)] : '';
|
|
1530
|
+
if (_0x250e78['workerHandoff']) {
|
|
1531
|
+
const _0x13a0be = [
|
|
1532
|
+
_0x576306(_0x17af06._0x4cbfe3),
|
|
1533
|
+
_0x250e78['stopMain'] ? _0x576306(_0x17af06._0x585472) : null,
|
|
1534
|
+
_0x250e78['executionMode'] ? _0x576306(0x221) + _0x250e78[_0x576306(_0x17af06._0x2960d6)] : null,
|
|
1535
|
+
_0x250e78[_0x576306(0x1c2)] ? _0x576306(0xce) + _0x250e78[_0x576306(0x1c2)] : null,
|
|
1536
|
+
_0x250e78[_0x576306(_0x17af06._0xe60bec)] ? _0x576306(_0x17af06._0x5e2199) + _0x250e78['workerDisposition'] : null
|
|
1537
|
+
][_0x576306(_0x17af06._0x321aec)](Boolean)[_0x576306(0x172)]('\x20');
|
|
1538
|
+
return _0x36cf2f + _0x576306(_0x17af06._0x1d5c7c) + _0x29be57 + '\x20' + _0x13a0be + '\x0a⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Worker\x20handles\x20execution\x20end-to-end.';
|
|
1539
|
+
}
|
|
1540
|
+
const _0x904724 = _0x250e78[_0x576306(0x1b1)] ? _0x576306(0x15e) + _0x250e78['workerHandoffError'] : '';
|
|
1541
|
+
return _0x36cf2f + _0x576306(0x1e7) + _0x29be57 + _0x904724;
|
|
1542
|
+
}
|
|
1543
|
+
const _0x106a6d = _0x250e78[_0x576306(_0x17af06._0x80bcda)] == null ? _0x250e78[_0x576306(0x139)] ?? '(unknown)' : '#' + _0x250e78['taskNumber'];
|
|
1544
|
+
return _0x106a6d + _0x576306(0x100) + (_0x250e78[_0x576306(0x1b7)] ?? _0x576306(0x1f0));
|
|
1545
|
+
})[_0x51e6a9(_0x4fdf53._0x531e23)]('\x0a');
|
|
1546
|
+
}
|
|
1547
|
+
function formatUnclaimTaskResult(_0xb30b41) {
|
|
1548
|
+
const _0x4dc034 = {
|
|
1549
|
+
_0x41b1cf: 0x23d,
|
|
1550
|
+
_0x203832: 0x1b8,
|
|
1551
|
+
_0x4e6b6a: 0x1aa
|
|
1552
|
+
}, _0x2eaa5e = _0x27ce1c, _0x269f69 = _0xb30b41['taskNumber'] == null ? _0x2eaa5e(_0x4dc034._0x41b1cf) : '#' + _0xb30b41[_0x2eaa5e(_0x4dc034._0x203832)];
|
|
1553
|
+
return _0x269f69 + '\x20status=' + _0xb30b41[_0x2eaa5e(_0x4dc034._0x4e6b6a)];
|
|
1554
|
+
}
|
|
1555
|
+
function formatUpdateTaskStatusResult(_0x154fb4) {
|
|
1556
|
+
const _0x1f06d5 = {
|
|
1557
|
+
_0x4d66a9: 0x1b8,
|
|
1558
|
+
_0x17ccf0: 0x1ce,
|
|
1559
|
+
_0x3e01f0: 0x1aa
|
|
1560
|
+
}, _0x13e208 = _0x27ce1c, _0x30c33b = _0x154fb4[_0x13e208(_0x1f06d5._0x4d66a9)] == null ? '(legacy)' : '#' + _0x154fb4[_0x13e208(0x1b8)];
|
|
1561
|
+
return _0x30c33b + _0x13e208(_0x1f06d5._0x17ccf0) + _0x154fb4[_0x13e208(_0x1f06d5._0x3e01f0)];
|
|
1562
|
+
}
|
|
1563
|
+
function getChatBridgeToolDefinitions() {
|
|
1564
|
+
const _0x5e67f9 = {
|
|
1565
|
+
_0x2e912e: 0xd2,
|
|
1566
|
+
_0x13b7d3: 0x1c0,
|
|
1567
|
+
_0x3986bb: 0x21e,
|
|
1568
|
+
_0x535b3b: 0x1f7,
|
|
1569
|
+
_0x530ba9: 0x137
|
|
1570
|
+
}, _0x49f800 = _0x27ce1c;
|
|
1571
|
+
return [
|
|
1572
|
+
{ 'name': 'send_message' },
|
|
1573
|
+
{ 'name': _0x49f800(0x1f6) },
|
|
1574
|
+
{ 'name': 'read_history' },
|
|
1575
|
+
{ 'name': _0x49f800(_0x5e67f9._0x2e912e) },
|
|
1576
|
+
{ 'name': _0x49f800(_0x5e67f9._0x13b7d3) },
|
|
1577
|
+
{ 'name': _0x49f800(_0x5e67f9._0x3986bb) },
|
|
1578
|
+
{ 'name': 'list_tasks' },
|
|
1579
|
+
{ 'name': 'create_tasks' },
|
|
1580
|
+
{ 'name': 'claim_tasks' },
|
|
1581
|
+
{ 'name': _0x49f800(0x19f) },
|
|
1582
|
+
{ 'name': _0x49f800(0x1f1) },
|
|
1583
|
+
{ 'name': _0x49f800(_0x5e67f9._0x535b3b) },
|
|
1584
|
+
{ 'name': 'get_worker_result' },
|
|
1585
|
+
{ 'name': _0x49f800(_0x5e67f9._0x530ba9) },
|
|
1586
|
+
{ 'name': _0x49f800(0x146) },
|
|
1587
|
+
{ 'name': 'mark_waiting_input' }
|
|
1588
|
+
];
|
|
1589
|
+
}
|
|
1590
|
+
function createChatBridgeHandlers(_0x2ea834) {
|
|
1591
|
+
const _0x8bdaec = { _0x5d49d4: 0x1f5 }, _0x470380 = {
|
|
1592
|
+
_0x5eac49: 0xdc,
|
|
1593
|
+
_0x351902: 0xdc,
|
|
1594
|
+
_0x458636: 0x181,
|
|
1595
|
+
_0x5a3efb: 0x142,
|
|
1596
|
+
_0x200848: 0x133,
|
|
1597
|
+
_0x1a8db2: 0x1b7
|
|
1598
|
+
}, _0x439ccc = {
|
|
1599
|
+
_0x1da91a: 0x195,
|
|
1600
|
+
_0x5d9d12: 0xdc,
|
|
1601
|
+
_0x5a937b: 0x1bb,
|
|
1602
|
+
_0x1dcd25: 0x1a2
|
|
1603
|
+
}, _0x1b9cbd = {
|
|
1604
|
+
_0x37d115: 0x142,
|
|
1605
|
+
_0x3663c2: 0x1e1,
|
|
1606
|
+
_0x50a618: 0xda,
|
|
1607
|
+
_0x39245d: 0x1a9,
|
|
1608
|
+
_0x5da94e: 0x1a5,
|
|
1609
|
+
_0xe1c7b7: 0x24d
|
|
1610
|
+
}, _0x2e7b1f = {
|
|
1611
|
+
_0x42c527: 0xdc,
|
|
1612
|
+
_0x49b061: 0x247,
|
|
1613
|
+
_0x261ec2: 0xdc,
|
|
1614
|
+
_0x385378: 0x140,
|
|
1615
|
+
_0x22ac7c: 0xf0,
|
|
1616
|
+
_0x47d634: 0x1a2,
|
|
1617
|
+
_0x540b03: 0x142,
|
|
1618
|
+
_0x582e3a: 0xf0
|
|
1619
|
+
}, _0x1c11a1 = {
|
|
1620
|
+
_0x371730: 0x247,
|
|
1621
|
+
_0x2ccaf2: 0x1a2,
|
|
1622
|
+
_0xc5326b: 0x140
|
|
1623
|
+
}, _0x155279 = { _0x3d0b79: 0xe8 }, _0x317856 = { _0x474914: 0xf3 }, _0x467272 = { _0x19bd73: 0xd9 }, _0x598ca1 = {
|
|
1624
|
+
_0x26b0b8: 0x212,
|
|
1625
|
+
_0x26bfe6: 0x24f,
|
|
1626
|
+
_0x2cf1fe: 0x1a8
|
|
1627
|
+
}, _0x1af305 = {
|
|
1628
|
+
_0x2a5d23: 0x1db,
|
|
1629
|
+
_0x381ffd: 0xf3,
|
|
1630
|
+
_0x54668: 0x22d
|
|
1631
|
+
}, _0x808a14 = {
|
|
1632
|
+
_0x194e52: 0xe8,
|
|
1633
|
+
_0x2ec4f5: 0x176
|
|
1634
|
+
}, _0x4c5a68 = {
|
|
1635
|
+
_0x37180a: 0x1cd,
|
|
1636
|
+
_0x4c1bb0: 0x10d,
|
|
1637
|
+
_0x4a3d50: 0xd0,
|
|
1638
|
+
_0x34f096: 0x187,
|
|
1639
|
+
_0x3dcc8a: 0x1b8,
|
|
1640
|
+
_0x441021: 0x1b8,
|
|
1641
|
+
_0x3e3c9c: 0x20b
|
|
1642
|
+
}, _0x568d44 = {
|
|
1643
|
+
_0x16a392: 0x1d8,
|
|
1644
|
+
_0x30d8aa: 0xd8
|
|
1645
|
+
}, _0x55005a = {
|
|
1646
|
+
_0x533457: 0xd8,
|
|
1647
|
+
_0xde5e58: 0xf5,
|
|
1648
|
+
_0x379aa3: 0x1b8,
|
|
1649
|
+
_0x31fd01: 0x1cf,
|
|
1650
|
+
_0x4f1307: 0xd0,
|
|
1651
|
+
_0x3d56: 0x1d9,
|
|
1652
|
+
_0x3c42a0: 0x237,
|
|
1653
|
+
_0x186227: 0x172,
|
|
1654
|
+
_0x23435c: 0x1fe,
|
|
1655
|
+
_0x19a8bc: 0x161,
|
|
1656
|
+
_0x10318: 0xf4,
|
|
1657
|
+
_0x1645a9: 0x22d,
|
|
1658
|
+
_0x1023cc: 0x194,
|
|
1659
|
+
_0x423759: 0x116,
|
|
1660
|
+
_0x169565: 0x172,
|
|
1661
|
+
_0x2ff6da: 0xdc,
|
|
1662
|
+
_0x5b2383: 0x142,
|
|
1663
|
+
_0x419084: 0x140,
|
|
1664
|
+
_0x33d5f0: 0x155,
|
|
1665
|
+
_0xa73f16: 0x1d9,
|
|
1666
|
+
_0x50c6e6: 0xdb,
|
|
1667
|
+
_0x21255e: 0x184,
|
|
1668
|
+
_0x480433: 0x172,
|
|
1669
|
+
_0x2350b2: 0x17f,
|
|
1670
|
+
_0xd2a2cb: 0xfd,
|
|
1671
|
+
_0x42f93b: 0xe1
|
|
1672
|
+
}, _0xeee36d = {
|
|
1673
|
+
_0x3ab92f: 0xdc,
|
|
1674
|
+
_0x7374ad: 0x195,
|
|
1675
|
+
_0x400258: 0x1cd,
|
|
1676
|
+
_0xb2ca9a: 0x10d,
|
|
1677
|
+
_0x1ec1b9: 0x164
|
|
1678
|
+
}, _0x37587e = {
|
|
1679
|
+
_0x51dd3d: 0x1cd,
|
|
1680
|
+
_0x4b134c: 0x10d,
|
|
1681
|
+
_0x31c5c8: 0x18f
|
|
1682
|
+
}, _0x4c95d6 = {
|
|
1683
|
+
_0x4ee8a5: 0xd8,
|
|
1684
|
+
_0x1f993d: 0x215,
|
|
1685
|
+
_0x12ed8c: 0x1cf,
|
|
1686
|
+
_0x1839d1: 0x12f,
|
|
1687
|
+
_0x4a146c: 0x1ba,
|
|
1688
|
+
_0x1144ad: 0x1b8,
|
|
1689
|
+
_0x167040: 0x23d,
|
|
1690
|
+
_0x244f8b: 0x1fe,
|
|
1691
|
+
_0x4211d2: 0xd0,
|
|
1692
|
+
_0x274ca1: 0x157,
|
|
1693
|
+
_0x552ebd: 0x139,
|
|
1694
|
+
_0x42876a: 0x172,
|
|
1695
|
+
_0x535f54: 0x1bb,
|
|
1696
|
+
_0x345780: 0x195,
|
|
1697
|
+
_0x422b98: 0x22d,
|
|
1698
|
+
_0x504d6b: 0x155,
|
|
1699
|
+
_0x576235: 0x16d,
|
|
1700
|
+
_0x2191f8: 0x175,
|
|
1701
|
+
_0x4952d6: 0xdb,
|
|
1702
|
+
_0x454459: 0x1ec,
|
|
1703
|
+
_0x1f13b7: 0xe6
|
|
1704
|
+
}, _0x14e664 = _0x27ce1c;
|
|
1705
|
+
async function _0x59a40e(_0x5d265b) {
|
|
1706
|
+
const _0x1cfbf5 = _0x4754;
|
|
1707
|
+
if (!_0x2ea834[_0x1cfbf5(0xdc)] || !_0x2ea834['agentId'] || _0x2ea834[_0x1cfbf5(_0x4c95d6._0x4ee8a5)] || _0x2ea834['workerModeEnabled'] !== !![])
|
|
1708
|
+
return null;
|
|
1709
|
+
const _0x44a9b3 = parseTarget(_0x5d265b['channel']);
|
|
1710
|
+
if (_0x44a9b3[_0x1cfbf5(_0x4c95d6._0x1f993d)] !== 'channel')
|
|
1711
|
+
return null;
|
|
1712
|
+
const _0x403250 = _0x5d265b[_0x1cfbf5(_0x4c95d6._0x12ed8c)] != null ? _0x44a9b3['channelTarget'] + ':t' + _0x5d265b[_0x1cfbf5(0x1cf)] : _0x44a9b3[_0x1cfbf5(_0x4c95d6._0x1839d1)] + ':' + _0x5d265b[_0x1cfbf5(0x139)];
|
|
1713
|
+
let _0x873b73;
|
|
1714
|
+
try {
|
|
1715
|
+
const _0x1b95a4 = await _0x2ea834[_0x1cfbf5(0xe8)][_0x1cfbf5(_0x4c95d6._0x4a146c)]({
|
|
1716
|
+
'channel': _0x403250,
|
|
1717
|
+
'limit': 0x14
|
|
1718
|
+
});
|
|
1719
|
+
_0x873b73 = _0x1b95a4['messages'][_0x1cfbf5(0x187)](_0x310d0c => _0x310d0c['messageId'] === _0x5d265b[_0x1cfbf5(0x139)]);
|
|
1720
|
+
} catch {
|
|
1721
|
+
_0x873b73 = void 0x0;
|
|
1722
|
+
}
|
|
1723
|
+
const _0x4cdcd9 = _0x5d265b[_0x1cfbf5(_0x4c95d6._0x1144ad)] == null ? _0x1cfbf5(_0x4c95d6._0x167040) : '#' + _0x5d265b[_0x1cfbf5(0x1b8)], _0x23b7b4 = [
|
|
1724
|
+
_0x1cfbf5(_0x4c95d6._0x244f8b) + _0x403250 + _0x1cfbf5(0x20e) + _0x5d265b[_0x1cfbf5(0x139)][_0x1cfbf5(_0x4c95d6._0x4211d2)](0x0, 0x8) + '\x20time=' + new Date()[_0x1cfbf5(0x161)]() + _0x1cfbf5(0x19a) + _0x4cdcd9 + _0x1cfbf5(0xef),
|
|
1725
|
+
'',
|
|
1726
|
+
_0x873b73 ? _0x1cfbf5(0x228) + _0x873b73[_0x1cfbf5(_0x4c95d6._0x274ca1)] : _0x1cfbf5(0x235) + _0x5d265b[_0x1cfbf5(_0x4c95d6._0x552ebd)],
|
|
1727
|
+
'',
|
|
1728
|
+
_0x1cfbf5(0x194) + _0x403250,
|
|
1729
|
+
_0x1cfbf5(0x1eb)
|
|
1730
|
+
][_0x1cfbf5(_0x4c95d6._0x42876a)]('\x0a'), _0xe60262 = await fetch(_0x2ea834['daemonLocalUrl'] + _0x1cfbf5(0x134), {
|
|
1731
|
+
'method': _0x1cfbf5(_0x4c95d6._0x535f54),
|
|
1732
|
+
'headers': { 'Content-Type': _0x1cfbf5(0x170) },
|
|
1733
|
+
'body': JSON[_0x1cfbf5(0x142)]({
|
|
1734
|
+
'agent_id': _0x2ea834[_0x1cfbf5(_0x4c95d6._0x345780)],
|
|
1735
|
+
'thread_target': _0x403250,
|
|
1736
|
+
'spawn_packet': {
|
|
1737
|
+
'replyTarget': _0x403250,
|
|
1738
|
+
..._0x5d265b[_0x1cfbf5(0x22d)] ? { 'taskId': _0x5d265b[_0x1cfbf5(_0x4c95d6._0x422b98)] } : _0x5d265b[_0x1cfbf5(0x1b8)] != null ? { 'taskId': 'task-' + _0x5d265b[_0x1cfbf5(0x1b8)] } : {}
|
|
1739
|
+
},
|
|
1740
|
+
'payload': {
|
|
1741
|
+
'mode': 'user',
|
|
1742
|
+
'text': _0x23b7b4
|
|
1743
|
+
}
|
|
1744
|
+
})
|
|
1745
|
+
}), _0xe75293 = await _0xe60262[_0x1cfbf5(0x140)]();
|
|
1746
|
+
if (!_0xe75293['ok'])
|
|
1747
|
+
throw new Error(_0xe75293[_0x1cfbf5(_0x4c95d6._0x504d6b)] ?? _0x1cfbf5(0x1af));
|
|
1748
|
+
return {
|
|
1749
|
+
'stopMain': !![],
|
|
1750
|
+
'threadTarget': _0x403250,
|
|
1751
|
+
'workerDisposition': _0xe75293[_0x1cfbf5(_0x4c95d6._0x576235)] === _0x1cfbf5(_0x4c95d6._0x2191f8) ? _0x1cfbf5(0x175) : _0x1cfbf5(_0x4c95d6._0x4952d6),
|
|
1752
|
+
'workerHandoff': !![],
|
|
1753
|
+
'workerSessionId': _0xe75293[_0x1cfbf5(_0x4c95d6._0x454459)] ?? '',
|
|
1754
|
+
'executionMode': _0x1cfbf5(_0x4c95d6._0x1f13b7)
|
|
1755
|
+
};
|
|
1756
|
+
}
|
|
1757
|
+
async function _0x368447() {
|
|
1758
|
+
const _0x19ecbf = _0x4754;
|
|
1759
|
+
if (!_0x2ea834[_0x19ecbf(0xdc)] || !_0x2ea834[_0x19ecbf(0x195)] || _0x2ea834['workerMode'])
|
|
1760
|
+
return null;
|
|
1761
|
+
try {
|
|
1762
|
+
const _0x4e11cf = await fetch(_0x2ea834['daemonLocalUrl'] + _0x19ecbf(_0x37587e._0x51dd3d) + encodeURIComponent(_0x2ea834['agentId'])), _0x36829a = await _0x4e11cf['json']();
|
|
1763
|
+
if (!_0x36829a['ok'])
|
|
1764
|
+
return null;
|
|
1765
|
+
const _0x10a66c = new Set();
|
|
1766
|
+
for (const _0xc9c796 of _0x36829a['workers']) {
|
|
1767
|
+
_0xc9c796[_0x19ecbf(0x1aa)] !== _0x19ecbf(0x22b) && _0xc9c796[_0x19ecbf(_0x37587e._0x4b134c)] && _0x10a66c[_0x19ecbf(_0x37587e._0x31c5c8)](_0xc9c796[_0x19ecbf(0x10d)]);
|
|
1768
|
+
}
|
|
1769
|
+
return _0x10a66c['size'] > 0x0 ? _0x10a66c : null;
|
|
1770
|
+
} catch {
|
|
1771
|
+
return null;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
const _0x4846e0 = new Set([
|
|
1775
|
+
'running',
|
|
1776
|
+
'idle',
|
|
1777
|
+
_0x14e664(_0x8bdaec._0x5d49d4)
|
|
1778
|
+
]);
|
|
1779
|
+
async function _0x15b1d7() {
|
|
1780
|
+
const _0x5a11a3 = _0x14e664;
|
|
1781
|
+
if (!_0x2ea834[_0x5a11a3(_0xeee36d._0x3ab92f)] || !_0x2ea834[_0x5a11a3(_0xeee36d._0x7374ad)] || _0x2ea834['workerMode'])
|
|
1782
|
+
return null;
|
|
1783
|
+
try {
|
|
1784
|
+
const _0x11a3aa = await fetch(_0x2ea834[_0x5a11a3(0xdc)] + _0x5a11a3(_0xeee36d._0x400258) + encodeURIComponent(_0x2ea834['agentId'])), _0x3b83ed = await _0x11a3aa[_0x5a11a3(0x140)]();
|
|
1785
|
+
if (!_0x3b83ed['ok'])
|
|
1786
|
+
return null;
|
|
1787
|
+
const _0x5158a9 = new Set();
|
|
1788
|
+
for (const _0x1bf539 of _0x3b83ed[_0x5a11a3(0x213)]) {
|
|
1789
|
+
_0x4846e0[_0x5a11a3(0x129)](_0x1bf539[_0x5a11a3(0x1aa)]) && _0x1bf539[_0x5a11a3(_0xeee36d._0xb2ca9a)] && _0x5158a9[_0x5a11a3(0x18f)](_0x1bf539['thread_target']);
|
|
1790
|
+
}
|
|
1791
|
+
return _0x5158a9[_0x5a11a3(_0xeee36d._0x1ec1b9)] > 0x0 ? _0x5158a9 : null;
|
|
1792
|
+
} catch {
|
|
1793
|
+
return null;
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
return {
|
|
1797
|
+
async 'send_message'(_0x41c6e8) {
|
|
1798
|
+
const _0x2d4362 = _0x14e664;
|
|
1799
|
+
if (!_0x2ea834[_0x2d4362(_0x55005a._0x533457)] && _0x2ea834[_0x2d4362(0x179)] && _0x2ea834[_0x2d4362(0xdc)] && _0x2ea834[_0x2d4362(0x195)]) {
|
|
1800
|
+
const _0xc846e = await _0x2ea834['client'][_0x2d4362(0x136)](_0x41c6e8[_0x2d4362(0xe1)]);
|
|
1801
|
+
if (_0xc846e[_0x2d4362(0xf5)] && _0xc846e[_0x2d4362(0x1b5)]) {
|
|
1802
|
+
const _0x9123e9 = _0xc846e[_0x2d4362(_0x55005a._0xde5e58)][_0x2d4362(_0x55005a._0x379aa3)] != null ? '#' + _0xc846e[_0x2d4362(0xf5)][_0x2d4362(0x1b8)] : _0x2d4362(0x23d), _0x4f592e = _0xc846e[_0x2d4362(_0x55005a._0x31fd01)] != null ? _0xc846e[_0x2d4362(0xe1)] + ':t' + _0xc846e['threadNumber'] : _0xc846e[_0x2d4362(0xe1)] + ':' + _0xc846e['threadId'][_0x2d4362(_0x55005a._0x4f1307)](0x0, 0x8), _0x4afd3c = await _0x15b1d7();
|
|
1803
|
+
if (_0x4afd3c?.[_0x2d4362(0x129)](_0x4f592e))
|
|
1804
|
+
return [
|
|
1805
|
+
'Task\x20' + _0x9123e9 + _0x2d4362(_0x55005a._0x3d56) + _0x4f592e + _0x2d4362(_0x55005a._0x3c42a0),
|
|
1806
|
+
_0x2d4362(0x22f)
|
|
1807
|
+
][_0x2d4362(_0x55005a._0x186227)]('\x0a');
|
|
1808
|
+
const _0x53d8d7 = [
|
|
1809
|
+
_0x2d4362(_0x55005a._0x23435c) + _0x4f592e + _0x2d4362(0x14d) + new Date()[_0x2d4362(_0x55005a._0x19a8bc)]() + _0x2d4362(_0x55005a._0x10318),
|
|
1810
|
+
'',
|
|
1811
|
+
_0x2d4362(0xdd) + _0x41c6e8[_0x2d4362(0x157)],
|
|
1812
|
+
_0x2d4362(0x13c) + _0x9123e9 + '\x20(' + _0xc846e[_0x2d4362(0xf5)][_0x2d4362(_0x55005a._0x1645a9)] + ')',
|
|
1813
|
+
_0x2d4362(_0x55005a._0x1023cc) + _0x4f592e,
|
|
1814
|
+
_0x2d4362(_0x55005a._0x423759)
|
|
1815
|
+
][_0x2d4362(_0x55005a._0x169565)]('\x0a'), _0x275f64 = await fetch(_0x2ea834[_0x2d4362(_0x55005a._0x2ff6da)] + _0x2d4362(0x134), {
|
|
1816
|
+
'method': 'POST',
|
|
1817
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1818
|
+
'body': JSON[_0x2d4362(_0x55005a._0x5b2383)]({
|
|
1819
|
+
'agent_id': _0x2ea834['agentId'],
|
|
1820
|
+
'thread_target': _0x4f592e,
|
|
1821
|
+
'spawn_packet': {
|
|
1822
|
+
'replyTarget': _0x4f592e,
|
|
1823
|
+
'taskId': _0xc846e[_0x2d4362(_0x55005a._0xde5e58)]['taskId']
|
|
1824
|
+
},
|
|
1825
|
+
'payload': {
|
|
1826
|
+
'mode': _0x2d4362(0xd1),
|
|
1827
|
+
'text': _0x53d8d7
|
|
1828
|
+
}
|
|
1829
|
+
})
|
|
1830
|
+
}), _0x4177a1 = await _0x275f64[_0x2d4362(_0x55005a._0x419084)]();
|
|
1831
|
+
if (!_0x4177a1['ok'])
|
|
1832
|
+
throw new Error(_0x4177a1[_0x2d4362(_0x55005a._0x33d5f0)] ?? 'enter-handoff\x20failed');
|
|
1833
|
+
return [
|
|
1834
|
+
'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x9123e9 + _0x2d4362(_0x55005a._0xa73f16) + _0x4f592e + _0x2d4362(0x17a),
|
|
1835
|
+
'Worker\x20' + (_0x4177a1['disposition'] === 'queued' ? _0x2d4362(0x175) : _0x2d4362(_0x55005a._0x50c6e6)) + '.',
|
|
1836
|
+
_0x2d4362(_0x55005a._0x21255e)
|
|
1837
|
+
][_0x2d4362(_0x55005a._0x480433)]('\x0a');
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
const _0x507ac4 = await _0x2ea834[_0x2d4362(0xe8)][_0x2d4362(_0x55005a._0x2350b2)]({
|
|
1841
|
+
'attachmentIds': _0x41c6e8[_0x2d4362(_0x55005a._0xd2a2cb)],
|
|
1842
|
+
'content': _0x41c6e8[_0x2d4362(0x157)],
|
|
1843
|
+
'target': _0x41c6e8[_0x2d4362(_0x55005a._0x42f93b)],
|
|
1844
|
+
'visibility': _0x41c6e8[_0x2d4362(0x21b)]
|
|
1845
|
+
});
|
|
1846
|
+
return 'Message\x20sent\x20to\x20' + _0x41c6e8[_0x2d4362(0xe1)] + '.\x20Message\x20ID:\x20' + _0x507ac4[_0x2d4362(0x139)];
|
|
1847
|
+
},
|
|
1848
|
+
async 'check_messages'() {
|
|
1849
|
+
const _0xa33f76 = _0x14e664, _0x340ce7 = await _0x2ea834[_0xa33f76(0xe8)][_0xa33f76(_0x568d44._0x16a392)]();
|
|
1850
|
+
if (!_0x2ea834[_0xa33f76(_0x568d44._0x30d8aa)]) {
|
|
1851
|
+
const _0x39e647 = await _0x368447();
|
|
1852
|
+
if (_0x39e647)
|
|
1853
|
+
return formatCheckMessages(_0x340ce7['messages'][_0xa33f76(0x15c)](_0x3a2e9d => !_0x39e647[_0xa33f76(0x129)](_0x3a2e9d[_0xa33f76(0xe1)])));
|
|
1854
|
+
}
|
|
1855
|
+
return formatCheckMessages(_0x340ce7[_0xa33f76(0x238)]);
|
|
1856
|
+
},
|
|
1857
|
+
async 'read_history'(_0x357cd8) {
|
|
1858
|
+
const _0x7f17e8 = _0x14e664, _0x517ae7 = await _0x2ea834[_0x7f17e8(0xe8)][_0x7f17e8(0x1ba)](_0x357cd8);
|
|
1859
|
+
return formatHistory(_0x517ae7);
|
|
1860
|
+
},
|
|
1861
|
+
async 'list_server'() {
|
|
1862
|
+
const _0x44b537 = _0x14e664, _0x3b4172 = await _0x2ea834[_0x44b537(0xe8)][_0x44b537(0x110)]();
|
|
1863
|
+
return formatServerDirectory(_0x3b4172);
|
|
1864
|
+
},
|
|
1865
|
+
async 'list_tasks'(_0x31aebb) {
|
|
1866
|
+
const _0x3f2393 = _0x14e664, _0x22ad64 = await _0x2ea834['client'][_0x3f2393(0x253)](_0x31aebb);
|
|
1867
|
+
let _0x162e74;
|
|
1868
|
+
if (_0x2ea834[_0x3f2393(0xdc)] && _0x2ea834[_0x3f2393(0x195)])
|
|
1869
|
+
try {
|
|
1870
|
+
const _0x3d8192 = await fetch(_0x2ea834['daemonLocalUrl'] + _0x3f2393(_0x4c5a68._0x37180a) + encodeURIComponent(_0x2ea834[_0x3f2393(0x195)])), _0x2032ce = await _0x3d8192[_0x3f2393(0x140)]();
|
|
1871
|
+
if (_0x2032ce['ok']) {
|
|
1872
|
+
const _0x549837 = _0x31aebb[_0x3f2393(0xf3)] + ':';
|
|
1873
|
+
_0x162e74 = new Set();
|
|
1874
|
+
for (const _0x2879a7 of _0x2032ce['workers']) {
|
|
1875
|
+
if (_0x2879a7[_0x3f2393(0x1aa)] === _0x3f2393(0x22b))
|
|
1876
|
+
continue;
|
|
1877
|
+
if (_0x2879a7[_0x3f2393(_0x4c5a68._0x4c1bb0)]?.[_0x3f2393(0x1cc)](_0x549837)) {
|
|
1878
|
+
const _0x6301bf = _0x2879a7[_0x3f2393(0x10d)][_0x3f2393(_0x4c5a68._0x4a3d50)](_0x549837['length']), _0x4bac5a = _0x22ad64[_0x3f2393(0x20b)][_0x3f2393(_0x4c5a68._0x34f096)](_0xb3ad87 => _0xb3ad87['messageId']?.[_0x3f2393(0x1cc)](_0x6301bf) === !![]);
|
|
1879
|
+
if (_0x4bac5a?.['taskNumber'] != null) {
|
|
1880
|
+
_0x162e74[_0x3f2393(0x18f)](_0x4bac5a[_0x3f2393(_0x4c5a68._0x3dcc8a)]);
|
|
1881
|
+
continue;
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
if (_0x2879a7[_0x3f2393(0x190)]) {
|
|
1885
|
+
const _0xd1a0dd = _0x22ad64[_0x3f2393(0x20b)]['find'](_0x54d600 => _0x54d600[_0x3f2393(0x22d)] === _0x2879a7['task_id']);
|
|
1886
|
+
_0xd1a0dd?.[_0x3f2393(_0x4c5a68._0x441021)] != null && _0x162e74[_0x3f2393(0x18f)](_0xd1a0dd[_0x3f2393(0x1b8)]);
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
} catch {
|
|
1891
|
+
}
|
|
1892
|
+
return formatTaskList(_0x22ad64[_0x3f2393(_0x4c5a68._0x3e3c9c)], _0x162e74);
|
|
1893
|
+
},
|
|
1894
|
+
async 'create_tasks'(_0x1a0b68) {
|
|
1895
|
+
const _0x33fab2 = _0x14e664, _0x335916 = await _0x2ea834[_0x33fab2(_0x808a14._0x194e52)][_0x33fab2(_0x808a14._0x2ec4f5)](_0x1a0b68);
|
|
1896
|
+
return formatCreatedTasks(_0x335916['tasks']);
|
|
1897
|
+
},
|
|
1898
|
+
async 'claim_tasks'(_0x1d7145) {
|
|
1899
|
+
const _0x3d5105 = _0x14e664, _0x1dba40 = await _0x2ea834['client'][_0x3d5105(_0x598ca1._0x26b0b8)](_0x1d7145), _0xc88b5d = await Promise[_0x3d5105(_0x598ca1._0x26bfe6)](_0x1dba40[_0x3d5105(_0x598ca1._0x2cf1fe)][_0x3d5105(0x14e)](async _0x165203 => {
|
|
1900
|
+
const _0xbfc1a7 = _0x3d5105;
|
|
1901
|
+
if (!_0x165203[_0xbfc1a7(_0x1af305._0x2a5d23)] || !_0x165203[_0xbfc1a7(0x139)])
|
|
1902
|
+
return _0x165203;
|
|
1903
|
+
try {
|
|
1904
|
+
const _0x5dce14 = await _0x59a40e({
|
|
1905
|
+
'channel': _0x1d7145[_0xbfc1a7(_0x1af305._0x381ffd)],
|
|
1906
|
+
'messageId': _0x165203['messageId'],
|
|
1907
|
+
'taskId': _0x165203[_0xbfc1a7(_0x1af305._0x54668)],
|
|
1908
|
+
'taskNumber': _0x165203[_0xbfc1a7(0x1b8)],
|
|
1909
|
+
'threadNumber': _0x165203[_0xbfc1a7(0x1cf)]
|
|
1910
|
+
});
|
|
1911
|
+
return _0x5dce14 ? {
|
|
1912
|
+
..._0x165203,
|
|
1913
|
+
..._0x5dce14
|
|
1914
|
+
} : _0x165203;
|
|
1915
|
+
} catch (_0x4afdff) {
|
|
1916
|
+
return {
|
|
1917
|
+
..._0x165203,
|
|
1918
|
+
'workerHandoffError': _0x4afdff instanceof Error ? _0x4afdff['message'] : _0xbfc1a7(0x1af)
|
|
1919
|
+
};
|
|
1920
|
+
}
|
|
1921
|
+
}));
|
|
1922
|
+
return formatClaimTaskResults(_0xc88b5d);
|
|
1923
|
+
},
|
|
1924
|
+
async 'unclaim_task'(_0xd068b) {
|
|
1925
|
+
const _0x16a537 = _0x14e664, _0x751abe = await _0x2ea834[_0x16a537(0xe8)][_0x16a537(_0x467272._0x19bd73)](_0xd068b);
|
|
1926
|
+
return formatUnclaimTaskResult(_0x751abe);
|
|
1927
|
+
},
|
|
1928
|
+
async 'update_task_status'(_0x4f400d) {
|
|
1929
|
+
const _0x91d9aa = _0x14e664, _0x3ea014 = await _0x2ea834[_0x91d9aa(0xe8)]['updateTaskStatus'](_0x4f400d);
|
|
1930
|
+
return formatUpdateTaskStatusResult(_0x3ea014);
|
|
1931
|
+
},
|
|
1932
|
+
async 'upload_file'(_0x17fe0e) {
|
|
1933
|
+
const _0x1987d8 = _0x14e664, _0x1c5f9b = await _0x2ea834[_0x1987d8(0xee)](_0x17fe0e[_0x1987d8(0x1b0)]), {
|
|
1934
|
+
sizeBytes: _0x43112f,
|
|
1935
|
+
..._0x5b881e
|
|
1936
|
+
} = _0x1c5f9b, _0x37dff9 = await _0x2ea834['client']['uploadFile']({
|
|
1937
|
+
'channel': _0x17fe0e[_0x1987d8(_0x317856._0x474914)],
|
|
1938
|
+
..._0x5b881e
|
|
1939
|
+
});
|
|
1940
|
+
return formatUploadResult(_0x37dff9);
|
|
1941
|
+
},
|
|
1942
|
+
async 'view_file'(_0x562692) {
|
|
1943
|
+
const _0xf37ef6 = _0x14e664, _0x645fb1 = await _0x2ea834['attachmentCache'][_0xf37ef6(0x14b)](_0x562692['attachment_id']);
|
|
1944
|
+
if (_0x645fb1)
|
|
1945
|
+
return formatViewFileResult(_0x645fb1, !![]);
|
|
1946
|
+
const _0x29a674 = await _0x2ea834[_0xf37ef6(_0x155279._0x3d0b79)][_0xf37ef6(0x205)](_0x562692[_0xf37ef6(0x112)]), _0x278ede = await _0x2ea834['attachmentCache'][_0xf37ef6(0xf2)]({
|
|
1947
|
+
'attachmentId': _0x562692[_0xf37ef6(0x112)],
|
|
1948
|
+
'contentType': _0x29a674['contentType'],
|
|
1949
|
+
'data': _0x29a674['data'],
|
|
1950
|
+
'originalFilename': _0x29a674[_0xf37ef6(0x223)]
|
|
1951
|
+
});
|
|
1952
|
+
return formatViewFileResult(_0x278ede, ![]);
|
|
1953
|
+
},
|
|
1954
|
+
async 'get_worker_status'(_0x1f54ab) {
|
|
1955
|
+
const _0xdc8cd0 = _0x14e664;
|
|
1956
|
+
if (!_0x2ea834['daemonLocalUrl'])
|
|
1957
|
+
return _0xdc8cd0(_0x1c11a1._0x371730);
|
|
1958
|
+
const _0x559c44 = await fetch(_0x2ea834['daemonLocalUrl'] + _0xdc8cd0(0x1a1) + encodeURIComponent(_0x1f54ab[_0xdc8cd0(_0x1c11a1._0x2ccaf2)])), _0x5759b3 = await _0x559c44[_0xdc8cd0(_0x1c11a1._0xc5326b)]();
|
|
1959
|
+
if (!_0x5759b3['ok'])
|
|
1960
|
+
return _0xdc8cd0(0x12d) + _0x1f54ab['work_key'] + '\x22\x20not\x20found';
|
|
1961
|
+
return 'Worker\x20\x22' + _0x1f54ab[_0xdc8cd0(_0x1c11a1._0x2ccaf2)] + _0xdc8cd0(0xe2) + _0x5759b3[_0xdc8cd0(0x1aa)];
|
|
1962
|
+
},
|
|
1963
|
+
async 'get_worker_result'(_0x5d82b3) {
|
|
1964
|
+
const _0x842c39 = _0x14e664;
|
|
1965
|
+
if (!_0x2ea834[_0x842c39(_0x2e7b1f._0x42c527)])
|
|
1966
|
+
return _0x842c39(_0x2e7b1f._0x49b061);
|
|
1967
|
+
const _0x169232 = await fetch(_0x2ea834[_0x842c39(_0x2e7b1f._0x261ec2)] + '/workers/result?work_key=' + encodeURIComponent(_0x5d82b3['work_key'])), _0x4a92e3 = await _0x169232[_0x842c39(_0x2e7b1f._0x385378)]();
|
|
1968
|
+
if (!_0x4a92e3[_0x842c39(_0x2e7b1f._0x22ac7c)])
|
|
1969
|
+
return _0x842c39(0x106) + _0x5d82b3[_0x842c39(_0x2e7b1f._0x47d634)] + '\x22';
|
|
1970
|
+
return JSON[_0x842c39(_0x2e7b1f._0x540b03)](_0x4a92e3[_0x842c39(_0x2e7b1f._0x582e3a)], null, 0x2);
|
|
1971
|
+
},
|
|
1972
|
+
async 'finish_worker'(_0x25ed68) {
|
|
1973
|
+
const _0x4a55ce = _0x14e664;
|
|
1974
|
+
if (!_0x2ea834[_0x4a55ce(0xdc)])
|
|
1975
|
+
return _0x4a55ce(0x247);
|
|
1976
|
+
const _0x46edb7 = await fetch(_0x2ea834['daemonLocalUrl'] + _0x4a55ce(0x1c1), {
|
|
1977
|
+
'method': _0x4a55ce(0x1bb),
|
|
1978
|
+
'headers': { 'Content-Type': _0x4a55ce(0x170) },
|
|
1979
|
+
'body': JSON[_0x4a55ce(_0x1b9cbd._0x37d115)]({
|
|
1980
|
+
'work_key': _0x25ed68['work_key'],
|
|
1981
|
+
'resume_packet': {
|
|
1982
|
+
'objective': '',
|
|
1983
|
+
'result': _0x25ed68[_0x4a55ce(0x10a)],
|
|
1984
|
+
'summary': _0x25ed68['summary'],
|
|
1985
|
+
'decisions': _0x25ed68[_0x4a55ce(_0x1b9cbd._0x3663c2)] ?? [],
|
|
1986
|
+
'filesChanged': _0x25ed68[_0x4a55ce(0x1ab)] ?? [],
|
|
1987
|
+
'openIssues': _0x25ed68[_0x4a55ce(_0x1b9cbd._0x50a618)] ?? [],
|
|
1988
|
+
'nextSteps': _0x25ed68[_0x4a55ce(_0x1b9cbd._0x39245d)] ?? []
|
|
1989
|
+
}
|
|
1990
|
+
})
|
|
1991
|
+
}), _0x471dbe = await _0x46edb7['json']();
|
|
1992
|
+
if (!_0x471dbe['ok'])
|
|
1993
|
+
throw new Error(_0x471dbe['error'] ?? _0x4a55ce(_0x1b9cbd._0x5da94e));
|
|
1994
|
+
return _0x4a55ce(0x12d) + _0x25ed68[_0x4a55ce(0x1a2)] + _0x4a55ce(_0x1b9cbd._0xe1c7b7) + _0x25ed68[_0x4a55ce(0x10a)];
|
|
1995
|
+
},
|
|
1996
|
+
async 'mark_waiting_input'(_0x3f75a4) {
|
|
1997
|
+
const _0xf97640 = _0x14e664;
|
|
1998
|
+
if (!_0x2ea834[_0xf97640(0xdc)] || !_0x2ea834[_0xf97640(_0x439ccc._0x1da91a)])
|
|
1999
|
+
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20or\x20agent\x20ID\x20not\x20configured)';
|
|
2000
|
+
const _0x7b20e1 = await fetch(_0x2ea834[_0xf97640(_0x439ccc._0x5d9d12)] + _0xf97640(0x178), {
|
|
2001
|
+
'method': _0xf97640(_0x439ccc._0x5a937b),
|
|
2002
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2003
|
+
'body': JSON[_0xf97640(0x142)]({
|
|
2004
|
+
'work_key': _0x3f75a4['work_key'],
|
|
2005
|
+
'agent_id': _0x2ea834[_0xf97640(0x195)]
|
|
2006
|
+
})
|
|
2007
|
+
}), _0xa7d135 = await _0x7b20e1[_0xf97640(0x140)]();
|
|
2008
|
+
if (!_0xa7d135['ok'])
|
|
2009
|
+
throw new Error(_0xa7d135['error'] ?? 'mark_waiting_input\x20failed');
|
|
2010
|
+
return _0xf97640(0x12d) + _0x3f75a4[_0xf97640(_0x439ccc._0x1dcd25)] + _0xf97640(0x22a);
|
|
2011
|
+
},
|
|
2012
|
+
async 'escalate_to_main'(_0x16f86f) {
|
|
2013
|
+
const _0x552a6a = _0x14e664;
|
|
2014
|
+
if (!_0x2ea834[_0x552a6a(_0x470380._0x5eac49)])
|
|
2015
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2016
|
+
const _0x343f1c = await fetch(_0x2ea834[_0x552a6a(_0x470380._0x351902)] + _0x552a6a(_0x470380._0x458636), {
|
|
2017
|
+
'method': 'POST',
|
|
2018
|
+
'headers': { 'Content-Type': _0x552a6a(0x170) },
|
|
2019
|
+
'body': JSON[_0x552a6a(_0x470380._0x5a3efb)]({
|
|
2020
|
+
'work_key': _0x16f86f['work_key'],
|
|
2021
|
+
'reason': _0x16f86f[_0x552a6a(0x1b7)]
|
|
2022
|
+
})
|
|
2023
|
+
}), _0x3b0eac = await _0x343f1c['json']();
|
|
2024
|
+
if (!_0x3b0eac['ok'])
|
|
2025
|
+
throw new Error(_0x3b0eac['error'] ?? _0x552a6a(_0x470380._0x200848));
|
|
2026
|
+
return _0x552a6a(0x20d) + _0x16f86f[_0x552a6a(_0x470380._0x1a8db2)];
|
|
2027
|
+
}
|
|
2028
|
+
};
|
|
2029
|
+
}
|
|
2030
|
+
function textResult(_0x21b695, _0x37df90 = ![]) {
|
|
2031
|
+
return {
|
|
2032
|
+
'content': [{
|
|
2033
|
+
'type': 'text',
|
|
2034
|
+
'text': _0x21b695
|
|
2035
|
+
}],
|
|
2036
|
+
..._0x37df90 ? { 'isError': !![] } : {}
|
|
2037
|
+
};
|
|
2038
|
+
}
|
|
2039
|
+
async function registerChatBridgeTools(_0x36dfdf, _0x10654c, _0x4e6cb6) {
|
|
2040
|
+
const _0x25e8e9 = {
|
|
2041
|
+
_0x3390aa: 0x258,
|
|
2042
|
+
_0x49c390: 0x199,
|
|
2043
|
+
_0x4abfb6: 0x199,
|
|
2044
|
+
_0x5dbd4b: 0x1fc,
|
|
2045
|
+
_0x5009a5: 0x207,
|
|
2046
|
+
_0x209880: 0x204,
|
|
2047
|
+
_0x3ca589: 0x144,
|
|
2048
|
+
_0x114a27: 0xd2,
|
|
2049
|
+
_0x44b73c: 0x199,
|
|
2050
|
+
_0x2b0a81: 0x1d4,
|
|
2051
|
+
_0x8689a: 0x163,
|
|
2052
|
+
_0x2c9cba: 0x19b,
|
|
2053
|
+
_0xb06aa2: 0x192,
|
|
2054
|
+
_0x3a87a9: 0x144,
|
|
2055
|
+
_0x1fc735: 0xe9,
|
|
2056
|
+
_0x43878d: 0x1bc,
|
|
2057
|
+
_0x39ad2f: 0x23b,
|
|
2058
|
+
_0x263208: 0x207,
|
|
2059
|
+
_0x497a42: 0x144,
|
|
2060
|
+
_0x356d48: 0x206,
|
|
2061
|
+
_0x1b901f: 0x19c,
|
|
2062
|
+
_0x2416ca: 0x19f,
|
|
2063
|
+
_0x5b2a02: 0x177,
|
|
2064
|
+
_0x239e76: 0x1f1,
|
|
2065
|
+
_0x5b9e11: 0x207,
|
|
2066
|
+
_0x483751: 0x20c,
|
|
2067
|
+
_0x34d59f: 0x148,
|
|
2068
|
+
_0x48b33a: 0x144,
|
|
2069
|
+
_0x566be5: 0x199,
|
|
2070
|
+
_0x5525d1: 0x1c0,
|
|
2071
|
+
_0x44011e: 0x11c,
|
|
2072
|
+
_0x2a6a5d: 0x1f7,
|
|
2073
|
+
_0x22c234: 0x217,
|
|
2074
|
+
_0x4e240f: 0x207,
|
|
2075
|
+
_0x238c22: 0x207,
|
|
2076
|
+
_0x24efb9: 0x1e9,
|
|
2077
|
+
_0x5c8c80: 0xde,
|
|
2078
|
+
_0x4debe1: 0x207,
|
|
2079
|
+
_0x53db52: 0xd8,
|
|
2080
|
+
_0x55d731: 0x1ee
|
|
2081
|
+
}, _0x25c6d6 = { _0x59401d: 0x1e3 }, _0x1f6af7 = {
|
|
2082
|
+
_0x784903: 0x146,
|
|
2083
|
+
_0x90a787: 0x1c3
|
|
2084
|
+
}, _0x24e9d5 = { _0xf46c72: 0x1a5 }, _0x3a9b8a = {
|
|
2085
|
+
_0x18d504: 0x1c3,
|
|
2086
|
+
_0x754ee1: 0x15d
|
|
2087
|
+
}, _0xcf0944 = {
|
|
2088
|
+
_0x51d1ba: 0x1f1,
|
|
2089
|
+
_0xb41da4: 0x131
|
|
2090
|
+
}, _0x866ca6 = {
|
|
2091
|
+
_0x1a0149: 0x19f,
|
|
2092
|
+
_0x3699ae: 0x122
|
|
2093
|
+
}, _0x2a91a4 = { _0x215aa3: 0x1c3 }, _0x15671d = { _0x113e92: 0xfb }, _0x34dc25 = {
|
|
2094
|
+
_0x5e4ffd: 0xd2,
|
|
2095
|
+
_0x30bb3c: 0x1c3
|
|
2096
|
+
}, _0x2b2135 = { _0x42ea9c: 0x1c3 }, _0x2ed3ed = { _0x1f52ff: 0x23c }, _0x3cfff4 = { _0x55d0b3: 0x127 }, _0x40338f = _0x27ce1c, {z: _0x48046b} = await import(_0x40338f(_0x25e8e9._0x3390aa));
|
|
2097
|
+
_0x36dfdf[_0x40338f(_0x25e8e9._0x49c390)](_0x40338f(0x127), _0x40338f(0x20f), {
|
|
2098
|
+
'target': _0x48046b['string'](),
|
|
2099
|
+
'content': _0x48046b['string'](),
|
|
2100
|
+
'attachment_ids': _0x48046b[_0x40338f(0xe9)](_0x48046b['string']())[_0x40338f(0x144)](),
|
|
2101
|
+
'visibility': _0x48046b['enum']([
|
|
2102
|
+
_0x40338f(0x1b3),
|
|
2103
|
+
_0x40338f(0x211)
|
|
2104
|
+
])['optional']()['describe'](_0x40338f(0x24b))
|
|
2105
|
+
}, async _0x51170a => {
|
|
2106
|
+
const _0x5f097d = _0x40338f;
|
|
2107
|
+
try {
|
|
2108
|
+
return textResult(await _0x10654c[_0x5f097d(_0x3cfff4._0x55d0b3)](_0x51170a));
|
|
2109
|
+
} catch (_0x27a53b) {
|
|
2110
|
+
return textResult(_0x27a53b instanceof Error ? _0x27a53b[_0x5f097d(0x1c3)] : 'send_message\x20failed', !![]);
|
|
2111
|
+
}
|
|
2112
|
+
}), _0x36dfdf[_0x40338f(_0x25e8e9._0x4abfb6)](_0x40338f(0x1f6), _0x40338f(_0x25e8e9._0x5dbd4b), {}, async () => {
|
|
2113
|
+
const _0x4b4b61 = _0x40338f;
|
|
2114
|
+
try {
|
|
2115
|
+
return textResult(await _0x10654c['check_messages']());
|
|
2116
|
+
} catch (_0x146163) {
|
|
2117
|
+
return textResult(_0x146163 instanceof Error ? _0x146163[_0x4b4b61(0x1c3)] : _0x4b4b61(_0x2ed3ed._0x1f52ff), !![]);
|
|
2118
|
+
}
|
|
2119
|
+
}), _0x36dfdf['tool'](_0x40338f(0x254), _0x40338f(0x1ea), {
|
|
2120
|
+
'channel': _0x48046b[_0x40338f(_0x25e8e9._0x5009a5)](),
|
|
2121
|
+
'limit': _0x48046b[_0x40338f(_0x25e8e9._0x209880)]()[_0x40338f(0x144)](),
|
|
2122
|
+
'before': _0x48046b[_0x40338f(_0x25e8e9._0x209880)]()[_0x40338f(0x144)](),
|
|
2123
|
+
'after': _0x48046b[_0x40338f(0x204)]()[_0x40338f(_0x25e8e9._0x3ca589)]()
|
|
2124
|
+
}, async _0x5544a3 => {
|
|
2125
|
+
const _0x973fd7 = _0x40338f;
|
|
2126
|
+
try {
|
|
2127
|
+
return textResult(await _0x10654c[_0x973fd7(0x254)](_0x5544a3));
|
|
2128
|
+
} catch (_0x54e387) {
|
|
2129
|
+
return textResult(_0x54e387 instanceof Error ? _0x54e387[_0x973fd7(_0x2b2135._0x42ea9c)] : 'read_history\x20failed', !![]);
|
|
2130
|
+
}
|
|
2131
|
+
}), _0x36dfdf[_0x40338f(0x199)](_0x40338f(_0x25e8e9._0x114a27), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2132
|
+
const _0x33ca88 = _0x40338f;
|
|
2133
|
+
try {
|
|
2134
|
+
return textResult(await _0x10654c[_0x33ca88(_0x34dc25._0x5e4ffd)]());
|
|
2135
|
+
} catch (_0x2ac0af) {
|
|
2136
|
+
return textResult(_0x2ac0af instanceof Error ? _0x2ac0af[_0x33ca88(_0x34dc25._0x30bb3c)] : _0x33ca88(0x1f4), !![]);
|
|
2137
|
+
}
|
|
2138
|
+
}), _0x36dfdf[_0x40338f(_0x25e8e9._0x44b73c)](_0x40338f(0x109), _0x40338f(_0x25e8e9._0x2b0a81), {
|
|
2139
|
+
'channel': _0x48046b[_0x40338f(0x207)](),
|
|
2140
|
+
'status': _0x48046b[_0x40338f(_0x25e8e9._0x8689a)]([
|
|
2141
|
+
_0x40338f(0x20c),
|
|
2142
|
+
'in_progress',
|
|
2143
|
+
_0x40338f(_0x25e8e9._0x2c9cba),
|
|
2144
|
+
'done'
|
|
2145
|
+
])[_0x40338f(0x144)]()
|
|
2146
|
+
}, async _0x588b22 => {
|
|
2147
|
+
const _0x2e5792 = _0x40338f;
|
|
2148
|
+
try {
|
|
2149
|
+
return textResult(await _0x10654c[_0x2e5792(0x109)](_0x588b22));
|
|
2150
|
+
} catch (_0x39e994) {
|
|
2151
|
+
return textResult(_0x39e994 instanceof Error ? _0x39e994[_0x2e5792(0x1c3)] : _0x2e5792(_0x15671d._0x113e92), !![]);
|
|
2152
|
+
}
|
|
2153
|
+
}), _0x36dfdf[_0x40338f(0x199)](_0x40338f(_0x25e8e9._0xb06aa2), 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
2154
|
+
'channel': _0x48046b[_0x40338f(0x207)](),
|
|
2155
|
+
'idempotency_key': _0x48046b[_0x40338f(_0x25e8e9._0x5009a5)]()[_0x40338f(_0x25e8e9._0x3a87a9)](),
|
|
2156
|
+
'tasks': _0x48046b[_0x40338f(_0x25e8e9._0x1fc735)](_0x48046b[_0x40338f(0xe3)]({
|
|
2157
|
+
'title': _0x48046b['string'](),
|
|
2158
|
+
'description': _0x48046b[_0x40338f(0x207)]()['optional'](),
|
|
2159
|
+
'priority': _0x48046b[_0x40338f(0x163)]([
|
|
2160
|
+
'low',
|
|
2161
|
+
'medium',
|
|
2162
|
+
_0x40338f(_0x25e8e9._0x43878d),
|
|
2163
|
+
'urgent'
|
|
2164
|
+
])[_0x40338f(0x144)]()
|
|
2165
|
+
}))
|
|
2166
|
+
}, async _0xdb01d9 => {
|
|
2167
|
+
const _0x2f2bed = _0x40338f;
|
|
2168
|
+
try {
|
|
2169
|
+
return textResult(await _0x10654c['create_tasks'](_0xdb01d9));
|
|
2170
|
+
} catch (_0x580aaf) {
|
|
2171
|
+
return textResult(_0x580aaf instanceof Error ? _0x580aaf[_0x2f2bed(0x1c3)] : 'create_tasks\x20failed', !![]);
|
|
2172
|
+
}
|
|
2173
|
+
}), _0x36dfdf[_0x40338f(0x199)](_0x40338f(_0x25e8e9._0x39ad2f), _0x40338f(0x1b2), {
|
|
2174
|
+
'channel': _0x48046b[_0x40338f(_0x25e8e9._0x263208)](),
|
|
2175
|
+
'task_numbers': _0x48046b[_0x40338f(0xe9)](_0x48046b[_0x40338f(_0x25e8e9._0x209880)]())[_0x40338f(0x144)](),
|
|
2176
|
+
'message_ids': _0x48046b[_0x40338f(0xe9)](_0x48046b[_0x40338f(_0x25e8e9._0x5009a5)]())[_0x40338f(_0x25e8e9._0x497a42)](),
|
|
2177
|
+
'evidence': _0x48046b[_0x40338f(_0x25e8e9._0x356d48)](_0x48046b['string'](), _0x48046b[_0x40338f(0xe3)]({
|
|
2178
|
+
'create_thread': _0x48046b['unknown']()[_0x40338f(0x144)](),
|
|
2179
|
+
'create_task': _0x48046b[_0x40338f(_0x25e8e9._0x1b901f)]()[_0x40338f(0x144)]()
|
|
2180
|
+
}))['optional'](),
|
|
2181
|
+
'idempotency_key': _0x48046b[_0x40338f(0x207)]()[_0x40338f(0x144)]()
|
|
2182
|
+
}, async _0x2ceffc => {
|
|
2183
|
+
const _0x1b18ae = _0x40338f;
|
|
2184
|
+
try {
|
|
2185
|
+
return textResult(await _0x10654c['claim_tasks'](_0x2ceffc));
|
|
2186
|
+
} catch (_0x2ec14e) {
|
|
2187
|
+
return textResult(_0x2ec14e instanceof Error ? _0x2ec14e[_0x1b18ae(_0x2a91a4._0x215aa3)] : 'claim_tasks\x20failed', !![]);
|
|
2188
|
+
}
|
|
2189
|
+
}), _0x36dfdf['tool'](_0x40338f(_0x25e8e9._0x2416ca), _0x40338f(_0x25e8e9._0x5b2a02), {
|
|
2190
|
+
'channel': _0x48046b[_0x40338f(0x207)](),
|
|
2191
|
+
'task_number': _0x48046b['number'](),
|
|
2192
|
+
'idempotency_key': _0x48046b[_0x40338f(0x207)]()[_0x40338f(_0x25e8e9._0x3ca589)]()
|
|
2193
|
+
}, async _0x7224a8 => {
|
|
2194
|
+
const _0x3e53fb = _0x40338f;
|
|
2195
|
+
try {
|
|
2196
|
+
return textResult(await _0x10654c[_0x3e53fb(_0x866ca6._0x1a0149)](_0x7224a8));
|
|
2197
|
+
} catch (_0xd5e02b) {
|
|
2198
|
+
return textResult(_0xd5e02b instanceof Error ? _0xd5e02b[_0x3e53fb(0x1c3)] : _0x3e53fb(_0x866ca6._0x3699ae), !![]);
|
|
2199
|
+
}
|
|
2200
|
+
}), _0x36dfdf[_0x40338f(0x199)](_0x40338f(_0x25e8e9._0x239e76), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.', {
|
|
2201
|
+
'channel': _0x48046b[_0x40338f(_0x25e8e9._0x5b9e11)](),
|
|
2202
|
+
'task_number': _0x48046b[_0x40338f(_0x25e8e9._0x209880)](),
|
|
2203
|
+
'status': _0x48046b[_0x40338f(_0x25e8e9._0x8689a)]([
|
|
2204
|
+
_0x40338f(_0x25e8e9._0x483751),
|
|
2205
|
+
'in_progress',
|
|
2206
|
+
_0x40338f(_0x25e8e9._0x2c9cba),
|
|
2207
|
+
_0x40338f(_0x25e8e9._0x34d59f)
|
|
2208
|
+
]),
|
|
2209
|
+
'idempotency_key': _0x48046b[_0x40338f(0x207)]()[_0x40338f(_0x25e8e9._0x48b33a)]()
|
|
2210
|
+
}, async _0x36d565 => {
|
|
2211
|
+
const _0x65f7dd = _0x40338f;
|
|
2212
|
+
try {
|
|
2213
|
+
return textResult(await _0x10654c[_0x65f7dd(_0xcf0944._0x51d1ba)](_0x36d565));
|
|
2214
|
+
} catch (_0x3a7128) {
|
|
2215
|
+
return textResult(_0x3a7128 instanceof Error ? _0x3a7128[_0x65f7dd(0x1c3)] : _0x65f7dd(_0xcf0944._0xb41da4), !![]);
|
|
2216
|
+
}
|
|
2217
|
+
}), _0x36dfdf[_0x40338f(_0x25e8e9._0x566be5)](_0x40338f(_0x25e8e9._0x5525d1), _0x40338f(_0x25e8e9._0x44011e), {
|
|
2218
|
+
'channel': _0x48046b[_0x40338f(_0x25e8e9._0x5009a5)](),
|
|
2219
|
+
'file_path': _0x48046b['string']()
|
|
2220
|
+
}, async _0x549ee1 => {
|
|
2221
|
+
const _0x3d1e71 = _0x40338f;
|
|
2222
|
+
try {
|
|
2223
|
+
return textResult(await _0x10654c[_0x3d1e71(0x1c0)](_0x549ee1));
|
|
2224
|
+
} catch (_0x3c075f) {
|
|
2225
|
+
return textResult(_0x3c075f instanceof Error ? _0x3c075f[_0x3d1e71(0x1c3)] : _0x3d1e71(0x162), !![]);
|
|
2226
|
+
}
|
|
2227
|
+
}), _0x36dfdf[_0x40338f(_0x25e8e9._0x4abfb6)]('view_file', _0x40338f(0x259), { 'attachment_id': _0x48046b[_0x40338f(0x207)]() }, async _0x3c821b => {
|
|
2228
|
+
const _0x115087 = _0x40338f;
|
|
2229
|
+
try {
|
|
2230
|
+
return textResult(await _0x10654c['view_file'](_0x3c821b));
|
|
2231
|
+
} catch (_0x848a6d) {
|
|
2232
|
+
return textResult(_0x848a6d instanceof Error ? _0x848a6d[_0x115087(0x1c3)] : 'view_file\x20failed', !![]);
|
|
2233
|
+
}
|
|
2234
|
+
}), _0x36dfdf[_0x40338f(0x199)](_0x40338f(_0x25e8e9._0x2a6a5d), _0x40338f(_0x25e8e9._0x22c234), { 'work_key': _0x48046b[_0x40338f(_0x25e8e9._0x5b9e11)]() }, async _0x34c1c4 => {
|
|
2235
|
+
const _0x271986 = _0x40338f;
|
|
2236
|
+
try {
|
|
2237
|
+
return textResult(await _0x10654c['get_worker_status'](_0x34c1c4));
|
|
2238
|
+
} catch (_0x148625) {
|
|
2239
|
+
return textResult(_0x148625 instanceof Error ? _0x148625[_0x271986(0x1c3)] : 'get_worker_status\x20failed', !![]);
|
|
2240
|
+
}
|
|
2241
|
+
}), _0x36dfdf[_0x40338f(0x199)](_0x40338f(0x220), _0x40338f(0x171), { 'work_key': _0x48046b[_0x40338f(_0x25e8e9._0x4e240f)]() }, async _0x279e5a => {
|
|
2242
|
+
const _0x23b90b = _0x40338f;
|
|
2243
|
+
try {
|
|
2244
|
+
return textResult(await _0x10654c['get_worker_result'](_0x279e5a));
|
|
2245
|
+
} catch (_0xacd069) {
|
|
2246
|
+
return textResult(_0xacd069 instanceof Error ? _0xacd069[_0x23b90b(_0x3a9b8a._0x18d504)] : _0x23b90b(_0x3a9b8a._0x754ee1), !![]);
|
|
2247
|
+
}
|
|
2248
|
+
}), _0x36dfdf[_0x40338f(_0x25e8e9._0x4abfb6)]('finish_worker', _0x40338f(0x183), {
|
|
2249
|
+
'work_key': _0x48046b[_0x40338f(_0x25e8e9._0x238c22)](),
|
|
2250
|
+
'result': _0x48046b[_0x40338f(_0x25e8e9._0x8689a)]([
|
|
2251
|
+
_0x40338f(_0x25e8e9._0x24efb9),
|
|
2252
|
+
_0x40338f(_0x25e8e9._0x5c8c80),
|
|
2253
|
+
'failed'
|
|
2254
|
+
]),
|
|
2255
|
+
'summary': _0x48046b[_0x40338f(0x207)](),
|
|
2256
|
+
'decisions': _0x48046b['array'](_0x48046b['string']())[_0x40338f(0x144)](),
|
|
2257
|
+
'files_changed': _0x48046b[_0x40338f(0xe9)](_0x48046b[_0x40338f(_0x25e8e9._0x4debe1)]())[_0x40338f(0x144)](),
|
|
2258
|
+
'open_issues': _0x48046b[_0x40338f(0xe9)](_0x48046b[_0x40338f(_0x25e8e9._0x4e240f)]())[_0x40338f(_0x25e8e9._0x48b33a)](),
|
|
2259
|
+
'next_steps': _0x48046b[_0x40338f(_0x25e8e9._0x1fc735)](_0x48046b[_0x40338f(_0x25e8e9._0x4debe1)]())[_0x40338f(_0x25e8e9._0x3a87a9)]()
|
|
2260
|
+
}, async _0xe01907 => {
|
|
2261
|
+
const _0x376de8 = _0x40338f;
|
|
2262
|
+
try {
|
|
2263
|
+
return textResult(await _0x10654c[_0x376de8(0x137)](_0xe01907));
|
|
2264
|
+
} catch (_0x19ad12) {
|
|
2265
|
+
return textResult(_0x19ad12 instanceof Error ? _0x19ad12[_0x376de8(0x1c3)] : _0x376de8(_0x24e9d5._0xf46c72), !![]);
|
|
2266
|
+
}
|
|
2267
|
+
}), _0x36dfdf['tool'](_0x40338f(0x146), _0x40338f(0x11d), {
|
|
2268
|
+
'work_key': _0x48046b[_0x40338f(_0x25e8e9._0x4debe1)](),
|
|
2269
|
+
'reason': _0x48046b['string']()
|
|
2270
|
+
}, async _0x5975bb => {
|
|
2271
|
+
const _0x42fee3 = _0x40338f;
|
|
2272
|
+
try {
|
|
2273
|
+
return textResult(await _0x10654c[_0x42fee3(_0x1f6af7._0x784903)](_0x5975bb));
|
|
2274
|
+
} catch (_0x15475e) {
|
|
2275
|
+
return textResult(_0x15475e instanceof Error ? _0x15475e[_0x42fee3(_0x1f6af7._0x90a787)] : 'escalate_to_main\x20failed', !![]);
|
|
2276
|
+
}
|
|
2277
|
+
}), _0x4e6cb6?.[_0x40338f(_0x25e8e9._0x53db52)] && _0x36dfdf[_0x40338f(0x199)]('mark_waiting_input', _0x40338f(_0x25e8e9._0x55d731), { 'work_key': _0x48046b[_0x40338f(0x207)]() }, async _0x34c7ed => {
|
|
2278
|
+
const _0x2c6bf4 = _0x40338f;
|
|
2279
|
+
try {
|
|
2280
|
+
return textResult(await _0x10654c[_0x2c6bf4(0x224)](_0x34c7ed));
|
|
2281
|
+
} catch (_0x3c0f72) {
|
|
2282
|
+
return textResult(_0x3c0f72 instanceof Error ? _0x3c0f72[_0x2c6bf4(0x1c3)] : _0x2c6bf4(_0x25c6d6._0x59401d), !![]);
|
|
2283
|
+
}
|
|
2284
|
+
});
|
|
2285
|
+
}
|
|
2286
|
+
async function createChatBridgeServer(_0x530a49) {
|
|
2287
|
+
const _0x450bf7 = {
|
|
2288
|
+
_0x1816a3: 0xfe,
|
|
2289
|
+
_0x1291e8: 0xe0,
|
|
2290
|
+
_0x3363cb: 0xd8
|
|
2291
|
+
}, _0x2ff288 = _0x27ce1c, {McpServer: _0x326715} = await import(_0x2ff288(0x210)), _0x1be01 = new _0x326715({
|
|
2292
|
+
'name': _0x2ff288(_0x450bf7._0x1816a3),
|
|
2293
|
+
'version': _0x2ff288(_0x450bf7._0x1291e8)
|
|
2294
|
+
}), _0x16b0e9 = createChatBridgeHandlers(_0x530a49);
|
|
2295
|
+
return await registerChatBridgeTools(_0x1be01, _0x16b0e9, { 'workerMode': _0x530a49[_0x2ff288(_0x450bf7._0x3363cb)] }), {
|
|
2296
|
+
'handlers': _0x16b0e9,
|
|
2297
|
+
'server': _0x1be01
|
|
2298
|
+
};
|
|
2299
|
+
}
|
|
2300
|
+
function readFlag(_0x18a1c0, _0x3d46e4) {
|
|
2301
|
+
const _0x5589d5 = _0x18a1c0['indexOf'](_0x3d46e4);
|
|
2302
|
+
if (_0x5589d5 === -0x1)
|
|
2303
|
+
return void 0x0;
|
|
2304
|
+
return _0x18a1c0[_0x5589d5 + 0x1];
|
|
2305
|
+
}
|
|
2306
|
+
function parseChatBridgeArgs(_0x615151) {
|
|
2307
|
+
const _0x3fcf1b = {
|
|
2308
|
+
_0x42d30d: 0x15a,
|
|
2309
|
+
_0x7eb37b: 0x1ed,
|
|
2310
|
+
_0x1ee82d: 0x114,
|
|
2311
|
+
_0x1518f6: 0x222,
|
|
2312
|
+
_0x4af2de: 0x245,
|
|
2313
|
+
_0x4e47db: 0x1b4,
|
|
2314
|
+
_0x24d1a1: 0x243
|
|
2315
|
+
}, _0xf1348a = _0x27ce1c, _0x582cac = readFlag(_0x615151, _0xf1348a(0x159)), _0x4f546d = readFlag(_0x615151, _0xf1348a(_0x3fcf1b._0x42d30d)), _0x4108be = readFlag(_0x615151, '--initial-last-seen-seq'), _0x41c5da = readFlag(_0x615151, _0xf1348a(_0x3fcf1b._0x7eb37b)) ?? _0xf1348a(0x1e8), _0x27188e = readFlag(_0x615151, _0xf1348a(0x242)), _0xc29469 = readFlag(_0x615151, '--session-id'), _0x87680 = readFlag(_0x615151, _0xf1348a(0x154)), _0xe8edad = readFlag(_0x615151, _0xf1348a(_0x3fcf1b._0x1ee82d)), _0x55a7b4 = readFlag(_0x615151, _0xf1348a(0x1e2)), _0x2e135b = _0x615151[_0xf1348a(0x19e)](_0xf1348a(_0x3fcf1b._0x1518f6)), _0x57c9e2 = _0x4108be === void 0x0 ? void 0x0 : Number[_0xf1348a(0xec)](_0x4108be, 0xa);
|
|
2316
|
+
if (!_0x582cac)
|
|
2317
|
+
throw new Error(_0xf1348a(_0x3fcf1b._0x4af2de));
|
|
2318
|
+
if (!_0x4f546d)
|
|
2319
|
+
throw new Error('Missing\x20--daemon-api-key');
|
|
2320
|
+
if (_0x4108be !== void 0x0 && (_0x57c9e2 === void 0x0 || !Number[_0xf1348a(0x103)](_0x57c9e2) || _0x57c9e2 < 0x0))
|
|
2321
|
+
throw new Error(_0xf1348a(_0x3fcf1b._0x4e47db));
|
|
2322
|
+
return {
|
|
2323
|
+
'agentId': _0x582cac,
|
|
2324
|
+
'daemonApiKey': _0x4f546d,
|
|
2325
|
+
'daemonLocalUrl': _0x27188e,
|
|
2326
|
+
'initialLastSeenSeq': _0x57c9e2,
|
|
2327
|
+
'sessionId': _0xc29469,
|
|
2328
|
+
'serverUrl': _0x41c5da,
|
|
2329
|
+
'workerModeEnabled': _0x87680 === void 0x0 ? void 0x0 : _0x87680 !== _0xf1348a(_0x3fcf1b._0x24d1a1),
|
|
2330
|
+
'workerSessionId': _0xe8edad,
|
|
2331
|
+
'workerThreadTarget': _0x55a7b4,
|
|
2332
|
+
'workerMode': _0x2e135b
|
|
2333
|
+
};
|
|
2334
|
+
}
|
|
2335
|
+
async function runChatBridgeCli(_0x37450e) {
|
|
2336
|
+
const _0x8a5ad = {
|
|
2337
|
+
_0x4dafdd: 0x179,
|
|
2338
|
+
_0xcffb3c: 0xd8
|
|
2339
|
+
}, _0x5eb2f2 = _0x27ce1c, _0x3f8198 = parseChatBridgeArgs(_0x37450e), {StdioServerTransport: _0x5d07fe} = await import(_0x5eb2f2(0x1df)), _0x3c8a90 = createInternalAgentClient(_0x3f8198), _0x36778e = createAttachmentCache(), _0x23fac3 = await createChatBridgeServer({
|
|
2340
|
+
'agentId': _0x3f8198['agentId'],
|
|
2341
|
+
'attachmentCache': _0x36778e,
|
|
2342
|
+
'client': _0x3c8a90,
|
|
2343
|
+
'daemonLocalUrl': _0x3f8198[_0x5eb2f2(0xdc)],
|
|
2344
|
+
'uploadPreparer': prepareUploadFile,
|
|
2345
|
+
'workerModeEnabled': _0x3f8198[_0x5eb2f2(_0x8a5ad._0x4dafdd)],
|
|
2346
|
+
'workerMode': _0x3f8198[_0x5eb2f2(_0x8a5ad._0xcffb3c)]
|
|
2347
|
+
});
|
|
2348
|
+
await _0x23fac3[_0x5eb2f2(0x18c)]['connect'](new _0x5d07fe());
|
|
2362
2349
|
}
|
|
2350
|
+
var executedAsEntry = process[_0x27ce1c(0x1d3)][0x1] ? import.meta.url === pathToFileURL(process[_0x27ce1c(0x1d3)][0x1])[_0x27ce1c(0xf8)] : ![];
|
|
2351
|
+
executedAsEntry && await runChatBridgeCli(process[_0x27ce1c(0x1d3)]['slice'](0x2));
|
|
2363
2352
|
export {
|
|
2364
2353
|
createChatBridgeHandlers,
|
|
2365
2354
|
createChatBridgeServer,
|