@dscord/daemon 0.1.41 → 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 +2095 -2108
- package/dist/index.js +9083 -9011
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,25 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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();
|
|
11
32
|
while (!![]) {
|
|
12
33
|
try {
|
|
13
|
-
const
|
|
14
|
-
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)
|
|
15
36
|
break;
|
|
16
37
|
else
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
38
|
+
_0x2ed3e5['push'](_0x2ed3e5['shift']());
|
|
39
|
+
} catch (_0x1d0587) {
|
|
40
|
+
_0x2ed3e5['push'](_0x2ed3e5['shift']());
|
|
20
41
|
}
|
|
21
42
|
}
|
|
22
|
-
}(
|
|
43
|
+
}(_0x4cbf, 0xa0d1f));
|
|
23
44
|
import { pathToFileURL } from 'node:url';
|
|
24
45
|
import {
|
|
25
46
|
mkdir,
|
|
@@ -29,104 +50,77 @@ import {
|
|
|
29
50
|
writeFile
|
|
30
51
|
} from 'node:fs/promises';
|
|
31
52
|
import { homedir } from 'node:os';
|
|
32
|
-
import
|
|
53
|
+
import _0x55c6fc from 'node:path';
|
|
33
54
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
34
|
-
'.csv':
|
|
35
|
-
'.gif':
|
|
36
|
-
'.jpeg':
|
|
37
|
-
'.jpg':
|
|
38
|
-
'.json':
|
|
39
|
-
'.md':
|
|
40
|
-
'.pdf':
|
|
41
|
-
'.png':
|
|
42
|
-
'.svg':
|
|
43
|
-
'.txt':
|
|
44
|
-
'.webp':
|
|
45
|
-
'.xml':
|
|
46
|
-
'.zip':
|
|
55
|
+
'.csv': _0x27ce1c(0x1da),
|
|
56
|
+
'.gif': _0x27ce1c(0x180),
|
|
57
|
+
'.jpeg': _0x27ce1c(0x126),
|
|
58
|
+
'.jpg': _0x27ce1c(0x126),
|
|
59
|
+
'.json': 'application/json',
|
|
60
|
+
'.md': _0x27ce1c(0x16f),
|
|
61
|
+
'.pdf': 'application/pdf',
|
|
62
|
+
'.png': 'image/png',
|
|
63
|
+
'.svg': 'image/svg+xml',
|
|
64
|
+
'.txt': _0x27ce1c(0x153),
|
|
65
|
+
'.webp': _0x27ce1c(0x191),
|
|
66
|
+
'.xml': _0x27ce1c(0x21a),
|
|
67
|
+
'.zip': _0x27ce1c(0x167)
|
|
47
68
|
};
|
|
48
|
-
function guessContentType(
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
return MIME_BY_EXTENSION[
|
|
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);
|
|
55
76
|
}
|
|
56
|
-
function safeFilename(
|
|
57
|
-
return
|
|
77
|
+
function safeFilename(_0x24ab4e) {
|
|
78
|
+
return _0x24ab4e['replace'](/[\\/]/g, '-');
|
|
58
79
|
}
|
|
59
|
-
function extensionFor(
|
|
60
|
-
const
|
|
61
|
-
return
|
|
80
|
+
function extensionFor(_0x3fcd39) {
|
|
81
|
+
const _0x593a46 = _0x27ce1c, _0x52091d = Object[_0x593a46(0x1b9)](MIME_BY_EXTENSION)['find'](([, _0x77189c]) => _0x77189c === _0x3fcd39);
|
|
82
|
+
return _0x52091d?.[0x0] ?? '.bin';
|
|
62
83
|
}
|
|
63
|
-
async function prepareUploadFile(
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const _0x4dbe68 = await readFile(_0x403c3a), _0x4cb0c8 = _0x1033e9[_0x27a4f0(0x232)](_0x403c3a);
|
|
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);
|
|
79
99
|
return {
|
|
80
|
-
'contentBase64':
|
|
81
|
-
'contentType': guessContentType(
|
|
82
|
-
'filename':
|
|
83
|
-
'sizeBytes':
|
|
100
|
+
'contentBase64': _0x473e2b['toString']('base64'),
|
|
101
|
+
'contentType': guessContentType(_0x14f177),
|
|
102
|
+
'filename': _0x14f177,
|
|
103
|
+
'sizeBytes': _0xbd79b7[_0x473488(0x164)]
|
|
84
104
|
};
|
|
85
105
|
}
|
|
86
|
-
function
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
var _0x3a5fba = function (_0x3f0da4) {
|
|
92
|
-
const _0x12cd6f = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
93
|
-
let _0x1033e9 = '', _0xd1765b = '';
|
|
94
|
-
for (let _0x8c6a0e = 0x0, _0x4e3e42, _0x15ea47, _0x5d2ea7 = 0x0; _0x15ea47 = _0x3f0da4['charAt'](_0x5d2ea7++); ~_0x15ea47 && (_0x4e3e42 = _0x8c6a0e % 0x4 ? _0x4e3e42 * 0x40 + _0x15ea47 : _0x15ea47, _0x8c6a0e++ % 0x4) ? _0x1033e9 += String['fromCharCode'](0xff & _0x4e3e42 >> (-0x2 * _0x8c6a0e & 0x6)) : 0x0) {
|
|
95
|
-
_0x15ea47 = _0x12cd6f['indexOf'](_0x15ea47);
|
|
96
|
-
}
|
|
97
|
-
for (let _0x403c3a = 0x0, _0x4ec774 = _0x1033e9['length']; _0x403c3a < _0x4ec774; _0x403c3a++) {
|
|
98
|
-
_0xd1765b += '%' + ('00' + _0x1033e9['charCodeAt'](_0x403c3a)['toString'](0x10))['slice'](-0x2);
|
|
99
|
-
}
|
|
100
|
-
return decodeURIComponent(_0xd1765b);
|
|
101
|
-
};
|
|
102
|
-
_0x31af['WOxhwp'] = _0x3a5fba, _0x31af['Vdsgas'] = {}, _0x31af['cWIjwa'] = !![];
|
|
103
|
-
}
|
|
104
|
-
const _0x220992 = _0x542ccc[0x0], _0x5011f2 = _0x5c08ae + _0x220992, _0x5102b4 = _0x31af['Vdsgas'][_0x5011f2];
|
|
105
|
-
return !_0x5102b4 ? (_0x31af18 = _0x31af['WOxhwp'](_0x31af18), _0x31af['Vdsgas'][_0x5011f2] = _0x31af18) : _0x31af18 = _0x5102b4, _0x31af18;
|
|
106
|
-
}
|
|
107
|
-
function createAttachmentCache(_0x557eaf = {}) {
|
|
108
|
-
const _0x300f83 = {
|
|
109
|
-
_0x5516ac: 0x329,
|
|
110
|
-
_0xe3fc38: 0x1c5
|
|
111
|
-
}, _0x24d5ff = {
|
|
112
|
-
_0x18b44b: 0x306,
|
|
113
|
-
_0x5eee07: 0x226,
|
|
114
|
-
_0x3de097: 0x2a8,
|
|
115
|
-
_0x1cd2c3: 0x315
|
|
116
|
-
}, _0x4642bf = _0x15c9cf, _0x3cc4f5 = _0x557eaf[_0x4642bf(_0x300f83._0x5516ac)] ?? _0x1033e9[_0x4642bf(0x2a8)](homedir(), _0x4642bf(_0x300f83._0xe3fc38), _0x4642bf(0x32c));
|
|
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));
|
|
117
111
|
return {
|
|
118
|
-
'cacheDir':
|
|
119
|
-
async 'findCachedPath'(
|
|
120
|
-
const
|
|
121
|
-
await mkdir(
|
|
122
|
-
const
|
|
123
|
-
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;
|
|
124
118
|
},
|
|
125
|
-
async 'save'(
|
|
126
|
-
const
|
|
127
|
-
await mkdir(
|
|
128
|
-
const
|
|
129
|
-
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;
|
|
130
124
|
}
|
|
131
125
|
};
|
|
132
126
|
}
|
|
@@ -134,2234 +128,2227 @@ import {
|
|
|
134
128
|
createHash,
|
|
135
129
|
randomUUID
|
|
136
130
|
} from 'node:crypto';
|
|
137
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
138
|
-
function ensureSegment(
|
|
139
|
-
const
|
|
140
|
-
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)](':'))
|
|
141
135
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
142
|
-
return
|
|
136
|
+
return _0x54d56c;
|
|
143
137
|
}
|
|
144
|
-
function parseThreadParts(
|
|
145
|
-
const
|
|
146
|
-
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)
|
|
147
141
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
148
142
|
return {
|
|
149
|
-
'channelName': ensureSegment(
|
|
150
|
-
'threadShortId':
|
|
143
|
+
'channelName': ensureSegment(_0x246d15[0x0] ?? ''),
|
|
144
|
+
'threadShortId': _0x246d15[0x1] ? ensureSegment(_0x246d15[0x1]) : null
|
|
151
145
|
};
|
|
152
146
|
}
|
|
153
|
-
function parseTarget(
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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)
|
|
166
164
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
167
|
-
if (
|
|
168
|
-
const
|
|
169
|
-
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)])
|
|
170
168
|
return {
|
|
171
|
-
'channelName':
|
|
172
|
-
'channelTarget':
|
|
173
|
-
'kind':
|
|
174
|
-
'target':
|
|
169
|
+
'channelName': _0x1feb21['channelName'],
|
|
170
|
+
'channelTarget': _0x481da2,
|
|
171
|
+
'kind': _0x97f0d2(0xf3),
|
|
172
|
+
'target': _0x481da2
|
|
175
173
|
};
|
|
176
174
|
return {
|
|
177
|
-
'channelName':
|
|
178
|
-
'channelTarget':
|
|
175
|
+
'channelName': _0x1feb21[_0x97f0d2(_0x25bbe._0x4f4afe)],
|
|
176
|
+
'channelTarget': _0x481da2,
|
|
179
177
|
'kind': 'thread',
|
|
180
|
-
'target':
|
|
181
|
-
'threadShortId':
|
|
178
|
+
'target': _0x481da2 + ':' + _0x1feb21[_0x97f0d2(_0x25bbe._0xdbce16)],
|
|
179
|
+
'threadShortId': _0x1feb21[_0x97f0d2(_0x25bbe._0x5b6d10)]
|
|
182
180
|
};
|
|
183
181
|
}
|
|
184
|
-
if (
|
|
185
|
-
const
|
|
186
|
-
if (!
|
|
182
|
+
if (_0xe0dce6[_0x97f0d2(0x1cc)]('dm:')) {
|
|
183
|
+
const _0x100dd0 = parseThreadParts(_0xe0dce6[_0x97f0d2(_0x25bbe._0xbb5290)](0x3));
|
|
184
|
+
if (!_0x100dd0['channelName']['startsWith'](_0x97f0d2(_0x25bbe._0x59effe)))
|
|
187
185
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
188
|
-
const
|
|
189
|
-
if (!
|
|
186
|
+
const _0x368bd8 = _0x97f0d2(0x138) + _0x100dd0[_0x97f0d2(_0x25bbe._0x251e03)];
|
|
187
|
+
if (!_0x100dd0[_0x97f0d2(_0x25bbe._0x5dd046)])
|
|
190
188
|
return {
|
|
191
|
-
'channelName':
|
|
192
|
-
'channelTarget':
|
|
193
|
-
'kind':
|
|
194
|
-
'target':
|
|
189
|
+
'channelName': _0x100dd0[_0x97f0d2(_0x25bbe._0x3e5014)],
|
|
190
|
+
'channelTarget': _0x368bd8,
|
|
191
|
+
'kind': 'channel',
|
|
192
|
+
'target': _0x368bd8
|
|
195
193
|
};
|
|
196
194
|
return {
|
|
197
|
-
'channelName':
|
|
198
|
-
'channelTarget':
|
|
199
|
-
'kind':
|
|
200
|
-
'target':
|
|
201
|
-
'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)]
|
|
202
200
|
};
|
|
203
201
|
}
|
|
204
202
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
205
203
|
}
|
|
206
|
-
function asErrorMessage(
|
|
207
|
-
const
|
|
208
|
-
if (typeof
|
|
209
|
-
return
|
|
210
|
-
return
|
|
204
|
+
function asErrorMessage(_0x3132f7, _0x5709e2) {
|
|
205
|
+
const _0xa04268 = _0x27ce1c;
|
|
206
|
+
if (typeof _0x3132f7 === 'string' && _0x3132f7[_0xa04268(0x1d7)]())
|
|
207
|
+
return _0x3132f7;
|
|
208
|
+
return _0x5709e2;
|
|
211
209
|
}
|
|
212
|
-
function asRecord(
|
|
213
|
-
const
|
|
214
|
-
return typeof
|
|
210
|
+
function asRecord(_0x16cc54) {
|
|
211
|
+
const _0x518e4b = _0x27ce1c;
|
|
212
|
+
return typeof _0x16cc54 === _0x518e4b(0xe3) && _0x16cc54 !== null ? _0x16cc54 : {};
|
|
215
213
|
}
|
|
216
|
-
function stableStringify(
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}, _0x50fe85 = _0x15c9cf;
|
|
225
|
-
if (_0x28d3ae === null || typeof _0x28d3ae !== _0x50fe85(_0x5ee74c._0x45983b))
|
|
226
|
-
return JSON[_0x50fe85(_0x5ee74c._0x1baaa7)](_0x28d3ae);
|
|
227
|
-
if (Array[_0x50fe85(0x2e0)](_0x28d3ae))
|
|
228
|
-
return '[' + _0x28d3ae['map'](_0x472e08 => stableStringify(_0x472e08))[_0x50fe85(0x2a8)](',') + ']';
|
|
229
|
-
const _0x2dac71 = Object[_0x50fe85(_0x5ee74c._0x1b7001)](_0x28d3ae)[_0x50fe85(_0x5ee74c._0x5ca608)](([, _0x3adbf6]) => _0x3adbf6 !== void 0x0)['sort'](([_0x13378b], [_0x5b7eb4]) => _0x13378b[_0x50fe85(0x2c3)](_0x5b7eb4))[_0x50fe85(_0x5ee74c._0x4e2239)](([_0x45362f, _0x3b4b53]) => JSON['stringify'](_0x45362f) + ':' + stableStringify(_0x3b4b53));
|
|
230
|
-
return '{' + _0x2dac71[_0x50fe85(_0x5ee74c._0x5ad577)](',') + '}';
|
|
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
|
-
|
|
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:';
|
|
243
238
|
else
|
|
244
|
-
|
|
245
|
-
return
|
|
239
|
+
_0x48b3d8['protocol'] === _0x18919a(_0x592071._0x4b6852) && (_0x48b3d8['protocol'] = _0x18919a(0x188));
|
|
240
|
+
return _0x48b3d8[_0x18919a(_0x592071._0x3e5f74)]()['replace'](/\/$/, '');
|
|
246
241
|
}
|
|
247
|
-
function isMentionBoundary(
|
|
248
|
-
const
|
|
249
|
-
return !
|
|
242
|
+
function isMentionBoundary(_0x532780) {
|
|
243
|
+
const _0x2e9669 = _0x27ce1c;
|
|
244
|
+
return !_0x532780 || /\s|[([{'",。!?、:;]/[_0x2e9669(0x147)](_0x532780);
|
|
250
245
|
}
|
|
251
|
-
function isMentionTerminal(
|
|
252
|
-
|
|
246
|
+
function isMentionTerminal(_0x2360ad) {
|
|
247
|
+
const _0x2e3c30 = _0x27ce1c;
|
|
248
|
+
return !_0x2360ad || /\s|[)\]}'",。!?、:;,.!?]/[_0x2e3c30(0x147)](_0x2360ad);
|
|
253
249
|
}
|
|
254
|
-
function buildMatchableEntries(
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
..._0x35e372[_0x1618ba(_0x42e2f4._0x5c1650)],
|
|
263
|
-
..._0x35e372[_0x1618ba(0x2ea)]
|
|
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)]
|
|
264
258
|
]) {
|
|
265
|
-
|
|
266
|
-
'matchName':
|
|
267
|
-
'matchNameLower':
|
|
268
|
-
'participantId':
|
|
269
|
-
}),
|
|
270
|
-
'matchName':
|
|
271
|
-
'matchNameLower':
|
|
272
|
-
'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']
|
|
273
267
|
});
|
|
274
268
|
}
|
|
275
|
-
return
|
|
269
|
+
return _0x5b567c;
|
|
276
270
|
}
|
|
277
|
-
function extractMentionedParticipantIds(
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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]))
|
|
289
284
|
continue;
|
|
290
|
-
const
|
|
291
|
-
const
|
|
292
|
-
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']))
|
|
293
288
|
return ![];
|
|
294
|
-
return isMentionTerminal(
|
|
289
|
+
return isMentionTerminal(_0x2d24fc[_0x4e5dc5[_0x133e02(_0x412144._0x599392)][_0x133e02(0x255)]]);
|
|
295
290
|
});
|
|
296
|
-
if (!
|
|
291
|
+
if (!_0x33b9bf || _0x3bd457[_0x5dddf2(0x129)](_0x33b9bf[_0x5dddf2(_0x36128a._0x1f6feb)]))
|
|
297
292
|
continue;
|
|
298
|
-
|
|
293
|
+
_0x3bd457[_0x5dddf2(_0x36128a._0x9e5f69)](_0x33b9bf[_0x5dddf2(_0x36128a._0x1f6feb)]), _0x565c79[_0x5dddf2(0x1fb)](_0x33b9bf[_0x5dddf2(0x125)]), _0x3dc237 += _0x33b9bf[_0x5dddf2(_0x36128a._0x262dcd)][_0x5dddf2(0x255)];
|
|
299
294
|
}
|
|
300
|
-
return
|
|
295
|
+
return _0x565c79;
|
|
301
296
|
}
|
|
302
297
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
303
|
-
function anySignal(...
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
return _0x3b0043['abort'](_0x131b8d[_0x4d4d28(_0x418bbc._0x496a8f)]), _0x3b0043[_0x4d4d28(0x348)];
|
|
314
|
-
_0x131b8d[_0x4d4d28(_0x418bbc._0x3ced3f)](_0x4d4d28(_0x418bbc._0xe0e8d6), () => _0x3b0043['abort'](_0x131b8d[_0x4d4d28(0x26b)]), {
|
|
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)]), {
|
|
315
308
|
'once': !![],
|
|
316
|
-
'signal':
|
|
309
|
+
'signal': _0x5bbf31[_0x544140(_0xca843b._0x200623)]
|
|
317
310
|
});
|
|
318
311
|
}
|
|
319
|
-
return
|
|
312
|
+
return _0x5bbf31[_0x544140(_0xca843b._0x200623)];
|
|
320
313
|
}
|
|
321
|
-
function createInternalAgentClient(
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
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
|
-
}, _0x25fa1f = _0x15c9cf, _0x4244b8 = _0x18640a[_0x25fa1f(_0x515ac0._0x126725)] ?? fetch, _0x57619c = _0x18640a[_0x25fa1f(0x1fd)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2b6a4e = typeof _0x18640a[_0x25fa1f(0x2a0)] === 'number' && _0x18640a[_0x25fa1f(0x2a0)] > 0x0 ? _0x18640a['initialLastSeenSeq'] : 0x0, _0x2396fa = _0x18640a[_0x25fa1f(0x2a5)]?.[_0x25fa1f(0x226)]() || void 0x0, _0x2d61a5 = _0x18640a['sessionId']?.[_0x25fa1f(_0x515ac0._0x1cb6ec)]() || void 0x0, _0x9aecc0 = _0x18640a[_0x25fa1f(_0x515ac0._0x37a532)] === !![], _0x5c2d8d = _0x18640a[_0x25fa1f(_0x515ac0._0x3d520a)]?.[_0x25fa1f(_0x515ac0._0x1cb6ec)]() || void 0x0, _0x5ebed2 = _0x18640a[_0x25fa1f(0x288)]?.[_0x25fa1f(0x226)]() || void 0x0, _0x19d469 = createHeaders(_0x18640a[_0x25fa1f(_0x515ac0._0x490f11)]), _0x403470 = toHttpBaseUrl(_0x18640a[_0x25fa1f(_0x515ac0._0x29da13)]);
|
|
480
|
-
let _0xe289cb = null;
|
|
481
|
-
const _0x1b8964 = new Map();
|
|
482
|
-
let _0xb843ec = _0x2b6a4e, _0x210dae = _0x2b6a4e;
|
|
483
|
-
function _0x1f1e7d(_0x4a1d07) {
|
|
484
|
-
const _0x5ab710 = _0x25fa1f, _0x4fcc58 = _0x4a1d07[_0x5ab710(0x1d1)][_0x5ab710(0x29f)][_0x5ab710(_0x48f1e1._0xeae781)]('content-type') ?? _0x5ab710(_0x48f1e1._0x2a94bc), _0x3eacc4 = _0x4a1d07['bodyText'][_0x5ab710(_0x48f1e1._0x5b17fd)]()[_0x5ab710(0x290)](/\s+/g, '\x20')[_0x5ab710(0x303)](0x0, 0x78) || _0x5ab710(_0x48f1e1._0x190778);
|
|
485
|
-
return _0x5ab710(0x25d) + _0x4a1d07[_0x5ab710(_0x48f1e1._0x316ec4)] + '\x20返回了非\x20JSON\x20响应(status=' + _0x4a1d07['response'][_0x5ab710(0x1ff)] + _0x5ab710(0x346) + _0x4fcc58 + _0x5ab710(0x2bb) + _0x3eacc4 + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
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);
|
|
486
472
|
}
|
|
487
|
-
async function
|
|
488
|
-
const
|
|
489
|
-
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']())
|
|
490
476
|
return {};
|
|
491
477
|
try {
|
|
492
|
-
return JSON[
|
|
478
|
+
return JSON[_0x454696(0x169)](_0x1d516d);
|
|
493
479
|
} catch {
|
|
494
|
-
throw new Error(
|
|
495
|
-
'bodyText':
|
|
496
|
-
'requestUrl':
|
|
497
|
-
'response':
|
|
480
|
+
throw new Error(_0x1042f7({
|
|
481
|
+
'bodyText': _0x1d516d,
|
|
482
|
+
'requestUrl': _0x443ad1,
|
|
483
|
+
'response': _0x475d06
|
|
498
484
|
}));
|
|
499
485
|
}
|
|
500
486
|
}
|
|
501
|
-
function
|
|
502
|
-
const
|
|
503
|
-
if (
|
|
504
|
-
return
|
|
505
|
-
const
|
|
506
|
-
for (const [
|
|
507
|
-
|
|
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);
|
|
508
494
|
}
|
|
509
|
-
const
|
|
510
|
-
...
|
|
495
|
+
const _0x13904e = {
|
|
496
|
+
..._0x4be24a,
|
|
511
497
|
'idempotency_key': void 0x0
|
|
512
|
-
},
|
|
513
|
-
if (
|
|
514
|
-
return
|
|
515
|
-
const
|
|
516
|
-
return
|
|
517
|
-
'expiresAt':
|
|
518
|
-
'value':
|
|
519
|
-
}),
|
|
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;
|
|
520
506
|
}
|
|
521
|
-
async function
|
|
522
|
-
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;
|
|
523
509
|
try {
|
|
524
|
-
const
|
|
525
|
-
...
|
|
526
|
-
'signal':
|
|
527
|
-
}),
|
|
528
|
-
if (!
|
|
529
|
-
throw new Error(asErrorMessage(
|
|
530
|
-
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;
|
|
531
517
|
} finally {
|
|
532
|
-
clearTimeout(
|
|
518
|
+
clearTimeout(_0x5d58bc);
|
|
533
519
|
}
|
|
534
520
|
}
|
|
535
|
-
async function
|
|
536
|
-
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;
|
|
537
523
|
try {
|
|
538
|
-
const
|
|
539
|
-
...
|
|
540
|
-
'signal':
|
|
541
|
-
}),
|
|
542
|
-
if (!
|
|
543
|
-
throw new Error(asErrorMessage(
|
|
544
|
-
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;
|
|
545
531
|
} finally {
|
|
546
|
-
clearTimeout(
|
|
532
|
+
clearTimeout(_0x24e7f4);
|
|
547
533
|
}
|
|
548
534
|
}
|
|
549
|
-
async function
|
|
550
|
-
const
|
|
551
|
-
if (!
|
|
535
|
+
async function _0x140aa8(_0x1d57a5) {
|
|
536
|
+
const _0x3c56cf = _0x4621fb;
|
|
537
|
+
if (!_0x505c02 || _0x1d57a5 <= _0x512667)
|
|
552
538
|
return;
|
|
553
|
-
await
|
|
554
|
-
'body': JSON[
|
|
555
|
-
'headers':
|
|
556
|
-
'method':
|
|
557
|
-
}),
|
|
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;
|
|
558
544
|
}
|
|
559
|
-
async function
|
|
560
|
-
const
|
|
561
|
-
if (!
|
|
545
|
+
async function _0x53d021(_0x234b38) {
|
|
546
|
+
const _0x261381 = _0x4621fb;
|
|
547
|
+
if (!_0x2acb95 || !_0x3b3722 || _0x234b38 <= _0x512667)
|
|
562
548
|
return;
|
|
563
|
-
const
|
|
564
|
-
'body': JSON[
|
|
565
|
-
'last_seen_seq':
|
|
566
|
-
'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
|
|
567
553
|
}),
|
|
568
554
|
'headers': { 'Content-Type': 'application/json' },
|
|
569
|
-
'method':
|
|
555
|
+
'method': 'POST'
|
|
570
556
|
});
|
|
571
|
-
if (!
|
|
572
|
-
throw new Error(
|
|
573
|
-
|
|
557
|
+
if (!_0x5cfe17['ok'])
|
|
558
|
+
throw new Error(_0x261381(0x196) + _0x5cfe17[_0x261381(_0x2e3207._0x26bfb5)]);
|
|
559
|
+
_0x512667 = _0x234b38;
|
|
574
560
|
}
|
|
575
|
-
async function
|
|
576
|
-
const
|
|
577
|
-
'body': JSON[
|
|
578
|
-
'headers':
|
|
579
|
-
'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)
|
|
580
566
|
});
|
|
581
567
|
return {
|
|
582
|
-
'channelId':
|
|
583
|
-
'target':
|
|
584
|
-
'task':
|
|
585
|
-
'threadId':
|
|
586
|
-
'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']
|
|
587
573
|
};
|
|
588
574
|
}
|
|
589
|
-
async function
|
|
590
|
-
const
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
'
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
'
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
'
|
|
609
|
-
|
|
610
|
-
}))[_0x166136(0x2a2)](_0x133357 => _0x133357['id']), _0x2b85a1 = _0x3fbd16[_0x166136(_0xab57a8._0x290bbd)]?.[_0x166136(0x284)]['id'] ?? '';
|
|
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'] ?? '';
|
|
611
596
|
return {
|
|
612
|
-
'agents':
|
|
613
|
-
'channels':
|
|
614
|
-
'humans':
|
|
615
|
-
'serverId':
|
|
616
|
-
'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
|
|
617
602
|
};
|
|
618
|
-
})()[
|
|
619
|
-
|
|
620
|
-
throw
|
|
621
|
-
}),
|
|
603
|
+
})()[_0x4699a3(0x23f)](_0x2c0e5d => {
|
|
604
|
+
_0x4ca346 = null;
|
|
605
|
+
throw _0x2c0e5d;
|
|
606
|
+
}), _0x4ca346;
|
|
622
607
|
}
|
|
623
|
-
function
|
|
624
|
-
const
|
|
625
|
-
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);
|
|
626
611
|
}
|
|
627
|
-
function
|
|
628
|
-
const
|
|
629
|
-
if (
|
|
630
|
-
return
|
|
631
|
-
if (
|
|
632
|
-
return
|
|
633
|
-
if (
|
|
634
|
-
return
|
|
635
|
-
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'];
|
|
636
621
|
}
|
|
637
|
-
function
|
|
638
|
-
const
|
|
622
|
+
function _0x595abf(_0x510c97, _0x3082a8) {
|
|
623
|
+
const _0x58d99d = _0x4621fb;
|
|
639
624
|
try {
|
|
640
|
-
const
|
|
641
|
-
if (
|
|
625
|
+
const _0x24205f = parseTarget(_0x510c97);
|
|
626
|
+
if (_0x24205f['kind'] !== _0x58d99d(_0x5dba3f._0x29a607) || _0x24205f['channelTarget'] !== _0x3082a8[_0x58d99d(0x12f)])
|
|
642
627
|
return ![];
|
|
643
|
-
if (
|
|
628
|
+
if (_0x3082a8['threadNumber'] != null && _0x24205f[_0x58d99d(0x115)] === 't' + _0x3082a8[_0x58d99d(_0x5dba3f._0x552e1f)])
|
|
644
629
|
return !![];
|
|
645
|
-
if (
|
|
646
|
-
return
|
|
647
|
-
if (
|
|
648
|
-
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)]);
|
|
649
634
|
return ![];
|
|
650
635
|
} catch {
|
|
651
636
|
return ![];
|
|
652
637
|
}
|
|
653
638
|
}
|
|
654
|
-
function
|
|
655
|
-
const
|
|
656
|
-
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)] ?? '';
|
|
657
642
|
}
|
|
658
|
-
function
|
|
659
|
-
const
|
|
660
|
-
return
|
|
643
|
+
function _0x137263(_0x1b45ad) {
|
|
644
|
+
const _0x11092f = _0x4621fb;
|
|
645
|
+
return _0x1b45ad[_0x11092f(0x23a)]?.['name'] ?? _0x45c277(_0x1b45ad);
|
|
661
646
|
}
|
|
662
|
-
async function
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
const
|
|
669
|
-
'headers':
|
|
670
|
-
'method':
|
|
671
|
-
}),
|
|
672
|
-
'attachments': (
|
|
673
|
-
'filename':
|
|
674
|
-
'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']
|
|
675
660
|
})),
|
|
676
|
-
'content':
|
|
677
|
-
'createdAt':
|
|
678
|
-
...
|
|
679
|
-
'messageId':
|
|
680
|
-
'senderName':
|
|
681
|
-
'senderType':
|
|
682
|
-
'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
|
|
683
668
|
}));
|
|
684
669
|
return {
|
|
685
|
-
'channel':
|
|
686
|
-
'hasMore':
|
|
687
|
-
'messages':
|
|
688
|
-
'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)]
|
|
689
674
|
};
|
|
690
675
|
}
|
|
691
676
|
return {
|
|
692
|
-
async 'sendMessage'(
|
|
693
|
-
const
|
|
694
|
-
'body': JSON[
|
|
695
|
-
'attachment_ids':
|
|
696
|
-
'bodyMarkdown':
|
|
697
|
-
'channelId':
|
|
698
|
-
...
|
|
699
|
-
'threadId':
|
|
700
|
-
...
|
|
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)] } : {}
|
|
701
686
|
}),
|
|
702
|
-
'headers':
|
|
703
|
-
'method':
|
|
687
|
+
'headers': _0x4b9d76,
|
|
688
|
+
'method': _0x13230d(0x1bb)
|
|
704
689
|
});
|
|
705
|
-
return { 'messageId':
|
|
690
|
+
return { 'messageId': _0x5d1be6[_0x13230d(_0xd7145f._0x2aaf20)]?.['id'] ?? '' };
|
|
706
691
|
},
|
|
707
692
|
async 'listSchedules'() {
|
|
708
|
-
const
|
|
709
|
-
'headers':
|
|
710
|
-
'method':
|
|
693
|
+
const _0x48bb12 = _0x4621fb, _0x3f030c = await _0x44de4d('/api/internal/schedules', {
|
|
694
|
+
'headers': _0x4b9d76,
|
|
695
|
+
'method': _0x48bb12(0xeb)
|
|
711
696
|
});
|
|
712
|
-
return
|
|
697
|
+
return _0x3f030c[_0x48bb12(0x1c7)] ?? [];
|
|
713
698
|
},
|
|
714
|
-
async 'claimScheduleRun'(
|
|
715
|
-
const
|
|
716
|
-
'body': JSON[
|
|
717
|
-
'headers':
|
|
718
|
-
'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'
|
|
719
704
|
});
|
|
720
|
-
return
|
|
705
|
+
return _0x113145['data'] ?? {
|
|
721
706
|
'granted': ![],
|
|
722
707
|
'runId': null,
|
|
723
708
|
'schedule': null,
|
|
724
|
-
'scheduledFor':
|
|
709
|
+
'scheduledFor': _0x1857d9[_0x278149(_0x58c0cb._0x192550)]
|
|
725
710
|
};
|
|
726
711
|
},
|
|
727
|
-
async 'startScheduleRun'(
|
|
728
|
-
const
|
|
729
|
-
'body': JSON[
|
|
730
|
-
'headers':
|
|
731
|
-
'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)
|
|
732
717
|
});
|
|
733
|
-
return
|
|
718
|
+
return _0x236c00[_0x460ac3(0x1c7)] ?? {
|
|
734
719
|
'claimedByDaemonId': '',
|
|
735
|
-
'id':
|
|
720
|
+
'id': _0x736c0b[_0x460ac3(0x16e)],
|
|
736
721
|
'scheduleId': '',
|
|
737
|
-
'status':
|
|
722
|
+
'status': _0x460ac3(0x113)
|
|
738
723
|
};
|
|
739
724
|
},
|
|
740
|
-
async 'finishScheduleRun'(
|
|
741
|
-
const
|
|
742
|
-
'body': JSON[
|
|
743
|
-
'error':
|
|
744
|
-
'resultJson':
|
|
745
|
-
'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)]
|
|
746
731
|
}),
|
|
747
|
-
'headers':
|
|
748
|
-
'method':
|
|
732
|
+
'headers': _0x4b9d76,
|
|
733
|
+
'method': _0x3ddb44(_0x2e4ccd._0x3d71e0)
|
|
749
734
|
});
|
|
750
|
-
return
|
|
735
|
+
return _0x316bde[_0x3ddb44(0x1c7)] ?? {
|
|
751
736
|
'nextRunAt': null,
|
|
752
737
|
'run': {
|
|
753
738
|
'claimedByDaemonId': '',
|
|
754
|
-
'id':
|
|
739
|
+
'id': _0x3f77db[_0x3ddb44(0x16e)],
|
|
755
740
|
'scheduleId': '',
|
|
756
|
-
'status':
|
|
741
|
+
'status': _0x3f77db[_0x3ddb44(0x1aa)]
|
|
757
742
|
}
|
|
758
743
|
};
|
|
759
744
|
},
|
|
760
|
-
async 'listTasks'(
|
|
761
|
-
const
|
|
762
|
-
return
|
|
763
|
-
'headers':
|
|
764
|
-
'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)
|
|
765
750
|
});
|
|
766
751
|
},
|
|
767
|
-
async 'createTasks'(
|
|
768
|
-
const
|
|
769
|
-
return
|
|
770
|
-
'body': JSON[
|
|
771
|
-
...
|
|
772
|
-
'idempotency_key':
|
|
752
|
+
async 'createTasks'(_0x565e1a) {
|
|
753
|
+
const _0x5982d6 = _0x4621fb;
|
|
754
|
+
return _0x378f05(_0x5982d6(0x18b) + _0x6a4cfc[_0x5982d6(_0x198b78._0xff391)] + _0x5982d6(_0x198b78._0x53b579), {
|
|
755
|
+
'body': JSON['stringify']({
|
|
756
|
+
..._0x565e1a,
|
|
757
|
+
'idempotency_key': _0x438753(_0x5982d6(_0x198b78._0x2f7abf), _0x565e1a)
|
|
773
758
|
}),
|
|
774
|
-
'headers':
|
|
775
|
-
'method':
|
|
759
|
+
'headers': _0x4b9d76,
|
|
760
|
+
'method': _0x5982d6(_0x198b78._0x3301e8)
|
|
776
761
|
});
|
|
777
762
|
},
|
|
778
|
-
async 'claimTasks'(
|
|
779
|
-
const
|
|
780
|
-
return
|
|
781
|
-
'body': JSON[
|
|
782
|
-
...
|
|
783
|
-
'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)
|
|
784
769
|
}),
|
|
785
|
-
'headers':
|
|
786
|
-
'method':
|
|
770
|
+
'headers': _0x4b9d76,
|
|
771
|
+
'method': _0x4e32df(_0xf970d4._0x480eb3)
|
|
787
772
|
});
|
|
788
773
|
},
|
|
789
|
-
async 'unclaimTask'(
|
|
790
|
-
const
|
|
791
|
-
return
|
|
792
|
-
'body': JSON[
|
|
793
|
-
...
|
|
794
|
-
'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)
|
|
795
780
|
}),
|
|
796
|
-
'headers':
|
|
797
|
-
'method':
|
|
781
|
+
'headers': _0x4b9d76,
|
|
782
|
+
'method': _0x359bb2(_0x434471._0x3e200a)
|
|
798
783
|
});
|
|
799
784
|
},
|
|
800
|
-
async 'updateTaskStatus'(
|
|
801
|
-
const
|
|
802
|
-
return
|
|
803
|
-
'body': JSON[
|
|
804
|
-
...
|
|
805
|
-
'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)
|
|
806
791
|
}),
|
|
807
|
-
'headers':
|
|
808
|
-
'method':
|
|
792
|
+
'headers': _0x4b9d76,
|
|
793
|
+
'method': _0xdb17e5(_0x1d0822._0x341813)
|
|
809
794
|
});
|
|
810
795
|
},
|
|
811
|
-
async 'uploadFile'(
|
|
812
|
-
const
|
|
813
|
-
if (
|
|
814
|
-
throw new Error(
|
|
815
|
-
const
|
|
816
|
-
'body': JSON[
|
|
817
|
-
'channel':
|
|
818
|
-
'contentBase64':
|
|
819
|
-
'contentType':
|
|
820
|
-
'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)]
|
|
821
806
|
}),
|
|
822
|
-
'headers':
|
|
823
|
-
'method':
|
|
807
|
+
'headers': _0x4b9d76,
|
|
808
|
+
'method': _0x551178(0x1bb)
|
|
824
809
|
});
|
|
825
810
|
return {
|
|
826
|
-
'attachmentId':
|
|
827
|
-
'filename':
|
|
828
|
-
'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
|
|
829
814
|
};
|
|
830
815
|
},
|
|
831
|
-
async 'downloadAttachment'(
|
|
832
|
-
const
|
|
833
|
-
'headers':
|
|
834
|
-
'method':
|
|
835
|
-
}),
|
|
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);
|
|
836
821
|
try {
|
|
837
|
-
const
|
|
838
|
-
'headers':
|
|
839
|
-
'method':
|
|
840
|
-
'signal':
|
|
822
|
+
const _0x1a725b = await _0x34531b(_0x222fb8 + _0x1c6686(0x158) + _0x4b61d9 + '/content', {
|
|
823
|
+
'headers': _0x4b9d76,
|
|
824
|
+
'method': _0x1c6686(_0x19dcad._0x2d3c12),
|
|
825
|
+
'signal': _0x7c6521[_0x1c6686(0x182)]
|
|
841
826
|
});
|
|
842
|
-
if (!
|
|
843
|
-
throw new Error(
|
|
827
|
+
if (!_0x1a725b['ok'])
|
|
828
|
+
throw new Error(_0x1c6686(_0x19dcad._0x46aa36) + _0x1a725b[_0x1c6686(0x1aa)]);
|
|
844
829
|
return {
|
|
845
|
-
'contentType':
|
|
846
|
-
'data': Buffer[
|
|
847
|
-
'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)]
|
|
848
833
|
};
|
|
849
834
|
} finally {
|
|
850
|
-
clearTimeout(
|
|
835
|
+
clearTimeout(_0x5c48f8);
|
|
851
836
|
}
|
|
852
837
|
},
|
|
853
838
|
async 'listServer'() {
|
|
854
|
-
return
|
|
839
|
+
return _0x52bbc5({ 'forceRefresh': !![] });
|
|
855
840
|
},
|
|
856
|
-
async 'readHistory'(
|
|
857
|
-
const
|
|
858
|
-
return
|
|
859
|
-
'after':
|
|
860
|
-
'before':
|
|
861
|
-
'channelId':
|
|
862
|
-
'channelTarget':
|
|
863
|
-
'limit':
|
|
864
|
-
'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)]
|
|
865
850
|
});
|
|
866
851
|
},
|
|
867
|
-
'resolveTarget':
|
|
852
|
+
'resolveTarget': _0x2cc5dd,
|
|
868
853
|
async 'checkMessages'() {
|
|
869
|
-
const
|
|
870
|
-
|
|
871
|
-
const
|
|
872
|
-
'headers':
|
|
873
|
-
'method':
|
|
874
|
-
}),
|
|
875
|
-
let
|
|
876
|
-
|
|
877
|
-
|
|
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
|
|
878
863
|
]));
|
|
879
|
-
const
|
|
880
|
-
const
|
|
881
|
-
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);
|
|
882
867
|
});
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
868
|
+
_0x1bcadc && (_0x701325 = await _0x52bbc5({ 'forceRefresh': !![] }), _0xc78ac0 = new Map(_0x701325[_0x5befba(_0x551076._0x15d1a7)]['map'](_0x3ef69b => [
|
|
869
|
+
_0x3ef69b['id'],
|
|
870
|
+
_0x3ef69b
|
|
886
871
|
])));
|
|
887
|
-
const
|
|
888
|
-
for (const
|
|
889
|
-
const
|
|
890
|
-
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)
|
|
891
876
|
continue;
|
|
892
|
-
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) ?? {
|
|
893
878
|
'aggregateIds': [],
|
|
894
|
-
'channelId':
|
|
879
|
+
'channelId': _0x4bd5ac,
|
|
895
880
|
'entries': new Map(),
|
|
896
|
-
'isThreadReply':
|
|
897
|
-
'rootMessageId':
|
|
898
|
-
'threadNumber':
|
|
899
|
-
'threadId':
|
|
881
|
+
'isThreadReply': _0xa05b1b,
|
|
882
|
+
'rootMessageId': _0x13fd06,
|
|
883
|
+
'threadNumber': _0x4b77a7,
|
|
884
|
+
'threadId': _0xa05b1b ? _0x1d224c : void 0x0
|
|
900
885
|
};
|
|
901
|
-
|
|
902
|
-
'payloadJson':
|
|
903
|
-
'seq':
|
|
904
|
-
}),
|
|
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);
|
|
905
890
|
}
|
|
906
|
-
const
|
|
907
|
-
for (const
|
|
891
|
+
const _0x146882 = [];
|
|
892
|
+
for (const _0x47a398 of _0x2e56b2[_0x5befba(0x239)]()) {
|
|
908
893
|
const {
|
|
909
|
-
channelId:
|
|
910
|
-
threadId:
|
|
911
|
-
rootMessageId:
|
|
912
|
-
threadNumber:
|
|
913
|
-
aggregateIds:
|
|
914
|
-
isThreadReply:
|
|
915
|
-
entries:
|
|
916
|
-
} =
|
|
917
|
-
'channelTarget':
|
|
918
|
-
'rootMessageId':
|
|
919
|
-
'threadId':
|
|
920
|
-
'threadNumber':
|
|
921
|
-
},
|
|
922
|
-
'channelId':
|
|
923
|
-
'channelTarget':
|
|
924
|
-
'limit': Math[
|
|
925
|
-
'threadId':
|
|
926
|
-
}),
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
])),
|
|
930
|
-
for (const
|
|
931
|
-
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)
|
|
932
917
|
continue;
|
|
933
|
-
const
|
|
934
|
-
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)
|
|
935
920
|
continue;
|
|
936
|
-
const
|
|
937
|
-
if (
|
|
938
|
-
|
|
939
|
-
'attachments':
|
|
940
|
-
'content':
|
|
941
|
-
'createdAt':
|
|
942
|
-
...
|
|
943
|
-
'messageId':
|
|
944
|
-
'senderName':
|
|
945
|
-
'senderType':
|
|
946
|
-
'target':
|
|
947
|
-
...
|
|
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': !![] } : {}
|
|
948
933
|
});
|
|
949
934
|
continue;
|
|
950
935
|
}
|
|
951
|
-
if (
|
|
952
|
-
const
|
|
953
|
-
|
|
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)]({
|
|
954
939
|
'attachments': [],
|
|
955
|
-
'content':
|
|
956
|
-
'createdAt': new Date()[
|
|
957
|
-
...
|
|
958
|
-
'messageId':
|
|
959
|
-
'senderName':
|
|
960
|
-
'senderType':
|
|
961
|
-
'target':
|
|
962
|
-
...
|
|
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': !![] } : {}
|
|
963
948
|
});
|
|
964
949
|
}
|
|
965
950
|
}
|
|
966
951
|
}
|
|
967
|
-
if (
|
|
968
|
-
if (
|
|
969
|
-
await
|
|
952
|
+
if (_0xbc8188 > 0x0) {
|
|
953
|
+
if (_0x505c02)
|
|
954
|
+
await _0x140aa8(_0xbc8188);
|
|
970
955
|
else
|
|
971
|
-
|
|
956
|
+
_0x3b3722 && await _0x53d021(_0xbc8188);
|
|
972
957
|
}
|
|
973
|
-
return
|
|
958
|
+
return _0xbc8188 > _0x19d497 && (_0x19d497 = _0xbc8188), { 'messages': _0x267aba ? _0x146882 : _0x5159be ? _0x146882['filter'](_0x2f8c77 => _0x2f8c77['targetedTask'] !== !![]) : _0x146882 };
|
|
974
959
|
}
|
|
975
960
|
};
|
|
976
961
|
}
|
|
977
|
-
function toLocalTime(
|
|
978
|
-
const
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
return _0x1a6fcc[_0x4c19ea(_0x57bb50._0x2fad4d)]() + '-' + _0x6f1d03(_0x1a6fcc[_0x4c19ea(_0x57bb50._0x148149)]() + 0x1) + '-' + _0x6f1d03(_0x1a6fcc[_0x4c19ea(_0x57bb50._0x22eac6)]()) + '\x20' + _0x6f1d03(_0x1a6fcc[_0x4c19ea(0x214)]()) + ':' + _0x6f1d03(_0x1a6fcc[_0x4c19ea(_0x57bb50._0x42394c)]()) + ':' + _0x6f1d03(_0x1a6fcc[_0x4c19ea(_0x57bb50._0x359d5c)]());
|
|
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)]());
|
|
989
973
|
}
|
|
990
|
-
function formatAttachmentSuffix(
|
|
991
|
-
const
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
}, _0x750807 = _0x15c9cf;
|
|
997
|
-
if (!_0x5737f8 || _0x5737f8[_0x750807(0x27e)] === 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)
|
|
998
980
|
return '';
|
|
999
|
-
return '\x20[' +
|
|
1000
|
-
}
|
|
1001
|
-
function formatCheckMessages(_0x218b2c) {
|
|
1002
|
-
const _0x5de4b6 = {
|
|
1003
|
-
_0x4588ad: 0x27e,
|
|
1004
|
-
_0x269091: 0x352
|
|
1005
|
-
}, _0x45368f = {
|
|
1006
|
-
_0x4ed938: 0x2a4,
|
|
1007
|
-
_0x58474c: 0x286
|
|
1008
|
-
}, _0x4a21ec = _0x15c9cf;
|
|
1009
|
-
if (_0x218b2c[_0x4a21ec(_0x5de4b6._0x4588ad)] === 0x0)
|
|
1010
|
-
return _0x4a21ec(0x353);
|
|
1011
|
-
return _0x218b2c[_0x4a21ec(_0x5de4b6._0x269091)](_0x493cb3 => {
|
|
1012
|
-
const _0x37ed04 = _0x4a21ec, _0xb6a0c2 = _0x493cb3[_0x37ed04(0x1d6)] === _0x37ed04(_0x45368f._0x4ed938) ? _0x37ed04(0x21e) : '', _0x22ca4f = _0x493cb3[_0x37ed04(0x20f)] && _0x493cb3['kind'] !== 'chat' ? _0x37ed04(0x2db) + _0x493cb3['kind'] : '';
|
|
1013
|
-
return _0x37ed04(_0x45368f._0x58474c) + _0x493cb3[_0x37ed04(0x1dd)] + '\x20msg=' + _0x493cb3[_0x37ed04(0x26f)][_0x37ed04(0x303)](0x0, 0x8) + _0x37ed04(0x21b) + toLocalTime(_0x493cb3['createdAt']) + _0xb6a0c2 + _0x22ca4f + _0x37ed04(0x311) + _0x493cb3[_0x37ed04(0x228)] + ':\x20' + _0x493cb3[_0x37ed04(0x24b)] + formatAttachmentSuffix(_0x493cb3[_0x37ed04(0x32c)]);
|
|
1014
|
-
})[_0x4a21ec(0x2a8)]('\x0a');
|
|
1015
|
-
}
|
|
1016
|
-
function formatHistory(_0x22db53) {
|
|
1017
|
-
const _0x26d9e9 = {
|
|
1018
|
-
_0x19ee6c: 0x2d9,
|
|
1019
|
-
_0x5626c9: 0x27e,
|
|
1020
|
-
_0x173b3c: 0x29e,
|
|
1021
|
-
_0x59ead6: 0x262,
|
|
1022
|
-
_0x3dcb56: 0x2a7,
|
|
1023
|
-
_0x571e69: 0x2d9,
|
|
1024
|
-
_0x46a4a9: 0x28d,
|
|
1025
|
-
_0x216648: 0x2d9,
|
|
1026
|
-
_0xc6716b: 0x27c
|
|
1027
|
-
}, _0x23e219 = {
|
|
1028
|
-
_0x15f599: 0x1d6,
|
|
1029
|
-
_0x3db72c: 0x21e,
|
|
1030
|
-
_0x247361: 0x20f,
|
|
1031
|
-
_0x5a32b0: 0x2bd,
|
|
1032
|
-
_0x6da220: 0x26f,
|
|
1033
|
-
_0x4853d7: 0x2e9,
|
|
1034
|
-
_0x403ea4: 0x228,
|
|
1035
|
-
_0x4185ad: 0x32c
|
|
1036
|
-
}, _0x174803 = _0x15c9cf;
|
|
1037
|
-
if (_0x22db53[_0x174803(_0x26d9e9._0x19ee6c)][_0x174803(_0x26d9e9._0x5626c9)] === 0x0)
|
|
1038
|
-
return _0x174803(_0x26d9e9._0x173b3c) + _0x22db53[_0x174803(_0x26d9e9._0x59ead6)] + _0x174803(_0x26d9e9._0x3dcb56);
|
|
1039
|
-
const _0x15499e = _0x22db53[_0x174803(_0x26d9e9._0x571e69)][_0x174803(0x352)](_0x24a022 => {
|
|
1040
|
-
const _0x36c1da = _0x174803, _0x4ba5c3 = _0x24a022[_0x36c1da(_0x23e219._0x15f599)] === _0x36c1da(0x2a4) ? _0x36c1da(_0x23e219._0x3db72c) : '', _0x49c1a9 = _0x24a022[_0x36c1da(_0x23e219._0x247361)] && _0x24a022[_0x36c1da(0x20f)] !== 'chat' ? '\x20kind=' + _0x24a022[_0x36c1da(0x20f)] : '';
|
|
1041
|
-
return '[seq=' + _0x24a022['seq'] + _0x36c1da(_0x23e219._0x5a32b0) + _0x24a022[_0x36c1da(_0x23e219._0x6da220)] + _0x36c1da(0x21b) + toLocalTime(_0x24a022[_0x36c1da(_0x23e219._0x4853d7)]) + _0x4ba5c3 + _0x49c1a9 + ']\x20@' + _0x24a022[_0x36c1da(_0x23e219._0x403ea4)] + ':\x20' + _0x24a022[_0x36c1da(0x24b)] + formatAttachmentSuffix(_0x24a022[_0x36c1da(_0x23e219._0x4185ad)]);
|
|
1042
|
-
})[_0x174803(0x2a8)]('\x0a'), _0x3f541d = _0x22db53[_0x174803(0x2ce)] && _0x22db53[_0x174803(_0x26d9e9._0x46a4a9)] ? _0x174803(0x33f) + _0x22db53['messages'][_0x174803(0x27e)] + _0x174803(0x2e1) + _0x22db53[_0x174803(_0x26d9e9._0x46a4a9)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1043
|
-
return _0x174803(0x29e) + _0x22db53['channel'] + '\x20(' + _0x22db53[_0x174803(_0x26d9e9._0x216648)][_0x174803(_0x26d9e9._0x5626c9)] + _0x174803(_0x26d9e9._0xc6716b) + _0x15499e + _0x3f541d;
|
|
1044
|
-
}
|
|
1045
|
-
function formatServerDirectory(_0xa86a49) {
|
|
1046
|
-
const _0x4294a5 = {
|
|
1047
|
-
_0x396c4e: 0x2b4,
|
|
1048
|
-
_0x1ca34b: 0x352,
|
|
1049
|
-
_0x4cd78a: 0x1d7,
|
|
1050
|
-
_0x3e68e3: 0x2a8,
|
|
1051
|
-
_0xf39a2a: 0x27e,
|
|
1052
|
-
_0x218faa: 0x33a,
|
|
1053
|
-
_0x52690c: 0x2d5,
|
|
1054
|
-
_0x3ba3ba: 0x28e
|
|
1055
|
-
}, _0x3f6e06 = _0x15c9cf, _0x2bdbb2 = _0xa86a49['channels'][_0x3f6e06(0x27e)] > 0x0 ? _0xa86a49[_0x3f6e06(_0x4294a5._0x396c4e)][_0x3f6e06(_0x4294a5._0x1ca34b)](_0x4915f1 => _0x4915f1[_0x3f6e06(0x1c8)] ? _0x3f6e06(0x2b6) + _0x4915f1['name'] + _0x3f6e06(0x20e) + _0x4915f1[_0x3f6e06(0x1c8)] : _0x3f6e06(0x2b6) + _0x4915f1['name'])['join']('\x0a') : _0x3f6e06(0x328), _0x2b7525 = _0xa86a49[_0x3f6e06(_0x4294a5._0x4cd78a)][_0x3f6e06(0x27e)] > 0x0 ? _0xa86a49['agents'][_0x3f6e06(0x352)](_0x3a791f => _0x3f6e06(0x1fa) + _0x3a791f['name'])[_0x3f6e06(_0x4294a5._0x3e68e3)]('\x0a') : _0x3f6e06(0x328), _0xf753f = _0xa86a49['humans'][_0x3f6e06(_0x4294a5._0xf39a2a)] > 0x0 ? _0xa86a49['humans']['map'](_0x1bc15c => _0x3f6e06(0x1fa) + _0x1bc15c[_0x3f6e06(0x2c8)])[_0x3f6e06(_0x4294a5._0x3e68e3)]('\x0a') : _0x3f6e06(0x328);
|
|
1056
|
-
return [
|
|
1057
|
-
_0x3f6e06(_0x4294a5._0x218faa) + _0xa86a49[_0x3f6e06(0x345)],
|
|
1058
|
-
'',
|
|
1059
|
-
_0x3f6e06(_0x4294a5._0x52690c),
|
|
1060
|
-
_0x2bdbb2,
|
|
1061
|
-
'',
|
|
1062
|
-
'###\x20Agents',
|
|
1063
|
-
_0x2b7525,
|
|
1064
|
-
'',
|
|
1065
|
-
_0x3f6e06(_0x4294a5._0x3ba3ba),
|
|
1066
|
-
_0xf753f
|
|
1067
|
-
][_0x3f6e06(0x2a8)]('\x0a');
|
|
1068
|
-
}
|
|
1069
|
-
function formatUploadResult(_0xca6317) {
|
|
1070
|
-
const _0x3fdd08 = {
|
|
1071
|
-
_0x15789b: 0x1e3,
|
|
1072
|
-
_0x3659cc: 0x217
|
|
1073
|
-
}, _0x1319fa = _0x15c9cf;
|
|
1074
|
-
return _0x1319fa(0x20a) + _0xca6317[_0x1319fa(0x2b5)] + '\x20(' + (_0xca6317[_0x1319fa(_0x3fdd08._0x15789b)] / 0x400)[_0x1319fa(0x313)](0x1) + _0x1319fa(_0x3fdd08._0x3659cc) + _0xca6317[_0x1319fa(0x344)] + _0x1319fa(0x339);
|
|
1075
|
-
}
|
|
1076
|
-
function formatViewFileResult(_0x5aaf3b, _0x3fb9fd) {
|
|
1077
|
-
const _0x191d03 = { _0x281bb4: 0x2f8 }, _0x38678e = _0x15c9cf;
|
|
1078
|
-
return _0x3fb9fd ? _0x38678e(_0x191d03._0x281bb4) + _0x5aaf3b : _0x38678e(0x2e5) + _0x5aaf3b;
|
|
1079
|
-
}
|
|
1080
|
-
function formatTaskList(_0x1ec5b9, _0x4d406e) {
|
|
1081
|
-
const _0x12632c = { _0x3bb31f: 0x27e }, _0x459825 = {
|
|
1082
|
-
_0x5bc2a9: 0x1e1,
|
|
1083
|
-
_0xe4d3ab: 0x26e,
|
|
1084
|
-
_0x26aae5: 0x1ff
|
|
1085
|
-
}, _0x4cc026 = _0x15c9cf;
|
|
1086
|
-
if (_0x1ec5b9[_0x4cc026(_0x12632c._0x3bb31f)] === 0x0)
|
|
1087
|
-
return _0x4cc026(0x267);
|
|
1088
|
-
return _0x1ec5b9[_0x4cc026(0x352)](_0x16e6c9 => {
|
|
1089
|
-
const _0x1fe348 = _0x4cc026, _0x3f62e2 = _0x16e6c9[_0x1fe348(0x282)] == null ? _0x1fe348(_0x459825._0x5bc2a9) : '#' + _0x16e6c9[_0x1fe348(0x282)], _0x8fb4b5 = _0x16e6c9[_0x1fe348(0x26f)] ? _0x1fe348(0x216) + _0x16e6c9['messageId'] : '', _0x5b6be1 = _0x4d406e && _0x16e6c9[_0x1fe348(0x282)] != null && _0x4d406e[_0x1fe348(0x2b9)](_0x16e6c9[_0x1fe348(0x282)]) ? _0x1fe348(_0x459825._0xe4d3ab) : '';
|
|
1090
|
-
return _0x3f62e2 + '\x20[' + _0x16e6c9[_0x1fe348(_0x459825._0x26aae5)] + ']\x20' + _0x16e6c9[_0x1fe348(0x2ba)] + _0x8fb4b5 + _0x5b6be1;
|
|
1091
|
-
})[_0x4cc026(0x2a8)]('\x0a');
|
|
1092
|
-
}
|
|
1093
|
-
function formatCreatedTasks(_0x44fc98) {
|
|
1094
|
-
const _0x31b351 = {
|
|
1095
|
-
_0x590151: 0x282,
|
|
1096
|
-
_0x4f29c5: 0x26f
|
|
1097
|
-
}, _0x6a16f9 = _0x15c9cf;
|
|
1098
|
-
if (_0x44fc98[_0x6a16f9(0x27e)] === 0x0)
|
|
1099
|
-
return _0x6a16f9(0x34a);
|
|
1100
|
-
return _0x44fc98[_0x6a16f9(0x352)](_0x223b91 => {
|
|
1101
|
-
const _0x5de0a4 = _0x6a16f9, _0x4a55b9 = _0x223b91[_0x5de0a4(_0x31b351._0x590151)] == null ? '(legacy)' : '#' + _0x223b91['taskNumber'];
|
|
1102
|
-
return _0x4a55b9 + '\x20' + _0x223b91[_0x5de0a4(0x2ba)] + _0x5de0a4(0x216) + _0x223b91[_0x5de0a4(_0x31b351._0x4f29c5)];
|
|
1103
|
-
})[_0x6a16f9(0x2a8)]('\x0a');
|
|
1104
|
-
}
|
|
1105
|
-
function formatClaimTaskResults(_0x2ab3d8) {
|
|
1106
|
-
const _0x213c3f = {
|
|
1107
|
-
_0x3769a8: 0x27e,
|
|
1108
|
-
_0x58b776: 0x2a8
|
|
1109
|
-
}, _0x4350c3 = {
|
|
1110
|
-
_0x11cdde: 0x216,
|
|
1111
|
-
_0x57d2a5: 0x206,
|
|
1112
|
-
_0x43ef90: 0x2f6,
|
|
1113
|
-
_0x3121bc: 0x2af,
|
|
1114
|
-
_0xb38542: 0x1f0,
|
|
1115
|
-
_0x1daea4: 0x2a2,
|
|
1116
|
-
_0x4f1175: 0x2a8,
|
|
1117
|
-
_0x4999ec: 0x21c,
|
|
1118
|
-
_0x1a213f: 0x21c,
|
|
1119
|
-
_0x1fde04: 0x26f,
|
|
1120
|
-
_0x3f135b: 0x273,
|
|
1121
|
-
_0x147113: 0x291
|
|
1122
|
-
}, _0x548174 = _0x15c9cf;
|
|
1123
|
-
if (_0x2ab3d8[_0x548174(_0x213c3f._0x3769a8)] === 0x0)
|
|
1124
|
-
return _0x548174(0x316);
|
|
1125
|
-
return _0x2ab3d8['map'](_0x506558 => {
|
|
1126
|
-
const _0x3749ac = _0x548174;
|
|
1127
|
-
if (_0x506558[_0x3749ac(0x293)]) {
|
|
1128
|
-
const _0x49102e = _0x506558['taskNumber'] == null ? '(legacy)' : '#' + _0x506558[_0x3749ac(0x282)], _0x527385 = _0x506558['messageId'] ? _0x3749ac(_0x4350c3._0x11cdde) + _0x506558['messageId'] : '';
|
|
1129
|
-
if (_0x506558[_0x3749ac(_0x4350c3._0x57d2a5)]) {
|
|
1130
|
-
const _0x543f4a = [
|
|
1131
|
-
_0x3749ac(0x2b2),
|
|
1132
|
-
_0x506558['stopMain'] ? _0x3749ac(_0x4350c3._0x43ef90) : null,
|
|
1133
|
-
_0x506558[_0x3749ac(_0x4350c3._0x3121bc)] ? 'executionMode=' + _0x506558[_0x3749ac(0x2af)] : null,
|
|
1134
|
-
_0x506558[_0x3749ac(_0x4350c3._0xb38542)] ? _0x3749ac(0x277) + _0x506558[_0x3749ac(0x1f0)] : null,
|
|
1135
|
-
_0x506558[_0x3749ac(0x302)] ? _0x3749ac(0x21f) + _0x506558[_0x3749ac(0x302)] : null
|
|
1136
|
-
][_0x3749ac(_0x4350c3._0x1daea4)](Boolean)[_0x3749ac(_0x4350c3._0x4f1175)]('\x20');
|
|
1137
|
-
return _0x49102e + _0x3749ac(_0x4350c3._0x4999ec) + _0x527385 + '\x20' + _0x543f4a + _0x3749ac(0x2d4);
|
|
1138
|
-
}
|
|
1139
|
-
const _0x3e41ed = _0x506558['workerHandoffError'] ? '\x20workerHandoff=false\x20error=' + _0x506558['workerHandoffError'] : '';
|
|
1140
|
-
return _0x49102e + _0x3749ac(_0x4350c3._0x1a213f) + _0x527385 + _0x3e41ed;
|
|
1141
|
-
}
|
|
1142
|
-
const _0x2ac0ec = _0x506558[_0x3749ac(0x282)] == null ? _0x506558[_0x3749ac(_0x4350c3._0x1fde04)] ?? _0x3749ac(_0x4350c3._0x3f135b) : '#' + _0x506558['taskNumber'];
|
|
1143
|
-
return _0x2ac0ec + _0x3749ac(_0x4350c3._0x147113) + (_0x506558['reason'] ?? 'claim\x20failed');
|
|
1144
|
-
})[_0x548174(_0x213c3f._0x58b776)]('\x0a');
|
|
1145
|
-
}
|
|
1146
|
-
function formatUnclaimTaskResult(_0x1d6a88) {
|
|
1147
|
-
const _0x282476 = {
|
|
1148
|
-
_0x25acef: 0x1e1,
|
|
1149
|
-
_0x7cbabf: 0x1ff
|
|
1150
|
-
}, _0x3468bf = _0x15c9cf, _0x227484 = _0x1d6a88['taskNumber'] == null ? _0x3468bf(_0x282476._0x25acef) : '#' + _0x1d6a88[_0x3468bf(0x282)];
|
|
1151
|
-
return _0x227484 + _0x3468bf(0x1dc) + _0x1d6a88[_0x3468bf(_0x282476._0x7cbabf)];
|
|
1152
|
-
}
|
|
1153
|
-
function formatUpdateTaskStatusResult(_0x3652d9) {
|
|
1154
|
-
const _0x3ad0b3 = {
|
|
1155
|
-
_0x385414: 0x282,
|
|
1156
|
-
_0x82ab61: 0x1dc
|
|
1157
|
-
}, _0x50e74b = _0x15c9cf, _0x4b35a0 = _0x3652d9['taskNumber'] == null ? _0x50e74b(0x1e1) : '#' + _0x3652d9[_0x50e74b(_0x3ad0b3._0x385414)];
|
|
1158
|
-
return _0x4b35a0 + _0x50e74b(_0x3ad0b3._0x82ab61) + _0x3652d9[_0x50e74b(0x1ff)];
|
|
1159
|
-
}
|
|
1160
|
-
function getChatBridgeToolDefinitions() {
|
|
1161
|
-
const _0x447b80 = {
|
|
1162
|
-
_0x45b4aa: 0x23d,
|
|
1163
|
-
_0x2aec45: 0x1e5,
|
|
1164
|
-
_0x141e8c: 0x2ee,
|
|
1165
|
-
_0x153a31: 0x1f1,
|
|
1166
|
-
_0x49caa4: 0x314,
|
|
1167
|
-
_0x40e978: 0x330
|
|
1168
|
-
}, _0x48ae98 = _0x15c9cf;
|
|
1169
|
-
return [
|
|
1170
|
-
{ 'name': _0x48ae98(_0x447b80._0x45b4aa) },
|
|
1171
|
-
{ 'name': _0x48ae98(0x275) },
|
|
1172
|
-
{ 'name': _0x48ae98(_0x447b80._0x2aec45) },
|
|
1173
|
-
{ 'name': _0x48ae98(0x1e2) },
|
|
1174
|
-
{ 'name': 'upload_file' },
|
|
1175
|
-
{ 'name': 'view_file' },
|
|
1176
|
-
{ 'name': _0x48ae98(_0x447b80._0x141e8c) },
|
|
1177
|
-
{ 'name': _0x48ae98(_0x447b80._0x153a31) },
|
|
1178
|
-
{ 'name': _0x48ae98(0x2f1) },
|
|
1179
|
-
{ 'name': 'unclaim_task' },
|
|
1180
|
-
{ 'name': _0x48ae98(0x276) },
|
|
1181
|
-
{ 'name': _0x48ae98(0x201) },
|
|
1182
|
-
{ 'name': 'get_worker_result' },
|
|
1183
|
-
{ 'name': _0x48ae98(_0x447b80._0x49caa4) },
|
|
1184
|
-
{ 'name': _0x48ae98(_0x447b80._0x40e978) },
|
|
1185
|
-
{ 'name': _0x48ae98(0x281) }
|
|
1186
|
-
];
|
|
1187
|
-
}
|
|
1188
|
-
function createChatBridgeHandlers(_0x133042) {
|
|
1189
|
-
const _0x1e1f4e = {
|
|
1190
|
-
_0x59bc3b: 0x2fc,
|
|
1191
|
-
_0x596f49: 0x26d
|
|
1192
|
-
}, _0x57367a = {
|
|
1193
|
-
_0x2c32f7: 0x2a5,
|
|
1194
|
-
_0x39972d: 0x20c,
|
|
1195
|
-
_0x2d4082: 0x22a,
|
|
1196
|
-
_0x4ccb00: 0x26b,
|
|
1197
|
-
_0x3384fa: 0x354,
|
|
1198
|
-
_0x5b3d93: 0x25e
|
|
1199
|
-
}, _0xf8f2 = {
|
|
1200
|
-
_0x4d7a09: 0x2a5,
|
|
1201
|
-
_0x59674a: 0x28a,
|
|
1202
|
-
_0x25e6ce: 0x22e,
|
|
1203
|
-
_0x28ed87: 0x321,
|
|
1204
|
-
_0x1ba9a3: 0x294,
|
|
1205
|
-
_0xf359ca: 0x22a,
|
|
1206
|
-
_0x5d9b21: 0x1e0
|
|
1207
|
-
}, _0x2def12 = {
|
|
1208
|
-
_0x30b80c: 0x2fa,
|
|
1209
|
-
_0x3e2ef7: 0x28a,
|
|
1210
|
-
_0x312db5: 0x1cb,
|
|
1211
|
-
_0x17cf84: 0x1f3,
|
|
1212
|
-
_0x159a98: 0x260,
|
|
1213
|
-
_0x1979b7: 0x349,
|
|
1214
|
-
_0x35cc2c: 0x321,
|
|
1215
|
-
_0x4a60a8: 0x33c,
|
|
1216
|
-
_0x5ae4e0: 0x2d8
|
|
1217
|
-
}, _0x4c8dcb = {
|
|
1218
|
-
_0x2245c1: 0x283,
|
|
1219
|
-
_0x77ef7e: 0x22a,
|
|
1220
|
-
_0x1201f2: 0x22e
|
|
1221
|
-
}, _0x5af2cf = {
|
|
1222
|
-
_0x5c3a06: 0x2a5,
|
|
1223
|
-
_0x1031e1: 0x321,
|
|
1224
|
-
_0x4e2a04: 0x294,
|
|
1225
|
-
_0xc3a7ec: 0x22a
|
|
1226
|
-
}, _0x1ae177 = {
|
|
1227
|
-
_0x34b464: 0x327,
|
|
1228
|
-
_0x140b00: 0x1d9,
|
|
1229
|
-
_0x35013b: 0x204,
|
|
1230
|
-
_0x47e6b9: 0x306
|
|
1231
|
-
}, _0x5bb6a1 = { _0x400231: 0x20b }, _0x194244 = { _0x2ea896: 0x2cc }, _0x25a39e = { _0x529208: 0x23b }, _0x5e29cc = {
|
|
1232
|
-
_0x26f4bb: 0x23b,
|
|
1233
|
-
_0x40cdfe: 0x30f,
|
|
1234
|
-
_0x2c44e2: 0x352
|
|
1235
|
-
}, _0x14a486 = { _0x2fb348: 0x23b }, _0x71bb56 = {
|
|
1236
|
-
_0x30443d: 0x2d3,
|
|
1237
|
-
_0x1c2379: 0x2a5,
|
|
1238
|
-
_0x32aa9b: 0x1e8,
|
|
1239
|
-
_0x43ce83: 0x245,
|
|
1240
|
-
_0x4cf869: 0x1eb,
|
|
1241
|
-
_0x5e4376: 0x21d,
|
|
1242
|
-
_0x134c4b: 0x2ab,
|
|
1243
|
-
_0x2a206c: 0x21d,
|
|
1244
|
-
_0x1a398a: 0x282,
|
|
1245
|
-
_0x1976c1: 0x21a
|
|
1246
|
-
}, _0x3b387a = {
|
|
1247
|
-
_0x478a5d: 0x23b,
|
|
1248
|
-
_0x4644e3: 0x211
|
|
1249
|
-
}, _0x10bdc1 = {
|
|
1250
|
-
_0x2b04ae: 0x2c7,
|
|
1251
|
-
_0x47a450: 0x2a5,
|
|
1252
|
-
_0x50c451: 0x1dd,
|
|
1253
|
-
_0x204b7f: 0x29c,
|
|
1254
|
-
_0x2259b7: 0x238,
|
|
1255
|
-
_0x125c93: 0x282,
|
|
1256
|
-
_0x3cd7d2: 0x1e1,
|
|
1257
|
-
_0x351d85: 0x2d1,
|
|
1258
|
-
_0x3240db: 0x1dd,
|
|
1259
|
-
_0x21430e: 0x220,
|
|
1260
|
-
_0x12e9b1: 0x2a8,
|
|
1261
|
-
_0x17bcd6: 0x2d7,
|
|
1262
|
-
_0x45db4e: 0x258,
|
|
1263
|
-
_0x477370: 0x2fd,
|
|
1264
|
-
_0x1453cd: 0x25b,
|
|
1265
|
-
_0x5acfb4: 0x205,
|
|
1266
|
-
_0x454a8a: 0x22e,
|
|
1267
|
-
_0x15d7fa: 0x30d,
|
|
1268
|
-
_0x11b3a0: 0x1d3,
|
|
1269
|
-
_0x4da2fd: 0x1e9,
|
|
1270
|
-
_0x326aac: 0x2dd,
|
|
1271
|
-
_0x5a74b9: 0x268,
|
|
1272
|
-
_0x45737d: 0x1d0,
|
|
1273
|
-
_0x39d0f2: 0x33e,
|
|
1274
|
-
_0x466d22: 0x202,
|
|
1275
|
-
_0x2a91ae: 0x24b,
|
|
1276
|
-
_0x565e38: 0x1dd,
|
|
1277
|
-
_0x5087ca: 0x2d6,
|
|
1278
|
-
_0x2381f2: 0x2c6
|
|
1279
|
-
}, _0x22193f = {
|
|
1280
|
-
_0x186b6c: 0x30d,
|
|
1281
|
-
_0x3df1ce: 0x2c7,
|
|
1282
|
-
_0xa02703: 0x1ff,
|
|
1283
|
-
_0xe1976c: 0x21d,
|
|
1284
|
-
_0x191d36: 0x241
|
|
1285
|
-
}, _0x4ceb0c = {
|
|
1286
|
-
_0x1da7b3: 0x2a5,
|
|
1287
|
-
_0x2cabe4: 0x1eb,
|
|
1288
|
-
_0x1ee9b9: 0x34b,
|
|
1289
|
-
_0x14bd94: 0x241
|
|
1290
|
-
}, _0x33d94f = {
|
|
1291
|
-
_0x4f1df5: 0x2a5,
|
|
1292
|
-
_0x272e5c: 0x2c7,
|
|
1293
|
-
_0x51dc52: 0x262,
|
|
1294
|
-
_0x12ca3a: 0x262,
|
|
1295
|
-
_0x5198a8: 0x26f,
|
|
1296
|
-
_0x19c1b4: 0x23b,
|
|
1297
|
-
_0xc63e26: 0x1e1,
|
|
1298
|
-
_0x2f96fc: 0x286,
|
|
1299
|
-
_0x5d08d3: 0x303,
|
|
1300
|
-
_0x52069b: 0x258,
|
|
1301
|
-
_0x57677d: 0x308,
|
|
1302
|
-
_0x2c8975: 0x2a8,
|
|
1303
|
-
_0x325353: 0x205,
|
|
1304
|
-
_0x5dd5f6: 0x28a,
|
|
1305
|
-
_0x458b68: 0x22e,
|
|
1306
|
-
_0x2c12ca: 0x239,
|
|
1307
|
-
_0x19d91b: 0x282,
|
|
1308
|
-
_0x381b95: 0x321,
|
|
1309
|
-
_0x3640d5: 0x208,
|
|
1310
|
-
_0x205079: 0x1d0
|
|
1311
|
-
}, _0x4ad229 = _0x15c9cf;
|
|
1312
|
-
async function _0x1718fa(_0x3726c1) {
|
|
1313
|
-
const _0x18d3c3 = _0x31af;
|
|
1314
|
-
if (!_0x133042[_0x18d3c3(_0x33d94f._0x4f1df5)] || !_0x133042[_0x18d3c3(0x30d)] || _0x133042[_0x18d3c3(_0x33d94f._0x272e5c)] || _0x133042['workerModeEnabled'] !== !![])
|
|
1315
|
-
return null;
|
|
1316
|
-
const _0x36e7af = parseTarget(_0x3726c1[_0x18d3c3(_0x33d94f._0x51dc52)]);
|
|
1317
|
-
if (_0x36e7af[_0x18d3c3(0x20f)] !== _0x18d3c3(_0x33d94f._0x12ca3a))
|
|
1318
|
-
return null;
|
|
1319
|
-
const _0x18234f = _0x3726c1[_0x18d3c3(0x2d1)] != null ? _0x36e7af['channelTarget'] + ':t' + _0x3726c1[_0x18d3c3(0x2d1)] : _0x36e7af[_0x18d3c3(0x2aa)] + ':' + _0x3726c1[_0x18d3c3(_0x33d94f._0x5198a8)];
|
|
1320
|
-
let _0x1ad035;
|
|
1321
|
-
try {
|
|
1322
|
-
const _0x51d1d5 = await _0x133042[_0x18d3c3(_0x33d94f._0x19c1b4)][_0x18d3c3(0x1ec)]({
|
|
1323
|
-
'channel': _0x18234f,
|
|
1324
|
-
'limit': 0x14
|
|
1325
|
-
});
|
|
1326
|
-
_0x1ad035 = _0x51d1d5['messages']['find'](_0x3c60c8 => _0x3c60c8[_0x18d3c3(0x26f)] === _0x3726c1['messageId']);
|
|
1327
|
-
} catch {
|
|
1328
|
-
_0x1ad035 = void 0x0;
|
|
1329
|
-
}
|
|
1330
|
-
const _0x4ce8ff = _0x3726c1['taskNumber'] == null ? _0x18d3c3(_0x33d94f._0xc63e26) : '#' + _0x3726c1[_0x18d3c3(0x282)], _0x5a3c50 = [
|
|
1331
|
-
_0x18d3c3(_0x33d94f._0x2f96fc) + _0x18234f + _0x18d3c3(0x2bd) + _0x3726c1['messageId'][_0x18d3c3(_0x33d94f._0x5d08d3)](0x0, 0x8) + '\x20time=' + new Date()[_0x18d3c3(_0x33d94f._0x52069b)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x4ce8ff + '\x20已切换到\x20worker\x20执行',
|
|
1332
|
-
'',
|
|
1333
|
-
_0x1ad035 ? _0x18d3c3(_0x33d94f._0x57677d) + _0x1ad035['content'] : _0x18d3c3(0x333) + _0x3726c1['messageId'],
|
|
1334
|
-
'',
|
|
1335
|
-
_0x18d3c3(0x278) + _0x18234f,
|
|
1336
|
-
_0x18d3c3(0x1cd)
|
|
1337
|
-
][_0x18d3c3(_0x33d94f._0x2c8975)]('\x0a'), _0x50df29 = await fetch(_0x133042[_0x18d3c3(0x2a5)] + _0x18d3c3(0x242), {
|
|
1338
|
-
'method': _0x18d3c3(_0x33d94f._0x325353),
|
|
1339
|
-
'headers': { 'Content-Type': _0x18d3c3(_0x33d94f._0x5dd5f6) },
|
|
1340
|
-
'body': JSON[_0x18d3c3(_0x33d94f._0x458b68)]({
|
|
1341
|
-
'agent_id': _0x133042[_0x18d3c3(0x30d)],
|
|
1342
|
-
'thread_target': _0x18234f,
|
|
1343
|
-
'spawn_packet': {
|
|
1344
|
-
'replyTarget': _0x18234f,
|
|
1345
|
-
..._0x3726c1[_0x18d3c3(_0x33d94f._0x2c12ca)] ? { 'taskId': _0x3726c1[_0x18d3c3(0x239)] } : _0x3726c1[_0x18d3c3(0x282)] != null ? { 'taskId': _0x18d3c3(0x231) + _0x3726c1[_0x18d3c3(_0x33d94f._0x19d91b)] } : {}
|
|
1346
|
-
},
|
|
1347
|
-
'payload': {
|
|
1348
|
-
'mode': 'user',
|
|
1349
|
-
'text': _0x5a3c50
|
|
1350
|
-
}
|
|
1351
|
-
})
|
|
1352
|
-
}), _0x18ddbd = await _0x50df29[_0x18d3c3(_0x33d94f._0x381b95)]();
|
|
1353
|
-
if (!_0x18ddbd['ok'])
|
|
1354
|
-
throw new Error(_0x18ddbd[_0x18d3c3(_0x33d94f._0x3640d5)] ?? _0x18d3c3(0x2de));
|
|
1355
|
-
return {
|
|
1356
|
-
'stopMain': !![],
|
|
1357
|
-
'threadTarget': _0x18234f,
|
|
1358
|
-
'workerDisposition': _0x18ddbd['disposition'] === 'queued' ? _0x18d3c3(_0x33d94f._0x205079) : 'started',
|
|
1359
|
-
'workerHandoff': !![],
|
|
1360
|
-
'workerSessionId': _0x18ddbd['worker_session_id'] ?? '',
|
|
1361
|
-
'executionMode': _0x18d3c3(0x235)
|
|
1362
|
-
};
|
|
1363
|
-
}
|
|
1364
|
-
async function _0x3e00de() {
|
|
1365
|
-
const _0x368f53 = _0x31af;
|
|
1366
|
-
if (!_0x133042['daemonLocalUrl'] || !_0x133042[_0x368f53(0x30d)] || _0x133042['workerMode'])
|
|
1367
|
-
return null;
|
|
1368
|
-
try {
|
|
1369
|
-
const _0x5a0ea3 = await fetch(_0x133042[_0x368f53(_0x4ceb0c._0x1da7b3)] + '/workers/list?agent_id=' + encodeURIComponent(_0x133042[_0x368f53(0x30d)])), _0x1fd896 = await _0x5a0ea3[_0x368f53(0x321)]();
|
|
1370
|
-
if (!_0x1fd896['ok'])
|
|
1371
|
-
return null;
|
|
1372
|
-
const _0x47856e = new Set();
|
|
1373
|
-
for (const _0x3f416a of _0x1fd896[_0x368f53(0x245)]) {
|
|
1374
|
-
_0x3f416a[_0x368f53(0x1ff)] !== _0x368f53(_0x4ceb0c._0x2cabe4) && _0x3f416a[_0x368f53(0x21d)] && _0x47856e[_0x368f53(_0x4ceb0c._0x1ee9b9)](_0x3f416a[_0x368f53(0x21d)]);
|
|
1375
|
-
}
|
|
1376
|
-
return _0x47856e[_0x368f53(_0x4ceb0c._0x14bd94)] > 0x0 ? _0x47856e : null;
|
|
1377
|
-
} catch {
|
|
1378
|
-
return null;
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
const _0x1a869f = new Set([
|
|
1382
|
-
_0x4ad229(_0x1e1f4e._0x59bc3b),
|
|
1383
|
-
_0x4ad229(_0x1e1f4e._0x596f49),
|
|
1384
|
-
'waiting_input'
|
|
1385
|
-
]);
|
|
1386
|
-
async function _0xc8b138() {
|
|
1387
|
-
const _0x266a51 = _0x4ad229;
|
|
1388
|
-
if (!_0x133042['daemonLocalUrl'] || !_0x133042[_0x266a51(_0x22193f._0x186b6c)] || _0x133042[_0x266a51(_0x22193f._0x3df1ce)])
|
|
1389
|
-
return null;
|
|
1390
|
-
try {
|
|
1391
|
-
const _0x5e8af1 = await fetch(_0x133042['daemonLocalUrl'] + _0x266a51(0x1e8) + encodeURIComponent(_0x133042['agentId'])), _0x31f20c = await _0x5e8af1[_0x266a51(0x321)]();
|
|
1392
|
-
if (!_0x31f20c['ok'])
|
|
1393
|
-
return null;
|
|
1394
|
-
const _0xec0b8e = new Set();
|
|
1395
|
-
for (const _0x2bcbab of _0x31f20c[_0x266a51(0x245)]) {
|
|
1396
|
-
_0x1a869f[_0x266a51(0x2b9)](_0x2bcbab[_0x266a51(_0x22193f._0xa02703)]) && _0x2bcbab[_0x266a51(_0x22193f._0xe1976c)] && _0xec0b8e[_0x266a51(0x34b)](_0x2bcbab[_0x266a51(0x21d)]);
|
|
1397
|
-
}
|
|
1398
|
-
return _0xec0b8e[_0x266a51(_0x22193f._0x191d36)] > 0x0 ? _0xec0b8e : null;
|
|
1399
|
-
} catch {
|
|
1400
|
-
return null;
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
return {
|
|
1404
|
-
async 'send_message'(_0x536ed8) {
|
|
1405
|
-
const _0x402a85 = _0x4ad229;
|
|
1406
|
-
if (!_0x133042[_0x402a85(_0x10bdc1._0x2b04ae)] && _0x133042[_0x402a85(0x24e)] && _0x133042[_0x402a85(_0x10bdc1._0x47a450)] && _0x133042['agentId']) {
|
|
1407
|
-
const _0x362102 = await _0x133042['client']['resolveTarget'](_0x536ed8[_0x402a85(_0x10bdc1._0x50c451)]);
|
|
1408
|
-
if (_0x362102[_0x402a85(0x238)] && _0x362102[_0x402a85(_0x10bdc1._0x204b7f)]) {
|
|
1409
|
-
const _0x330e58 = _0x362102[_0x402a85(_0x10bdc1._0x2259b7)][_0x402a85(0x282)] != null ? '#' + _0x362102[_0x402a85(_0x10bdc1._0x2259b7)][_0x402a85(_0x10bdc1._0x125c93)] : _0x402a85(_0x10bdc1._0x3cd7d2), _0x4361c6 = _0x362102[_0x402a85(_0x10bdc1._0x351d85)] != null ? _0x362102[_0x402a85(_0x10bdc1._0x3240db)] + ':t' + _0x362102[_0x402a85(0x2d1)] : _0x362102[_0x402a85(_0x10bdc1._0x50c451)] + ':' + _0x362102[_0x402a85(_0x10bdc1._0x204b7f)]['slice'](0x0, 0x8), _0x22aeba = await _0xc8b138();
|
|
1410
|
-
if (_0x22aeba?.[_0x402a85(0x2b9)](_0x4361c6))
|
|
1411
|
-
return [
|
|
1412
|
-
_0x402a85(_0x10bdc1._0x21430e) + _0x330e58 + _0x402a85(0x1e9) + _0x4361c6 + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1413
|
-
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1414
|
-
][_0x402a85(_0x10bdc1._0x12e9b1)]('\x0a');
|
|
1415
|
-
const _0x476a6d = [
|
|
1416
|
-
_0x402a85(0x286) + _0x4361c6 + _0x402a85(_0x10bdc1._0x17bcd6) + new Date()[_0x402a85(_0x10bdc1._0x45db4e)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1417
|
-
'',
|
|
1418
|
-
'Original\x20message:\x20' + _0x536ed8[_0x402a85(0x24b)],
|
|
1419
|
-
_0x402a85(_0x10bdc1._0x477370) + _0x330e58 + '\x20(' + _0x362102[_0x402a85(0x238)]['taskId'] + ')',
|
|
1420
|
-
_0x402a85(0x278) + _0x4361c6,
|
|
1421
|
-
_0x402a85(_0x10bdc1._0x1453cd)
|
|
1422
|
-
]['join']('\x0a'), _0x411e68 = await fetch(_0x133042['daemonLocalUrl'] + '/workers/deliver', {
|
|
1423
|
-
'method': _0x402a85(_0x10bdc1._0x5acfb4),
|
|
1424
|
-
'headers': { 'Content-Type': _0x402a85(0x28a) },
|
|
1425
|
-
'body': JSON[_0x402a85(_0x10bdc1._0x454a8a)]({
|
|
1426
|
-
'agent_id': _0x133042[_0x402a85(_0x10bdc1._0x15d7fa)],
|
|
1427
|
-
'thread_target': _0x4361c6,
|
|
1428
|
-
'spawn_packet': {
|
|
1429
|
-
'replyTarget': _0x4361c6,
|
|
1430
|
-
'taskId': _0x362102['task'][_0x402a85(0x239)]
|
|
1431
|
-
},
|
|
1432
|
-
'payload': {
|
|
1433
|
-
'mode': _0x402a85(0x2f0),
|
|
1434
|
-
'text': _0x476a6d
|
|
1435
|
-
}
|
|
1436
|
-
})
|
|
1437
|
-
}), _0x58d488 = await _0x411e68[_0x402a85(0x321)]();
|
|
1438
|
-
if (!_0x58d488['ok'])
|
|
1439
|
-
throw new Error(_0x58d488['error'] ?? _0x402a85(_0x10bdc1._0x11b3a0));
|
|
1440
|
-
return [
|
|
1441
|
-
_0x402a85(0x34d) + _0x330e58 + _0x402a85(_0x10bdc1._0x4da2fd) + _0x4361c6 + '.\x20stopMain=true\x20executionMode=worker',
|
|
1442
|
-
_0x402a85(_0x10bdc1._0x326aac) + (_0x58d488[_0x402a85(_0x10bdc1._0x5a74b9)] === _0x402a85(_0x10bdc1._0x45737d) ? _0x402a85(0x1d0) : _0x402a85(_0x10bdc1._0x39d0f2)) + '.',
|
|
1443
|
-
_0x402a85(_0x10bdc1._0x466d22)
|
|
1444
|
-
][_0x402a85(0x2a8)]('\x0a');
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
const _0x22681d = await _0x133042[_0x402a85(0x23b)]['sendMessage']({
|
|
1448
|
-
'attachmentIds': _0x536ed8['attachment_ids'],
|
|
1449
|
-
'content': _0x536ed8[_0x402a85(_0x10bdc1._0x2a91ae)],
|
|
1450
|
-
'target': _0x536ed8[_0x402a85(_0x10bdc1._0x565e38)],
|
|
1451
|
-
'visibility': _0x536ed8['visibility']
|
|
1452
|
-
});
|
|
1453
|
-
return _0x402a85(_0x10bdc1._0x5087ca) + _0x536ed8['target'] + _0x402a85(_0x10bdc1._0x2381f2) + _0x22681d[_0x402a85(0x26f)];
|
|
1454
|
-
},
|
|
1455
|
-
async 'check_messages'() {
|
|
1456
|
-
const _0x3bac57 = _0x4ad229, _0x30e046 = await _0x133042[_0x3bac57(0x23b)]['checkMessages']();
|
|
1457
|
-
if (!_0x133042[_0x3bac57(0x2c7)]) {
|
|
1458
|
-
const _0x8ac30c = await _0x3e00de();
|
|
1459
|
-
if (_0x8ac30c)
|
|
1460
|
-
return formatCheckMessages(_0x30e046[_0x3bac57(0x2d9)]['filter'](_0x41a56a => !_0x8ac30c[_0x3bac57(0x2b9)](_0x41a56a[_0x3bac57(0x1dd)])));
|
|
1461
|
-
}
|
|
1462
|
-
return formatCheckMessages(_0x30e046[_0x3bac57(0x2d9)]);
|
|
1463
|
-
},
|
|
1464
|
-
async 'read_history'(_0x75e152) {
|
|
1465
|
-
const _0x9414f6 = _0x4ad229, _0x372dda = await _0x133042[_0x9414f6(0x23b)]['readHistory'](_0x75e152);
|
|
1466
|
-
return formatHistory(_0x372dda);
|
|
1467
|
-
},
|
|
1468
|
-
async 'list_server'() {
|
|
1469
|
-
const _0x4250fe = _0x4ad229, _0x3ca03e = await _0x133042[_0x4250fe(_0x3b387a._0x478a5d)][_0x4250fe(_0x3b387a._0x4644e3)]();
|
|
1470
|
-
return formatServerDirectory(_0x3ca03e);
|
|
1471
|
-
},
|
|
1472
|
-
async 'list_tasks'(_0x4d0e3e) {
|
|
1473
|
-
const _0x340032 = _0x4ad229, _0x44631b = await _0x133042['client'][_0x340032(_0x71bb56._0x30443d)](_0x4d0e3e);
|
|
1474
|
-
let _0xcd4af5;
|
|
1475
|
-
if (_0x133042[_0x340032(_0x71bb56._0x1c2379)] && _0x133042['agentId'])
|
|
1476
|
-
try {
|
|
1477
|
-
const _0x1dfd1d = await fetch(_0x133042[_0x340032(_0x71bb56._0x1c2379)] + _0x340032(_0x71bb56._0x32aa9b) + encodeURIComponent(_0x133042['agentId'])), _0x347c9f = await _0x1dfd1d['json']();
|
|
1478
|
-
if (_0x347c9f['ok']) {
|
|
1479
|
-
const _0x3c757c = _0x4d0e3e[_0x340032(0x262)] + ':';
|
|
1480
|
-
_0xcd4af5 = new Set();
|
|
1481
|
-
for (const _0x2794e6 of _0x347c9f[_0x340032(_0x71bb56._0x43ce83)]) {
|
|
1482
|
-
if (_0x2794e6['status'] === _0x340032(_0x71bb56._0x4cf869))
|
|
1483
|
-
continue;
|
|
1484
|
-
if (_0x2794e6[_0x340032(_0x71bb56._0x5e4376)]?.[_0x340032(_0x71bb56._0x134c4b)](_0x3c757c)) {
|
|
1485
|
-
const _0xd99051 = _0x2794e6[_0x340032(_0x71bb56._0x2a206c)]['slice'](_0x3c757c[_0x340032(0x27e)]), _0x109bf3 = _0x44631b[_0x340032(0x355)][_0x340032(0x248)](_0x2ec189 => _0x2ec189[_0x340032(0x26f)]?.['startsWith'](_0xd99051) === !![]);
|
|
1486
|
-
if (_0x109bf3?.[_0x340032(_0x71bb56._0x1a398a)] != null) {
|
|
1487
|
-
_0xcd4af5[_0x340032(0x34b)](_0x109bf3[_0x340032(0x282)]);
|
|
1488
|
-
continue;
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
if (_0x2794e6[_0x340032(_0x71bb56._0x1976c1)]) {
|
|
1492
|
-
const _0x2a04e1 = _0x44631b[_0x340032(0x355)]['find'](_0x943628 => _0x943628[_0x340032(0x239)] === _0x2794e6['task_id']);
|
|
1493
|
-
_0x2a04e1?.['taskNumber'] != null && _0xcd4af5[_0x340032(0x34b)](_0x2a04e1[_0x340032(0x282)]);
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
} catch {
|
|
1498
|
-
}
|
|
1499
|
-
return formatTaskList(_0x44631b[_0x340032(0x355)], _0xcd4af5);
|
|
1500
|
-
},
|
|
1501
|
-
async 'create_tasks'(_0x1d2ba2) {
|
|
1502
|
-
const _0x46fa34 = _0x4ad229, _0x27986a = await _0x133042[_0x46fa34(_0x14a486._0x2fb348)]['createTasks'](_0x1d2ba2);
|
|
1503
|
-
return formatCreatedTasks(_0x27986a['tasks']);
|
|
1504
|
-
},
|
|
1505
|
-
async 'claim_tasks'(_0x5ebe64) {
|
|
1506
|
-
const _0x143a6e = {
|
|
1507
|
-
_0x2a5c8b: 0x262,
|
|
1508
|
-
_0x426531: 0x26f,
|
|
1509
|
-
_0x2fc295: 0x239,
|
|
1510
|
-
_0x4c96e7: 0x33d
|
|
1511
|
-
}, _0x3e98a7 = _0x4ad229, _0x4628c5 = await _0x133042[_0x3e98a7(_0x5e29cc._0x26f4bb)][_0x3e98a7(0x2c5)](_0x5ebe64), _0x34adaf = await Promise[_0x3e98a7(0x22f)](_0x4628c5[_0x3e98a7(_0x5e29cc._0x40cdfe)][_0x3e98a7(_0x5e29cc._0x2c44e2)](async _0x43b3c0 => {
|
|
1512
|
-
const _0x5aa8a7 = _0x3e98a7;
|
|
1513
|
-
if (!_0x43b3c0[_0x5aa8a7(0x293)] || !_0x43b3c0[_0x5aa8a7(0x26f)])
|
|
1514
|
-
return _0x43b3c0;
|
|
1515
|
-
try {
|
|
1516
|
-
const _0x5ceeff = await _0x1718fa({
|
|
1517
|
-
'channel': _0x5ebe64[_0x5aa8a7(_0x143a6e._0x2a5c8b)],
|
|
1518
|
-
'messageId': _0x43b3c0[_0x5aa8a7(_0x143a6e._0x426531)],
|
|
1519
|
-
'taskId': _0x43b3c0[_0x5aa8a7(_0x143a6e._0x2fc295)],
|
|
1520
|
-
'taskNumber': _0x43b3c0[_0x5aa8a7(0x282)],
|
|
1521
|
-
'threadNumber': _0x43b3c0[_0x5aa8a7(0x2d1)]
|
|
1522
|
-
});
|
|
1523
|
-
return _0x5ceeff ? {
|
|
1524
|
-
..._0x43b3c0,
|
|
1525
|
-
..._0x5ceeff
|
|
1526
|
-
} : _0x43b3c0;
|
|
1527
|
-
} catch (_0x4e4b28) {
|
|
1528
|
-
return {
|
|
1529
|
-
..._0x43b3c0,
|
|
1530
|
-
'workerHandoffError': _0x4e4b28 instanceof Error ? _0x4e4b28[_0x5aa8a7(_0x143a6e._0x4c96e7)] : _0x5aa8a7(0x2de)
|
|
1531
|
-
};
|
|
1532
|
-
}
|
|
1533
|
-
}));
|
|
1534
|
-
return formatClaimTaskResults(_0x34adaf);
|
|
1535
|
-
},
|
|
1536
|
-
async 'unclaim_task'(_0x322022) {
|
|
1537
|
-
const _0x11cb10 = _0x4ad229, _0x522044 = await _0x133042[_0x11cb10(_0x25a39e._0x529208)]['unclaimTask'](_0x322022);
|
|
1538
|
-
return formatUnclaimTaskResult(_0x522044);
|
|
1539
|
-
},
|
|
1540
|
-
async 'update_task_status'(_0x5d2c7a) {
|
|
1541
|
-
const _0x233a6b = _0x4ad229, _0x2a947b = await _0x133042[_0x233a6b(0x23b)][_0x233a6b(_0x194244._0x2ea896)](_0x5d2c7a);
|
|
1542
|
-
return formatUpdateTaskStatusResult(_0x2a947b);
|
|
1543
|
-
},
|
|
1544
|
-
async 'upload_file'(_0x13260b) {
|
|
1545
|
-
const _0x3369b5 = _0x4ad229, _0x507f81 = await _0x133042[_0x3369b5(_0x5bb6a1._0x400231)](_0x13260b['file_path']), {
|
|
1546
|
-
sizeBytes: _0x14a324,
|
|
1547
|
-
..._0x1ae640
|
|
1548
|
-
} = _0x507f81, _0x134b6b = await _0x133042[_0x3369b5(0x23b)]['uploadFile']({
|
|
1549
|
-
'channel': _0x13260b[_0x3369b5(0x262)],
|
|
1550
|
-
..._0x1ae640
|
|
1551
|
-
});
|
|
1552
|
-
return formatUploadResult(_0x134b6b);
|
|
1553
|
-
},
|
|
1554
|
-
async 'view_file'(_0x1ba4b0) {
|
|
1555
|
-
const _0x2a678a = _0x4ad229, _0x269ab3 = await _0x133042[_0x2a678a(0x1d9)][_0x2a678a(_0x1ae177._0x34b464)](_0x1ba4b0['attachment_id']);
|
|
1556
|
-
if (_0x269ab3)
|
|
1557
|
-
return formatViewFileResult(_0x269ab3, !![]);
|
|
1558
|
-
const _0x390bac = await _0x133042[_0x2a678a(0x23b)]['downloadAttachment'](_0x1ba4b0[_0x2a678a(0x1e4)]), _0x3987b0 = await _0x133042[_0x2a678a(_0x1ae177._0x140b00)][_0x2a678a(0x1c4)]({
|
|
1559
|
-
'attachmentId': _0x1ba4b0[_0x2a678a(0x1e4)],
|
|
1560
|
-
'contentType': _0x390bac[_0x2a678a(_0x1ae177._0x35013b)],
|
|
1561
|
-
'data': _0x390bac[_0x2a678a(0x315)],
|
|
1562
|
-
'originalFilename': _0x390bac[_0x2a678a(_0x1ae177._0x47e6b9)]
|
|
1563
|
-
});
|
|
1564
|
-
return formatViewFileResult(_0x3987b0, ![]);
|
|
1565
|
-
},
|
|
1566
|
-
async 'get_worker_status'(_0x6e2f95) {
|
|
1567
|
-
const _0x42fbd2 = _0x4ad229;
|
|
1568
|
-
if (!_0x133042[_0x42fbd2(_0x5af2cf._0x5c3a06)])
|
|
1569
|
-
return _0x42fbd2(0x24a);
|
|
1570
|
-
const _0x19279d = await fetch(_0x133042[_0x42fbd2(0x2a5)] + _0x42fbd2(0x2f7) + encodeURIComponent(_0x6e2f95[_0x42fbd2(0x22a)])), _0x342802 = await _0x19279d[_0x42fbd2(_0x5af2cf._0x1031e1)]();
|
|
1571
|
-
if (!_0x342802['ok'])
|
|
1572
|
-
return 'Worker\x20\x22' + _0x6e2f95[_0x42fbd2(0x22a)] + '\x22\x20not\x20found';
|
|
1573
|
-
return _0x42fbd2(_0x5af2cf._0x4e2a04) + _0x6e2f95[_0x42fbd2(_0x5af2cf._0xc3a7ec)] + _0x42fbd2(0x200) + _0x342802[_0x42fbd2(0x1ff)];
|
|
1574
|
-
},
|
|
1575
|
-
async 'get_worker_result'(_0x302312) {
|
|
1576
|
-
const _0x410c9a = _0x4ad229;
|
|
1577
|
-
if (!_0x133042['daemonLocalUrl'])
|
|
1578
|
-
return _0x410c9a(0x24a);
|
|
1579
|
-
const _0x14e210 = await fetch(_0x133042['daemonLocalUrl'] + _0x410c9a(_0x4c8dcb._0x2245c1) + encodeURIComponent(_0x302312['work_key'])), _0x5eb65c = await _0x14e210['json']();
|
|
1580
|
-
if (!_0x5eb65c[_0x410c9a(0x272)])
|
|
1581
|
-
return _0x410c9a(0x203) + _0x302312[_0x410c9a(_0x4c8dcb._0x77ef7e)] + '\x22';
|
|
1582
|
-
return JSON[_0x410c9a(_0x4c8dcb._0x1201f2)](_0x5eb65c[_0x410c9a(0x272)], null, 0x2);
|
|
1583
|
-
},
|
|
1584
|
-
async 'finish_worker'(_0x26749a) {
|
|
1585
|
-
const _0x2a17d2 = _0x4ad229;
|
|
1586
|
-
if (!_0x133042['daemonLocalUrl'])
|
|
1587
|
-
return _0x2a17d2(0x24a);
|
|
1588
|
-
const _0x5c397c = await fetch(_0x133042['daemonLocalUrl'] + _0x2a17d2(_0x2def12._0x30b80c), {
|
|
1589
|
-
'method': 'POST',
|
|
1590
|
-
'headers': { 'Content-Type': _0x2a17d2(_0x2def12._0x3e2ef7) },
|
|
1591
|
-
'body': JSON['stringify']({
|
|
1592
|
-
'work_key': _0x26749a[_0x2a17d2(0x22a)],
|
|
1593
|
-
'resume_packet': {
|
|
1594
|
-
'objective': '',
|
|
1595
|
-
'result': _0x26749a[_0x2a17d2(_0x2def12._0x312db5)],
|
|
1596
|
-
'summary': _0x26749a[_0x2a17d2(_0x2def12._0x17cf84)],
|
|
1597
|
-
'decisions': _0x26749a[_0x2a17d2(_0x2def12._0x159a98)] ?? [],
|
|
1598
|
-
'filesChanged': _0x26749a[_0x2a17d2(_0x2def12._0x1979b7)] ?? [],
|
|
1599
|
-
'openIssues': _0x26749a[_0x2a17d2(0x27f)] ?? [],
|
|
1600
|
-
'nextSteps': _0x26749a[_0x2a17d2(0x257)] ?? []
|
|
1601
|
-
}
|
|
1602
|
-
})
|
|
1603
|
-
}), _0xcaff30 = await _0x5c397c[_0x2a17d2(_0x2def12._0x35cc2c)]();
|
|
1604
|
-
if (!_0xcaff30['ok'])
|
|
1605
|
-
throw new Error(_0xcaff30[_0x2a17d2(0x208)] ?? _0x2a17d2(_0x2def12._0x4a60a8));
|
|
1606
|
-
return 'Worker\x20\x22' + _0x26749a['work_key'] + _0x2a17d2(_0x2def12._0x5ae4e0) + _0x26749a[_0x2a17d2(_0x2def12._0x312db5)];
|
|
1607
|
-
},
|
|
1608
|
-
async 'mark_waiting_input'(_0x3bc476) {
|
|
1609
|
-
const _0x3b7f3d = _0x4ad229;
|
|
1610
|
-
if (!_0x133042[_0x3b7f3d(0x2a5)] || !_0x133042['agentId'])
|
|
1611
|
-
return _0x3b7f3d(0x340);
|
|
1612
|
-
const _0x19d05e = await fetch(_0x133042[_0x3b7f3d(_0xf8f2._0x4d7a09)] + _0x3b7f3d(0x1ca), {
|
|
1613
|
-
'method': 'POST',
|
|
1614
|
-
'headers': { 'Content-Type': _0x3b7f3d(_0xf8f2._0x59674a) },
|
|
1615
|
-
'body': JSON[_0x3b7f3d(_0xf8f2._0x25e6ce)]({
|
|
1616
|
-
'work_key': _0x3bc476['work_key'],
|
|
1617
|
-
'agent_id': _0x133042[_0x3b7f3d(0x30d)]
|
|
1618
|
-
})
|
|
1619
|
-
}), _0x20632c = await _0x19d05e[_0x3b7f3d(_0xf8f2._0x28ed87)]();
|
|
1620
|
-
if (!_0x20632c['ok'])
|
|
1621
|
-
throw new Error(_0x20632c['error'] ?? _0x3b7f3d(0x2a9));
|
|
1622
|
-
return _0x3b7f3d(_0xf8f2._0x1ba9a3) + _0x3bc476[_0x3b7f3d(_0xf8f2._0xf359ca)] + _0x3b7f3d(_0xf8f2._0x5d9b21);
|
|
1623
|
-
},
|
|
1624
|
-
async 'escalate_to_main'(_0x5c6c70) {
|
|
1625
|
-
const _0x36af8f = _0x4ad229;
|
|
1626
|
-
if (!_0x133042[_0x36af8f(_0x57367a._0x2c32f7)])
|
|
1627
|
-
return _0x36af8f(0x24a);
|
|
1628
|
-
const _0x40bd71 = await fetch(_0x133042[_0x36af8f(0x2a5)] + _0x36af8f(_0x57367a._0x39972d), {
|
|
1629
|
-
'method': _0x36af8f(0x205),
|
|
1630
|
-
'headers': { 'Content-Type': _0x36af8f(0x28a) },
|
|
1631
|
-
'body': JSON['stringify']({
|
|
1632
|
-
'work_key': _0x5c6c70[_0x36af8f(_0x57367a._0x2d4082)],
|
|
1633
|
-
'reason': _0x5c6c70[_0x36af8f(_0x57367a._0x4ccb00)]
|
|
1634
|
-
})
|
|
1635
|
-
}), _0xf5fadf = await _0x40bd71[_0x36af8f(0x321)]();
|
|
1636
|
-
if (!_0xf5fadf['ok'])
|
|
1637
|
-
throw new Error(_0xf5fadf[_0x36af8f(0x208)] ?? _0x36af8f(_0x57367a._0x3384fa));
|
|
1638
|
-
return _0x36af8f(_0x57367a._0x5b3d93) + _0x5c6c70['reason'];
|
|
1639
|
-
}
|
|
1640
|
-
};
|
|
1641
|
-
}
|
|
1642
|
-
function textResult(_0x4606b2, _0x1b079f = ![]) {
|
|
1643
|
-
return {
|
|
1644
|
-
'content': [{
|
|
1645
|
-
'type': 'text',
|
|
1646
|
-
'text': _0x4606b2
|
|
1647
|
-
}],
|
|
1648
|
-
..._0x1b079f ? { 'isError': !![] } : {}
|
|
1649
|
-
};
|
|
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]';
|
|
1650
982
|
}
|
|
1651
|
-
|
|
1652
|
-
const
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
_0x3ae380: 0x2cb,
|
|
1673
|
-
_0x250f4f: 0x254,
|
|
1674
|
-
_0xf828fe: 0x2f2,
|
|
1675
|
-
_0xb5f14c: 0x320,
|
|
1676
|
-
_0x1de7b9: 0x320,
|
|
1677
|
-
_0x30cc99: 0x266,
|
|
1678
|
-
_0x5d8b4b: 0x30e,
|
|
1679
|
-
_0x3c942a: 0x2df,
|
|
1680
|
-
_0x46f653: 0x342,
|
|
1681
|
-
_0x17a866: 0x337,
|
|
1682
|
-
_0x41d1f8: 0x2b7,
|
|
1683
|
-
_0x23a2d6: 0x31b,
|
|
1684
|
-
_0x90b999: 0x2df,
|
|
1685
|
-
_0x424f2b: 0x201,
|
|
1686
|
-
_0x16c7f3: 0x28f,
|
|
1687
|
-
_0x10003e: 0x266,
|
|
1688
|
-
_0x5eb5f5: 0x2df,
|
|
1689
|
-
_0x1a68d2: 0x269,
|
|
1690
|
-
_0x5ab23d: 0x301,
|
|
1691
|
-
_0x2f68fc: 0x2df,
|
|
1692
|
-
_0x2e8f5e: 0x2f2,
|
|
1693
|
-
_0x2b6125: 0x2f2,
|
|
1694
|
-
_0x43f330: 0x297
|
|
1695
|
-
}, _0x45f4be = { _0x502cd4: 0x281 }, _0x3cb1b8 = { _0x132156: 0x354 }, _0x1aba00 = { _0x4d712e: 0x33d }, _0x43486e = { _0x33e731: 0x201 }, _0x59b358 = { _0xf42f71: 0x32a }, _0x5a322b = { _0x15d167: 0x350 }, _0x3863a8 = { _0x20f4f3: 0x237 }, _0x4aae32 = { _0x1c4a74: 0x33d }, _0x62e427 = { _0xc42fdd: 0x2f1 }, _0x45d1a8 = {
|
|
1696
|
-
_0x42093c: 0x33d,
|
|
1697
|
-
_0x58365b: 0x252
|
|
1698
|
-
}, _0x237257 = { _0x2f9ca6: 0x2a1 }, _0x1410e8 = { _0x2f0fbe: 0x1e2 }, _0x22df5d = {
|
|
1699
|
-
_0x99f8c2: 0x33d,
|
|
1700
|
-
_0x41aa32: 0x1cc
|
|
1701
|
-
}, _0x3cc155 = { _0x3e4b2a: 0x33d }, _0x1b086c = { _0x54ade3: 0x23d }, _0x2c5fb4 = _0x15c9cf, {z: _0x3912ab} = await import(_0x2c5fb4(_0x415411._0x484f63));
|
|
1702
|
-
_0xd221c['tool'](_0x2c5fb4(0x23d), _0x2c5fb4(_0x415411._0x37a911), {
|
|
1703
|
-
'target': _0x3912ab['string'](),
|
|
1704
|
-
'content': _0x3912ab['string'](),
|
|
1705
|
-
'attachment_ids': _0x3912ab[_0x2c5fb4(0x2f2)](_0x3912ab['string']())['optional'](),
|
|
1706
|
-
'visibility': _0x3912ab[_0x2c5fb4(_0x415411._0x7a967a)]([
|
|
1707
|
-
'public',
|
|
1708
|
-
_0x2c5fb4(0x22b)
|
|
1709
|
-
])[_0x2c5fb4(_0x415411._0x33ae70)]()['describe'](_0x2c5fb4(_0x415411._0x3a1dc6))
|
|
1710
|
-
}, async _0x21fa73 => {
|
|
1711
|
-
const _0x3d728c = _0x2c5fb4;
|
|
1712
|
-
try {
|
|
1713
|
-
return textResult(await _0x46edce[_0x3d728c(_0x1b086c._0x54ade3)](_0x21fa73));
|
|
1714
|
-
} catch (_0x325506) {
|
|
1715
|
-
return textResult(_0x325506 instanceof Error ? _0x325506[_0x3d728c(0x33d)] : 'send_message\x20failed', !![]);
|
|
1716
|
-
}
|
|
1717
|
-
}), _0xd221c[_0x2c5fb4(0x266)](_0x2c5fb4(0x275), _0x2c5fb4(_0x415411._0x4554ad), {}, async () => {
|
|
1718
|
-
const _0x2b50d3 = _0x2c5fb4;
|
|
1719
|
-
try {
|
|
1720
|
-
return textResult(await _0x46edce[_0x2b50d3(0x275)]());
|
|
1721
|
-
} catch (_0x31dc61) {
|
|
1722
|
-
return textResult(_0x31dc61 instanceof Error ? _0x31dc61[_0x2b50d3(_0x3cc155._0x3e4b2a)] : _0x2b50d3(0x233), !![]);
|
|
1723
|
-
}
|
|
1724
|
-
}), _0xd221c[_0x2c5fb4(0x266)](_0x2c5fb4(0x1e5), _0x2c5fb4(_0x415411._0x586499), {
|
|
1725
|
-
'channel': _0x3912ab['string'](),
|
|
1726
|
-
'limit': _0x3912ab[_0x2c5fb4(_0x415411._0x172072)]()[_0x2c5fb4(0x2fe)](),
|
|
1727
|
-
'before': _0x3912ab[_0x2c5fb4(0x30a)]()['optional'](),
|
|
1728
|
-
'after': _0x3912ab[_0x2c5fb4(0x30a)]()['optional']()
|
|
1729
|
-
}, async _0x4c1f0a => {
|
|
1730
|
-
const _0x5bd800 = _0x2c5fb4;
|
|
1731
|
-
try {
|
|
1732
|
-
return textResult(await _0x46edce[_0x5bd800(0x1e5)](_0x4c1f0a));
|
|
1733
|
-
} catch (_0x430ebe) {
|
|
1734
|
-
return textResult(_0x430ebe instanceof Error ? _0x430ebe[_0x5bd800(_0x22df5d._0x99f8c2)] : _0x5bd800(_0x22df5d._0x41aa32), !![]);
|
|
1735
|
-
}
|
|
1736
|
-
}), _0xd221c['tool'](_0x2c5fb4(_0x415411._0x5707e8), _0x2c5fb4(_0x415411._0x16172a), {}, async () => {
|
|
1737
|
-
const _0x109d89 = _0x2c5fb4;
|
|
1738
|
-
try {
|
|
1739
|
-
return textResult(await _0x46edce[_0x109d89(_0x1410e8._0x2f0fbe)]());
|
|
1740
|
-
} catch (_0x296f3c) {
|
|
1741
|
-
return textResult(_0x296f3c instanceof Error ? _0x296f3c[_0x109d89(0x33d)] : 'list_server\x20failed', !![]);
|
|
1742
|
-
}
|
|
1743
|
-
}), _0xd221c['tool'](_0x2c5fb4(0x2ee), _0x2c5fb4(_0x415411._0x49f455), {
|
|
1744
|
-
'channel': _0x3912ab[_0x2c5fb4(_0x415411._0x5d1b3f)](),
|
|
1745
|
-
'status': _0x3912ab[_0x2c5fb4(_0x415411._0x7a967a)]([
|
|
1746
|
-
_0x2c5fb4(_0x415411._0x1eb7bc),
|
|
1747
|
-
_0x2c5fb4(0x341),
|
|
1748
|
-
'in_review',
|
|
1749
|
-
'done'
|
|
1750
|
-
])[_0x2c5fb4(0x2fe)]()
|
|
1751
|
-
}, async _0x5d3623 => {
|
|
1752
|
-
const _0x1476e1 = _0x2c5fb4;
|
|
1753
|
-
try {
|
|
1754
|
-
return textResult(await _0x46edce[_0x1476e1(0x2ee)](_0x5d3623));
|
|
1755
|
-
} catch (_0x210af4) {
|
|
1756
|
-
return textResult(_0x210af4 instanceof Error ? _0x210af4[_0x1476e1(0x33d)] : _0x1476e1(_0x237257._0x2f9ca6), !![]);
|
|
1757
|
-
}
|
|
1758
|
-
}), _0xd221c[_0x2c5fb4(0x266)](_0x2c5fb4(_0x415411._0x494d3e), _0x2c5fb4(_0x415411._0x52c6f7), {
|
|
1759
|
-
'channel': _0x3912ab[_0x2c5fb4(0x2df)](),
|
|
1760
|
-
'idempotency_key': _0x3912ab[_0x2c5fb4(_0x415411._0x28f508)]()[_0x2c5fb4(_0x415411._0x2df2fb)](),
|
|
1761
|
-
'tasks': _0x3912ab[_0x2c5fb4(0x2f2)](_0x3912ab['object']({
|
|
1762
|
-
'title': _0x3912ab['string'](),
|
|
1763
|
-
'description': _0x3912ab[_0x2c5fb4(0x2df)]()[_0x2c5fb4(0x2fe)](),
|
|
1764
|
-
'priority': _0x3912ab[_0x2c5fb4(0x1fc)]([
|
|
1765
|
-
_0x2c5fb4(_0x415411._0x338332),
|
|
1766
|
-
_0x2c5fb4(_0x415411._0x1e4a44),
|
|
1767
|
-
_0x2c5fb4(_0x415411._0x3ae380),
|
|
1768
|
-
_0x2c5fb4(_0x415411._0x250f4f)
|
|
1769
|
-
])[_0x2c5fb4(0x2fe)]()
|
|
1770
|
-
}))
|
|
1771
|
-
}, async _0x2ec8d9 => {
|
|
1772
|
-
const _0x2464ed = _0x2c5fb4;
|
|
1773
|
-
try {
|
|
1774
|
-
return textResult(await _0x46edce[_0x2464ed(0x1f1)](_0x2ec8d9));
|
|
1775
|
-
} catch (_0x3c3a6f) {
|
|
1776
|
-
return textResult(_0x3c3a6f instanceof Error ? _0x3c3a6f[_0x2464ed(_0x45d1a8._0x42093c)] : _0x2464ed(_0x45d1a8._0x58365b), !![]);
|
|
1777
|
-
}
|
|
1778
|
-
}), _0xd221c['tool'](_0x2c5fb4(0x2f1), _0x2c5fb4(0x2f4), {
|
|
1779
|
-
'channel': _0x3912ab['string'](),
|
|
1780
|
-
'task_numbers': _0x3912ab[_0x2c5fb4(_0x415411._0xf828fe)](_0x3912ab[_0x2c5fb4(0x30a)]())[_0x2c5fb4(_0x415411._0x33ae70)](),
|
|
1781
|
-
'message_ids': _0x3912ab['array'](_0x3912ab['string']())[_0x2c5fb4(0x2fe)](),
|
|
1782
|
-
'evidence': _0x3912ab[_0x2c5fb4(0x243)](_0x3912ab[_0x2c5fb4(0x2df)](), _0x3912ab[_0x2c5fb4(0x1f6)]({
|
|
1783
|
-
'create_thread': _0x3912ab[_0x2c5fb4(_0x415411._0xb5f14c)]()[_0x2c5fb4(_0x415411._0x33ae70)](),
|
|
1784
|
-
'create_task': _0x3912ab[_0x2c5fb4(_0x415411._0x1de7b9)]()['optional']()
|
|
1785
|
-
}))['optional'](),
|
|
1786
|
-
'idempotency_key': _0x3912ab[_0x2c5fb4(_0x415411._0x28f508)]()[_0x2c5fb4(_0x415411._0x2df2fb)]()
|
|
1787
|
-
}, async _0x2f8b31 => {
|
|
1788
|
-
const _0x441c6f = _0x2c5fb4;
|
|
1789
|
-
try {
|
|
1790
|
-
return textResult(await _0x46edce[_0x441c6f(_0x62e427._0xc42fdd)](_0x2f8b31));
|
|
1791
|
-
} catch (_0x469948) {
|
|
1792
|
-
return textResult(_0x469948 instanceof Error ? _0x469948[_0x441c6f(0x33d)] : 'claim_tasks\x20failed', !![]);
|
|
1793
|
-
}
|
|
1794
|
-
}), _0xd221c[_0x2c5fb4(_0x415411._0x30cc99)](_0x2c5fb4(_0x415411._0x5d8b4b), _0x2c5fb4(0x34c), {
|
|
1795
|
-
'channel': _0x3912ab[_0x2c5fb4(_0x415411._0x3c942a)](),
|
|
1796
|
-
'task_number': _0x3912ab['number'](),
|
|
1797
|
-
'idempotency_key': _0x3912ab[_0x2c5fb4(0x2df)]()[_0x2c5fb4(_0x415411._0x33ae70)]()
|
|
1798
|
-
}, async _0x312071 => {
|
|
1799
|
-
const _0x21df5d = _0x2c5fb4;
|
|
1800
|
-
try {
|
|
1801
|
-
return textResult(await _0x46edce[_0x21df5d(0x30e)](_0x312071));
|
|
1802
|
-
} catch (_0xb1f365) {
|
|
1803
|
-
return textResult(_0xb1f365 instanceof Error ? _0xb1f365[_0x21df5d(_0x4aae32._0x1c4a74)] : _0x21df5d(0x251), !![]);
|
|
1804
|
-
}
|
|
1805
|
-
}), _0xd221c[_0x2c5fb4(_0x415411._0x30cc99)](_0x2c5fb4(0x276), _0x2c5fb4(0x29d), {
|
|
1806
|
-
'channel': _0x3912ab[_0x2c5fb4(0x2df)](),
|
|
1807
|
-
'task_number': _0x3912ab[_0x2c5fb4(0x30a)](),
|
|
1808
|
-
'status': _0x3912ab[_0x2c5fb4(_0x415411._0x7a967a)]([
|
|
1809
|
-
_0x2c5fb4(_0x415411._0x46f653),
|
|
1810
|
-
_0x2c5fb4(0x341),
|
|
1811
|
-
_0x2c5fb4(_0x415411._0x17a866),
|
|
1812
|
-
_0x2c5fb4(_0x415411._0x41d1f8)
|
|
1813
|
-
]),
|
|
1814
|
-
'idempotency_key': _0x3912ab[_0x2c5fb4(_0x415411._0x3c942a)]()[_0x2c5fb4(0x2fe)]()
|
|
1815
|
-
}, async _0x7468c5 => {
|
|
1816
|
-
const _0x5e99ba = _0x2c5fb4;
|
|
1817
|
-
try {
|
|
1818
|
-
return textResult(await _0x46edce[_0x5e99ba(0x276)](_0x7468c5));
|
|
1819
|
-
} catch (_0x465abe) {
|
|
1820
|
-
return textResult(_0x465abe instanceof Error ? _0x465abe[_0x5e99ba(0x33d)] : _0x5e99ba(_0x3863a8._0x20f4f3), !![]);
|
|
1821
|
-
}
|
|
1822
|
-
}), _0xd221c['tool']('upload_file', _0x2c5fb4(_0x415411._0x23a2d6), {
|
|
1823
|
-
'channel': _0x3912ab[_0x2c5fb4(_0x415411._0x3c942a)](),
|
|
1824
|
-
'file_path': _0x3912ab['string']()
|
|
1825
|
-
}, async _0x367ea4 => {
|
|
1826
|
-
const _0x3af41e = _0x2c5fb4;
|
|
1827
|
-
try {
|
|
1828
|
-
return textResult(await _0x46edce[_0x3af41e(_0x5a322b._0x15d167)](_0x367ea4));
|
|
1829
|
-
} catch (_0x15ff3c) {
|
|
1830
|
-
return textResult(_0x15ff3c instanceof Error ? _0x15ff3c['message'] : _0x3af41e(0x296), !![]);
|
|
1831
|
-
}
|
|
1832
|
-
}), _0xd221c[_0x2c5fb4(_0x415411._0x30cc99)]('view_file', 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x3912ab[_0x2c5fb4(_0x415411._0x90b999)]() }, async _0x1371f1 => {
|
|
1833
|
-
const _0x5bc78c = _0x2c5fb4;
|
|
1834
|
-
try {
|
|
1835
|
-
return textResult(await _0x46edce[_0x5bc78c(0x2c4)](_0x1371f1));
|
|
1836
|
-
} catch (_0xa88755) {
|
|
1837
|
-
return textResult(_0xa88755 instanceof Error ? _0xa88755['message'] : _0x5bc78c(_0x59b358._0xf42f71), !![]);
|
|
1838
|
-
}
|
|
1839
|
-
}), _0xd221c['tool'](_0x2c5fb4(_0x415411._0x424f2b), 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x3912ab['string']() }, async _0xb1d3a0 => {
|
|
1840
|
-
const _0x5c9197 = _0x2c5fb4;
|
|
1841
|
-
try {
|
|
1842
|
-
return textResult(await _0x46edce[_0x5c9197(_0x43486e._0x33e731)](_0xb1d3a0));
|
|
1843
|
-
} catch (_0x510dd3) {
|
|
1844
|
-
return textResult(_0x510dd3 instanceof Error ? _0x510dd3['message'] : _0x5c9197(0x323), !![]);
|
|
1845
|
-
}
|
|
1846
|
-
}), _0xd221c['tool']('get_worker_result', _0x2c5fb4(_0x415411._0x16c7f3), { 'work_key': _0x3912ab[_0x2c5fb4(_0x415411._0x90b999)]() }, async _0x28d78a => {
|
|
1847
|
-
const _0x3126db = _0x2c5fb4;
|
|
1848
|
-
try {
|
|
1849
|
-
return textResult(await _0x46edce[_0x3126db(0x2a3)](_0x28d78a));
|
|
1850
|
-
} catch (_0x5b3d82) {
|
|
1851
|
-
return textResult(_0x5b3d82 instanceof Error ? _0x5b3d82[_0x3126db(0x33d)] : _0x3126db(0x32d), !![]);
|
|
1852
|
-
}
|
|
1853
|
-
}), _0xd221c[_0x2c5fb4(_0x415411._0x10003e)](_0x2c5fb4(0x314), 'Signal\x20that\x20the\x20current\x20worker\x20session\x20is\x20finished\x20and\x20provide\x20a\x20result\x20summary.', {
|
|
1854
|
-
'work_key': _0x3912ab[_0x2c5fb4(_0x415411._0x5eb5f5)](),
|
|
1855
|
-
'result': _0x3912ab[_0x2c5fb4(0x1fc)]([
|
|
1856
|
-
_0x2c5fb4(_0x415411._0x1a68d2),
|
|
1857
|
-
_0x2c5fb4(_0x415411._0x5ab23d),
|
|
1858
|
-
_0x2c5fb4(0x240)
|
|
1859
|
-
]),
|
|
1860
|
-
'summary': _0x3912ab[_0x2c5fb4(_0x415411._0x2f68fc)](),
|
|
1861
|
-
'decisions': _0x3912ab[_0x2c5fb4(_0x415411._0x2e8f5e)](_0x3912ab[_0x2c5fb4(0x2df)]())['optional'](),
|
|
1862
|
-
'files_changed': _0x3912ab[_0x2c5fb4(0x2f2)](_0x3912ab[_0x2c5fb4(_0x415411._0x2f68fc)]())[_0x2c5fb4(0x2fe)](),
|
|
1863
|
-
'open_issues': _0x3912ab[_0x2c5fb4(_0x415411._0x2e8f5e)](_0x3912ab['string']())['optional'](),
|
|
1864
|
-
'next_steps': _0x3912ab[_0x2c5fb4(_0x415411._0x2b6125)](_0x3912ab['string']())[_0x2c5fb4(_0x415411._0x33ae70)]()
|
|
1865
|
-
}, async _0x50657e => {
|
|
1866
|
-
const _0x33cbfb = _0x2c5fb4;
|
|
1867
|
-
try {
|
|
1868
|
-
return textResult(await _0x46edce['finish_worker'](_0x50657e));
|
|
1869
|
-
} catch (_0x41ff54) {
|
|
1870
|
-
return textResult(_0x41ff54 instanceof Error ? _0x41ff54[_0x33cbfb(_0x1aba00._0x4d712e)] : _0x33cbfb(0x33c), !![]);
|
|
1871
|
-
}
|
|
1872
|
-
}), _0xd221c['tool'](_0x2c5fb4(0x330), _0x2c5fb4(0x246), {
|
|
1873
|
-
'work_key': _0x3912ab['string'](),
|
|
1874
|
-
'reason': _0x3912ab['string']()
|
|
1875
|
-
}, async _0x3b1ef4 => {
|
|
1876
|
-
const _0x582fcb = _0x2c5fb4;
|
|
1877
|
-
try {
|
|
1878
|
-
return textResult(await _0x46edce['escalate_to_main'](_0x3b1ef4));
|
|
1879
|
-
} catch (_0x2188e8) {
|
|
1880
|
-
return textResult(_0x2188e8 instanceof Error ? _0x2188e8[_0x582fcb(0x33d)] : _0x582fcb(_0x3cb1b8._0x132156), !![]);
|
|
1881
|
-
}
|
|
1882
|
-
}), _0x24024f?.['workerMode'] && _0xd221c[_0x2c5fb4(0x266)](_0x2c5fb4(0x281), _0x2c5fb4(_0x415411._0x43f330), { 'work_key': _0x3912ab[_0x2c5fb4(0x2df)]() }, async _0xc368ae => {
|
|
1883
|
-
const _0x270004 = _0x2c5fb4;
|
|
1884
|
-
try {
|
|
1885
|
-
return textResult(await _0x46edce[_0x270004(_0x45f4be._0x502cd4)](_0xc368ae));
|
|
1886
|
-
} catch (_0x11381b) {
|
|
1887
|
-
return textResult(_0x11381b instanceof Error ? _0x11381b[_0x270004(0x33d)] : _0x270004(0x2a9), !![]);
|
|
1888
|
-
}
|
|
1889
|
-
});
|
|
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');
|
|
1890
1004
|
}
|
|
1891
|
-
function
|
|
1892
|
-
const
|
|
1893
|
-
'
|
|
1894
|
-
'
|
|
1895
|
-
'
|
|
1896
|
-
'
|
|
1897
|
-
'
|
|
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',
|
|
1898
1017
|
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1899
|
-
'
|
|
1900
|
-
'Aw5KzxHpzG',
|
|
1901
|
-
'Dg9VBa',
|
|
1902
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
1903
|
-
'zgLZCg9ZAxrPB24',
|
|
1904
|
-
'y29TCgXLDgvK',
|
|
1905
|
-
'DhLWzq',
|
|
1906
|
-
'CMvHC29U',
|
|
1018
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1907
1019
|
'Aw1Hz2uVANbLzW',
|
|
1908
|
-
'
|
|
1909
|
-
'
|
|
1020
|
+
'C2vUzf9TzxnZywDL',
|
|
1021
|
+
'ihr5Cgu9ywDLBNq',
|
|
1022
|
+
'AgfZ',
|
|
1023
|
+
'z2v0tw9UDgG',
|
|
1024
|
+
'DgHYzwfK',
|
|
1025
|
+
'yxjYyxLcDwzMzxi',
|
|
1026
|
+
'v29YA2vYici',
|
|
1027
|
+
'igTPBMq9',
|
|
1028
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1029
|
+
'AgfZtw9Yzq',
|
|
1030
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1031
|
+
'6k+35Rgcia',
|
|
1032
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1033
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1034
|
+
'mZu5ntG5ouzVAfvqCq',
|
|
1035
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
1036
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
1037
|
+
'zg06',
|
|
1910
1038
|
'BwvZC2fNzuLK',
|
|
1911
|
-
'
|
|
1912
|
-
'
|
|
1913
|
-
'
|
|
1914
|
-
'
|
|
1915
|
-
'
|
|
1916
|
-
'
|
|
1917
|
-
'
|
|
1918
|
-
'
|
|
1919
|
-
'
|
|
1920
|
-
'
|
|
1921
|
-
'
|
|
1922
|
-
'
|
|
1039
|
+
'oti1mJKWv2T6qNDN',
|
|
1040
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1041
|
+
'vgfZAZOG',
|
|
1042
|
+
'zMv0y2HjBxbS',
|
|
1043
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1044
|
+
'Dg9tDhjPBMC',
|
|
1045
|
+
'ANnVBG',
|
|
1046
|
+
'yxr0ywnOBwvUDeLK',
|
|
1047
|
+
'C3rYAw5NAwz5',
|
|
1048
|
+
'l3nLCNzLCG',
|
|
1049
|
+
'B3b0Aw9UywW',
|
|
1050
|
+
'lNnSB2nR',
|
|
1051
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1052
|
+
'DgvZDa',
|
|
1053
|
+
'zg9Uzq',
|
|
1054
|
+
'ywz0zxjtzxe',
|
|
1923
1055
|
'ig1LC3nHz2vZkqOk',
|
|
1924
|
-
'
|
|
1925
|
-
'
|
|
1926
|
-
'
|
|
1927
|
-
'
|
|
1928
|
-
'
|
|
1929
|
-
'
|
|
1930
|
-
'
|
|
1931
|
-
'
|
|
1932
|
-
'
|
|
1933
|
-
'
|
|
1934
|
-
'
|
|
1935
|
-
'
|
|
1936
|
-
'
|
|
1937
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
1938
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
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',
|
|
1939
1069
|
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1940
|
-
'
|
|
1941
|
-
'
|
|
1942
|
-
'
|
|
1943
|
-
'CMvWBgfJzq',
|
|
1944
|
-
'igzHAwXLzdOG',
|
|
1945
|
-
'Aw1Hz2uVCg5N',
|
|
1946
|
-
'C3vJy2vZCW',
|
|
1947
|
-
'v29YA2vYici',
|
|
1948
|
-
'zg0T',
|
|
1949
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1950
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1951
|
-
'odu3ndaYrLnutgn4',
|
|
1952
|
-
'CgfYDgLJAxbHBNrjza',
|
|
1953
|
-
'Dg9tDhjPBMC',
|
|
1954
|
-
'ChjVDg9JB2W',
|
|
1955
|
-
'DgHYzwfKswq',
|
|
1956
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
1957
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1958
|
-
'AgvHzgvYCW',
|
|
1959
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1960
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1070
|
+
'ls1Hz2vUDc1Pza',
|
|
1071
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1072
|
+
'ywz0zxi',
|
|
1961
1073
|
'zMLSDgvY',
|
|
1962
|
-
'
|
|
1963
|
-
'
|
|
1964
|
-
'
|
|
1965
|
-
'
|
|
1966
|
-
'
|
|
1074
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
1075
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1076
|
+
'y29UDgvUDfr5Cgu',
|
|
1077
|
+
'C3bSAxq',
|
|
1078
|
+
'Dg9ju09tDhjPBMC',
|
|
1079
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1080
|
+
'zw51Bq',
|
|
1081
|
+
'C2L6zq',
|
|
1082
|
+
'xsba',
|
|
1083
|
+
'otmZndq1n3HfC2zKDW',
|
|
1084
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
1085
|
+
'nJbnyKz0zLm',
|
|
1086
|
+
'CgfYC2u',
|
|
1087
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1088
|
+
'nZKXndbhBuXJCfu',
|
|
1089
|
+
'C2HHmJu2',
|
|
1090
|
+
'zgLZCg9ZAxrPB24',
|
|
1091
|
+
'CNvUswq',
|
|
1092
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1093
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1094
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
1967
1095
|
'AM9PBG',
|
|
1968
|
-
'
|
|
1969
|
-
'
|
|
1970
|
-
'
|
|
1971
|
-
'
|
|
1972
|
-
'
|
|
1973
|
-
'
|
|
1974
|
-
'
|
|
1975
|
-
'
|
|
1976
|
-
'yM9KEu1HCMTKB3DU',
|
|
1977
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1978
|
-
'r0vu',
|
|
1979
|
-
'y2HHBM5LBhm',
|
|
1980
|
-
'zMLSzw5HBwu',
|
|
1096
|
+
'iYmJieH1BwfUCW',
|
|
1097
|
+
'y29UDgvUDc10ExbL',
|
|
1098
|
+
'CxvLDwvK',
|
|
1099
|
+
'y3jLyxrLvgfZA3m',
|
|
1100
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
1101
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1102
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1103
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1981
1104
|
'lsaJ',
|
|
1982
|
-
'
|
|
1983
|
-
'
|
|
1984
|
-
'
|
|
1985
|
-
'
|
|
1986
|
-
'lcbWCMv2Awv3pq',
|
|
1987
|
-
'CM9VDe1LC3nHz2vjza',
|
|
1988
|
-
'ig1ZzZ0',
|
|
1989
|
-
'ls1Zzxj2zxiTDxjS',
|
|
1990
|
-
'CMvZDwX0sNnVBG',
|
|
1991
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1992
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1993
|
-
'y3vYC29Y',
|
|
1994
|
-
'Bg9JywXLq29TCgfYzq',
|
|
1995
|
-
'DMLLD19MAwXL',
|
|
1996
|
-
'y2XHAw1uyxnRCW',
|
|
1997
|
-
'lIbnzxnZywDLieLeoIa',
|
|
1998
|
-
'D29YA2vYtw9Kzq',
|
|
1999
|
-
'BMfTzq',
|
|
2000
|
-
'zgvSzxrL',
|
|
2001
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
2002
|
-
'AgLNAa',
|
|
2003
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
2004
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
2005
|
-
'AgfZtw9Yzq',
|
|
2006
|
-
'l3nLBMq',
|
|
2007
|
-
'C2v0',
|
|
2008
|
-
'DgHYzwfKtNvTyMvY',
|
|
2009
|
-
'zxH0BMfTzq',
|
|
2010
|
-
'BgLZDfrHC2TZ',
|
|
2011
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
2012
|
-
'iYmJienOyw5UzwXZ',
|
|
2013
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
2014
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
2015
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
2016
|
-
'BwvZC2fNzxm',
|
|
2017
|
-
'y2HHBM5LBeLK',
|
|
2018
|
-
'igTPBMq9',
|
|
2019
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
2020
|
-
'v29YA2vYia',
|
|
2021
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
2022
|
-
'C3rYAw5N',
|
|
2023
|
-
'AxnbCNjHEq',
|
|
2024
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
2025
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
2026
|
-
'mc4WlJa',
|
|
2027
|
-
'igf0DgfJAg1LBNq',
|
|
2028
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
2029
|
-
'z2v0rNvSBfLLyxi',
|
|
2030
|
-
'Bwv0yq',
|
|
2031
|
-
'DgvZDa',
|
|
2032
|
-
'y3jLyxrLzef0',
|
|
2033
|
-
'AhvTyw5Z',
|
|
2034
|
-
'DgHYzwfKu2HVCNrjza',
|
|
2035
|
-
'zMfSC2u',
|
|
2036
|
-
'DMLZAwjPBgL0Eq',
|
|
2037
|
-
'BgLZDf90yxnRCW',
|
|
2038
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
2039
|
-
'DxnLCG',
|
|
2040
|
-
'y2XHAw1FDgfZA3m',
|
|
2041
|
-
'yxjYyxK',
|
|
2042
|
-
'ChvZAa',
|
|
2043
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
2044
|
-
'DgfYz2v0zwruyxnR',
|
|
2045
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
2046
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
2047
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1105
|
+
'nJi1ntCWmNrhyLPjEG',
|
|
1106
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1107
|
+
'nda1mJiWC0LHt2Pp',
|
|
1108
|
+
'C2vUze1LC3nHz2u',
|
|
2048
1109
|
'Aw1Hz2uVz2LM',
|
|
2049
|
-
'
|
|
2050
|
-
'
|
|
2051
|
-
'
|
|
2052
|
-
'
|
|
2053
|
-
'
|
|
2054
|
-
'
|
|
2055
|
-
'
|
|
2056
|
-
'
|
|
2057
|
-
'
|
|
2058
|
-
'
|
|
2059
|
-
'ywjVCNrLza',
|
|
2060
|
-
'Axnoyu4',
|
|
2061
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
2062
|
-
'C29YDa',
|
|
2063
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
2064
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
2065
|
-
'BNvTyMvY',
|
|
2066
|
-
'BwvKAxvT',
|
|
2067
|
-
'yMvMB3jL',
|
|
2068
|
-
'ywDLBNrjza',
|
|
2069
|
-
'Dw5JBgfPBv90yxnR',
|
|
2070
|
-
'CMvZDwX0CW',
|
|
2071
|
-
'yxjNDG',
|
|
2072
|
-
'xsba',
|
|
2073
|
-
'C29Tzq',
|
|
2074
|
-
'Dg9gAxHLza',
|
|
2075
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
2076
|
-
'zgf0yq',
|
|
2077
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
2078
|
-
'y2f0y2G',
|
|
2079
|
-
'lMjPBG',
|
|
2080
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
2081
|
-
'mtGXnZa2ngfbvwv3zq',
|
|
2082
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
2083
|
-
'BgLTAxq',
|
|
2084
|
-
'AxngAw5PDgu',
|
|
2085
|
-
'y2HHDa',
|
|
2086
|
-
'ls1Hz2vUDc1Pza',
|
|
2087
|
-
'Dw5RBM93BG',
|
|
2088
|
-
'ANnVBG',
|
|
2089
|
-
'DgHYzwfK',
|
|
2090
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
2091
|
-
'BM93',
|
|
2092
|
-
'y2HHBM5LBe5HBwu',
|
|
1110
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1111
|
+
'C2LNBMfS',
|
|
1112
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
1113
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1114
|
+
'C2vX',
|
|
1115
|
+
'ig1LC3nHz2u9',
|
|
1116
|
+
'zMLUza',
|
|
1117
|
+
'Ahr0Chm6',
|
|
1118
|
+
'C2L6zuj5DgvZ',
|
|
1119
|
+
'z2v0u2vJB25KCW',
|
|
2093
1120
|
'l2LUDgvYBMfSl2fNzw50lW',
|
|
2094
|
-
'
|
|
1121
|
+
'C2vYDMvY',
|
|
2095
1122
|
'kg5VBMuP',
|
|
2096
|
-
'
|
|
2097
|
-
'
|
|
2098
|
-
'
|
|
2099
|
-
'
|
|
2100
|
-
'
|
|
2101
|
-
'
|
|
2102
|
-
'
|
|
2103
|
-
'
|
|
2104
|
-
'
|
|
2105
|
-
'
|
|
2106
|
-
'
|
|
2107
|
-
'
|
|
2108
|
-
'
|
|
2109
|
-
'Cgf5Bg9HzePZB24',
|
|
1123
|
+
'BMv4Den1CNnVCG',
|
|
1124
|
+
'ywrK',
|
|
1125
|
+
'DgfZA19Pza',
|
|
1126
|
+
'Aw1Hz2uVD2vICa',
|
|
1127
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1128
|
+
'zgvSzxrL',
|
|
1129
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1130
|
+
'ywDLBNrjza',
|
|
1131
|
+
'sfruuca',
|
|
1132
|
+
'AhvTyw4',
|
|
1133
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1134
|
+
'Dg9VBa',
|
|
1135
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
2110
1136
|
'Aw5FCMv2Awv3',
|
|
2111
|
-
'
|
|
1137
|
+
'Dw5RBM93BG',
|
|
2112
1138
|
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
1139
|
+
'Aw5JBhvKzxm',
|
|
1140
|
+
'Dw5JBgfPBv90yxnR',
|
|
1141
|
+
'D3nZoG',
|
|
1142
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1143
|
+
'D29YA19RzxK',
|
|
1144
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
2113
1145
|
'iYmGu2vYDMvYoIa',
|
|
2114
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
2115
1146
|
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
2116
|
-
'
|
|
2117
|
-
'C3rHCNrLza',
|
|
2118
|
-
'cGOTls0G',
|
|
2119
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
2120
|
-
'Aw5FChjVz3jLC3m',
|
|
2121
|
-
'Dg9KBW',
|
|
2122
|
-
'l3rHC2TZl2nSywLT',
|
|
2123
|
-
'yxr0ywnOBwvUDeLK',
|
|
2124
|
-
'C2vYDMvYtMfTzq',
|
|
2125
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
2126
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
2127
|
-
'C2LNBMfS',
|
|
2128
|
-
'zMLSzxnFy2HHBMDLza',
|
|
2129
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
2130
|
-
'ywrK',
|
|
2131
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
2132
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
2133
|
-
'BwvTyMvY',
|
|
2134
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
2135
|
-
'DxbSB2fKx2zPBgu',
|
|
2136
|
-
'CgfKu3rHCNq',
|
|
2137
|
-
'BwfW',
|
|
2138
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
2139
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
2140
|
-
'DgfZA3m',
|
|
2141
|
-
'C2f2zq',
|
|
2142
|
-
'lNnSB2nR',
|
|
2143
|
-
'yxjYyxLcDwzMzxi',
|
|
2144
|
-
'AxngAwXL',
|
|
2145
|
-
'zgvZy3jPChrPB24',
|
|
2146
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
2147
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
2148
|
-
'CMvZDwX0',
|
|
2149
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
2150
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
2151
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
2152
|
-
'nJa0mJKYs05rz2fM',
|
|
2153
|
-
'CxvLDwvK',
|
|
2154
|
-
'CMvZCg9UC2u',
|
|
2155
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
2156
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
2157
|
-
'l3n0yxj0',
|
|
2158
|
-
'BwLU',
|
|
1147
|
+
'l3jLy2vPDMu',
|
|
2159
1148
|
'C2vUzgvYvhLWzq',
|
|
2160
|
-
'
|
|
2161
|
-
'
|
|
2162
|
-
'
|
|
2163
|
-
'
|
|
2164
|
-
'
|
|
2165
|
-
'
|
|
2166
|
-
'
|
|
2167
|
-
'
|
|
2168
|
-
'
|
|
2169
|
-
'
|
|
2170
|
-
'
|
|
2171
|
-
'
|
|
2172
|
-
'C2L6zuj5DgvZ',
|
|
2173
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
2174
|
-
'CMvHzf9OAxn0B3j5',
|
|
2175
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
2176
|
-
'nta4ndC0ohrdCvzira',
|
|
2177
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
2178
|
-
'igLUia',
|
|
1149
|
+
'CMvZDwX0CW',
|
|
1150
|
+
'BMv4Df9ZDgvWCW',
|
|
1151
|
+
'C3rHDhvZ',
|
|
1152
|
+
'zMLSzxnFy2HHBMDLza',
|
|
1153
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1154
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1155
|
+
'BwvTyMvYCW',
|
|
1156
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1157
|
+
'zMLSzv9WyxrO',
|
|
1158
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1159
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1160
|
+
'ChvIBgLJ',
|
|
2179
1161
|
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
2180
|
-
'
|
|
1162
|
+
'DgHYzwfKswq',
|
|
1163
|
+
'z2v0',
|
|
1164
|
+
'CMvHC29U',
|
|
1165
|
+
'DgfZA051BwjLCG',
|
|
1166
|
+
'zw50CMLLCW',
|
|
2181
1167
|
'CMvHzeHPC3rVCNK',
|
|
2182
|
-
'
|
|
2183
|
-
'
|
|
2184
|
-
'
|
|
1168
|
+
'ue9tva',
|
|
1169
|
+
'AgLNAa',
|
|
1170
|
+
'CMvZCg9UC2u',
|
|
1171
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1172
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1173
|
+
'DxbSB2fKx2zPBgu',
|
|
1174
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
2185
1175
|
'DgHYzwfKvgfYz2v0',
|
|
2186
|
-
'
|
|
2187
|
-
'
|
|
2188
|
-
'
|
|
2189
|
-
'
|
|
2190
|
-
'
|
|
2191
|
-
'
|
|
2192
|
-
'
|
|
2193
|
-
'
|
|
2194
|
-
'
|
|
2195
|
-
'
|
|
2196
|
-
'
|
|
2197
|
-
'
|
|
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',
|
|
1195
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1196
|
+
'DhjPBq',
|
|
1197
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1198
|
+
'igLUia',
|
|
1199
|
+
'Dgv4Dc9JC3y',
|
|
1200
|
+
'C3vJy2vZCW',
|
|
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',
|
|
2198
1223
|
'zMv0y2HuAw1LB3v0txm',
|
|
2199
|
-
'icHPzdO',
|
|
2200
|
-
'C3rHDhvZ',
|
|
2201
|
-
'iJOGC3rHDhvZpq',
|
|
2202
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
2203
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
2204
|
-
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
2205
|
-
'y29UDgvUDfr5Cgu',
|
|
2206
|
-
'ue9tva',
|
|
2207
|
-
'D29YA2vYsgfUzg9MzG',
|
|
2208
|
-
'Bwf0y2Hoyw1L',
|
|
2209
|
-
'zxjYB3i',
|
|
2210
|
-
'zM9Yy2vszwzYzxnO',
|
|
2211
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
2212
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
2213
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
2214
|
-
'mtGXmZqWmwrbzMfJrG',
|
|
2215
1224
|
'iokaLca',
|
|
2216
|
-
'
|
|
2217
|
-
'
|
|
2218
|
-
'
|
|
2219
|
-
'
|
|
2220
|
-
'
|
|
2221
|
-
'
|
|
2222
|
-
'
|
|
2223
|
-
'
|
|
2224
|
-
'
|
|
2225
|
-
'
|
|
2226
|
-
'
|
|
2227
|
-
'
|
|
2228
|
-
'
|
|
2229
|
-
'
|
|
2230
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
2231
|
-
'ihr5Cgu9ywDLBNq',
|
|
2232
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
2233
|
-
'vgfZAYa',
|
|
2234
|
-
'D3nZoG',
|
|
2235
|
-
'l3rHC2TZ',
|
|
2236
|
-
'yMfZzty0',
|
|
2237
|
-
'l2nVBNrLBNq',
|
|
1225
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1226
|
+
'D2fPDgLUz19PBNb1Da',
|
|
1227
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1228
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1229
|
+
'yMfZzw5HBwu',
|
|
1230
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1231
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1232
|
+
'ChvZAa',
|
|
1233
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1234
|
+
'C2vYDMvYvxjS',
|
|
1235
|
+
'w3rHCMDLDd0',
|
|
1236
|
+
'C29YDa',
|
|
1237
|
+
'yM9KEu1HCMTKB3DU',
|
|
1238
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
2238
1239
|
'C2nOzwr1BgvKrM9Y',
|
|
2239
|
-
'
|
|
2240
|
-
'
|
|
2241
|
-
'
|
|
2242
|
-
'
|
|
2243
|
-
'
|
|
1240
|
+
'Cgf5Bg9HzePZB24',
|
|
1241
|
+
'BNvTyMvY',
|
|
1242
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1243
|
+
'CMvJB3jK',
|
|
1244
|
+
'C3rYAw5N',
|
|
1245
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1246
|
+
'yMvMB3jL',
|
|
1247
|
+
'zxHWAxjLC0f0',
|
|
1248
|
+
'DgfZA3m',
|
|
1249
|
+
'Dg9KBW',
|
|
1250
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1251
|
+
'ig1ZzZ0',
|
|
1252
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1253
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
2244
1254
|
'yxnPzgu',
|
|
1255
|
+
'y2XHAw1uyxnRCW',
|
|
1256
|
+
'D29YA2vYCW',
|
|
1257
|
+
'BM93',
|
|
1258
|
+
'A2LUza',
|
|
1259
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1260
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1261
|
+
'zgvZy3jPChrPB24',
|
|
1262
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1263
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1264
|
+
'DMLZAwjPBgL0Eq',
|
|
1265
|
+
'zNjVBq',
|
|
1266
|
+
'CMvWBgfJzq',
|
|
1267
|
+
'DMLLD19MAwXL',
|
|
1268
|
+
'ihrPBwu9',
|
|
1269
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1270
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1271
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
1272
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1273
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1274
|
+
'y3vYC29Y',
|
|
1275
|
+
'zM9Yy2vszwzYzxnO',
|
|
1276
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1277
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1278
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1279
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1280
|
+
'zgvZDhjVEwvK',
|
|
2245
1281
|
'z2v0twLUDxrLCW',
|
|
2246
|
-
'z2v0',
|
|
2247
|
-
'C3rYAw5NAwz5',
|
|
2248
|
-
'ywXS',
|
|
2249
|
-
'l2HPC3rVCNK/',
|
|
2250
|
-
'DgfZAY0',
|
|
2251
|
-
'yMfZzw5HBwu',
|
|
2252
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
2253
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
2254
|
-
'D29YA2vY',
|
|
2255
|
-
'zMv0y2HjBxbS',
|
|
2256
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
2257
|
-
'DgfZAW',
|
|
2258
1282
|
'DgfZA0LK',
|
|
2259
|
-
'
|
|
2260
|
-
'
|
|
2261
|
-
'
|
|
2262
|
-
'
|
|
1283
|
+
'ywDLBNrZ',
|
|
1284
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
1285
|
+
'C29Tzq',
|
|
1286
|
+
'AgvHzgvYCW',
|
|
1287
|
+
'l3rHC2TZpW',
|
|
1288
|
+
'icHPzdO',
|
|
1289
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1290
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1291
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1292
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1293
|
+
'BwvZC2fNzxm',
|
|
1294
|
+
'DMfSDwvZ',
|
|
1295
|
+
'CgfYDgLJAxbHBNq',
|
|
1296
|
+
'y2XHAw1FDgfZA3m',
|
|
1297
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1298
|
+
'kgXLz2fJEsK',
|
|
1299
|
+
'zgLNzxn0',
|
|
1300
|
+
'y2f0y2G',
|
|
2263
1301
|
'yxr0ywnOBwvUDeLKCW',
|
|
2264
|
-
'
|
|
2265
|
-
'
|
|
2266
|
-
'
|
|
2267
|
-
'
|
|
2268
|
-
'
|
|
2269
|
-
'
|
|
2270
|
-
'D29YA2vYCW',
|
|
2271
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
2272
|
-
'mZzTzNnvwu4',
|
|
2273
|
-
'zMLUza',
|
|
2274
|
-
'uefuq0G',
|
|
1302
|
+
'CMvZDwX0sNnVBG',
|
|
1303
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1304
|
+
'zMfSC2u',
|
|
1305
|
+
'z2v0rgf0zq',
|
|
1306
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1307
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
2275
1308
|
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
2276
|
-
'
|
|
2277
|
-
'
|
|
2278
|
-
'
|
|
2279
|
-
'
|
|
2280
|
-
'
|
|
2281
|
-
'
|
|
2282
|
-
'
|
|
2283
|
-
'
|
|
1309
|
+
'l2HPC3rVCNK/',
|
|
1310
|
+
'ntCXmdC2mtzXvxL4Bvq',
|
|
1311
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
1312
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
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',
|
|
2284
1329
|
'ywjVCNq',
|
|
2285
|
-
'
|
|
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',
|
|
2286
1383
|
'Agv4',
|
|
2287
|
-
'
|
|
2288
|
-
'
|
|
2289
|
-
'
|
|
2290
|
-
'
|
|
2291
|
-
'
|
|
1384
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1385
|
+
'l3nLBMq',
|
|
1386
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1387
|
+
'BgLZDf90yxnRCW',
|
|
1388
|
+
'CMvZDwX0',
|
|
1389
|
+
'y3jLyxrLzef0',
|
|
1390
|
+
'y2fJAgveAxi',
|
|
1391
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1392
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1393
|
+
'ChjVDg9JB2W',
|
|
1394
|
+
'BgLZDfnLCNzLCG',
|
|
1395
|
+
'l3rHC2TZl2nSywLT',
|
|
1396
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
1397
|
+
'CNvUBMLUzW',
|
|
1398
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1399
|
+
'DgHYzwfKu2HVCNrjza',
|
|
2292
1400
|
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
2293
|
-
'
|
|
2294
|
-
'
|
|
1401
|
+
'l3rHC2TZ',
|
|
1402
|
+
'BwvTyMvY',
|
|
1403
|
+
'zxzLBNrtzxe'
|
|
1404
|
+
];
|
|
1405
|
+
_0x4cbf = function () {
|
|
1406
|
+
return _0x263ca4;
|
|
1407
|
+
};
|
|
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' }
|
|
2295
1588
|
];
|
|
2296
|
-
|
|
2297
|
-
|
|
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': !![] } : {}
|
|
2298
2037
|
};
|
|
2299
|
-
return _0x542c();
|
|
2300
2038
|
}
|
|
2301
|
-
async function
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
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
|
|
2312
2298
|
};
|
|
2313
2299
|
}
|
|
2314
|
-
function readFlag(
|
|
2315
|
-
const
|
|
2316
|
-
if (
|
|
2300
|
+
function readFlag(_0x18a1c0, _0x3d46e4) {
|
|
2301
|
+
const _0x5589d5 = _0x18a1c0['indexOf'](_0x3d46e4);
|
|
2302
|
+
if (_0x5589d5 === -0x1)
|
|
2317
2303
|
return void 0x0;
|
|
2318
|
-
return
|
|
2304
|
+
return _0x18a1c0[_0x5589d5 + 0x1];
|
|
2319
2305
|
}
|
|
2320
|
-
function parseChatBridgeArgs(
|
|
2321
|
-
const
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
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));
|
|
2335
2322
|
return {
|
|
2336
|
-
'agentId':
|
|
2337
|
-
'daemonApiKey':
|
|
2338
|
-
'daemonLocalUrl':
|
|
2339
|
-
'initialLastSeenSeq':
|
|
2340
|
-
'sessionId':
|
|
2341
|
-
'serverUrl':
|
|
2342
|
-
'workerModeEnabled':
|
|
2343
|
-
'workerSessionId':
|
|
2344
|
-
'workerThreadTarget':
|
|
2345
|
-
'workerMode':
|
|
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
|
|
2346
2333
|
};
|
|
2347
2334
|
}
|
|
2348
|
-
async function runChatBridgeCli(
|
|
2349
|
-
const
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
},
|
|
2353
|
-
'agentId':
|
|
2354
|
-
'attachmentCache':
|
|
2355
|
-
'client':
|
|
2356
|
-
'daemonLocalUrl':
|
|
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)],
|
|
2357
2344
|
'uploadPreparer': prepareUploadFile,
|
|
2358
|
-
'workerModeEnabled':
|
|
2359
|
-
'workerMode':
|
|
2345
|
+
'workerModeEnabled': _0x3f8198[_0x5eb2f2(_0x8a5ad._0x4dafdd)],
|
|
2346
|
+
'workerMode': _0x3f8198[_0x5eb2f2(_0x8a5ad._0xcffb3c)]
|
|
2360
2347
|
});
|
|
2361
|
-
await
|
|
2348
|
+
await _0x23fac3[_0x5eb2f2(0x18c)]['connect'](new _0x5d07fe());
|
|
2362
2349
|
}
|
|
2363
|
-
var executedAsEntry = process[
|
|
2364
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
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));
|
|
2365
2352
|
export {
|
|
2366
2353
|
createChatBridgeHandlers,
|
|
2367
2354
|
createChatBridgeServer,
|