@dscord/daemon 0.1.12 → 0.1.13
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 +1964 -1937
- package/dist/index.js +7543 -7299
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,22 +1,46 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const _0x4ab0ed = _0xaeca;
|
|
2
|
+
function _0xaeca(_0x5cddca, _0x420183) {
|
|
3
|
+
_0x5cddca = _0x5cddca - 0x157;
|
|
4
|
+
const _0x4879f3 = _0x4879();
|
|
5
|
+
let _0xaeca36 = _0x4879f3[_0x5cddca];
|
|
6
|
+
if (_0xaeca['PhxcOF'] === undefined) {
|
|
7
|
+
var _0x23269f = function (_0x409622) {
|
|
8
|
+
const _0x28b3a7 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
9
|
+
let _0x1aa3f5 = '', _0x2f9eee = '';
|
|
10
|
+
for (let _0x37d6a2 = 0x0, _0x545a9b, _0x3034d8, _0x325b78 = 0x0; _0x3034d8 = _0x409622['charAt'](_0x325b78++); ~_0x3034d8 && (_0x545a9b = _0x37d6a2 % 0x4 ? _0x545a9b * 0x40 + _0x3034d8 : _0x3034d8, _0x37d6a2++ % 0x4) ? _0x1aa3f5 += String['fromCharCode'](0xff & _0x545a9b >> (-0x2 * _0x37d6a2 & 0x6)) : 0x0) {
|
|
11
|
+
_0x3034d8 = _0x28b3a7['indexOf'](_0x3034d8);
|
|
12
|
+
}
|
|
13
|
+
for (let _0x272e79 = 0x0, _0x220405 = _0x1aa3f5['length']; _0x272e79 < _0x220405; _0x272e79++) {
|
|
14
|
+
_0x2f9eee += '%' + ('00' + _0x1aa3f5['charCodeAt'](_0x272e79)['toString'](0x10))['slice'](-0x2);
|
|
15
|
+
}
|
|
16
|
+
return decodeURIComponent(_0x2f9eee);
|
|
17
|
+
};
|
|
18
|
+
_0xaeca['JTwscp'] = _0x23269f, _0xaeca['QgTNeu'] = {}, _0xaeca['PhxcOF'] = !![];
|
|
19
|
+
}
|
|
20
|
+
const _0x5b6d94 = _0x4879f3[0x0], _0x29c565 = _0x5cddca + _0x5b6d94, _0x34b829 = _0xaeca['QgTNeu'][_0x29c565];
|
|
21
|
+
return !_0x34b829 ? (_0xaeca36 = _0xaeca['JTwscp'](_0xaeca36), _0xaeca['QgTNeu'][_0x29c565] = _0xaeca36) : _0xaeca36 = _0x34b829, _0xaeca36;
|
|
22
|
+
}
|
|
23
|
+
(function (_0x522cfc, _0x2565c4) {
|
|
24
|
+
const _0x45cb3c = {
|
|
25
|
+
_0x14479b: 0x28e,
|
|
26
|
+
_0x1d2a74: 0x205,
|
|
27
|
+
_0x246dc9: 0x24a,
|
|
28
|
+
_0x23d28c: 0x238,
|
|
29
|
+
_0x530fb4: 0x17e,
|
|
30
|
+
_0x1a1a6e: 0x1df
|
|
31
|
+
}, _0x3f76a0 = _0xaeca, _0x2fa24a = _0x522cfc();
|
|
8
32
|
while (!![]) {
|
|
9
33
|
try {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
34
|
+
const _0x152822 = parseInt(_0x3f76a0(_0x45cb3c._0x14479b)) / 0x1 + parseInt(_0x3f76a0(0x180)) / 0x2 * (parseInt(_0x3f76a0(_0x45cb3c._0x1d2a74)) / 0x3) + -parseInt(_0x3f76a0(_0x45cb3c._0x246dc9)) / 0x4 + parseInt(_0x3f76a0(0x29e)) / 0x5 + -parseInt(_0x3f76a0(_0x45cb3c._0x23d28c)) / 0x6 * (parseInt(_0x3f76a0(_0x45cb3c._0x530fb4)) / 0x7) + -parseInt(_0x3f76a0(0x207)) / 0x8 + -parseInt(_0x3f76a0(_0x45cb3c._0x1a1a6e)) / 0x9 * (-parseInt(_0x3f76a0(0x22d)) / 0xa);
|
|
35
|
+
if (_0x152822 === _0x2565c4)
|
|
12
36
|
break;
|
|
13
37
|
else
|
|
14
|
-
|
|
15
|
-
} catch (
|
|
16
|
-
|
|
38
|
+
_0x2fa24a['push'](_0x2fa24a['shift']());
|
|
39
|
+
} catch (_0x58b20c) {
|
|
40
|
+
_0x2fa24a['push'](_0x2fa24a['shift']());
|
|
17
41
|
}
|
|
18
42
|
}
|
|
19
|
-
}(
|
|
43
|
+
}(_0x4879, 0xa8d7b));
|
|
20
44
|
import { pathToFileURL } from 'node:url';
|
|
21
45
|
import {
|
|
22
46
|
mkdir,
|
|
@@ -26,80 +50,74 @@ import {
|
|
|
26
50
|
writeFile
|
|
27
51
|
} from 'node:fs/promises';
|
|
28
52
|
import { homedir } from 'node:os';
|
|
29
|
-
import
|
|
53
|
+
import _0x1aa3f5 from 'node:path';
|
|
30
54
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
31
|
-
'.csv':
|
|
32
|
-
'.gif':
|
|
33
|
-
'.jpeg':
|
|
34
|
-
'.jpg':
|
|
35
|
-
'.json':
|
|
36
|
-
'.md':
|
|
37
|
-
'.pdf':
|
|
38
|
-
'.png':
|
|
39
|
-
'.svg':
|
|
40
|
-
'.txt':
|
|
41
|
-
'.webp':
|
|
42
|
-
'.xml':
|
|
43
|
-
'.zip':
|
|
55
|
+
'.csv': _0x4ab0ed(0x1b5),
|
|
56
|
+
'.gif': 'image/gif',
|
|
57
|
+
'.jpeg': _0x4ab0ed(0x22c),
|
|
58
|
+
'.jpg': _0x4ab0ed(0x22c),
|
|
59
|
+
'.json': _0x4ab0ed(0x260),
|
|
60
|
+
'.md': _0x4ab0ed(0x288),
|
|
61
|
+
'.pdf': _0x4ab0ed(0x254),
|
|
62
|
+
'.png': _0x4ab0ed(0x2a4),
|
|
63
|
+
'.svg': 'image/svg+xml',
|
|
64
|
+
'.txt': _0x4ab0ed(0x162),
|
|
65
|
+
'.webp': _0x4ab0ed(0x2b1),
|
|
66
|
+
'.xml': _0x4ab0ed(0x1f8),
|
|
67
|
+
'.zip': _0x4ab0ed(0x211)
|
|
44
68
|
};
|
|
45
|
-
function guessContentType(
|
|
46
|
-
const
|
|
47
|
-
return MIME_BY_EXTENSION[
|
|
69
|
+
function guessContentType(_0x2f9eee) {
|
|
70
|
+
const _0x24157e = _0x4ab0ed;
|
|
71
|
+
return MIME_BY_EXTENSION[_0x1aa3f5['extname'](_0x2f9eee)['toLowerCase']()] ?? _0x24157e(0x182);
|
|
48
72
|
}
|
|
49
|
-
function safeFilename(
|
|
50
|
-
|
|
73
|
+
function safeFilename(_0x37d6a2) {
|
|
74
|
+
const _0xb00865 = { _0x4fe990: 0x1d5 }, _0x4504b1 = _0x4ab0ed;
|
|
75
|
+
return _0x37d6a2[_0x4504b1(_0xb00865._0x4fe990)](/[\\/]/g, '-');
|
|
51
76
|
}
|
|
52
|
-
function extensionFor(
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
_0x372251: 0x157
|
|
56
|
-
}, _0x4a5a9d = _0x2c1aa0, _0x137e31 = Object[_0x4a5a9d(0x180)](MIME_BY_EXTENSION)[_0x4a5a9d(_0x58d089._0x40c75a)](([, _0x383686]) => _0x383686 === _0x32b5ca);
|
|
57
|
-
return _0x137e31?.[0x0] ?? _0x4a5a9d(_0x58d089._0x372251);
|
|
77
|
+
function extensionFor(_0x545a9b) {
|
|
78
|
+
const _0x282f03 = { _0x5c0bb2: 0x1ba }, _0xa50aa2 = _0x4ab0ed, _0x3034d8 = Object[_0xa50aa2(_0x282f03._0x5c0bb2)](MIME_BY_EXTENSION)[_0xa50aa2(0x21e)](([, _0x325b78]) => _0x325b78 === _0x545a9b);
|
|
79
|
+
return _0x3034d8?.[0x0] ?? _0xa50aa2(0x244);
|
|
58
80
|
}
|
|
59
|
-
async function prepareUploadFile(
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
async function prepareUploadFile(_0x272e79, _0x220405 = {}) {
|
|
82
|
+
const _0x2e2024 = {
|
|
83
|
+
_0x2ca49f: 0x1b1,
|
|
84
|
+
_0x11b9ba: 0x2ab,
|
|
85
|
+
_0x2c7658: 0x2aa,
|
|
86
|
+
_0x141e74: 0x27e,
|
|
87
|
+
_0x1e22a9: 0x22a,
|
|
88
|
+
_0x42273c: 0x173
|
|
89
|
+
}, _0x2428db = _0x4ab0ed;
|
|
90
|
+
if (!_0x1aa3f5['isAbsolute'](_0x272e79))
|
|
91
|
+
throw new Error(_0x2428db(_0x2e2024._0x2ca49f));
|
|
92
|
+
const _0x5389a0 = await stat(_0x272e79)[_0x2428db(0x161)](() => null);
|
|
93
|
+
if (!_0x5389a0 || !_0x5389a0[_0x2428db(_0x2e2024._0x11b9ba)]())
|
|
94
|
+
throw new Error(_0x2428db(_0x2e2024._0x2c7658) + _0x272e79);
|
|
95
|
+
const _0x79d0 = _0x220405[_0x2428db(_0x2e2024._0x141e74)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
96
|
+
if (_0x5389a0[_0x2428db(_0x2e2024._0x1e22a9)] > _0x79d0)
|
|
97
|
+
throw new Error(_0x2428db(0x242) + _0x5389a0[_0x2428db(0x22a)]);
|
|
98
|
+
const _0x4ab644 = await readFile(_0x272e79), _0x1152a7 = _0x1aa3f5[_0x2428db(0x19b)](_0x272e79);
|
|
75
99
|
return {
|
|
76
|
-
'contentBase64':
|
|
77
|
-
'contentType': guessContentType(
|
|
78
|
-
'filename':
|
|
79
|
-
'sizeBytes':
|
|
100
|
+
'contentBase64': _0x4ab644[_0x2428db(_0x2e2024._0x42273c)]('base64'),
|
|
101
|
+
'contentType': guessContentType(_0x1152a7),
|
|
102
|
+
'filename': _0x1152a7,
|
|
103
|
+
'sizeBytes': _0x5389a0[_0x2428db(0x22a)]
|
|
80
104
|
};
|
|
81
105
|
}
|
|
82
|
-
function createAttachmentCache(
|
|
83
|
-
const
|
|
84
|
-
_0x436686: 0x25f,
|
|
85
|
-
_0x25573e: 0x2a4
|
|
86
|
-
}, _0x1cc298 = {
|
|
87
|
-
_0x42f088: 0x1a4,
|
|
88
|
-
_0x586322: 0x229
|
|
89
|
-
}, _0x34c7ed = _0x2c1aa0, _0x58d9a3 = _0x4cf8f9[_0x34c7ed(0x16c)] ?? _0x3efa53[_0x34c7ed(0x229)](homedir(), _0x34c7ed(_0xfa2ad4._0x20f983), 'attachments');
|
|
106
|
+
function createAttachmentCache(_0x225fc9 = {}) {
|
|
107
|
+
const _0x565bcb = { _0x17f233: 0x1ad }, _0x5f0b5d = { _0x59775a: 0x2a5 }, _0x269160 = _0x4ab0ed, _0x473ee7 = _0x225fc9[_0x269160(0x1e1)] ?? _0x1aa3f5['join'](homedir(), _0x269160(0x200), 'attachments');
|
|
90
108
|
return {
|
|
91
|
-
'cacheDir':
|
|
92
|
-
async 'findCachedPath'(
|
|
93
|
-
const
|
|
94
|
-
await mkdir(
|
|
95
|
-
const
|
|
96
|
-
return
|
|
109
|
+
'cacheDir': _0x473ee7,
|
|
110
|
+
async 'findCachedPath'(_0x15b1cd) {
|
|
111
|
+
const _0x18c2ee = _0x269160;
|
|
112
|
+
await mkdir(_0x473ee7, { 'recursive': !![] });
|
|
113
|
+
const _0x4bc178 = await readdir(_0x473ee7), _0x216cb9 = _0x4bc178[_0x18c2ee(0x21e)](_0x22285d => _0x22285d[_0x18c2ee(0x2af)](_0x15b1cd + '-') || _0x22285d['startsWith'](_0x15b1cd));
|
|
114
|
+
return _0x216cb9 ? _0x1aa3f5[_0x18c2ee(_0x5f0b5d._0x59775a)](_0x473ee7, _0x216cb9) : null;
|
|
97
115
|
},
|
|
98
|
-
async 'save'(
|
|
99
|
-
const
|
|
100
|
-
await mkdir(
|
|
101
|
-
const
|
|
102
|
-
return await writeFile(
|
|
116
|
+
async 'save'(_0x437e83) {
|
|
117
|
+
const _0x95ed0d = _0x269160;
|
|
118
|
+
await mkdir(_0x473ee7, { 'recursive': !![] });
|
|
119
|
+
const _0x11175b = _0x437e83[_0x95ed0d(0x1ad)]?.['trim']() ? safeFilename(_0x437e83[_0x95ed0d(_0x565bcb._0x17f233)]) : '' + _0x437e83['attachmentId'] + extensionFor(_0x437e83['contentType']), _0x45e109 = _0x1aa3f5[_0x95ed0d(0x2a5)](_0x473ee7, _0x437e83['attachmentId'] + '-' + _0x11175b);
|
|
120
|
+
return await writeFile(_0x45e109, _0x437e83[_0x95ed0d(0x229)]), _0x45e109;
|
|
103
121
|
}
|
|
104
122
|
};
|
|
105
123
|
}
|
|
@@ -107,2063 +125,2072 @@ import {
|
|
|
107
125
|
createHash,
|
|
108
126
|
randomUUID
|
|
109
127
|
} from 'node:crypto';
|
|
110
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
111
|
-
function ensureSegment(
|
|
112
|
-
const
|
|
113
|
-
if (!
|
|
128
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x4ab0ed(0x1cb);
|
|
129
|
+
function ensureSegment(_0x5a0f9f) {
|
|
130
|
+
const _0x4738b6 = _0x4ab0ed, _0x4d7515 = _0x5a0f9f['trim']();
|
|
131
|
+
if (!_0x4d7515 || _0x4d7515[_0x4738b6(0x285)](':'))
|
|
114
132
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
115
|
-
return
|
|
133
|
+
return _0x4d7515;
|
|
116
134
|
}
|
|
117
|
-
function parseThreadParts(
|
|
118
|
-
const
|
|
119
|
-
|
|
135
|
+
function parseThreadParts(_0x12aacb) {
|
|
136
|
+
const _0x136c20 = {
|
|
137
|
+
_0x57e6bf: 0x1e3,
|
|
138
|
+
_0xe75f97: 0x1e3
|
|
139
|
+
}, _0x3cb8af = _0x4ab0ed, _0x3fedfb = _0x12aacb[_0x3cb8af(0x1ca)](':');
|
|
140
|
+
if (_0x3fedfb[_0x3cb8af(_0x136c20._0x57e6bf)] < 0x1 || _0x3fedfb[_0x3cb8af(_0x136c20._0xe75f97)] > 0x2)
|
|
120
141
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
121
142
|
return {
|
|
122
|
-
'channelName': ensureSegment(
|
|
123
|
-
'threadShortId':
|
|
143
|
+
'channelName': ensureSegment(_0x3fedfb[0x0] ?? ''),
|
|
144
|
+
'threadShortId': _0x3fedfb[0x1] ? ensureSegment(_0x3fedfb[0x1]) : null
|
|
124
145
|
};
|
|
125
146
|
}
|
|
126
|
-
function parseTarget(
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
147
|
+
function parseTarget(_0x2a5b0e) {
|
|
148
|
+
const _0xc0eaf1 = {
|
|
149
|
+
_0x5f450b: 0x1e4,
|
|
150
|
+
_0x26d97d: 0x27a,
|
|
151
|
+
_0x412a9a: 0x26e,
|
|
152
|
+
_0x1e6f08: 0x26e,
|
|
153
|
+
_0x175778: 0x1ae,
|
|
154
|
+
_0xa6d2fd: 0x18d,
|
|
155
|
+
_0x5db652: 0x2af,
|
|
156
|
+
_0x23f1ca: 0x18d
|
|
157
|
+
}, _0x49e9ea = _0x4ab0ed, _0x3283f6 = _0x2a5b0e[_0x49e9ea(_0xc0eaf1._0x5f450b)]();
|
|
158
|
+
if (!_0x3283f6)
|
|
137
159
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
138
|
-
if (
|
|
139
|
-
const
|
|
140
|
-
if (!
|
|
160
|
+
if (_0x3283f6['startsWith']('#')) {
|
|
161
|
+
const _0x3a6818 = parseThreadParts(_0x3283f6[_0x49e9ea(_0xc0eaf1._0x26d97d)](0x1)), _0x407bf8 = '#' + _0x3a6818[_0x49e9ea(_0xc0eaf1._0x412a9a)];
|
|
162
|
+
if (!_0x3a6818[_0x49e9ea(0x18d)])
|
|
141
163
|
return {
|
|
142
|
-
'channelName':
|
|
143
|
-
'channelTarget':
|
|
164
|
+
'channelName': _0x3a6818['channelName'],
|
|
165
|
+
'channelTarget': _0x407bf8,
|
|
144
166
|
'kind': 'channel',
|
|
145
|
-
'target':
|
|
167
|
+
'target': _0x407bf8
|
|
146
168
|
};
|
|
147
169
|
return {
|
|
148
|
-
'channelName':
|
|
149
|
-
'channelTarget':
|
|
150
|
-
'kind':
|
|
151
|
-
'target':
|
|
152
|
-
'threadShortId':
|
|
170
|
+
'channelName': _0x3a6818[_0x49e9ea(_0xc0eaf1._0x1e6f08)],
|
|
171
|
+
'channelTarget': _0x407bf8,
|
|
172
|
+
'kind': _0x49e9ea(_0xc0eaf1._0x175778),
|
|
173
|
+
'target': _0x407bf8 + ':' + _0x3a6818[_0x49e9ea(_0xc0eaf1._0xa6d2fd)],
|
|
174
|
+
'threadShortId': _0x3a6818[_0x49e9ea(0x18d)]
|
|
153
175
|
};
|
|
154
176
|
}
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
if (!
|
|
177
|
+
if (_0x3283f6[_0x49e9ea(_0xc0eaf1._0x5db652)](_0x49e9ea(0x18b))) {
|
|
178
|
+
const _0xd5854d = parseThreadParts(_0x3283f6['slice'](0x3));
|
|
179
|
+
if (!_0xd5854d[_0x49e9ea(0x26e)][_0x49e9ea(0x2af)]('dm-'))
|
|
158
180
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
159
|
-
const
|
|
160
|
-
if (!
|
|
181
|
+
const _0x3bf617 = _0x49e9ea(0x18b) + _0xd5854d['channelName'];
|
|
182
|
+
if (!_0xd5854d[_0x49e9ea(0x18d)])
|
|
161
183
|
return {
|
|
162
|
-
'channelName':
|
|
163
|
-
'channelTarget':
|
|
184
|
+
'channelName': _0xd5854d[_0x49e9ea(0x26e)],
|
|
185
|
+
'channelTarget': _0x3bf617,
|
|
164
186
|
'kind': 'channel',
|
|
165
|
-
'target':
|
|
187
|
+
'target': _0x3bf617
|
|
166
188
|
};
|
|
167
189
|
return {
|
|
168
|
-
'channelName':
|
|
169
|
-
'channelTarget':
|
|
170
|
-
'kind':
|
|
171
|
-
'target':
|
|
172
|
-
'threadShortId':
|
|
190
|
+
'channelName': _0xd5854d[_0x49e9ea(0x26e)],
|
|
191
|
+
'channelTarget': _0x3bf617,
|
|
192
|
+
'kind': _0x49e9ea(_0xc0eaf1._0x175778),
|
|
193
|
+
'target': _0x3bf617 + ':' + _0xd5854d['threadShortId'],
|
|
194
|
+
'threadShortId': _0xd5854d[_0x49e9ea(_0xc0eaf1._0x23f1ca)]
|
|
173
195
|
};
|
|
174
196
|
}
|
|
175
197
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
176
198
|
}
|
|
177
|
-
function asErrorMessage(
|
|
178
|
-
if (typeof
|
|
179
|
-
return
|
|
180
|
-
return
|
|
199
|
+
function asErrorMessage(_0x321510, _0x1dfc66) {
|
|
200
|
+
if (typeof _0x321510 === 'string' && _0x321510['trim']())
|
|
201
|
+
return _0x321510;
|
|
202
|
+
return _0x1dfc66;
|
|
181
203
|
}
|
|
182
|
-
function asRecord(
|
|
183
|
-
|
|
204
|
+
function asRecord(_0x2623d7) {
|
|
205
|
+
const _0x4e769e = _0x4ab0ed;
|
|
206
|
+
return typeof _0x2623d7 === _0x4e769e(0x16f) && _0x2623d7 !== null ? _0x2623d7 : {};
|
|
184
207
|
}
|
|
185
|
-
function stableStringify(
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
208
|
+
function stableStringify(_0xaecf8a) {
|
|
209
|
+
const _0x31e2e4 = {
|
|
210
|
+
_0x2c617f: 0x2a5,
|
|
211
|
+
_0x575c12: 0x1ba,
|
|
212
|
+
_0x36151d: 0x1d9,
|
|
213
|
+
_0x7dbd31: 0x1cd,
|
|
214
|
+
_0xca35e6: 0x243
|
|
215
|
+
}, _0x5098aa = _0x4ab0ed;
|
|
216
|
+
if (_0xaecf8a === null || typeof _0xaecf8a !== _0x5098aa(0x16f))
|
|
217
|
+
return JSON[_0x5098aa(0x203)](_0xaecf8a);
|
|
218
|
+
if (Array[_0x5098aa(0x290)](_0xaecf8a))
|
|
219
|
+
return '[' + _0xaecf8a['map'](_0x19906c => stableStringify(_0x19906c))[_0x5098aa(_0x31e2e4._0x2c617f)](',') + ']';
|
|
220
|
+
const _0x4dc4da = Object[_0x5098aa(_0x31e2e4._0x575c12)](_0xaecf8a)[_0x5098aa(_0x31e2e4._0x36151d)](([, _0x55290a]) => _0x55290a !== void 0x0)[_0x5098aa(_0x31e2e4._0x7dbd31)](([_0x1353dc], [_0x5c0619]) => _0x1353dc[_0x5098aa(0x1db)](_0x5c0619))[_0x5098aa(_0x31e2e4._0xca35e6)](([_0x1f18d9, _0x5cd1f3]) => JSON[_0x5098aa(0x203)](_0x1f18d9) + ':' + stableStringify(_0x5cd1f3));
|
|
221
|
+
return '{' + _0x4dc4da['join'](',') + '}';
|
|
193
222
|
}
|
|
194
|
-
function createHeaders(
|
|
195
|
-
const _0x42b598 = { _0x11aa76: 0x146 }, _0x33572f = _0x2c1aa0;
|
|
223
|
+
function createHeaders(_0x263213) {
|
|
196
224
|
return {
|
|
197
|
-
'Content-Type':
|
|
198
|
-
'x-daemon-api-key':
|
|
225
|
+
'Content-Type': 'application/json',
|
|
226
|
+
'x-daemon-api-key': _0x263213
|
|
199
227
|
};
|
|
200
228
|
}
|
|
201
|
-
function toHttpBaseUrl(
|
|
202
|
-
const
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
229
|
+
function toHttpBaseUrl(_0x5ae23a) {
|
|
230
|
+
const _0x1ab542 = {
|
|
231
|
+
_0x89b192: 0x25f,
|
|
232
|
+
_0x97f5d: 0x1b3,
|
|
233
|
+
_0x383b4b: 0x1e0,
|
|
234
|
+
_0x143239: 0x25f,
|
|
235
|
+
_0x4e5965: 0x28b
|
|
236
|
+
}, _0x376e4d = _0x4ab0ed, _0x2b27c2 = new URL(_0x5ae23a);
|
|
237
|
+
if (_0x2b27c2[_0x376e4d(_0x1ab542._0x89b192)] === _0x376e4d(0x167))
|
|
238
|
+
_0x2b27c2[_0x376e4d(0x25f)] = _0x376e4d(_0x1ab542._0x97f5d);
|
|
209
239
|
else
|
|
210
|
-
|
|
211
|
-
return
|
|
240
|
+
_0x2b27c2[_0x376e4d(0x25f)] === _0x376e4d(_0x1ab542._0x383b4b) && (_0x2b27c2[_0x376e4d(_0x1ab542._0x143239)] = _0x376e4d(_0x1ab542._0x4e5965));
|
|
241
|
+
return _0x2b27c2[_0x376e4d(0x173)]()['replace'](/\/$/, '');
|
|
242
|
+
}
|
|
243
|
+
function isMentionBoundary(_0x27a71c) {
|
|
244
|
+
return !_0x27a71c || /\s|[([{'",。!?、:;]/['test'](_0x27a71c);
|
|
212
245
|
}
|
|
213
|
-
function
|
|
214
|
-
|
|
215
|
-
return !_0xf37b3 || /\s|[([{'",。!?、:;]/[_0x50c026(_0x45473b._0xbb87ca)](_0xf37b3);
|
|
246
|
+
function isMentionTerminal(_0x1e264d) {
|
|
247
|
+
return !_0x1e264d || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x1e264d);
|
|
216
248
|
}
|
|
217
|
-
function
|
|
218
|
-
const
|
|
219
|
-
|
|
249
|
+
function buildMatchableEntries(_0x382f12) {
|
|
250
|
+
const _0x22320c = {
|
|
251
|
+
_0x2df15c: 0x228,
|
|
252
|
+
_0x2e8d4f: 0x209,
|
|
253
|
+
_0x165643: 0x24b
|
|
254
|
+
}, _0x52d2b6 = _0x4ab0ed, _0x53df42 = [];
|
|
255
|
+
for (const _0x3b9a04 of [
|
|
256
|
+
..._0x382f12['agents'],
|
|
257
|
+
..._0x382f12['humans']
|
|
258
|
+
]) {
|
|
259
|
+
_0x53df42['push']({
|
|
260
|
+
'matchName': _0x3b9a04[_0x52d2b6(0x228)],
|
|
261
|
+
'matchNameLower': _0x3b9a04[_0x52d2b6(_0x22320c._0x2df15c)][_0x52d2b6(0x24b)](),
|
|
262
|
+
'participantId': _0x3b9a04['id']
|
|
263
|
+
}), _0x3b9a04['id'] !== _0x3b9a04[_0x52d2b6(0x228)] && _0x53df42[_0x52d2b6(_0x22320c._0x2e8d4f)]({
|
|
264
|
+
'matchName': _0x3b9a04['id'],
|
|
265
|
+
'matchNameLower': _0x3b9a04['id'][_0x52d2b6(_0x22320c._0x165643)](),
|
|
266
|
+
'participantId': _0x3b9a04['id']
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
return _0x53df42;
|
|
220
270
|
}
|
|
221
|
-
function extractMentionedParticipantIds(
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
..._0x4cd1a9[_0x59e242(_0x5cb448._0x14b1ab)]
|
|
231
|
-
][_0x59e242(_0x5cb448._0x4f0a4d)](_0x242ee1 => ({
|
|
232
|
-
'displayName': _0x242ee1[_0x59e242(0x16e)],
|
|
233
|
-
'displayNameLower': _0x242ee1[_0x59e242(0x16e)][_0x59e242(0x25e)](),
|
|
234
|
-
'participantId': _0x242ee1['id']
|
|
235
|
-
}))[_0x59e242(0x148)]((_0x2fbcb0, _0x365411) => _0x365411[_0x59e242(0x1a7)][_0x59e242(0x282)] - _0x2fbcb0['displayName'][_0x59e242(0x282)]), _0x2f699d = [], _0x27267a = new Set();
|
|
236
|
-
for (let _0x5a86ca = 0x0; _0x5a86ca < _0x36e07c[_0x59e242(_0x5cb448._0x5a043b)]; _0x5a86ca += 0x1) {
|
|
237
|
-
if (_0x36e07c[_0x5a86ca] !== '@' || !isMentionBoundary(_0x36e07c[_0x5a86ca - 0x1]))
|
|
271
|
+
function extractMentionedParticipantIds(_0x59528d, _0x579bca) {
|
|
272
|
+
const _0x586792 = {
|
|
273
|
+
_0x3709a2: 0x1e3,
|
|
274
|
+
_0x211698: 0x297,
|
|
275
|
+
_0x345afe: 0x1a6,
|
|
276
|
+
_0xbcf5a9: 0x209
|
|
277
|
+
}, _0x11335b = { _0x14db98: 0x1e3 }, _0x4a46ee = _0x4ab0ed, _0x3dd6d1 = buildMatchableEntries(_0x579bca)[_0x4a46ee(0x1cd)]((_0x4fa280, _0x1be579) => _0x1be579[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)] - _0x4fa280[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)]), _0x20c3bb = [], _0x1e047f = new Set();
|
|
278
|
+
for (let _0x19ada9 = 0x0; _0x19ada9 < _0x59528d[_0x4a46ee(_0x586792._0x3709a2)]; _0x19ada9 += 0x1) {
|
|
279
|
+
if (_0x59528d[_0x19ada9] !== '@' || !isMentionBoundary(_0x59528d[_0x19ada9 - 0x1]))
|
|
238
280
|
continue;
|
|
239
|
-
const
|
|
240
|
-
const
|
|
241
|
-
if (!
|
|
281
|
+
const _0x525869 = _0x59528d[_0x4a46ee(0x27a)](_0x19ada9 + 0x1), _0x121649 = _0x525869[_0x4a46ee(0x24b)](), _0x2da6e9 = _0x3dd6d1[_0x4a46ee(0x21e)](_0x2eab04 => {
|
|
282
|
+
const _0x1efa5f = _0x4a46ee;
|
|
283
|
+
if (!_0x121649[_0x1efa5f(0x2af)](_0x2eab04['matchNameLower']))
|
|
242
284
|
return ![];
|
|
243
|
-
return isMentionTerminal(
|
|
285
|
+
return isMentionTerminal(_0x525869[_0x2eab04[_0x1efa5f(0x19f)][_0x1efa5f(_0x11335b._0x14db98)]]);
|
|
244
286
|
});
|
|
245
|
-
if (!
|
|
287
|
+
if (!_0x2da6e9 || _0x1e047f[_0x4a46ee(_0x586792._0x211698)](_0x2da6e9[_0x4a46ee(_0x586792._0x345afe)]))
|
|
246
288
|
continue;
|
|
247
|
-
|
|
289
|
+
_0x1e047f[_0x4a46ee(0x2b9)](_0x2da6e9[_0x4a46ee(0x1a6)]), _0x20c3bb[_0x4a46ee(_0x586792._0xbcf5a9)](_0x2da6e9[_0x4a46ee(0x1a6)]), _0x19ada9 += _0x2da6e9[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)];
|
|
248
290
|
}
|
|
249
|
-
return
|
|
291
|
+
return _0x20c3bb;
|
|
250
292
|
}
|
|
251
293
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
252
|
-
function anySignal(...
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
},
|
|
257
|
-
for (const
|
|
258
|
-
if (
|
|
259
|
-
return
|
|
260
|
-
|
|
294
|
+
function anySignal(..._0x1c42ea) {
|
|
295
|
+
const _0x2abd7c = {
|
|
296
|
+
_0x1a8c7d: 0x206,
|
|
297
|
+
_0x4b4179: 0x1d6
|
|
298
|
+
}, _0x2eaa42 = _0x4ab0ed, _0x2d5c86 = new AbortController();
|
|
299
|
+
for (const _0x3a4cae of _0x1c42ea) {
|
|
300
|
+
if (_0x3a4cae[_0x2eaa42(0x1ff)])
|
|
301
|
+
return _0x2d5c86[_0x2eaa42(_0x2abd7c._0x1a8c7d)](_0x3a4cae['reason']), _0x2d5c86['signal'];
|
|
302
|
+
_0x3a4cae['addEventListener'](_0x2eaa42(0x206), () => _0x2d5c86['abort'](_0x3a4cae['reason']), {
|
|
261
303
|
'once': !![],
|
|
262
|
-
'signal':
|
|
304
|
+
'signal': _0x2d5c86['signal']
|
|
263
305
|
});
|
|
264
306
|
}
|
|
265
|
-
return
|
|
307
|
+
return _0x2d5c86[_0x2eaa42(_0x2abd7c._0x4b4179)];
|
|
266
308
|
}
|
|
267
|
-
function createInternalAgentClient(
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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
|
-
|
|
309
|
+
function createInternalAgentClient(_0x58f74a) {
|
|
310
|
+
const _0x4fe2f7 = {
|
|
311
|
+
_0x50385c: 0x1a2,
|
|
312
|
+
_0x24ceb0: 0x16d,
|
|
313
|
+
_0x84e7a5: 0x17c
|
|
314
|
+
}, _0x1c7d90 = {
|
|
315
|
+
_0x22a04d: 0x179,
|
|
316
|
+
_0x1e5c31: 0x1ce,
|
|
317
|
+
_0xda23c1: 0x187,
|
|
318
|
+
_0x381049: 0x229,
|
|
319
|
+
_0x2baff7: 0x1a3,
|
|
320
|
+
_0x38afca: 0x294,
|
|
321
|
+
_0x4b0698: 0x1ac,
|
|
322
|
+
_0x302280: 0x291,
|
|
323
|
+
_0x5c3133: 0x1bc,
|
|
324
|
+
_0x4d8357: 0x16d,
|
|
325
|
+
_0x2405e4: 0x1bc,
|
|
326
|
+
_0x3e062a: 0x293,
|
|
327
|
+
_0x194972: 0x293,
|
|
328
|
+
_0x30404c: 0x212,
|
|
329
|
+
_0x29f60b: 0x1fa,
|
|
330
|
+
_0x36b08c: 0x234,
|
|
331
|
+
_0x2b8279: 0x1e3,
|
|
332
|
+
_0x3aeab6: 0x243,
|
|
333
|
+
_0x1228f7: 0x15a,
|
|
334
|
+
_0x1178cd: 0x2b5,
|
|
335
|
+
_0x47cf60: 0x25e,
|
|
336
|
+
_0x42151a: 0x160,
|
|
337
|
+
_0x79ddba: 0x268,
|
|
338
|
+
_0x27649e: 0x1fd
|
|
339
|
+
}, _0x1a7f0b = {
|
|
340
|
+
_0x44b3f4: 0x1a4,
|
|
341
|
+
_0x309fbc: 0x286,
|
|
342
|
+
_0x581fa6: 0x294,
|
|
343
|
+
_0x2621aa: 0x2b7,
|
|
344
|
+
_0x26de95: 0x1ac
|
|
345
|
+
}, _0x55ce3c = {
|
|
346
|
+
_0x5e5b35: 0x1d6,
|
|
347
|
+
_0x589e3a: 0x23c,
|
|
348
|
+
_0x20f358: 0x165,
|
|
349
|
+
_0x4f6993: 0x15d
|
|
350
|
+
}, _0x275824 = {
|
|
351
|
+
_0x3ef129: 0x1a4,
|
|
352
|
+
_0x1df1af: 0x2c0,
|
|
353
|
+
_0x2f970d: 0x25c,
|
|
354
|
+
_0x23e6eb: 0x227
|
|
355
|
+
}, _0x5164c6 = {
|
|
356
|
+
_0x2eb1fc: 0x179,
|
|
357
|
+
_0x11c292: 0x1ce,
|
|
358
|
+
_0x2cf270: 0x203,
|
|
359
|
+
_0xadb360: 0x272
|
|
360
|
+
}, _0x1d729d = { _0x3324c1: 0x2a0 }, _0x4bf035 = {
|
|
361
|
+
_0x207b60: 0x1b6,
|
|
362
|
+
_0x3eb81e: 0x203,
|
|
363
|
+
_0x1fc250: 0x2a0
|
|
364
|
+
}, _0x203839 = {
|
|
365
|
+
_0x5d1bf4: 0x203,
|
|
366
|
+
_0x1085bd: 0x253,
|
|
367
|
+
_0x4030c2: 0x2a0
|
|
368
|
+
}, _0x26df12 = {
|
|
369
|
+
_0x5969db: 0x1c0,
|
|
370
|
+
_0x2c0a25: 0x21d,
|
|
371
|
+
_0x24059a: 0x1c0
|
|
372
|
+
}, _0x22f4c4 = {
|
|
373
|
+
_0x9a4e10: 0x16b,
|
|
374
|
+
_0x95b5bc: 0x263,
|
|
375
|
+
_0x505049: 0x259,
|
|
376
|
+
_0x2bf9c6: 0x1c0
|
|
377
|
+
}, _0x726f5f = {
|
|
378
|
+
_0x5b58cc: 0x183,
|
|
379
|
+
_0x4ed5d8: 0x225,
|
|
380
|
+
_0x402775: 0x2a0
|
|
381
|
+
}, _0x428f84 = {
|
|
382
|
+
_0x4913e7: 0x1b4,
|
|
383
|
+
_0x527c61: 0x181
|
|
384
|
+
}, _0x18e6db = {
|
|
385
|
+
_0x2f0ea2: 0x289,
|
|
386
|
+
_0x207485: 0x229
|
|
387
|
+
}, _0x58f306 = {
|
|
388
|
+
_0x287272: 0x2ae,
|
|
389
|
+
_0x3bdb3c: 0x2b5,
|
|
390
|
+
_0x46d39c: 0x285,
|
|
391
|
+
_0x18c597: 0x179,
|
|
392
|
+
_0x2b8fec: 0x203,
|
|
393
|
+
_0x1a2d90: 0x2b5,
|
|
394
|
+
_0x49f776: 0x1e3,
|
|
395
|
+
_0x59c457: 0x2a0
|
|
396
|
+
}, _0x4f85a3 = {
|
|
397
|
+
_0x451429: 0x21d,
|
|
398
|
+
_0x408cef: 0x1ac,
|
|
399
|
+
_0x122b1a: 0x294,
|
|
400
|
+
_0x38ad31: 0x21d,
|
|
401
|
+
_0xf7a33b: 0x20b,
|
|
402
|
+
_0x56c9e6: 0x1fb,
|
|
403
|
+
_0x5e62be: 0x173,
|
|
404
|
+
_0x139529: 0x20a,
|
|
405
|
+
_0x46971e: 0x243,
|
|
406
|
+
_0x219071: 0x1d2,
|
|
407
|
+
_0x3ba3ea: 0x1d2
|
|
408
|
+
}, _0x362512 = { _0x545348: 0x197 }, _0x35bba9 = {
|
|
409
|
+
_0x18be69: 0x18d,
|
|
410
|
+
_0x189b8f: 0x293,
|
|
411
|
+
_0x7e6ebc: 0x1ac,
|
|
412
|
+
_0x260b5e: 0x2af
|
|
413
|
+
}, _0x136866 = {
|
|
414
|
+
_0x23ef8a: 0x1bc,
|
|
415
|
+
_0x33e270: 0x258,
|
|
416
|
+
_0x2c9cb7: 0x27a
|
|
417
|
+
}, _0x18727f = { _0x43ec5c: 0x2bb }, _0x2c4ca4 = {
|
|
418
|
+
_0x51db5e: 0x179,
|
|
419
|
+
_0x4ee713: 0x248,
|
|
420
|
+
_0x166170: 0x26d,
|
|
421
|
+
_0x22b4ec: 0x229,
|
|
422
|
+
_0xc6123b: 0x243,
|
|
423
|
+
_0x59adc5: 0x243,
|
|
424
|
+
_0x279e96: 0x229,
|
|
425
|
+
_0x4b19f0: 0x24c,
|
|
426
|
+
_0x1d5568: 0x1d9,
|
|
427
|
+
_0xf3dc19: 0x229,
|
|
428
|
+
_0x3262b2: 0x296,
|
|
429
|
+
_0x39fd04: 0x228
|
|
430
|
+
}, _0x2788cf = {
|
|
431
|
+
_0x294b84: 0x179,
|
|
432
|
+
_0x11c0d2: 0x2ae
|
|
433
|
+
}, _0x8ebe99 = {
|
|
434
|
+
_0x2537a2: 0x188,
|
|
435
|
+
_0x5ac886: 0x246
|
|
436
|
+
}, _0x307d2a = {
|
|
437
|
+
_0x360a04: 0x1d6,
|
|
438
|
+
_0x3fbefb: 0x1d6
|
|
439
|
+
}, _0x522317 = { _0x45be27: 0x263 }, _0x153730 = {
|
|
440
|
+
_0x463b17: 0x291,
|
|
441
|
+
_0x5e9a46: 0x2be,
|
|
442
|
+
_0x23254d: 0x1e4,
|
|
443
|
+
_0x424393: 0x1c4,
|
|
444
|
+
_0x17dfbd: 0x251,
|
|
445
|
+
_0x961526: 0x268
|
|
446
|
+
}, _0x8681bc = {
|
|
447
|
+
_0x5524bb: 0x1c3,
|
|
448
|
+
_0x1bd8a1: 0x1e4
|
|
449
|
+
}, _0x9ca63f = {
|
|
450
|
+
_0x3ec642: 0x2ac,
|
|
451
|
+
_0x37fa4a: 0x268,
|
|
452
|
+
_0x3c4a19: 0x21b,
|
|
453
|
+
_0x4e4370: 0x1c0,
|
|
454
|
+
_0xe6a7d9: 0x1e9
|
|
455
|
+
}, _0x4403d0 = _0x4ab0ed, _0x96fd5d = _0x58f74a['fetchImpl'] ?? fetch, _0x1785a2 = _0x58f74a[_0x4403d0(0x193)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x4dacbc = typeof _0x58f74a[_0x4403d0(_0x4fe2f7._0x50385c)] === _0x4403d0(_0x4fe2f7._0x24ceb0) && _0x58f74a[_0x4403d0(0x1a2)] > 0x0 ? _0x58f74a[_0x4403d0(_0x4fe2f7._0x50385c)] : 0x0, _0x73b33 = _0x58f74a[_0x4403d0(_0x4fe2f7._0x84e7a5)]?.['trim']() || void 0x0, _0x4570c9 = _0x58f74a['workerThreadTarget']?.['trim']() || void 0x0, _0x529f0c = createHeaders(_0x58f74a[_0x4403d0(0x1f4)]), _0xb724a0 = toHttpBaseUrl(_0x58f74a['serverUrl']);
|
|
456
|
+
let _0x33de00 = null;
|
|
457
|
+
const _0x2ad9bb = new Map();
|
|
458
|
+
let _0x5ee29d = _0x4dacbc, _0x1d7d06 = _0x4dacbc;
|
|
459
|
+
function _0x4dfd71(_0x481bb8) {
|
|
460
|
+
const _0x47a481 = _0x4403d0, _0x2587c5 = _0x481bb8[_0x47a481(_0x9ca63f._0x3ec642)]['headers'][_0x47a481(_0x9ca63f._0x37fa4a)](_0x47a481(_0x9ca63f._0x3c4a19)) ?? 'unknown', _0x40f0a6 = _0x481bb8[_0x47a481(0x1c9)][_0x47a481(0x1e4)]()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
|
|
461
|
+
return '请求\x20' + _0x481bb8['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x481bb8[_0x47a481(0x2ac)][_0x47a481(_0x9ca63f._0x4e4370)] + _0x47a481(0x1b7) + _0x2587c5 + _0x47a481(0x2ba) + _0x40f0a6 + _0x47a481(_0x9ca63f._0xe6a7d9);
|
|
408
462
|
}
|
|
409
|
-
async function
|
|
410
|
-
const
|
|
411
|
-
if (!
|
|
463
|
+
async function _0x52f5fe(_0x2d7dec, _0x42b7aa) {
|
|
464
|
+
const _0x1bfab7 = _0x4403d0, _0x44a6f8 = Buffer[_0x1bfab7(_0x8681bc._0x5524bb)](await _0x42b7aa[_0x1bfab7(0x278)]())['toString'](_0x1bfab7(0x178));
|
|
465
|
+
if (!_0x44a6f8[_0x1bfab7(_0x8681bc._0x1bd8a1)]())
|
|
412
466
|
return {};
|
|
413
467
|
try {
|
|
414
|
-
return JSON[
|
|
468
|
+
return JSON[_0x1bfab7(0x1a5)](_0x44a6f8);
|
|
415
469
|
} catch {
|
|
416
|
-
throw new Error(
|
|
417
|
-
'bodyText':
|
|
418
|
-
'requestUrl':
|
|
419
|
-
'response':
|
|
470
|
+
throw new Error(_0x4dfd71({
|
|
471
|
+
'bodyText': _0x44a6f8,
|
|
472
|
+
'requestUrl': _0x2d7dec,
|
|
473
|
+
'response': _0x42b7aa
|
|
420
474
|
}));
|
|
421
475
|
}
|
|
422
476
|
}
|
|
423
|
-
function
|
|
424
|
-
const
|
|
425
|
-
if (
|
|
426
|
-
return
|
|
427
|
-
const
|
|
428
|
-
for (const [
|
|
429
|
-
|
|
477
|
+
function _0x1ed405(_0x4b713b, _0x341f5a) {
|
|
478
|
+
const _0x128c6c = _0x4403d0, _0x505f32 = typeof _0x341f5a['idempotency_key'] === _0x128c6c(_0x153730._0x463b17) ? _0x341f5a[_0x128c6c(_0x153730._0x5e9a46)][_0x128c6c(_0x153730._0x23254d)]() : '';
|
|
479
|
+
if (_0x505f32)
|
|
480
|
+
return _0x505f32;
|
|
481
|
+
const _0x392861 = Date['now']();
|
|
482
|
+
for (const [_0x328131, _0x390dbc] of _0x2ad9bb) {
|
|
483
|
+
_0x390dbc[_0x128c6c(_0x153730._0x424393)] <= _0x392861 && _0x2ad9bb['delete'](_0x328131);
|
|
430
484
|
}
|
|
431
|
-
const
|
|
432
|
-
...
|
|
485
|
+
const _0x17080a = {
|
|
486
|
+
..._0x341f5a,
|
|
433
487
|
'idempotency_key': void 0x0
|
|
434
|
-
},
|
|
435
|
-
if (
|
|
436
|
-
return
|
|
437
|
-
const
|
|
438
|
-
return
|
|
439
|
-
'expiresAt':
|
|
440
|
-
'value':
|
|
441
|
-
}),
|
|
488
|
+
}, _0x21b690 = createHash(_0x128c6c(_0x153730._0x17dfbd))[_0x128c6c(0x1cf)](_0x4b713b + ':' + stableStringify(_0x17080a))[_0x128c6c(0x270)](_0x128c6c(0x27d)), _0x38cb72 = _0x4b713b + ':' + _0x21b690, _0xe37198 = _0x2ad9bb[_0x128c6c(_0x153730._0x961526)](_0x38cb72);
|
|
489
|
+
if (_0xe37198)
|
|
490
|
+
return _0xe37198['value'];
|
|
491
|
+
const _0x14fb27 = 'auto:' + _0x4b713b + ':' + randomUUID();
|
|
492
|
+
return _0x2ad9bb[_0x128c6c(0x21d)](_0x38cb72, {
|
|
493
|
+
'expiresAt': _0x392861 + 0x5 * 0x3c * 0x3e8,
|
|
494
|
+
'value': _0x14fb27
|
|
495
|
+
}), _0x14fb27;
|
|
442
496
|
}
|
|
443
|
-
async function
|
|
444
|
-
const
|
|
497
|
+
async function _0x2f42f1(_0x388910, _0x4440a4) {
|
|
498
|
+
const _0x403a96 = _0x4403d0, _0x34d808 = new AbortController(), _0x10f06e = setTimeout(() => _0x34d808[_0x403a96(0x206)](), _0x1785a2), _0x1b410e = _0x4440a4?.['signal'] ? anySignal(_0x4440a4['signal'], _0x34d808[_0x403a96(0x1d6)]) : _0x34d808[_0x403a96(0x1d6)], _0x2c3185 = '' + _0xb724a0 + _0x388910;
|
|
445
499
|
try {
|
|
446
|
-
const
|
|
447
|
-
...
|
|
448
|
-
'signal':
|
|
449
|
-
}),
|
|
450
|
-
if (!
|
|
451
|
-
throw new Error(asErrorMessage(
|
|
452
|
-
return
|
|
500
|
+
const _0x14ded4 = await _0x96fd5d(_0x2c3185, {
|
|
501
|
+
..._0x4440a4,
|
|
502
|
+
'signal': _0x1b410e
|
|
503
|
+
}), _0x245f07 = await _0x52f5fe(_0x2c3185, _0x14ded4);
|
|
504
|
+
if (!_0x14ded4['ok'] || _0x245f07['success'] === ![])
|
|
505
|
+
throw new Error(asErrorMessage(_0x245f07[_0x403a96(_0x522317._0x45be27)], _0x403a96(0x23c) + _0x14ded4['status']));
|
|
506
|
+
return _0x245f07;
|
|
453
507
|
} finally {
|
|
454
|
-
clearTimeout(
|
|
508
|
+
clearTimeout(_0x10f06e);
|
|
455
509
|
}
|
|
456
510
|
}
|
|
457
|
-
async function
|
|
458
|
-
const
|
|
511
|
+
async function _0xdd71cc(_0xa966a7, _0x17934b) {
|
|
512
|
+
const _0x10a81a = _0x4403d0, _0x2ed743 = new AbortController(), _0x2bcdbf = setTimeout(() => _0x2ed743[_0x10a81a(0x206)](), _0x1785a2), _0xf6389c = _0x17934b?.[_0x10a81a(_0x307d2a._0x360a04)] ? anySignal(_0x17934b[_0x10a81a(_0x307d2a._0x3fbefb)], _0x2ed743['signal']) : _0x2ed743[_0x10a81a(_0x307d2a._0x3fbefb)], _0x2f9a78 = '' + _0xb724a0 + _0xa966a7;
|
|
459
513
|
try {
|
|
460
|
-
const
|
|
461
|
-
...
|
|
462
|
-
'signal':
|
|
463
|
-
}),
|
|
464
|
-
if (!
|
|
465
|
-
throw new Error(asErrorMessage(
|
|
466
|
-
return
|
|
514
|
+
const _0x53fe7f = await _0x96fd5d(_0x2f9a78, {
|
|
515
|
+
..._0x17934b,
|
|
516
|
+
'signal': _0xf6389c
|
|
517
|
+
}), _0x915570 = await _0x52f5fe(_0x2f9a78, _0x53fe7f);
|
|
518
|
+
if (!_0x53fe7f['ok'])
|
|
519
|
+
throw new Error(asErrorMessage(_0x915570[_0x10a81a(0x263)], 'HTTP\x20' + _0x53fe7f[_0x10a81a(0x1c0)]));
|
|
520
|
+
return _0x915570;
|
|
467
521
|
} finally {
|
|
468
|
-
clearTimeout(
|
|
522
|
+
clearTimeout(_0x2bcdbf);
|
|
469
523
|
}
|
|
470
524
|
}
|
|
471
|
-
async function
|
|
472
|
-
const
|
|
473
|
-
if (!
|
|
525
|
+
async function _0x4108fe(_0x553eea) {
|
|
526
|
+
const _0x2ff434 = _0x4403d0;
|
|
527
|
+
if (!_0x73b33 || _0x553eea <= _0x1d7d06)
|
|
474
528
|
return;
|
|
475
|
-
await
|
|
476
|
-
'body': JSON['stringify']({ 'lastSeenSeq':
|
|
477
|
-
'headers':
|
|
478
|
-
'method':
|
|
479
|
-
}),
|
|
529
|
+
await _0x2f42f1(_0x2ff434(_0x8ebe99._0x2537a2) + encodeURIComponent(_0x73b33) + _0x2ff434(_0x8ebe99._0x5ac886), {
|
|
530
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x553eea }),
|
|
531
|
+
'headers': _0x529f0c,
|
|
532
|
+
'method': 'PATCH'
|
|
533
|
+
}), _0x1d7d06 = _0x553eea;
|
|
480
534
|
}
|
|
481
|
-
async function
|
|
482
|
-
const
|
|
483
|
-
'body': JSON[
|
|
484
|
-
'headers':
|
|
485
|
-
'method':
|
|
535
|
+
async function _0x2de7a6(_0x2c673b) {
|
|
536
|
+
const _0x1df71c = _0x4403d0, _0xf7d405 = parseTarget(_0x2c673b), _0x24ac11 = await _0x2f42f1(_0x1df71c(_0x2788cf._0x294b84) + _0x58f74a[_0x1df71c(0x1ce)] + '/resolve-channel', {
|
|
537
|
+
'body': JSON[_0x1df71c(0x203)]({ 'target': _0xf7d405[_0x1df71c(_0x2788cf._0x11c0d2)] }),
|
|
538
|
+
'headers': _0x529f0c,
|
|
539
|
+
'method': 'POST'
|
|
486
540
|
});
|
|
487
541
|
return {
|
|
488
|
-
'channelId':
|
|
489
|
-
'target':
|
|
490
|
-
'threadId':
|
|
542
|
+
'channelId': _0x24ac11[_0x1df71c(0x229)]?.[_0x1df71c(0x294)] ?? '',
|
|
543
|
+
'target': _0xf7d405['channelTarget'],
|
|
544
|
+
'threadId': _0x24ac11['data']?.[_0x1df71c(0x1ac)]
|
|
491
545
|
};
|
|
492
546
|
}
|
|
493
|
-
async function
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
_0x12d058: 0x14c
|
|
501
|
-
}, _0x3c6412 = _0x3d3503;
|
|
502
|
-
return !_0x5c9638 && (_0x5c9638 = (async () => {
|
|
503
|
-
const _0x4639b4 = _0x3278, _0xc964f7 = await _0xf20665('/internal/agent/' + _0x15df81['agentId'] + _0x4639b4(0x131), {
|
|
504
|
-
'headers': _0x21ebb6,
|
|
505
|
-
'method': 'GET'
|
|
506
|
-
}), _0x3400c9 = _0xc964f7[_0x4639b4(_0x1b9f0c._0x490e1f)]?.[_0x4639b4(_0x1b9f0c._0x43e0ab)]['id'] ?? '';
|
|
507
|
-
let _0x35e008 = [];
|
|
547
|
+
async function _0x4c5559() {
|
|
548
|
+
return !_0x33de00 && (_0x33de00 = (async () => {
|
|
549
|
+
const _0x1302a5 = _0xaeca, _0x602e0c = await _0x2f42f1(_0x1302a5(_0x2c4ca4._0x51db5e) + _0x58f74a['agentId'] + _0x1302a5(_0x2c4ca4._0x4ee713), {
|
|
550
|
+
'headers': _0x529f0c,
|
|
551
|
+
'method': _0x1302a5(0x20a)
|
|
552
|
+
}), _0x1f4000 = _0x602e0c['data']?.[_0x1302a5(0x296)]['id'] ?? '';
|
|
553
|
+
let _0x2d6e94 = [];
|
|
508
554
|
try {
|
|
509
|
-
const
|
|
510
|
-
'headers':
|
|
511
|
-
'method':
|
|
555
|
+
const _0xb18b5a = await _0x2f42f1(_0x1302a5(_0x2c4ca4._0x166170) + encodeURIComponent(_0x1f4000), {
|
|
556
|
+
'headers': _0x529f0c,
|
|
557
|
+
'method': _0x1302a5(0x20a)
|
|
512
558
|
});
|
|
513
|
-
|
|
559
|
+
_0x2d6e94 = _0xb18b5a[_0x1302a5(_0x2c4ca4._0x22b4ec)] ?? [];
|
|
514
560
|
} catch {
|
|
515
|
-
|
|
561
|
+
_0x2d6e94 = [];
|
|
516
562
|
}
|
|
517
|
-
const
|
|
518
|
-
'id':
|
|
519
|
-
'name':
|
|
520
|
-
}))[
|
|
521
|
-
'id':
|
|
522
|
-
'name':
|
|
523
|
-
}))[
|
|
563
|
+
const _0x4c702b = _0x2d6e94[_0x1302a5(_0x2c4ca4._0xc6123b)](_0x4b37b5 => ({
|
|
564
|
+
'id': _0x4b37b5[_0x1302a5(0x21f)]?.['id'] ?? _0x4b37b5[_0x1302a5(0x2c4)]?.[_0x1302a5(0x1a6)] ?? '',
|
|
565
|
+
'name': _0x4b37b5[_0x1302a5(0x21f)]?.[_0x1302a5(0x228)] ?? _0x4b37b5[_0x1302a5(0x2c4)]?.[_0x1302a5(0x1a6)] ?? ''
|
|
566
|
+
}))['filter'](_0x15bd5b => _0x15bd5b['id']), _0x12fdfe = new Set(_0x4c702b[_0x1302a5(_0x2c4ca4._0x59adc5)](_0x2dfb58 => _0x2dfb58['id'])), _0x2260c2 = (_0x602e0c[_0x1302a5(_0x2c4ca4._0x279e96)]?.[_0x1302a5(_0x2c4ca4._0x4b19f0)] ?? [])[_0x1302a5(_0x2c4ca4._0x1d5568)](_0x12e90b => !_0x12fdfe['has'](_0xe7e545(_0x12e90b)))['map'](_0xf4d18b => ({
|
|
567
|
+
'id': _0xe7e545(_0xf4d18b),
|
|
568
|
+
'name': _0x56442e(_0xf4d18b)
|
|
569
|
+
}))[_0x1302a5(0x1d9)](_0x13161b => _0x13161b['id']);
|
|
524
570
|
return {
|
|
525
|
-
'agents':
|
|
526
|
-
'channels':
|
|
527
|
-
'humans':
|
|
528
|
-
'serverId':
|
|
529
|
-
'serverName':
|
|
571
|
+
'agents': _0x4c702b,
|
|
572
|
+
'channels': _0x602e0c[_0x1302a5(_0x2c4ca4._0x22b4ec)]?.[_0x1302a5(0x231)] ?? [],
|
|
573
|
+
'humans': _0x2260c2,
|
|
574
|
+
'serverId': _0x1f4000,
|
|
575
|
+
'serverName': _0x602e0c[_0x1302a5(_0x2c4ca4._0xf3dc19)]?.[_0x1302a5(_0x2c4ca4._0x3262b2)][_0x1302a5(_0x2c4ca4._0x39fd04)] ?? _0x1f4000
|
|
530
576
|
};
|
|
531
|
-
})()[
|
|
532
|
-
|
|
533
|
-
throw
|
|
534
|
-
})),
|
|
577
|
+
})()['catch'](_0x432536 => {
|
|
578
|
+
_0x33de00 = null;
|
|
579
|
+
throw _0x432536;
|
|
580
|
+
})), _0x33de00;
|
|
581
|
+
}
|
|
582
|
+
function _0xfeef44(_0x29a54f, _0x2ae16f) {
|
|
583
|
+
const _0x7a8045 = _0x4403d0;
|
|
584
|
+
return _0x2ae16f[_0x7a8045(0x23e)][_0x7a8045(0x23d)](_0x2d772c => _0x2d772c['id'] === _0x29a54f || _0x2d772c[_0x7a8045(0x228)] === _0x29a54f) ? _0x7a8045(0x1e8) : _0x7a8045(_0x18727f._0x43ec5c);
|
|
535
585
|
}
|
|
536
|
-
function
|
|
537
|
-
const
|
|
538
|
-
|
|
586
|
+
function _0x86ee5(_0x345b26) {
|
|
587
|
+
const _0x42c6f2 = _0x4403d0;
|
|
588
|
+
if (_0x345b26[_0x42c6f2(_0x136866._0x23ef8a)] != null)
|
|
589
|
+
return _0x345b26['channelTarget'] + ':t' + _0x345b26[_0x42c6f2(0x1bc)];
|
|
590
|
+
if (_0x345b26[_0x42c6f2(0x293)])
|
|
591
|
+
return _0x345b26['channelTarget'] + ':' + _0x345b26[_0x42c6f2(0x293)];
|
|
592
|
+
if (_0x345b26[_0x42c6f2(0x1ac)])
|
|
593
|
+
return _0x345b26[_0x42c6f2(_0x136866._0x33e270)] + ':' + _0x345b26[_0x42c6f2(0x1ac)][_0x42c6f2(_0x136866._0x2c9cb7)](0x0, 0x8);
|
|
594
|
+
return _0x345b26['channelTarget'];
|
|
595
|
+
}
|
|
596
|
+
function _0x4a54c2(_0x465751, _0x3e47de) {
|
|
597
|
+
const _0x16cc28 = _0x4403d0;
|
|
598
|
+
try {
|
|
599
|
+
const _0x41d47b = parseTarget(_0x465751);
|
|
600
|
+
if (_0x41d47b[_0x16cc28(0x1aa)] !== 'thread' || _0x41d47b[_0x16cc28(0x258)] !== _0x3e47de[_0x16cc28(0x258)])
|
|
601
|
+
return ![];
|
|
602
|
+
if (_0x3e47de[_0x16cc28(0x1bc)] != null && _0x41d47b[_0x16cc28(_0x35bba9._0x18be69)] === 't' + _0x3e47de[_0x16cc28(0x1bc)])
|
|
603
|
+
return !![];
|
|
604
|
+
if (_0x3e47de[_0x16cc28(_0x35bba9._0x189b8f)])
|
|
605
|
+
return _0x41d47b['threadShortId'] === _0x3e47de['rootMessageId'] || _0x3e47de['rootMessageId'][_0x16cc28(0x2af)](_0x41d47b[_0x16cc28(_0x35bba9._0x18be69)]);
|
|
606
|
+
if (_0x3e47de[_0x16cc28(_0x35bba9._0x7e6ebc)])
|
|
607
|
+
return _0x41d47b[_0x16cc28(0x18d)] === _0x3e47de['threadId'] || _0x3e47de[_0x16cc28(0x1ac)][_0x16cc28(_0x35bba9._0x260b5e)](_0x41d47b['threadShortId']);
|
|
608
|
+
return ![];
|
|
609
|
+
} catch {
|
|
610
|
+
return ![];
|
|
611
|
+
}
|
|
539
612
|
}
|
|
540
|
-
function
|
|
541
|
-
const
|
|
542
|
-
return
|
|
613
|
+
function _0xe7e545(_0x4b1165) {
|
|
614
|
+
const _0x566bd8 = _0x4403d0;
|
|
615
|
+
return _0x4b1165['member']?.['participantId'] ?? _0x4b1165[_0x566bd8(0x197)]?.['id'] ?? _0x4b1165[_0x566bd8(0x1a6)] ?? '';
|
|
543
616
|
}
|
|
544
|
-
function
|
|
545
|
-
const
|
|
546
|
-
return
|
|
617
|
+
function _0x56442e(_0x26cacf) {
|
|
618
|
+
const _0x317eee = _0x4403d0;
|
|
619
|
+
return _0x26cacf[_0x317eee(_0x362512._0x545348)]?.['name'] ?? _0xe7e545(_0x26cacf);
|
|
547
620
|
}
|
|
548
|
-
async function
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
const
|
|
555
|
-
'headers':
|
|
556
|
-
'method':
|
|
557
|
-
}),
|
|
558
|
-
'attachments': (
|
|
559
|
-
'filename':
|
|
560
|
-
'id':
|
|
621
|
+
async function _0x4a8bb3(_0x468d00) {
|
|
622
|
+
const _0x255163 = _0x4403d0, _0xeff874 = Math[_0x255163(0x282)](_0x468d00['limit'] ?? 0x32, 0x64), _0x45d8ef = await _0x4c5559(), _0x31337e = new URLSearchParams();
|
|
623
|
+
_0x31337e['set'](_0x255163(0x2b7), String(_0xeff874));
|
|
624
|
+
_0x468d00[_0x255163(0x1ac)] ? (_0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x408cef), _0x468d00['threadId']), _0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x122b1a), _0x468d00[_0x255163(_0x4f85a3._0x122b1a)])) : _0x31337e[_0x255163(0x21d)](_0x255163(_0x4f85a3._0x122b1a), _0x468d00['channelId']);
|
|
625
|
+
_0x468d00['before'] && _0x31337e[_0x255163(_0x4f85a3._0x38ad31)](_0x255163(_0x4f85a3._0xf7a33b), String(_0x468d00[_0x255163(0x286)]));
|
|
626
|
+
_0x468d00['after'] !== void 0x0 && _0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x56c9e6), String(_0x468d00[_0x255163(0x1fb)]));
|
|
627
|
+
const _0x4c2cd2 = await _0x2f42f1('/internal/agent/' + _0x58f74a['agentId'] + '/history?' + _0x31337e[_0x255163(_0x4f85a3._0x5e62be)](), {
|
|
628
|
+
'headers': _0x529f0c,
|
|
629
|
+
'method': _0x255163(_0x4f85a3._0x139529)
|
|
630
|
+
}), _0x3b52de = (_0x4c2cd2[_0x255163(0x229)] ?? [])[_0x255163(_0x4f85a3._0x46971e)](_0xe96b33 => ({
|
|
631
|
+
'attachments': (_0xe96b33[_0x255163(0x15a)] ?? [])[_0x255163(0x243)](_0x580f85 => ({
|
|
632
|
+
'filename': _0x580f85[_0x255163(0x25c)] ?? _0x580f85['id'],
|
|
633
|
+
'id': _0x580f85['id']
|
|
561
634
|
})),
|
|
562
|
-
'content':
|
|
563
|
-
'createdAt':
|
|
564
|
-
'messageId':
|
|
565
|
-
'senderName':
|
|
566
|
-
'senderType':
|
|
567
|
-
'seq':
|
|
635
|
+
'content': _0xe96b33[_0x255163(0x28d)] ?? '',
|
|
636
|
+
'createdAt': _0xe96b33['createdAt'],
|
|
637
|
+
'messageId': _0xe96b33['id'],
|
|
638
|
+
'senderName': _0xe96b33[_0x255163(0x1fd)],
|
|
639
|
+
'senderType': _0xfeef44(_0xe96b33['senderParticipantId'], _0x45d8ef),
|
|
640
|
+
'seq': _0xe96b33['eventSeq'] ?? 0x0
|
|
568
641
|
}));
|
|
569
642
|
return {
|
|
570
|
-
'channel':
|
|
571
|
-
'hasMore':
|
|
572
|
-
'messages':
|
|
573
|
-
'nextCursor':
|
|
643
|
+
'channel': _0x468d00[_0x255163(0x258)],
|
|
644
|
+
'hasMore': _0x4c2cd2[_0x255163(_0x4f85a3._0x219071)]?.[_0x255163(0x204)] ?? ![],
|
|
645
|
+
'messages': _0x3b52de,
|
|
646
|
+
'nextCursor': _0x4c2cd2[_0x255163(_0x4f85a3._0x3ba3ea)]?.[_0x255163(_0x4f85a3._0xf7a33b)]
|
|
574
647
|
};
|
|
575
648
|
}
|
|
576
649
|
return {
|
|
577
|
-
async 'sendMessage'(
|
|
578
|
-
const
|
|
579
|
-
'body': JSON[
|
|
580
|
-
'attachment_ids':
|
|
581
|
-
'bodyMarkdown':
|
|
582
|
-
'channelId':
|
|
583
|
-
...
|
|
584
|
-
'threadId':
|
|
650
|
+
async 'sendMessage'(_0xeed77) {
|
|
651
|
+
const _0x21f04c = _0x4403d0, _0x31c8ad = await _0x2de7a6(_0xeed77[_0x21f04c(_0x58f306._0x287272)]), _0x1e3f86 = _0xeed77[_0x21f04c(_0x58f306._0x3bdb3c)][_0x21f04c(_0x58f306._0x46d39c)]('@') ? extractMentionedParticipantIds(_0xeed77[_0x21f04c(0x2b5)], await _0x4c5559()) : [], _0x3ff680 = await _0x2f42f1(_0x21f04c(_0x58f306._0x18c597) + _0x58f74a[_0x21f04c(0x1ce)] + '/send', {
|
|
652
|
+
'body': JSON[_0x21f04c(_0x58f306._0x2b8fec)]({
|
|
653
|
+
'attachment_ids': _0xeed77[_0x21f04c(0x29f)],
|
|
654
|
+
'bodyMarkdown': _0xeed77[_0x21f04c(_0x58f306._0x1a2d90)],
|
|
655
|
+
'channelId': _0x31c8ad[_0x21f04c(0x294)],
|
|
656
|
+
..._0x1e3f86[_0x21f04c(_0x58f306._0x49f776)] > 0x0 ? { 'mentionedParticipantIds': _0x1e3f86 } : {},
|
|
657
|
+
'threadId': _0x31c8ad[_0x21f04c(0x1ac)]
|
|
585
658
|
}),
|
|
586
|
-
'headers':
|
|
587
|
-
'method':
|
|
659
|
+
'headers': _0x529f0c,
|
|
660
|
+
'method': _0x21f04c(_0x58f306._0x59c457)
|
|
588
661
|
});
|
|
589
|
-
return { 'messageId':
|
|
662
|
+
return { 'messageId': _0x3ff680['data']?.['id'] ?? '' };
|
|
590
663
|
},
|
|
591
664
|
async 'listSchedules'() {
|
|
592
|
-
const
|
|
593
|
-
'headers':
|
|
594
|
-
'method':
|
|
665
|
+
const _0x44e0ca = _0x4403d0, _0x1b4401 = await _0x2f42f1(_0x44e0ca(_0x18e6db._0x2f0ea2), {
|
|
666
|
+
'headers': _0x529f0c,
|
|
667
|
+
'method': _0x44e0ca(0x20a)
|
|
595
668
|
});
|
|
596
|
-
return
|
|
669
|
+
return _0x1b4401[_0x44e0ca(_0x18e6db._0x207485)] ?? [];
|
|
597
670
|
},
|
|
598
|
-
async 'claimScheduleRun'(
|
|
599
|
-
const
|
|
600
|
-
'body': JSON['stringify'](
|
|
601
|
-
'headers':
|
|
602
|
-
'method':
|
|
671
|
+
async 'claimScheduleRun'(_0xd8b4f0) {
|
|
672
|
+
const _0x2ba834 = _0x4403d0, _0x3928f5 = await _0x2f42f1(_0x2ba834(_0x428f84._0x4913e7), {
|
|
673
|
+
'body': JSON['stringify'](_0xd8b4f0),
|
|
674
|
+
'headers': _0x529f0c,
|
|
675
|
+
'method': 'POST'
|
|
603
676
|
});
|
|
604
|
-
return
|
|
677
|
+
return _0x3928f5[_0x2ba834(0x229)] ?? {
|
|
605
678
|
'granted': ![],
|
|
606
679
|
'runId': null,
|
|
607
680
|
'schedule': null,
|
|
608
|
-
'scheduledFor':
|
|
681
|
+
'scheduledFor': _0xd8b4f0[_0x2ba834(_0x428f84._0x527c61)]
|
|
609
682
|
};
|
|
610
683
|
},
|
|
611
|
-
async 'startScheduleRun'(
|
|
612
|
-
const
|
|
613
|
-
'body': JSON[
|
|
614
|
-
'headers':
|
|
615
|
-
'method':
|
|
684
|
+
async 'startScheduleRun'(_0xfa03a9) {
|
|
685
|
+
const _0x4e86dd = _0x4403d0, _0x263c9e = await _0x2f42f1(_0x4e86dd(_0x726f5f._0x5b58cc) + encodeURIComponent(_0xfa03a9[_0x4e86dd(0x29d)]) + _0x4e86dd(_0x726f5f._0x4ed5d8), {
|
|
686
|
+
'body': JSON[_0x4e86dd(0x203)]({}),
|
|
687
|
+
'headers': _0x529f0c,
|
|
688
|
+
'method': _0x4e86dd(_0x726f5f._0x402775)
|
|
616
689
|
});
|
|
617
|
-
return
|
|
690
|
+
return _0x263c9e[_0x4e86dd(0x229)] ?? {
|
|
618
691
|
'claimedByDaemonId': '',
|
|
619
|
-
'id':
|
|
692
|
+
'id': _0xfa03a9['runId'],
|
|
620
693
|
'scheduleId': '',
|
|
621
|
-
'status':
|
|
694
|
+
'status': 'running'
|
|
622
695
|
};
|
|
623
696
|
},
|
|
624
|
-
async 'finishScheduleRun'(
|
|
625
|
-
const
|
|
626
|
-
'body': JSON[
|
|
627
|
-
'error':
|
|
628
|
-
'resultJson':
|
|
629
|
-
'status':
|
|
697
|
+
async 'finishScheduleRun'(_0x40f712) {
|
|
698
|
+
const _0x264a62 = _0x4403d0, _0x201d20 = await _0x2f42f1(_0x264a62(0x183) + encodeURIComponent(_0x40f712['runId']) + _0x264a62(_0x22f4c4._0x9a4e10), {
|
|
699
|
+
'body': JSON[_0x264a62(0x203)]({
|
|
700
|
+
'error': _0x40f712[_0x264a62(_0x22f4c4._0x95b5bc)],
|
|
701
|
+
'resultJson': _0x40f712[_0x264a62(_0x22f4c4._0x505049)],
|
|
702
|
+
'status': _0x40f712[_0x264a62(_0x22f4c4._0x2bf9c6)]
|
|
630
703
|
}),
|
|
631
|
-
'headers':
|
|
632
|
-
'method':
|
|
704
|
+
'headers': _0x529f0c,
|
|
705
|
+
'method': 'POST'
|
|
633
706
|
});
|
|
634
|
-
return
|
|
707
|
+
return _0x201d20['data'] ?? {
|
|
635
708
|
'nextRunAt': null,
|
|
636
709
|
'run': {
|
|
637
710
|
'claimedByDaemonId': '',
|
|
638
|
-
'id':
|
|
711
|
+
'id': _0x40f712[_0x264a62(0x29d)],
|
|
639
712
|
'scheduleId': '',
|
|
640
|
-
'status':
|
|
713
|
+
'status': _0x40f712['status']
|
|
641
714
|
}
|
|
642
715
|
};
|
|
643
716
|
},
|
|
644
|
-
async 'listTasks'(
|
|
645
|
-
const
|
|
646
|
-
return
|
|
647
|
-
'headers':
|
|
648
|
-
'method':
|
|
717
|
+
async 'listTasks'(_0xd5e6ee) {
|
|
718
|
+
const _0xe76bb = _0x4403d0, _0x112c01 = new URLSearchParams();
|
|
719
|
+
return _0x112c01['set']('channel', _0xd5e6ee['channel']), _0xd5e6ee[_0xe76bb(_0x26df12._0x5969db)] && _0x112c01[_0xe76bb(_0x26df12._0x2c0a25)](_0xe76bb(_0x26df12._0x5969db), _0xd5e6ee[_0xe76bb(_0x26df12._0x24059a)]), _0xdd71cc(_0xe76bb(0x179) + _0x58f74a[_0xe76bb(0x1ce)] + _0xe76bb(0x28a) + _0x112c01[_0xe76bb(0x173)](), {
|
|
720
|
+
'headers': _0x529f0c,
|
|
721
|
+
'method': 'GET'
|
|
649
722
|
});
|
|
650
723
|
},
|
|
651
|
-
async 'createTasks'(
|
|
652
|
-
const
|
|
653
|
-
return
|
|
654
|
-
'body': JSON[
|
|
655
|
-
...
|
|
656
|
-
'idempotency_key':
|
|
724
|
+
async 'createTasks'(_0x4ff2ba) {
|
|
725
|
+
const _0x5627f7 = _0x4403d0;
|
|
726
|
+
return _0xdd71cc(_0x5627f7(0x179) + _0x58f74a[_0x5627f7(0x1ce)] + '/tasks', {
|
|
727
|
+
'body': JSON[_0x5627f7(_0x203839._0x5d1bf4)]({
|
|
728
|
+
..._0x4ff2ba,
|
|
729
|
+
'idempotency_key': _0x1ed405(_0x5627f7(_0x203839._0x1085bd), _0x4ff2ba)
|
|
657
730
|
}),
|
|
658
|
-
'headers':
|
|
659
|
-
'method':
|
|
731
|
+
'headers': _0x529f0c,
|
|
732
|
+
'method': _0x5627f7(_0x203839._0x4030c2)
|
|
660
733
|
});
|
|
661
734
|
},
|
|
662
|
-
async 'claimTasks'(
|
|
663
|
-
const
|
|
664
|
-
return
|
|
665
|
-
'body': JSON[
|
|
666
|
-
...
|
|
667
|
-
'idempotency_key':
|
|
735
|
+
async 'claimTasks'(_0x554b7b) {
|
|
736
|
+
const _0x3d4570 = _0x4403d0;
|
|
737
|
+
return _0xdd71cc(_0x3d4570(0x179) + _0x58f74a[_0x3d4570(0x1ce)] + _0x3d4570(_0x4bf035._0x207b60), {
|
|
738
|
+
'body': JSON[_0x3d4570(_0x4bf035._0x3eb81e)]({
|
|
739
|
+
..._0x554b7b,
|
|
740
|
+
'idempotency_key': _0x1ed405(_0x3d4570(0x166), _0x554b7b)
|
|
668
741
|
}),
|
|
669
|
-
'headers':
|
|
670
|
-
'method':
|
|
742
|
+
'headers': _0x529f0c,
|
|
743
|
+
'method': _0x3d4570(_0x4bf035._0x1fc250)
|
|
671
744
|
});
|
|
672
745
|
},
|
|
673
|
-
async 'unclaimTask'(
|
|
674
|
-
const
|
|
675
|
-
return
|
|
676
|
-
'body': JSON[
|
|
677
|
-
...
|
|
678
|
-
'idempotency_key':
|
|
746
|
+
async 'unclaimTask'(_0x2ce56d) {
|
|
747
|
+
const _0x4b2326 = _0x4403d0;
|
|
748
|
+
return _0xdd71cc('/internal/agent/' + _0x58f74a['agentId'] + '/tasks/unclaim', {
|
|
749
|
+
'body': JSON[_0x4b2326(0x203)]({
|
|
750
|
+
..._0x2ce56d,
|
|
751
|
+
'idempotency_key': _0x1ed405(_0x4b2326(0x2bd), _0x2ce56d)
|
|
679
752
|
}),
|
|
680
|
-
'headers':
|
|
681
|
-
'method':
|
|
753
|
+
'headers': _0x529f0c,
|
|
754
|
+
'method': _0x4b2326(_0x1d729d._0x3324c1)
|
|
682
755
|
});
|
|
683
756
|
},
|
|
684
|
-
async 'updateTaskStatus'(
|
|
685
|
-
const
|
|
686
|
-
return
|
|
687
|
-
'body': JSON[
|
|
688
|
-
...
|
|
689
|
-
'idempotency_key':
|
|
757
|
+
async 'updateTaskStatus'(_0x4bf836) {
|
|
758
|
+
const _0x3cac92 = _0x4403d0;
|
|
759
|
+
return _0xdd71cc(_0x3cac92(_0x5164c6._0x2eb1fc) + _0x58f74a[_0x3cac92(_0x5164c6._0x11c292)] + '/tasks/update-status', {
|
|
760
|
+
'body': JSON[_0x3cac92(_0x5164c6._0x2cf270)]({
|
|
761
|
+
..._0x4bf836,
|
|
762
|
+
'idempotency_key': _0x1ed405(_0x3cac92(_0x5164c6._0xadb360), _0x4bf836)
|
|
690
763
|
}),
|
|
691
|
-
'headers':
|
|
692
|
-
'method':
|
|
764
|
+
'headers': _0x529f0c,
|
|
765
|
+
'method': _0x3cac92(0x2a0)
|
|
693
766
|
});
|
|
694
767
|
},
|
|
695
|
-
async 'uploadFile'(
|
|
696
|
-
const
|
|
697
|
-
if (
|
|
698
|
-
throw new Error(
|
|
699
|
-
const
|
|
700
|
-
'body': JSON[
|
|
701
|
-
'channel':
|
|
702
|
-
'contentBase64':
|
|
703
|
-
'contentType':
|
|
704
|
-
'originalFilename':
|
|
768
|
+
async 'uploadFile'(_0x438191) {
|
|
769
|
+
const _0x34f0f6 = _0x4403d0, _0x525ae1 = await _0x2de7a6(_0x438191[_0x34f0f6(_0x275824._0x3ef129)]);
|
|
770
|
+
if (_0x525ae1[_0x34f0f6(0x1ac)])
|
|
771
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
772
|
+
const _0x5ffbca = await _0x2f42f1('/internal/agent/' + _0x58f74a['agentId'] + _0x34f0f6(0x237), {
|
|
773
|
+
'body': JSON[_0x34f0f6(0x203)]({
|
|
774
|
+
'channel': _0x525ae1['target'],
|
|
775
|
+
'contentBase64': _0x438191[_0x34f0f6(_0x275824._0x1df1af)],
|
|
776
|
+
'contentType': _0x438191[_0x34f0f6(0x165)],
|
|
777
|
+
'originalFilename': _0x438191[_0x34f0f6(_0x275824._0x2f970d)]
|
|
705
778
|
}),
|
|
706
|
-
'headers':
|
|
707
|
-
'method':
|
|
779
|
+
'headers': _0x529f0c,
|
|
780
|
+
'method': _0x34f0f6(0x2a0)
|
|
708
781
|
});
|
|
709
782
|
return {
|
|
710
|
-
'attachmentId':
|
|
711
|
-
'filename':
|
|
712
|
-
'sizeBytes':
|
|
783
|
+
'attachmentId': _0x5ffbca[_0x34f0f6(0x229)]?.['id'] ?? '',
|
|
784
|
+
'filename': _0x5ffbca[_0x34f0f6(0x229)]?.['originalFilename'] ?? _0x438191[_0x34f0f6(0x25c)],
|
|
785
|
+
'sizeBytes': _0x5ffbca['data']?.[_0x34f0f6(_0x275824._0x23e6eb)] ?? 0x0
|
|
713
786
|
};
|
|
714
787
|
},
|
|
715
|
-
async 'downloadAttachment'(
|
|
716
|
-
const
|
|
717
|
-
'headers':
|
|
788
|
+
async 'downloadAttachment'(_0x369bb1) {
|
|
789
|
+
const _0x5558b8 = _0x4403d0, _0x2bb11c = await _0x2f42f1('/api/attachments/' + _0x369bb1, {
|
|
790
|
+
'headers': _0x529f0c,
|
|
718
791
|
'method': 'GET'
|
|
719
|
-
}),
|
|
792
|
+
}), _0x108e51 = new AbortController(), _0x4ff8a6 = setTimeout(() => _0x108e51[_0x5558b8(0x206)](), _0x1785a2);
|
|
720
793
|
try {
|
|
721
|
-
const
|
|
722
|
-
'headers':
|
|
723
|
-
'method':
|
|
724
|
-
'signal':
|
|
794
|
+
const _0x301054 = await _0x96fd5d(_0xb724a0 + '/api/attachments/' + _0x369bb1 + _0x5558b8(0x1d3), {
|
|
795
|
+
'headers': _0x529f0c,
|
|
796
|
+
'method': _0x5558b8(0x20a),
|
|
797
|
+
'signal': _0x108e51[_0x5558b8(_0x55ce3c._0x5e5b35)]
|
|
725
798
|
});
|
|
726
|
-
if (!
|
|
727
|
-
throw new Error(
|
|
799
|
+
if (!_0x301054['ok'])
|
|
800
|
+
throw new Error(_0x5558b8(_0x55ce3c._0x589e3a) + _0x301054[_0x5558b8(0x1c0)]);
|
|
728
801
|
return {
|
|
729
|
-
'contentType':
|
|
730
|
-
'data': Buffer[
|
|
731
|
-
'originalFilename':
|
|
802
|
+
'contentType': _0x2bb11c['data']?.[_0x5558b8(_0x55ce3c._0x20f358)] ?? _0x301054[_0x5558b8(_0x55ce3c._0x4f6993)]['get']('content-type') ?? 'application/octet-stream',
|
|
803
|
+
'data': Buffer[_0x5558b8(0x1c3)](await _0x301054['arrayBuffer']()),
|
|
804
|
+
'originalFilename': _0x2bb11c['data']?.[_0x5558b8(0x1ad)]
|
|
732
805
|
};
|
|
733
806
|
} finally {
|
|
734
|
-
clearTimeout(
|
|
807
|
+
clearTimeout(_0x4ff8a6);
|
|
735
808
|
}
|
|
736
809
|
},
|
|
737
810
|
async 'listServer'() {
|
|
738
|
-
return
|
|
811
|
+
return _0x4c5559();
|
|
739
812
|
},
|
|
740
|
-
async 'readHistory'(
|
|
741
|
-
const
|
|
742
|
-
return
|
|
743
|
-
'after':
|
|
744
|
-
'before':
|
|
745
|
-
'channelId':
|
|
746
|
-
'channelTarget':
|
|
747
|
-
'limit':
|
|
748
|
-
'threadId':
|
|
813
|
+
async 'readHistory'(_0x2fd275) {
|
|
814
|
+
const _0x173a65 = _0x4403d0, _0x31a8f5 = await _0x2de7a6(_0x2fd275[_0x173a65(_0x1a7f0b._0x44b3f4)]);
|
|
815
|
+
return _0x4a8bb3({
|
|
816
|
+
'after': _0x2fd275[_0x173a65(0x1fb)],
|
|
817
|
+
'before': _0x2fd275[_0x173a65(_0x1a7f0b._0x309fbc)],
|
|
818
|
+
'channelId': _0x31a8f5[_0x173a65(_0x1a7f0b._0x581fa6)],
|
|
819
|
+
'channelTarget': _0x31a8f5['target'],
|
|
820
|
+
'limit': _0x2fd275[_0x173a65(_0x1a7f0b._0x2621aa)],
|
|
821
|
+
'threadId': _0x31a8f5[_0x173a65(_0x1a7f0b._0x26de95)]
|
|
749
822
|
});
|
|
750
823
|
},
|
|
751
824
|
async 'checkMessages'() {
|
|
752
|
-
const
|
|
753
|
-
|
|
754
|
-
const
|
|
755
|
-
'headers':
|
|
756
|
-
'method':
|
|
757
|
-
}),
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
])),
|
|
761
|
-
for (const
|
|
762
|
-
const
|
|
763
|
-
if (!
|
|
825
|
+
const _0x2fbecb = _0x4403d0, _0xe99583 = new URLSearchParams();
|
|
826
|
+
_0xe99583[_0x2fbecb(0x21d)](_0x2fbecb(0x284), String(_0x5ee29d));
|
|
827
|
+
const _0x56ce68 = _0xe99583[_0x2fbecb(0x173)](), _0x5524e2 = await _0x2f42f1(_0x2fbecb(_0x1c7d90._0x22a04d) + _0x58f74a[_0x2fbecb(_0x1c7d90._0x1e5c31)] + _0x2fbecb(_0x1c7d90._0xda23c1) + (_0x56ce68 ? '?' + _0x56ce68 : ''), {
|
|
828
|
+
'headers': _0x529f0c,
|
|
829
|
+
'method': 'GET'
|
|
830
|
+
}), _0x14383a = _0x5524e2[_0x2fbecb(_0x1c7d90._0x381049)] ?? [], _0x4ab14d = _0x5524e2[_0x2fbecb(0x1d2)]?.[_0x2fbecb(0x20b)], _0x2c9f15 = _0x4ab14d !== void 0x0 ? Math[_0x2fbecb(0x185)](_0x5ee29d, _0x4ab14d) : _0x14383a['length'] > 0x0 ? Math[_0x2fbecb(0x185)](_0x5ee29d, _0x14383a[_0x14383a[_0x2fbecb(0x1e3)] - 0x1][_0x2fbecb(0x1fa)]) : _0x5ee29d, _0x2cca88 = await _0x4c5559(), _0x125b2c = new Map(_0x2cca88[_0x2fbecb(0x231)][_0x2fbecb(0x243)](_0x4c8926 => [
|
|
831
|
+
_0x4c8926['id'],
|
|
832
|
+
_0x4c8926
|
|
833
|
+
])), _0x44f94b = _0x14383a['filter'](_0x59b395 => _0x59b395[_0x2fbecb(0x196)] === _0x2fbecb(0x256)), _0x3f3688 = new Map();
|
|
834
|
+
for (const _0x27222a of _0x44f94b) {
|
|
835
|
+
const _0x114909 = asRecord(_0x27222a[_0x2fbecb(_0x1c7d90._0x2baff7)]), _0x3453f6 = typeof _0x114909[_0x2fbecb(_0x1c7d90._0x38afca)] === _0x2fbecb(0x291) ? _0x114909['channelId'] : '';
|
|
836
|
+
if (!_0x3453f6)
|
|
764
837
|
continue;
|
|
765
|
-
const
|
|
838
|
+
const _0x4a1fd8 = typeof _0x114909[_0x2fbecb(0x1ac)] === 'string' ? _0x114909[_0x2fbecb(_0x1c7d90._0x4b0698)] : void 0x0, _0x2be9d3 = typeof _0x114909[_0x2fbecb(0x293)] === _0x2fbecb(_0x1c7d90._0x302280) ? _0x114909[_0x2fbecb(0x293)] : void 0x0, _0xebf534 = typeof _0x114909[_0x2fbecb(_0x1c7d90._0x5c3133)] === _0x2fbecb(_0x1c7d90._0x4d8357) && Number[_0x2fbecb(0x2a6)](_0x114909[_0x2fbecb(_0x1c7d90._0x5c3133)]) ? _0x114909[_0x2fbecb(0x1bc)] : void 0x0, _0x4add42 = Boolean(_0x4a1fd8 && (!_0x2be9d3 || _0x27222a['aggregateId'] !== _0x2be9d3)), _0x39de24 = _0x4add42 ? _0x3453f6 + ':' + _0x4a1fd8 : _0x3453f6, _0x3c66f5 = _0x3f3688[_0x2fbecb(0x268)](_0x39de24) ?? {
|
|
766
839
|
'aggregateIds': [],
|
|
767
|
-
'channelId':
|
|
840
|
+
'channelId': _0x3453f6,
|
|
768
841
|
'entries': new Map(),
|
|
769
|
-
'isThreadReply':
|
|
770
|
-
'rootMessageId':
|
|
771
|
-
'
|
|
842
|
+
'isThreadReply': _0x4add42,
|
|
843
|
+
'rootMessageId': _0x2be9d3,
|
|
844
|
+
'threadNumber': _0xebf534,
|
|
845
|
+
'threadId': _0x4add42 ? _0x4a1fd8 : void 0x0
|
|
772
846
|
};
|
|
773
|
-
|
|
774
|
-
'payloadJson':
|
|
775
|
-
'seq':
|
|
776
|
-
}),
|
|
847
|
+
_0x3c66f5[_0x2fbecb(_0x1c7d90._0x2405e4)] == null && _0xebf534 != null && (_0x3c66f5[_0x2fbecb(_0x1c7d90._0x2405e4)] = _0xebf534), !_0x3c66f5[_0x2fbecb(_0x1c7d90._0x3e062a)] && _0x2be9d3 && (_0x3c66f5[_0x2fbecb(_0x1c7d90._0x194972)] = _0x2be9d3), _0x3c66f5[_0x2fbecb(_0x1c7d90._0x30404c)][_0x2fbecb(0x209)](_0x27222a[_0x2fbecb(0x19d)]), _0x3c66f5[_0x2fbecb(0x1ba)]['set'](_0x27222a[_0x2fbecb(0x19d)], {
|
|
848
|
+
'payloadJson': _0x27222a[_0x2fbecb(0x1a3)],
|
|
849
|
+
'seq': _0x27222a[_0x2fbecb(_0x1c7d90._0x29f60b)]
|
|
850
|
+
}), _0x3f3688[_0x2fbecb(0x21d)](_0x39de24, _0x3c66f5);
|
|
777
851
|
}
|
|
778
|
-
const
|
|
779
|
-
for (const
|
|
852
|
+
const _0x1eaaa8 = [];
|
|
853
|
+
for (const _0x269be1 of _0x3f3688[_0x2fbecb(_0x1c7d90._0x36b08c)]()) {
|
|
780
854
|
const {
|
|
781
|
-
channelId:
|
|
782
|
-
threadId:
|
|
783
|
-
rootMessageId:
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
'channelTarget':
|
|
790
|
-
'
|
|
791
|
-
'threadId':
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
855
|
+
channelId: _0x546a4e,
|
|
856
|
+
threadId: _0x579065,
|
|
857
|
+
rootMessageId: _0x1b738f,
|
|
858
|
+
threadNumber: _0x1edaea,
|
|
859
|
+
aggregateIds: _0x4c45cf,
|
|
860
|
+
isThreadReply: _0x2942ec,
|
|
861
|
+
entries: _0x3d7e3c
|
|
862
|
+
} = _0x269be1, _0x4926ed = _0x125b2c[_0x2fbecb(0x268)](_0x546a4e), _0x55d225 = _0x4926ed?.[_0x2fbecb(0x228)] ?? _0x546a4e, _0x2a64b5 = _0x4926ed?.[_0x2fbecb(0x1aa)] === 'dm' ? _0x2fbecb(0x18b) + _0x55d225 : '#' + _0x55d225, _0x10a5c4 = {
|
|
863
|
+
'channelTarget': _0x2a64b5,
|
|
864
|
+
'rootMessageId': _0x1b738f,
|
|
865
|
+
'threadId': _0x579065,
|
|
866
|
+
'threadNumber': _0x1edaea
|
|
867
|
+
}, _0x10210e = await _0x4a8bb3({
|
|
868
|
+
'channelId': _0x546a4e,
|
|
869
|
+
'channelTarget': _0x2a64b5,
|
|
870
|
+
'limit': Math[_0x2fbecb(0x185)](_0x4c45cf[_0x2fbecb(_0x1c7d90._0x2b8279)], 0x32),
|
|
871
|
+
'threadId': _0x579065
|
|
872
|
+
}), _0x3f95c2 = new Map(_0x10210e['messages'][_0x2fbecb(_0x1c7d90._0x3aeab6)](_0xf7f0a0 => [
|
|
873
|
+
_0xf7f0a0[_0x2fbecb(0x160)],
|
|
874
|
+
_0xf7f0a0
|
|
875
|
+
])), _0x10eded = _0x579065 ? _0x86ee5(_0x10a5c4) : _0x2a64b5, _0x1e3634 = _0x4570c9 ? _0x2942ec && _0x4a54c2(_0x4570c9, _0x10a5c4) : !![], _0x4689d8 = _0x2942ec ? _0x1e3634 && _0x4570c9 ? _0x4570c9 : _0x10eded : _0x2a64b5;
|
|
876
|
+
for (const _0x2184db of _0x4c45cf) {
|
|
877
|
+
if (!_0x1e3634)
|
|
878
|
+
continue;
|
|
879
|
+
const _0x1599c3 = _0x3f95c2[_0x2fbecb(0x268)](_0x2184db);
|
|
880
|
+
if (_0x1599c3) {
|
|
881
|
+
_0x1eaaa8[_0x2fbecb(0x209)]({
|
|
882
|
+
'attachments': _0x1599c3[_0x2fbecb(_0x1c7d90._0x1228f7)],
|
|
883
|
+
'content': _0x1599c3[_0x2fbecb(_0x1c7d90._0x1178cd)],
|
|
884
|
+
'createdAt': _0x1599c3[_0x2fbecb(_0x1c7d90._0x47cf60)],
|
|
885
|
+
'messageId': _0x1599c3[_0x2fbecb(_0x1c7d90._0x42151a)],
|
|
886
|
+
'senderName': _0x1599c3[_0x2fbecb(0x15c)],
|
|
887
|
+
'senderType': _0x1599c3[_0x2fbecb(0x28c)],
|
|
888
|
+
'target': _0x4689d8
|
|
807
889
|
});
|
|
808
890
|
continue;
|
|
809
891
|
}
|
|
810
|
-
const
|
|
811
|
-
if (
|
|
812
|
-
const
|
|
813
|
-
|
|
892
|
+
const _0x220569 = _0x3d7e3c[_0x2fbecb(_0x1c7d90._0x79ddba)](_0x2184db);
|
|
893
|
+
if (_0x220569) {
|
|
894
|
+
const _0x823c7 = asRecord(_0x220569[_0x2fbecb(_0x1c7d90._0x2baff7)]), _0x33ced0 = typeof _0x823c7[_0x2fbecb(_0x1c7d90._0x27649e)] === _0x2fbecb(0x291) ? _0x823c7[_0x2fbecb(0x1fd)] : '', _0x24cff2 = typeof _0x823c7[_0x2fbecb(0x28d)] === _0x2fbecb(0x291) ? _0x823c7[_0x2fbecb(0x28d)] : '';
|
|
895
|
+
_0x33ced0 && _0x24cff2 && _0x1eaaa8[_0x2fbecb(0x209)]({
|
|
814
896
|
'attachments': [],
|
|
815
|
-
'content':
|
|
816
|
-
'createdAt': new Date()[
|
|
817
|
-
'messageId':
|
|
818
|
-
'senderName':
|
|
819
|
-
'senderType':
|
|
820
|
-
'target':
|
|
897
|
+
'content': _0x24cff2,
|
|
898
|
+
'createdAt': new Date()[_0x2fbecb(0x1a9)](),
|
|
899
|
+
'messageId': _0x2184db,
|
|
900
|
+
'senderName': _0x33ced0,
|
|
901
|
+
'senderType': _0xfeef44(_0x33ced0, _0x2cca88),
|
|
902
|
+
'target': _0x4689d8
|
|
821
903
|
});
|
|
822
904
|
}
|
|
823
905
|
}
|
|
824
906
|
}
|
|
825
|
-
|
|
826
|
-
return _0x2e76d1 > 0x0 && await _0x50843e(_0x2e76d1), _0x2e76d1 > _0x37ead6 && (_0x37ead6 = _0x2e76d1), { 'messages': _0x311ace };
|
|
907
|
+
return _0x2c9f15 > 0x0 && await _0x4108fe(_0x2c9f15), _0x2c9f15 > _0x5ee29d && (_0x5ee29d = _0x2c9f15), { 'messages': _0x1eaaa8 };
|
|
827
908
|
}
|
|
828
909
|
};
|
|
829
910
|
}
|
|
830
|
-
function
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
}
|
|
841
|
-
for (let _0x3bd2af = 0x0, _0x147084 = _0x3efa53['length']; _0x3bd2af < _0x147084; _0x3bd2af++) {
|
|
842
|
-
_0x49b2f1 += '%' + ('00' + _0x3efa53['charCodeAt'](_0x3bd2af)['toString'](0x10))['slice'](-0x2);
|
|
843
|
-
}
|
|
844
|
-
return decodeURIComponent(_0x49b2f1);
|
|
845
|
-
};
|
|
846
|
-
_0x3278['pRNwai'] = _0x78613b, _0x3278['DSoIRU'] = {}, _0x3278['YKGyec'] = !![];
|
|
847
|
-
}
|
|
848
|
-
const _0xb70ff8 = _0x5c8c72[0x0], _0x492663 = _0x43a1c4 + _0xb70ff8, _0x398275 = _0x3278['DSoIRU'][_0x492663];
|
|
849
|
-
return !_0x398275 ? (_0x3278ac = _0x3278['pRNwai'](_0x3278ac), _0x3278['DSoIRU'][_0x492663] = _0x3278ac) : _0x3278ac = _0x398275, _0x3278ac;
|
|
850
|
-
}
|
|
851
|
-
function toLocalTime(_0x5c5e9f) {
|
|
852
|
-
const _0x187d35 = {
|
|
853
|
-
_0x4576e2: 0x1c3,
|
|
854
|
-
_0x23c442: 0x17c,
|
|
855
|
-
_0x387ae0: 0x159,
|
|
856
|
-
_0x2e4b16: 0x1f9
|
|
857
|
-
}, _0x1b7bba = _0x2c1aa0, _0x3f67be = new Date(_0x5c5e9f);
|
|
858
|
-
if (Number[_0x1b7bba(0x239)](_0x3f67be[_0x1b7bba(0x1a2)]()))
|
|
859
|
-
return _0x5c5e9f;
|
|
860
|
-
const _0x2e41e8 = _0x991513 => String(_0x991513)[_0x1b7bba(0x209)](0x2, '0');
|
|
861
|
-
return _0x3f67be[_0x1b7bba(0x1c9)]() + '-' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x4576e2)]() + 0x1) + '-' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x23c442)]()) + '\x20' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x387ae0)]()) + ':' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x2e4b16)]()) + ':' + _0x2e41e8(_0x3f67be[_0x1b7bba(0x13f)]());
|
|
911
|
+
function toLocalTime(_0x38c0f2) {
|
|
912
|
+
const _0x2950b1 = {
|
|
913
|
+
_0x40dfa9: 0x2a7,
|
|
914
|
+
_0x399ca6: 0x25a,
|
|
915
|
+
_0x87e06b: 0x279
|
|
916
|
+
}, _0x438cf1 = _0x4ab0ed, _0x446f76 = new Date(_0x38c0f2);
|
|
917
|
+
if (Number[_0x438cf1(_0x2950b1._0x40dfa9)](_0x446f76[_0x438cf1(0x1e6)]()))
|
|
918
|
+
return _0x38c0f2;
|
|
919
|
+
const _0xec39f7 = _0x2b0f11 => String(_0x2b0f11)[_0x438cf1(0x1eb)](0x2, '0');
|
|
920
|
+
return _0x446f76[_0x438cf1(0x1c8)]() + '-' + _0xec39f7(_0x446f76[_0x438cf1(0x20e)]() + 0x1) + '-' + _0xec39f7(_0x446f76[_0x438cf1(_0x2950b1._0x399ca6)]()) + '\x20' + _0xec39f7(_0x446f76[_0x438cf1(_0x2950b1._0x87e06b)]()) + ':' + _0xec39f7(_0x446f76['getMinutes']()) + ':' + _0xec39f7(_0x446f76[_0x438cf1(0x195)]());
|
|
862
921
|
}
|
|
863
|
-
function formatAttachmentSuffix(
|
|
864
|
-
const
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
if (!_0x2cf165 || _0x2cf165['length'] === 0x0)
|
|
922
|
+
function formatAttachmentSuffix(_0x12e982) {
|
|
923
|
+
const _0x41a2f5 = {
|
|
924
|
+
_0x3ab293: 0x1e3,
|
|
925
|
+
_0x5b3131: 0x2a5
|
|
926
|
+
}, _0x268b31 = _0x4ab0ed;
|
|
927
|
+
if (!_0x12e982 || _0x12e982['length'] === 0x0)
|
|
870
928
|
return '';
|
|
871
|
-
return '\x20[' +
|
|
872
|
-
}
|
|
873
|
-
function formatCheckMessages(_0x28c83c) {
|
|
874
|
-
const _0x39a3b7 = { _0x28b775: 0x229 }, _0x68a5ce = {
|
|
875
|
-
_0x4f0841: 0x1ab,
|
|
876
|
-
_0x1a3c2f: 0x174,
|
|
877
|
-
_0x4c1822: 0x1eb,
|
|
878
|
-
_0x3c802a: 0x22f,
|
|
879
|
-
_0x489172: 0x225,
|
|
880
|
-
_0x39e01b: 0x1a9,
|
|
881
|
-
_0x498dad: 0x1a6,
|
|
882
|
-
_0x44d294: 0x203
|
|
883
|
-
}, _0x38238b = _0x2c1aa0;
|
|
884
|
-
if (_0x28c83c[_0x38238b(0x282)] === 0x0)
|
|
885
|
-
return 'No\x20new\x20messages.';
|
|
886
|
-
return _0x28c83c['map'](_0x5e4063 => {
|
|
887
|
-
const _0x3260d6 = _0x38238b, _0x26ca10 = _0x5e4063[_0x3260d6(_0x68a5ce._0x4f0841)] === _0x3260d6(0x182) ? _0x3260d6(_0x68a5ce._0x1a3c2f) : '';
|
|
888
|
-
return _0x3260d6(_0x68a5ce._0x4c1822) + _0x5e4063[_0x3260d6(0x219)] + _0x3260d6(0x2aa) + _0x5e4063[_0x3260d6(_0x68a5ce._0x3c802a)][_0x3260d6(_0x68a5ce._0x489172)](0x0, 0x8) + _0x3260d6(0x278) + toLocalTime(_0x5e4063[_0x3260d6(0x24e)]) + _0x26ca10 + _0x3260d6(_0x68a5ce._0x39e01b) + _0x5e4063[_0x3260d6(_0x68a5ce._0x498dad)] + ':\x20' + _0x5e4063[_0x3260d6(0x1a0)] + formatAttachmentSuffix(_0x5e4063[_0x3260d6(_0x68a5ce._0x44d294)]);
|
|
889
|
-
})[_0x38238b(_0x39a3b7._0x28b775)]('\x0a');
|
|
890
|
-
}
|
|
891
|
-
function formatHistory(_0x491faf) {
|
|
892
|
-
const _0x3a97a7 = {
|
|
893
|
-
_0x502c98: 0x160,
|
|
894
|
-
_0xdddfe1: 0x266
|
|
895
|
-
}, _0x59ce38 = {
|
|
896
|
-
_0x3b6c19: 0x182,
|
|
897
|
-
_0x611b4a: 0x1f7,
|
|
898
|
-
_0x2b2db9: 0x166,
|
|
899
|
-
_0x2f1c43: 0x24e,
|
|
900
|
-
_0x48d730: 0x1a6
|
|
901
|
-
}, _0x23a8e4 = _0x2c1aa0;
|
|
902
|
-
if (_0x491faf[_0x23a8e4(_0x3a97a7._0x502c98)]['length'] === 0x0)
|
|
903
|
-
return '##\x20Message\x20History\x20for\x20' + _0x491faf['channel'] + _0x23a8e4(0x283);
|
|
904
|
-
const _0x26acef = _0x491faf['messages']['map'](_0x55bd93 => {
|
|
905
|
-
const _0x322502 = _0x23a8e4, _0x223e54 = _0x55bd93[_0x322502(0x1ab)] === _0x322502(_0x59ce38._0x3b6c19) ? _0x322502(0x174) : '';
|
|
906
|
-
return _0x322502(_0x59ce38._0x611b4a) + _0x55bd93[_0x322502(_0x59ce38._0x2b2db9)] + '\x20msg=' + _0x55bd93[_0x322502(0x22f)] + _0x322502(0x278) + toLocalTime(_0x55bd93[_0x322502(_0x59ce38._0x2f1c43)]) + _0x223e54 + ']\x20@' + _0x55bd93[_0x322502(_0x59ce38._0x48d730)] + ':\x20' + _0x55bd93[_0x322502(0x1a0)] + formatAttachmentSuffix(_0x55bd93['attachments']);
|
|
907
|
-
})[_0x23a8e4(0x229)]('\x0a'), _0x35daef = _0x491faf[_0x23a8e4(0x298)] && _0x491faf['nextCursor'] ? '\x0a\x0a---\x20' + _0x491faf[_0x23a8e4(_0x3a97a7._0x502c98)]['length'] + _0x23a8e4(0x21d) + _0x491faf['nextCursor'] + _0x23a8e4(_0x3a97a7._0xdddfe1) : '';
|
|
908
|
-
return '##\x20Message\x20History\x20for\x20' + _0x491faf['channel'] + '\x20(' + _0x491faf[_0x23a8e4(0x160)]['length'] + _0x23a8e4(0x241) + _0x26acef + _0x35daef;
|
|
909
|
-
}
|
|
910
|
-
function formatServerDirectory(_0x1d2265) {
|
|
911
|
-
const _0x41775e = {
|
|
912
|
-
_0x37a17b: 0x1b5,
|
|
913
|
-
_0xb06054: 0x282,
|
|
914
|
-
_0x486bd4: 0x229,
|
|
915
|
-
_0x456745: 0x27d,
|
|
916
|
-
_0x27a4c7: 0x155,
|
|
917
|
-
_0x3673ef: 0x27d,
|
|
918
|
-
_0x3e18c7: 0x1cf,
|
|
919
|
-
_0x4597c3: 0x18d,
|
|
920
|
-
_0x474ff8: 0x1bf,
|
|
921
|
-
_0xd85472: 0x237
|
|
922
|
-
}, _0x31b0d0 = _0x2c1aa0, _0x249260 = _0x1d2265[_0x31b0d0(_0x41775e._0x37a17b)][_0x31b0d0(_0x41775e._0xb06054)] > 0x0 ? _0x1d2265[_0x31b0d0(_0x41775e._0x37a17b)][_0x31b0d0(0x212)](_0x5a8a21 => _0x5a8a21['description'] ? _0x31b0d0(0x1fa) + _0x5a8a21[_0x31b0d0(0x16e)] + _0x31b0d0(0x1e9) + _0x5a8a21[_0x31b0d0(0x145)] : _0x31b0d0(0x1fa) + _0x5a8a21[_0x31b0d0(0x16e)])[_0x31b0d0(_0x41775e._0x486bd4)]('\x0a') : _0x31b0d0(_0x41775e._0x456745), _0x1c48ac = _0x1d2265[_0x31b0d0(_0x41775e._0x27a4c7)]['length'] > 0x0 ? _0x1d2265[_0x31b0d0(0x155)][_0x31b0d0(0x212)](_0x1dc783 => _0x31b0d0(0x1d0) + _0x1dc783[_0x31b0d0(0x16e)])[_0x31b0d0(0x229)]('\x0a') : _0x31b0d0(_0x41775e._0x3673ef), _0x296995 = _0x1d2265['humans'][_0x31b0d0(_0x41775e._0xb06054)] > 0x0 ? _0x1d2265[_0x31b0d0(_0x41775e._0x3e18c7)]['map'](_0x22f5aa => _0x31b0d0(0x1d0) + _0x22f5aa['name'])['join']('\x0a') : _0x31b0d0(0x27d);
|
|
923
|
-
return [
|
|
924
|
-
_0x31b0d0(_0x41775e._0x4597c3) + _0x1d2265[_0x31b0d0(_0x41775e._0x474ff8)],
|
|
925
|
-
'',
|
|
926
|
-
_0x31b0d0(0x18e),
|
|
927
|
-
_0x249260,
|
|
928
|
-
'',
|
|
929
|
-
_0x31b0d0(0x184),
|
|
930
|
-
_0x1c48ac,
|
|
931
|
-
'',
|
|
932
|
-
_0x31b0d0(_0x41775e._0xd85472),
|
|
933
|
-
_0x296995
|
|
934
|
-
]['join']('\x0a');
|
|
935
|
-
}
|
|
936
|
-
function formatUploadResult(_0x250740) {
|
|
937
|
-
const _0x30a1c7 = {
|
|
938
|
-
_0x18683c: 0x1e1,
|
|
939
|
-
_0x4e8e54: 0x1cc
|
|
940
|
-
}, _0x245fee = _0x2c1aa0;
|
|
941
|
-
return _0x245fee(0x1c4) + _0x250740[_0x245fee(_0x30a1c7._0x18683c)] + '\x20(' + (_0x250740[_0x245fee(_0x30a1c7._0x4e8e54)] / 0x400)['toFixed'](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x250740['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
942
|
-
}
|
|
943
|
-
function formatViewFileResult(_0x367ceb, _0x253767) {
|
|
944
|
-
return _0x253767 ? 'File\x20already\x20cached\x20at:\x20' + _0x367ceb : 'Downloaded\x20to:\x20' + _0x367ceb;
|
|
945
|
-
}
|
|
946
|
-
function formatTaskList(_0x1df1a8, _0x86ffd) {
|
|
947
|
-
const _0x46ca45 = {
|
|
948
|
-
_0x2c80ca: 0x290,
|
|
949
|
-
_0x2f8d50: 0x212
|
|
950
|
-
}, _0x2fd232 = {
|
|
951
|
-
_0x2f3a68: 0x22f,
|
|
952
|
-
_0xeae961: 0x19f,
|
|
953
|
-
_0x30837b: 0x152
|
|
954
|
-
}, _0xa1b94d = _0x2c1aa0;
|
|
955
|
-
if (_0x1df1a8['length'] === 0x0)
|
|
956
|
-
return _0xa1b94d(_0x46ca45._0x2c80ca);
|
|
957
|
-
return _0x1df1a8[_0xa1b94d(_0x46ca45._0x2f8d50)](_0x5b5a7d => {
|
|
958
|
-
const _0x1b019c = _0xa1b94d, _0x44fb97 = _0x5b5a7d[_0x1b019c(0x1ad)] == null ? '(legacy)' : '#' + _0x5b5a7d[_0x1b019c(0x1ad)], _0x2874f5 = _0x5b5a7d['messageId'] ? '\x20message=' + _0x5b5a7d[_0x1b019c(_0x2fd232._0x2f3a68)] : '', _0x4ed519 = _0x86ffd && _0x5b5a7d['taskNumber'] != null && _0x86ffd[_0x1b019c(0x1b0)](_0x5b5a7d['taskNumber']) ? _0x1b019c(_0x2fd232._0xeae961) : '';
|
|
959
|
-
return _0x44fb97 + '\x20[' + _0x5b5a7d[_0x1b019c(_0x2fd232._0x30837b)] + ']\x20' + _0x5b5a7d['title'] + _0x2874f5 + _0x4ed519;
|
|
960
|
-
})[_0xa1b94d(0x229)]('\x0a');
|
|
961
|
-
}
|
|
962
|
-
function formatCreatedTasks(_0x473eaa) {
|
|
963
|
-
const _0x7074c2 = {
|
|
964
|
-
_0x3e7eaf: 0x254,
|
|
965
|
-
_0x452e71: 0x181,
|
|
966
|
-
_0xfa1a1: 0x22f
|
|
967
|
-
}, _0x13f308 = _0x2c1aa0;
|
|
968
|
-
if (_0x473eaa[_0x13f308(0x282)] === 0x0)
|
|
969
|
-
return _0x13f308(0x1ff);
|
|
970
|
-
return _0x473eaa['map'](_0x84b96e => {
|
|
971
|
-
const _0x518bc5 = _0x13f308, _0x2b6379 = _0x84b96e[_0x518bc5(0x1ad)] == null ? _0x518bc5(_0x7074c2._0x3e7eaf) : '#' + _0x84b96e[_0x518bc5(0x1ad)];
|
|
972
|
-
return _0x2b6379 + '\x20' + _0x84b96e['title'] + _0x518bc5(_0x7074c2._0x452e71) + _0x84b96e[_0x518bc5(_0x7074c2._0xfa1a1)];
|
|
973
|
-
})[_0x13f308(0x229)]('\x0a');
|
|
974
|
-
}
|
|
975
|
-
function formatClaimTaskResults(_0x418c) {
|
|
976
|
-
const _0x6587cc = {
|
|
977
|
-
_0x39db4e: 0x1df,
|
|
978
|
-
_0x326473: 0x212
|
|
979
|
-
}, _0x2f161c = {
|
|
980
|
-
_0x71a520: 0x26c,
|
|
981
|
-
_0x49e8d2: 0x26f,
|
|
982
|
-
_0x4bb606: 0x1a8,
|
|
983
|
-
_0x1ed262: 0x2a6,
|
|
984
|
-
_0xe54abe: 0x280,
|
|
985
|
-
_0x373461: 0x138,
|
|
986
|
-
_0x33e030: 0x1ad,
|
|
987
|
-
_0x3de6f6: 0x22f,
|
|
988
|
-
_0x46aba3: 0x1ca,
|
|
989
|
-
_0x393e69: 0x23e
|
|
990
|
-
}, _0x40549a = _0x2c1aa0;
|
|
991
|
-
if (_0x418c[_0x40549a(0x282)] === 0x0)
|
|
992
|
-
return _0x40549a(_0x6587cc._0x39db4e);
|
|
993
|
-
return _0x418c[_0x40549a(_0x6587cc._0x326473)](_0x39a128 => {
|
|
994
|
-
const _0x385104 = _0x40549a;
|
|
995
|
-
if (_0x39a128[_0x385104(0x1cb)]) {
|
|
996
|
-
const _0x3741c5 = _0x39a128['taskNumber'] == null ? _0x385104(0x254) : '#' + _0x39a128[_0x385104(0x1ad)], _0x37d397 = _0x39a128[_0x385104(0x22f)] ? '\x20message=' + _0x39a128[_0x385104(0x22f)] : '', _0x5f3c5f = _0x39a128[_0x385104(_0x2f161c._0x71a520)] ? [
|
|
997
|
-
'workerHandoff=true',
|
|
998
|
-
_0x39a128['stopMain'] ? 'stopMain=true' : null,
|
|
999
|
-
_0x39a128[_0x385104(0x1ee)] ? 'executionMode=' + _0x39a128[_0x385104(0x1ee)] : null,
|
|
1000
|
-
_0x39a128[_0x385104(_0x2f161c._0x49e8d2)] ? _0x385104(_0x2f161c._0x4bb606) + _0x39a128[_0x385104(_0x2f161c._0x49e8d2)] : null,
|
|
1001
|
-
_0x39a128[_0x385104(_0x2f161c._0x1ed262)] ? _0x385104(_0x2f161c._0xe54abe) + _0x39a128[_0x385104(_0x2f161c._0x1ed262)] : null
|
|
1002
|
-
][_0x385104(0x21e)](Boolean)['join']('\x20') : _0x39a128[_0x385104(0x138)] ? _0x385104(0x230) + _0x39a128[_0x385104(_0x2f161c._0x373461)] : '';
|
|
1003
|
-
return [
|
|
1004
|
-
_0x3741c5 + '\x20claimed' + _0x37d397,
|
|
1005
|
-
_0x5f3c5f
|
|
1006
|
-
][_0x385104(0x21e)](Boolean)[_0x385104(0x229)]('\x20');
|
|
1007
|
-
}
|
|
1008
|
-
const _0x5c5338 = _0x39a128[_0x385104(_0x2f161c._0x33e030)] == null ? _0x39a128[_0x385104(_0x2f161c._0x3de6f6)] ?? _0x385104(_0x2f161c._0x46aba3) : '#' + _0x39a128['taskNumber'];
|
|
1009
|
-
return _0x5c5338 + _0x385104(0x1e8) + (_0x39a128['reason'] ?? _0x385104(_0x2f161c._0x393e69));
|
|
1010
|
-
})[_0x40549a(0x229)]('\x0a');
|
|
1011
|
-
}
|
|
1012
|
-
function formatUnclaimTaskResult(_0x353cd5) {
|
|
1013
|
-
const _0x4e268a = {
|
|
1014
|
-
_0x39c80d: 0x1ad,
|
|
1015
|
-
_0x1ce544: 0x202
|
|
1016
|
-
}, _0x3da968 = _0x2c1aa0, _0x5a764a = _0x353cd5[_0x3da968(_0x4e268a._0x39c80d)] == null ? '(legacy)' : '#' + _0x353cd5[_0x3da968(0x1ad)];
|
|
1017
|
-
return _0x5a764a + _0x3da968(_0x4e268a._0x1ce544) + _0x353cd5[_0x3da968(0x152)];
|
|
1018
|
-
}
|
|
1019
|
-
function formatUpdateTaskStatusResult(_0x426527) {
|
|
1020
|
-
const _0x3fd867 = { _0x119b7e: 0x202 }, _0x49456b = _0x2c1aa0, _0x16fb7c = _0x426527['taskNumber'] == null ? '(legacy)' : '#' + _0x426527['taskNumber'];
|
|
1021
|
-
return _0x16fb7c + _0x49456b(_0x3fd867._0x119b7e) + _0x426527['status'];
|
|
1022
|
-
}
|
|
1023
|
-
function getChatBridgeToolDefinitions() {
|
|
1024
|
-
const _0x330729 = {
|
|
1025
|
-
_0x40bd63: 0x1fd,
|
|
1026
|
-
_0x193e13: 0x1e0,
|
|
1027
|
-
_0x8c5328: 0x20a,
|
|
1028
|
-
_0xa136f5: 0x2a8,
|
|
1029
|
-
_0x379da6: 0x252,
|
|
1030
|
-
_0x3a6c05: 0x16f,
|
|
1031
|
-
_0xe96868: 0x23d,
|
|
1032
|
-
_0x45548f: 0x132
|
|
1033
|
-
}, _0xc715e1 = _0x2c1aa0;
|
|
1034
|
-
return [
|
|
1035
|
-
{ 'name': _0xc715e1(_0x330729._0x40bd63) },
|
|
1036
|
-
{ 'name': _0xc715e1(_0x330729._0x193e13) },
|
|
1037
|
-
{ 'name': 'read_history' },
|
|
1038
|
-
{ 'name': _0xc715e1(_0x330729._0x8c5328) },
|
|
1039
|
-
{ 'name': 'upload_file' },
|
|
1040
|
-
{ 'name': _0xc715e1(0x287) },
|
|
1041
|
-
{ 'name': _0xc715e1(0x201) },
|
|
1042
|
-
{ 'name': 'create_tasks' },
|
|
1043
|
-
{ 'name': _0xc715e1(0x234) },
|
|
1044
|
-
{ 'name': 'unclaim_task' },
|
|
1045
|
-
{ 'name': _0xc715e1(0x27b) },
|
|
1046
|
-
{ 'name': _0xc715e1(_0x330729._0xa136f5) },
|
|
1047
|
-
{ 'name': _0xc715e1(_0x330729._0x379da6) },
|
|
1048
|
-
{ 'name': 'get_worker_result' },
|
|
1049
|
-
{ 'name': _0xc715e1(_0x330729._0x3a6c05) },
|
|
1050
|
-
{ 'name': _0xc715e1(_0x330729._0xe96868) },
|
|
1051
|
-
{ 'name': _0xc715e1(_0x330729._0x45548f) }
|
|
1052
|
-
];
|
|
1053
|
-
}
|
|
1054
|
-
function createChatBridgeHandlers(_0x121873) {
|
|
1055
|
-
const _0x3b0500 = {
|
|
1056
|
-
_0x156f62: 0x1d3,
|
|
1057
|
-
_0x1f35c0: 0x146,
|
|
1058
|
-
_0x398e66: 0x29a,
|
|
1059
|
-
_0x5945d1: 0x210,
|
|
1060
|
-
_0x26d8ac: 0x1aa
|
|
1061
|
-
}, _0x324241 = {
|
|
1062
|
-
_0x5b7155: 0x156,
|
|
1063
|
-
_0x4fc778: 0x20b,
|
|
1064
|
-
_0x3f0fce: 0x146,
|
|
1065
|
-
_0x1c218a: 0x29a,
|
|
1066
|
-
_0x2577bd: 0x1e5,
|
|
1067
|
-
_0x10c957: 0x15a,
|
|
1068
|
-
_0x2f4145: 0x210,
|
|
1069
|
-
_0x1bd1c1: 0x18a,
|
|
1070
|
-
_0x5ee23c: 0x193
|
|
1071
|
-
}, _0x2b1bc1 = {
|
|
1072
|
-
_0x4a5c78: 0x20b,
|
|
1073
|
-
_0x130a39: 0x1fc,
|
|
1074
|
-
_0x3f2ffa: 0x146,
|
|
1075
|
-
_0x1fe65a: 0x255,
|
|
1076
|
-
_0x3a2c8d: 0x227,
|
|
1077
|
-
_0x521028: 0x210,
|
|
1078
|
-
_0x484f50: 0x268,
|
|
1079
|
-
_0x12ba14: 0x224
|
|
1080
|
-
}, _0x21e62e = {
|
|
1081
|
-
_0x515c09: 0x20b,
|
|
1082
|
-
_0xa6124a: 0x1fc,
|
|
1083
|
-
_0x44f3e4: 0x20b,
|
|
1084
|
-
_0x261357: 0x173,
|
|
1085
|
-
_0x1f014e: 0x24d,
|
|
1086
|
-
_0x740616: 0x193
|
|
1087
|
-
}, _0x145963 = {
|
|
1088
|
-
_0x500c0a: 0x20b,
|
|
1089
|
-
_0x5ccf46: 0x193,
|
|
1090
|
-
_0x38efc3: 0x18a,
|
|
1091
|
-
_0x24881b: 0x2a1,
|
|
1092
|
-
_0x514472: 0x18a
|
|
1093
|
-
}, _0x46876c = {
|
|
1094
|
-
_0x5f2b84: 0x20b,
|
|
1095
|
-
_0x58dec7: 0x1e5,
|
|
1096
|
-
_0x2183c9: 0x29a,
|
|
1097
|
-
_0x2b015c: 0x1be,
|
|
1098
|
-
_0x12579f: 0x14a,
|
|
1099
|
-
_0x4ae969: 0x15a,
|
|
1100
|
-
_0x5ad891: 0x210,
|
|
1101
|
-
_0x4dfda4: 0x28b,
|
|
1102
|
-
_0x409338: 0x136
|
|
1103
|
-
}, _0xd21ad5 = {
|
|
1104
|
-
_0x5aead9: 0x1e2,
|
|
1105
|
-
_0x319576: 0x1a1,
|
|
1106
|
-
_0x56b3eb: 0x29d,
|
|
1107
|
-
_0x21f559: 0x186,
|
|
1108
|
-
_0x199e31: 0x245
|
|
1109
|
-
}, _0x597d44 = {
|
|
1110
|
-
_0x1b6531: 0x135,
|
|
1111
|
-
_0x164795: 0x17d
|
|
1112
|
-
}, _0xda40d4 = { _0x465549: 0x17d }, _0x2ceb0f = {
|
|
1113
|
-
_0x3aa2ed: 0x17d,
|
|
1114
|
-
_0x38ecfb: 0x23c,
|
|
1115
|
-
_0x573efc: 0x272
|
|
1116
|
-
}, _0x559ab1 = { _0x452d58: 0x169 }, _0xf096dd = {
|
|
1117
|
-
_0x323eda: 0x17d,
|
|
1118
|
-
_0x11fb14: 0x152,
|
|
1119
|
-
_0x165913: 0x281,
|
|
1120
|
-
_0x263cfa: 0x1bb,
|
|
1121
|
-
_0x1ec62f: 0x1ad,
|
|
1122
|
-
_0x14e8b8: 0x197
|
|
1123
|
-
}, _0x55814b = {
|
|
1124
|
-
_0x5f13a0: 0x17d,
|
|
1125
|
-
_0x5f3724: 0x1ef
|
|
1126
|
-
}, _0x3bc921 = {
|
|
1127
|
-
_0x23164b: 0x17d,
|
|
1128
|
-
_0x2ec12e: 0x240
|
|
1129
|
-
}, _0x5386d0 = {
|
|
1130
|
-
_0x5f0f77: 0x21e,
|
|
1131
|
-
_0x2366c9: 0x160
|
|
1132
|
-
}, _0x1690f0 = {
|
|
1133
|
-
_0x386590: 0x17d,
|
|
1134
|
-
_0x1f2df8: 0x17f,
|
|
1135
|
-
_0x2bd7fd: 0x1b7
|
|
1136
|
-
}, _0x3b8d1d = {
|
|
1137
|
-
_0x4750a8: 0x1e5,
|
|
1138
|
-
_0x38b7ec: 0x20b,
|
|
1139
|
-
_0x4c9d3e: 0x197,
|
|
1140
|
-
_0x141074: 0x1c0,
|
|
1141
|
-
_0x5a2375: 0x1e7
|
|
1142
|
-
}, _0x18d8c8 = {
|
|
1143
|
-
_0x267e6f: 0x1e5,
|
|
1144
|
-
_0x5b011b: 0x15d,
|
|
1145
|
-
_0x3d8dda: 0x13a,
|
|
1146
|
-
_0x5236e6: 0x297,
|
|
1147
|
-
_0x2b155c: 0x221,
|
|
1148
|
-
_0x56608: 0x22f,
|
|
1149
|
-
_0x50df0b: 0x2aa,
|
|
1150
|
-
_0x2a0f45: 0x22f,
|
|
1151
|
-
_0x1977df: 0x278,
|
|
1152
|
-
_0x60d79b: 0x177,
|
|
1153
|
-
_0x9d4913: 0x277,
|
|
1154
|
-
_0x4007d5: 0x23f,
|
|
1155
|
-
_0x3c97b1: 0x153,
|
|
1156
|
-
_0x4266c2: 0x226,
|
|
1157
|
-
_0x406689: 0x1e5,
|
|
1158
|
-
_0x227481: 0x271,
|
|
1159
|
-
_0x1afb2b: 0x1ad,
|
|
1160
|
-
_0x55cbd6: 0x247,
|
|
1161
|
-
_0x2b15b1: 0x15a,
|
|
1162
|
-
_0x4d4acc: 0x210,
|
|
1163
|
-
_0x1affc0: 0x141
|
|
1164
|
-
};
|
|
1165
|
-
async function _0x3c1456(_0x56ca09) {
|
|
1166
|
-
const _0x20de21 = _0x3278;
|
|
1167
|
-
if (!_0x121873[_0x20de21(0x20b)] || !_0x121873[_0x20de21(_0x18d8c8._0x267e6f)] || _0x121873[_0x20de21(_0x18d8c8._0x5b011b)] || _0x121873[_0x20de21(_0x18d8c8._0x3d8dda)] !== !![])
|
|
1168
|
-
return null;
|
|
1169
|
-
const _0x2a1156 = parseTarget(_0x56ca09[_0x20de21(_0x18d8c8._0x5236e6)]);
|
|
1170
|
-
if (_0x2a1156['kind'] !== _0x20de21(0x297))
|
|
1171
|
-
return null;
|
|
1172
|
-
const _0x13878a = _0x2a1156[_0x20de21(_0x18d8c8._0x2b155c)] + ':' + _0x56ca09[_0x20de21(_0x18d8c8._0x56608)][_0x20de21(0x225)](0x0, 0x8), _0x19738c = await _0x121873[_0x20de21(0x17d)][_0x20de21(0x240)]({
|
|
1173
|
-
'channel': _0x13878a,
|
|
1174
|
-
'limit': 0x14
|
|
1175
|
-
}), _0x2de390 = _0x19738c[_0x20de21(0x160)][_0x20de21(0x1a4)](_0x47c73b => _0x47c73b[_0x20de21(0x22f)] === _0x56ca09[_0x20de21(0x22f)]), _0x3aceda = _0x56ca09['taskNumber'] == null ? _0x20de21(0x254) : '#' + _0x56ca09['taskNumber'], _0x46dc09 = [
|
|
1176
|
-
'[target=' + _0x13878a + _0x20de21(_0x18d8c8._0x50df0b) + _0x56ca09[_0x20de21(_0x18d8c8._0x2a0f45)][_0x20de21(0x225)](0x0, 0x8) + _0x20de21(_0x18d8c8._0x1977df) + new Date()[_0x20de21(0x14f)]() + _0x20de21(_0x18d8c8._0x60d79b) + _0x3aceda + '\x20已切换到\x20worker\x20执行',
|
|
1177
|
-
'',
|
|
1178
|
-
_0x2de390 ? 'Root\x20task\x20message:\x0a' + _0x2de390[_0x20de21(0x1a0)] : _0x20de21(_0x18d8c8._0x9d4913) + _0x56ca09[_0x20de21(_0x18d8c8._0x2a0f45)],
|
|
1179
|
-
'',
|
|
1180
|
-
_0x20de21(_0x18d8c8._0x4007d5) + _0x13878a,
|
|
1181
|
-
_0x20de21(_0x18d8c8._0x3c97b1)
|
|
1182
|
-
]['join']('\x0a'), _0x388ab3 = await fetch(_0x121873['daemonLocalUrl'] + _0x20de21(_0x18d8c8._0x4266c2), {
|
|
1183
|
-
'method': _0x20de21(0x1d3),
|
|
1184
|
-
'headers': { 'Content-Type': 'application/json' },
|
|
1185
|
-
'body': JSON['stringify']({
|
|
1186
|
-
'agent_id': _0x121873[_0x20de21(_0x18d8c8._0x406689)],
|
|
1187
|
-
'thread_target': _0x13878a,
|
|
1188
|
-
'spawn_packet': {
|
|
1189
|
-
'replyTarget': _0x13878a,
|
|
1190
|
-
..._0x56ca09['taskId'] ? { 'taskId': _0x56ca09['taskId'] } : _0x56ca09[_0x20de21(0x1ad)] != null ? { 'taskId': _0x20de21(_0x18d8c8._0x227481) + _0x56ca09[_0x20de21(_0x18d8c8._0x1afb2b)] } : {}
|
|
1191
|
-
},
|
|
1192
|
-
'payload': {
|
|
1193
|
-
'mode': _0x20de21(_0x18d8c8._0x55cbd6),
|
|
1194
|
-
'text': _0x46dc09
|
|
1195
|
-
}
|
|
1196
|
-
})
|
|
1197
|
-
}), _0x144e82 = await _0x388ab3[_0x20de21(_0x18d8c8._0x2b15b1)]();
|
|
1198
|
-
if (!_0x144e82['ok'])
|
|
1199
|
-
throw new Error(_0x144e82[_0x20de21(_0x18d8c8._0x4d4acc)] ?? 'worker\x20handoff\x20failed');
|
|
1200
|
-
return {
|
|
1201
|
-
'stopMain': !![],
|
|
1202
|
-
'threadTarget': _0x13878a,
|
|
1203
|
-
'workerDisposition': _0x144e82[_0x20de21(0x28b)] === _0x20de21(0x141) ? _0x20de21(_0x18d8c8._0x1affc0) : 'started',
|
|
1204
|
-
'workerHandoff': !![],
|
|
1205
|
-
'workerSessionId': _0x144e82[_0x20de21(0x270)] ?? '',
|
|
1206
|
-
'executionMode': _0x20de21(0x2a5)
|
|
1207
|
-
};
|
|
1208
|
-
}
|
|
1209
|
-
async function _0x235142() {
|
|
1210
|
-
const _0x1380a6 = _0x3278;
|
|
1211
|
-
if (!_0x121873['daemonLocalUrl'] || !_0x121873[_0x1380a6(_0x3b8d1d._0x4750a8)] || _0x121873['workerMode'])
|
|
1212
|
-
return null;
|
|
1213
|
-
try {
|
|
1214
|
-
const _0x4b8a48 = await fetch(_0x121873[_0x1380a6(_0x3b8d1d._0x38b7ec)] + _0x1380a6(0x1d1) + encodeURIComponent(_0x121873['agentId'])), _0x1631b4 = await _0x4b8a48['json']();
|
|
1215
|
-
if (!_0x1631b4['ok'])
|
|
1216
|
-
return null;
|
|
1217
|
-
const _0x4a3cf2 = new Set();
|
|
1218
|
-
for (const _0x13d233 of _0x1631b4[_0x1380a6(0x189)]) {
|
|
1219
|
-
_0x13d233['status'] !== _0x1380a6(0x281) && _0x13d233[_0x1380a6(0x1c0)] && _0x4a3cf2[_0x1380a6(_0x3b8d1d._0x4c9d3e)](_0x13d233[_0x1380a6(_0x3b8d1d._0x141074)]);
|
|
1220
|
-
}
|
|
1221
|
-
return _0x4a3cf2[_0x1380a6(_0x3b8d1d._0x5a2375)] > 0x0 ? _0x4a3cf2 : null;
|
|
1222
|
-
} catch {
|
|
1223
|
-
return null;
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
return {
|
|
1227
|
-
async 'send_message'(_0x413dcc) {
|
|
1228
|
-
const _0x5bb9f6 = _0x3278, _0x2d84b5 = await _0x121873[_0x5bb9f6(_0x1690f0._0x386590)]['sendMessage']({
|
|
1229
|
-
'attachmentIds': _0x413dcc[_0x5bb9f6(_0x1690f0._0x1f2df8)],
|
|
1230
|
-
'content': _0x413dcc['content'],
|
|
1231
|
-
'target': _0x413dcc[_0x5bb9f6(0x219)]
|
|
1232
|
-
});
|
|
1233
|
-
return _0x5bb9f6(0x258) + _0x413dcc[_0x5bb9f6(0x219)] + _0x5bb9f6(_0x1690f0._0x2bd7fd) + _0x2d84b5['messageId'];
|
|
1234
|
-
},
|
|
1235
|
-
async 'check_messages'() {
|
|
1236
|
-
const _0x4b2bdf = _0x3278, _0x214e1f = await _0x121873[_0x4b2bdf(0x17d)][_0x4b2bdf(0x1dc)]();
|
|
1237
|
-
if (!_0x121873['workerMode']) {
|
|
1238
|
-
const _0x93df93 = await _0x235142();
|
|
1239
|
-
if (_0x93df93)
|
|
1240
|
-
return formatCheckMessages(_0x214e1f['messages'][_0x4b2bdf(_0x5386d0._0x5f0f77)](_0x5841d3 => !_0x93df93[_0x4b2bdf(0x1b0)](_0x5841d3['target'])));
|
|
1241
|
-
}
|
|
1242
|
-
return formatCheckMessages(_0x214e1f[_0x4b2bdf(_0x5386d0._0x2366c9)]);
|
|
1243
|
-
},
|
|
1244
|
-
async 'read_history'(_0x413775) {
|
|
1245
|
-
const _0x511466 = _0x3278, _0x22ba93 = await _0x121873[_0x511466(_0x3bc921._0x23164b)][_0x511466(_0x3bc921._0x2ec12e)](_0x413775);
|
|
1246
|
-
return formatHistory(_0x22ba93);
|
|
1247
|
-
},
|
|
1248
|
-
async 'list_server'() {
|
|
1249
|
-
const _0x5b7df6 = _0x3278, _0x1d443b = await _0x121873[_0x5b7df6(_0x55814b._0x5f13a0)][_0x5b7df6(_0x55814b._0x5f3724)]();
|
|
1250
|
-
return formatServerDirectory(_0x1d443b);
|
|
1251
|
-
},
|
|
1252
|
-
async 'list_tasks'(_0x3b5c9b) {
|
|
1253
|
-
const _0xc71b42 = _0x3278, _0xf2cef = await _0x121873[_0xc71b42(_0xf096dd._0x323eda)][_0xc71b42(0x1d6)](_0x3b5c9b);
|
|
1254
|
-
let _0x1fabe5;
|
|
1255
|
-
if (_0x121873['daemonLocalUrl'] && _0x121873[_0xc71b42(0x1e5)])
|
|
1256
|
-
try {
|
|
1257
|
-
const _0x58c3f3 = await fetch(_0x121873[_0xc71b42(0x20b)] + _0xc71b42(0x1d1) + encodeURIComponent(_0x121873['agentId'])), _0x44bcb4 = await _0x58c3f3['json']();
|
|
1258
|
-
if (_0x44bcb4['ok']) {
|
|
1259
|
-
const _0x4cb972 = _0x3b5c9b[_0xc71b42(0x297)] + ':';
|
|
1260
|
-
_0x1fabe5 = new Set();
|
|
1261
|
-
for (const _0x132534 of _0x44bcb4[_0xc71b42(0x189)]) {
|
|
1262
|
-
if (_0x132534[_0xc71b42(_0xf096dd._0x11fb14)] === _0xc71b42(_0xf096dd._0x165913))
|
|
1263
|
-
continue;
|
|
1264
|
-
if (_0x132534['thread_target']?.[_0xc71b42(0x1c8)](_0x4cb972)) {
|
|
1265
|
-
const _0x4ae558 = _0x132534[_0xc71b42(0x1c0)]['slice'](_0x4cb972[_0xc71b42(0x282)]), _0x2c0c1b = _0xf2cef[_0xc71b42(_0xf096dd._0x263cfa)][_0xc71b42(0x1a4)](_0x44f4fd => _0x44f4fd[_0xc71b42(0x22f)]?.[_0xc71b42(0x1c8)](_0x4ae558) === !![]);
|
|
1266
|
-
if (_0x2c0c1b?.[_0xc71b42(0x1ad)] != null) {
|
|
1267
|
-
_0x1fabe5[_0xc71b42(0x197)](_0x2c0c1b['taskNumber']);
|
|
1268
|
-
continue;
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
if (_0x132534['task_id']) {
|
|
1272
|
-
const _0x2c73b3 = _0xf2cef[_0xc71b42(0x1bb)]['find'](_0x15dc1a => _0x15dc1a[_0xc71b42(0x19b)] === _0x132534[_0xc71b42(0x14a)]);
|
|
1273
|
-
_0x2c73b3?.[_0xc71b42(_0xf096dd._0x1ec62f)] != null && _0x1fabe5[_0xc71b42(_0xf096dd._0x14e8b8)](_0x2c73b3['taskNumber']);
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
} catch {
|
|
1278
|
-
}
|
|
1279
|
-
return formatTaskList(_0xf2cef[_0xc71b42(0x1bb)], _0x1fabe5);
|
|
1280
|
-
},
|
|
1281
|
-
async 'create_tasks'(_0x5d4b7c) {
|
|
1282
|
-
const _0x3a41be = _0x3278, _0x247171 = await _0x121873[_0x3a41be(0x17d)][_0x3a41be(_0x559ab1._0x452d58)](_0x5d4b7c);
|
|
1283
|
-
return formatCreatedTasks(_0x247171['tasks']);
|
|
1284
|
-
},
|
|
1285
|
-
async 'claim_tasks'(_0x31597a) {
|
|
1286
|
-
const _0x2caf63 = {
|
|
1287
|
-
_0x106ca7: 0x1cb,
|
|
1288
|
-
_0x3e1f1f: 0x22f,
|
|
1289
|
-
_0xe5c8e1: 0x297,
|
|
1290
|
-
_0x4ea0b2: 0x1ae
|
|
1291
|
-
}, _0x238a92 = _0x3278, _0x3dee75 = await _0x121873[_0x238a92(_0x2ceb0f._0x3aa2ed)][_0x238a92(_0x2ceb0f._0x38ecfb)](_0x31597a), _0x243f87 = await Promise[_0x238a92(0x208)](_0x3dee75[_0x238a92(_0x2ceb0f._0x573efc)]['map'](async _0x380875 => {
|
|
1292
|
-
const _0x5a6400 = _0x238a92;
|
|
1293
|
-
if (!_0x380875[_0x5a6400(_0x2caf63._0x106ca7)] || !_0x380875[_0x5a6400(_0x2caf63._0x3e1f1f)])
|
|
1294
|
-
return _0x380875;
|
|
1295
|
-
try {
|
|
1296
|
-
const _0x2e9d83 = await _0x3c1456({
|
|
1297
|
-
'channel': _0x31597a[_0x5a6400(_0x2caf63._0xe5c8e1)],
|
|
1298
|
-
'messageId': _0x380875[_0x5a6400(0x22f)],
|
|
1299
|
-
'taskId': _0x380875[_0x5a6400(0x19b)],
|
|
1300
|
-
'taskNumber': _0x380875['taskNumber']
|
|
1301
|
-
});
|
|
1302
|
-
return _0x2e9d83 ? {
|
|
1303
|
-
..._0x380875,
|
|
1304
|
-
..._0x2e9d83
|
|
1305
|
-
} : _0x380875;
|
|
1306
|
-
} catch (_0x46f916) {
|
|
1307
|
-
return {
|
|
1308
|
-
..._0x380875,
|
|
1309
|
-
'workerHandoffError': _0x46f916 instanceof Error ? _0x46f916[_0x5a6400(0x15c)] : _0x5a6400(_0x2caf63._0x4ea0b2)
|
|
1310
|
-
};
|
|
1311
|
-
}
|
|
1312
|
-
}));
|
|
1313
|
-
return formatClaimTaskResults(_0x243f87);
|
|
1314
|
-
},
|
|
1315
|
-
async 'unclaim_task'(_0x490f78) {
|
|
1316
|
-
const _0x338f7f = await _0x121873['client']['unclaimTask'](_0x490f78);
|
|
1317
|
-
return formatUnclaimTaskResult(_0x338f7f);
|
|
1318
|
-
},
|
|
1319
|
-
async 'update_task_status'(_0x7d5bf) {
|
|
1320
|
-
const _0x40fd25 = _0x3278, _0xb6cbac = await _0x121873[_0x40fd25(_0xda40d4._0x465549)][_0x40fd25(0x1b1)](_0x7d5bf);
|
|
1321
|
-
return formatUpdateTaskStatusResult(_0xb6cbac);
|
|
1322
|
-
},
|
|
1323
|
-
async 'upload_file'(_0x3b6d32) {
|
|
1324
|
-
const _0x5e205b = _0x3278, _0x5926db = await _0x121873[_0x5e205b(0x187)](_0x3b6d32[_0x5e205b(_0x597d44._0x1b6531)]), {
|
|
1325
|
-
sizeBytes: _0x5377cf,
|
|
1326
|
-
..._0x593c5d
|
|
1327
|
-
} = _0x5926db, _0x4c97a0 = await _0x121873[_0x5e205b(_0x597d44._0x164795)]['uploadFile']({
|
|
1328
|
-
'channel': _0x3b6d32[_0x5e205b(0x297)],
|
|
1329
|
-
..._0x593c5d
|
|
1330
|
-
});
|
|
1331
|
-
return formatUploadResult(_0x4c97a0);
|
|
1332
|
-
},
|
|
1333
|
-
async 'view_file'(_0x81017a) {
|
|
1334
|
-
const _0xb6a11b = _0x3278, _0x37df23 = await _0x121873[_0xb6a11b(0x1a1)][_0xb6a11b(_0xd21ad5._0x5aead9)](_0x81017a['attachment_id']);
|
|
1335
|
-
if (_0x37df23)
|
|
1336
|
-
return formatViewFileResult(_0x37df23, !![]);
|
|
1337
|
-
const _0x1c857d = await _0x121873['client'][_0xb6a11b(0x1d2)](_0x81017a['attachment_id']), _0x2e5aa3 = await _0x121873[_0xb6a11b(_0xd21ad5._0x319576)][_0xb6a11b(0x206)]({
|
|
1338
|
-
'attachmentId': _0x81017a[_0xb6a11b(0x13e)],
|
|
1339
|
-
'contentType': _0x1c857d[_0xb6a11b(_0xd21ad5._0x56b3eb)],
|
|
1340
|
-
'data': _0x1c857d[_0xb6a11b(_0xd21ad5._0x21f559)],
|
|
1341
|
-
'originalFilename': _0x1c857d[_0xb6a11b(_0xd21ad5._0x199e31)]
|
|
1342
|
-
});
|
|
1343
|
-
return formatViewFileResult(_0x2e5aa3, ![]);
|
|
1344
|
-
},
|
|
1345
|
-
async 'spawn_worker'(_0x4b5f35) {
|
|
1346
|
-
const _0x994f90 = _0x3278;
|
|
1347
|
-
if (!_0x121873[_0x994f90(_0x46876c._0x5f2b84)] || !_0x121873[_0x994f90(_0x46876c._0x58dec7)])
|
|
1348
|
-
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20not\x20configured)';
|
|
1349
|
-
const _0x15ec2e = await fetch(_0x121873[_0x994f90(_0x46876c._0x5f2b84)] + _0x994f90(0x215), {
|
|
1350
|
-
'method': 'POST',
|
|
1351
|
-
'headers': { 'Content-Type': _0x994f90(0x146) },
|
|
1352
|
-
'body': JSON[_0x994f90(_0x46876c._0x2183c9)]({
|
|
1353
|
-
'agent_id': _0x121873[_0x994f90(0x1e5)],
|
|
1354
|
-
'work_key': _0x4b5f35['work_key'],
|
|
1355
|
-
'thread_target': _0x4b5f35['thread_target'],
|
|
1356
|
-
'spawn_packet': {
|
|
1357
|
-
'replyTarget': _0x4b5f35[_0x994f90(_0x46876c._0x2b015c)],
|
|
1358
|
-
'taskId': _0x4b5f35[_0x994f90(_0x46876c._0x12579f)]
|
|
1359
|
-
}
|
|
1360
|
-
})
|
|
1361
|
-
}), _0x3adf99 = await _0x15ec2e[_0x994f90(_0x46876c._0x4ae969)]();
|
|
1362
|
-
if (!_0x3adf99['ok'])
|
|
1363
|
-
throw new Error(_0x3adf99[_0x994f90(_0x46876c._0x5ad891)] ?? _0x994f90(0x25c));
|
|
1364
|
-
const _0x4cb4cc = _0x3adf99[_0x994f90(_0x46876c._0x4dfda4)] === _0x994f90(0x141) ? _0x994f90(0x141) : _0x994f90(_0x46876c._0x409338);
|
|
1365
|
-
return 'Worker\x20' + _0x4cb4cc + _0x994f90(0x1f2) + _0x3adf99[_0x994f90(0x270)] + _0x994f90(0x20e) + _0x4b5f35['work_key'];
|
|
1366
|
-
},
|
|
1367
|
-
async 'get_worker_status'(_0x1d8cef) {
|
|
1368
|
-
const _0x245fda = _0x3278;
|
|
1369
|
-
if (!_0x121873[_0x245fda(_0x145963._0x500c0a)])
|
|
1370
|
-
return _0x245fda(0x1fc);
|
|
1371
|
-
const _0x299a8f = await fetch(_0x121873['daemonLocalUrl'] + _0x245fda(0x1c1) + encodeURIComponent(_0x1d8cef[_0x245fda(_0x145963._0x5ccf46)])), _0x33725d = await _0x299a8f[_0x245fda(0x15a)]();
|
|
1372
|
-
if (!_0x33725d['ok'])
|
|
1373
|
-
return _0x245fda(_0x145963._0x38efc3) + _0x1d8cef[_0x245fda(0x193)] + _0x245fda(_0x145963._0x24881b);
|
|
1374
|
-
return _0x245fda(_0x145963._0x514472) + _0x1d8cef[_0x245fda(0x193)] + _0x245fda(0x296) + _0x33725d[_0x245fda(0x152)];
|
|
1375
|
-
},
|
|
1376
|
-
async 'get_worker_result'(_0x1aaedd) {
|
|
1377
|
-
const _0x38de87 = _0x3278;
|
|
1378
|
-
if (!_0x121873[_0x38de87(_0x21e62e._0x515c09)])
|
|
1379
|
-
return _0x38de87(_0x21e62e._0xa6124a);
|
|
1380
|
-
const _0x449d78 = await fetch(_0x121873[_0x38de87(_0x21e62e._0x44f3e4)] + _0x38de87(_0x21e62e._0x261357) + encodeURIComponent(_0x1aaedd[_0x38de87(0x193)])), _0x10ce96 = await _0x449d78['json']();
|
|
1381
|
-
if (!_0x10ce96['resume_packet'])
|
|
1382
|
-
return _0x38de87(_0x21e62e._0x1f014e) + _0x1aaedd[_0x38de87(_0x21e62e._0x740616)] + '\x22';
|
|
1383
|
-
return JSON['stringify'](_0x10ce96[_0x38de87(0x267)], null, 0x2);
|
|
1384
|
-
},
|
|
1385
|
-
async 'finish_worker'(_0x4bdf89) {
|
|
1386
|
-
const _0x57f783 = _0x3278;
|
|
1387
|
-
if (!_0x121873[_0x57f783(_0x2b1bc1._0x4a5c78)])
|
|
1388
|
-
return _0x57f783(_0x2b1bc1._0x130a39);
|
|
1389
|
-
const _0x5f0f5b = await fetch(_0x121873[_0x57f783(0x20b)] + '/workers/finish', {
|
|
1390
|
-
'method': _0x57f783(0x1d3),
|
|
1391
|
-
'headers': { 'Content-Type': _0x57f783(_0x2b1bc1._0x3f2ffa) },
|
|
1392
|
-
'body': JSON[_0x57f783(0x29a)]({
|
|
1393
|
-
'work_key': _0x4bdf89[_0x57f783(0x193)],
|
|
1394
|
-
'resume_packet': {
|
|
1395
|
-
'objective': '',
|
|
1396
|
-
'result': _0x4bdf89['result'],
|
|
1397
|
-
'summary': _0x4bdf89[_0x57f783(0x279)],
|
|
1398
|
-
'decisions': _0x4bdf89[_0x57f783(_0x2b1bc1._0x1fe65a)] ?? [],
|
|
1399
|
-
'filesChanged': _0x4bdf89[_0x57f783(_0x2b1bc1._0x3a2c8d)] ?? [],
|
|
1400
|
-
'openIssues': _0x4bdf89[_0x57f783(0x154)] ?? [],
|
|
1401
|
-
'nextSteps': _0x4bdf89[_0x57f783(0x22b)] ?? []
|
|
1402
|
-
}
|
|
1403
|
-
})
|
|
1404
|
-
}), _0x46e976 = await _0x5f0f5b[_0x57f783(0x15a)]();
|
|
1405
|
-
if (!_0x46e976['ok'])
|
|
1406
|
-
throw new Error(_0x46e976[_0x57f783(_0x2b1bc1._0x521028)] ?? _0x57f783(_0x2b1bc1._0x484f50));
|
|
1407
|
-
return 'Worker\x20\x22' + _0x4bdf89[_0x57f783(0x193)] + _0x57f783(_0x2b1bc1._0x12ba14) + _0x4bdf89[_0x57f783(0x23a)];
|
|
1408
|
-
},
|
|
1409
|
-
async 'mark_waiting_input'(_0x36d4a5) {
|
|
1410
|
-
const _0x1022b6 = _0x3278;
|
|
1411
|
-
if (!_0x121873[_0x1022b6(0x20b)] || !_0x121873[_0x1022b6(0x1e5)])
|
|
1412
|
-
return _0x1022b6(_0x324241._0x5b7155);
|
|
1413
|
-
const _0x4b32ee = await fetch(_0x121873[_0x1022b6(_0x324241._0x4fc778)] + '/workers/waiting_input', {
|
|
1414
|
-
'method': _0x1022b6(0x1d3),
|
|
1415
|
-
'headers': { 'Content-Type': _0x1022b6(_0x324241._0x3f0fce) },
|
|
1416
|
-
'body': JSON[_0x1022b6(_0x324241._0x1c218a)]({
|
|
1417
|
-
'work_key': _0x36d4a5[_0x1022b6(0x193)],
|
|
1418
|
-
'agent_id': _0x121873[_0x1022b6(_0x324241._0x2577bd)]
|
|
1419
|
-
})
|
|
1420
|
-
}), _0x165a40 = await _0x4b32ee[_0x1022b6(_0x324241._0x10c957)]();
|
|
1421
|
-
if (!_0x165a40['ok'])
|
|
1422
|
-
throw new Error(_0x165a40[_0x1022b6(_0x324241._0x2f4145)] ?? 'mark_waiting_input\x20failed');
|
|
1423
|
-
return _0x1022b6(_0x324241._0x1bd1c1) + _0x36d4a5[_0x1022b6(_0x324241._0x5ee23c)] + _0x1022b6(0x18b);
|
|
1424
|
-
},
|
|
1425
|
-
async 'escalate_to_main'(_0x294067) {
|
|
1426
|
-
const _0x36180c = _0x3278;
|
|
1427
|
-
if (!_0x121873[_0x36180c(0x20b)])
|
|
1428
|
-
return _0x36180c(0x1fc);
|
|
1429
|
-
const _0x5ecdeb = await fetch(_0x121873[_0x36180c(0x20b)] + '/workers/escalate', {
|
|
1430
|
-
'method': _0x36180c(_0x3b0500._0x156f62),
|
|
1431
|
-
'headers': { 'Content-Type': _0x36180c(_0x3b0500._0x1f35c0) },
|
|
1432
|
-
'body': JSON[_0x36180c(_0x3b0500._0x398e66)]({
|
|
1433
|
-
'work_key': _0x294067['work_key'],
|
|
1434
|
-
'reason': _0x294067[_0x36180c(0x143)]
|
|
1435
|
-
})
|
|
1436
|
-
}), _0x28a034 = await _0x5ecdeb['json']();
|
|
1437
|
-
if (!_0x28a034['ok'])
|
|
1438
|
-
throw new Error(_0x28a034[_0x36180c(_0x3b0500._0x5945d1)] ?? _0x36180c(_0x3b0500._0x26d8ac));
|
|
1439
|
-
return _0x36180c(0x1ce) + _0x294067['reason'];
|
|
1440
|
-
}
|
|
1441
|
-
};
|
|
1442
|
-
}
|
|
1443
|
-
function textResult(_0x464e5c, _0x2db8a6 = ![]) {
|
|
1444
|
-
const _0x46fc04 = _0x2c1aa0;
|
|
1445
|
-
return {
|
|
1446
|
-
'content': [{
|
|
1447
|
-
'type': _0x46fc04(0x1b6),
|
|
1448
|
-
'text': _0x464e5c
|
|
1449
|
-
}],
|
|
1450
|
-
..._0x2db8a6 ? { 'isError': !![] } : {}
|
|
1451
|
-
};
|
|
1452
|
-
}
|
|
1453
|
-
async function registerChatBridgeTools(_0x1cadc0, _0x7fa0c4, _0x4b95b4) {
|
|
1454
|
-
const _0x41c04b = {
|
|
1455
|
-
_0x4fed1a: 0x263,
|
|
1456
|
-
_0x4e317f: 0x235,
|
|
1457
|
-
_0x172d87: 0x1cd,
|
|
1458
|
-
_0x30ba0f: 0x24a,
|
|
1459
|
-
_0xa9a607: 0x1ba,
|
|
1460
|
-
_0x58e4d2: 0x24f,
|
|
1461
|
-
_0x271a25: 0x263,
|
|
1462
|
-
_0x2e1e80: 0x163,
|
|
1463
|
-
_0x5bed4f: 0x171,
|
|
1464
|
-
_0x3befeb: 0x16a,
|
|
1465
|
-
_0x2afa3a: 0x1fe,
|
|
1466
|
-
_0xae0a3c: 0x1cd,
|
|
1467
|
-
_0x425d5f: 0x24a,
|
|
1468
|
-
_0x39b94f: 0x263,
|
|
1469
|
-
_0x18395f: 0x234,
|
|
1470
|
-
_0x349cc8: 0x235,
|
|
1471
|
-
_0x1797c5: 0x24a,
|
|
1472
|
-
_0x3c9eba: 0x24f,
|
|
1473
|
-
_0x57594f: 0x263,
|
|
1474
|
-
_0x1936c5: 0x216,
|
|
1475
|
-
_0x5ec3b1: 0x171,
|
|
1476
|
-
_0x3799ff: 0x217,
|
|
1477
|
-
_0x554d1a: 0x175,
|
|
1478
|
-
_0x56e0c0: 0x1cd,
|
|
1479
|
-
_0x2881f9: 0x1cd,
|
|
1480
|
-
_0x3f08e5: 0x24a,
|
|
1481
|
-
_0x29e20f: 0x263,
|
|
1482
|
-
_0x3b6968: 0x228,
|
|
1483
|
-
_0x10e727: 0x248,
|
|
1484
|
-
_0x3f72cd: 0x243,
|
|
1485
|
-
_0x4ef5d6: 0x1cd,
|
|
1486
|
-
_0x38cfee: 0x1cd,
|
|
1487
|
-
_0x16ee1a: 0x1cd,
|
|
1488
|
-
_0x3436a6: 0x1cd,
|
|
1489
|
-
_0xf2c6da: 0x15d,
|
|
1490
|
-
_0x3b9e7a: 0x263,
|
|
1491
|
-
_0x26a15c: 0x275
|
|
1492
|
-
}, _0x2d7bb2 = { _0x1d245a: 0x15c }, _0x4f9d98 = {
|
|
1493
|
-
_0x5eaa52: 0x15c,
|
|
1494
|
-
_0x4cc09e: 0x1aa
|
|
1495
|
-
}, _0x30115d = {
|
|
1496
|
-
_0x5d8080: 0x16f,
|
|
1497
|
-
_0x1dfa29: 0x268
|
|
1498
|
-
}, _0x3e6635 = { _0x36dc52: 0x18c }, _0x1e1d10 = {
|
|
1499
|
-
_0x1da898: 0x2a8,
|
|
1500
|
-
_0x817df9: 0x25c
|
|
1501
|
-
}, _0x1315a2 = { _0x54cc4f: 0x144 }, _0x13b24e = { _0x2ea12f: 0x172 }, _0x3d5efc = {
|
|
1502
|
-
_0x2b0619: 0x27b,
|
|
1503
|
-
_0x5f29e6: 0x1c6
|
|
1504
|
-
}, _0x36a75c = {
|
|
1505
|
-
_0x48908a: 0x15c,
|
|
1506
|
-
_0x753d9d: 0x191
|
|
1507
|
-
}, _0x11e13c = {
|
|
1508
|
-
_0x5df8a5: 0x222,
|
|
1509
|
-
_0x574ccd: 0x1b4
|
|
1510
|
-
}, _0x1862c2 = {
|
|
1511
|
-
_0x3d9bde: 0x201,
|
|
1512
|
-
_0x35e757: 0x15c,
|
|
1513
|
-
_0xdd72f5: 0x28a
|
|
1514
|
-
}, _0x26a8ce = {
|
|
1515
|
-
_0x224745: 0x20a,
|
|
1516
|
-
_0x1fc7d8: 0x20d
|
|
1517
|
-
}, _0x4cf077 = _0x2c1aa0, {z: _0x3cb920} = await import(_0x4cf077(0x19d));
|
|
1518
|
-
_0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)](_0x4cf077(0x1fd), 'Send\x20a\x20message\x20to\x20a\x20channel\x20or\x20DM.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages;\x20thread\x20targets\x20use\x20the\x20same\x20field.', {
|
|
1519
|
-
'target': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1520
|
-
'content': _0x3cb920['string'](),
|
|
1521
|
-
'attachment_ids': _0x3cb920[_0x4cf077(_0x41c04b._0x4e317f)](_0x3cb920[_0x4cf077(_0x41c04b._0x172d87)]())[_0x4cf077(_0x41c04b._0x30ba0f)]()
|
|
1522
|
-
}, async _0x44406e => {
|
|
1523
|
-
const _0x50e6d4 = _0x4cf077;
|
|
1524
|
-
try {
|
|
1525
|
-
return textResult(await _0x7fa0c4['send_message'](_0x44406e));
|
|
1526
|
-
} catch (_0x378ea5) {
|
|
1527
|
-
return textResult(_0x378ea5 instanceof Error ? _0x378ea5[_0x50e6d4(0x15c)] : 'send_message\x20failed', !![]);
|
|
1528
|
-
}
|
|
1529
|
-
}), _0x1cadc0[_0x4cf077(0x263)]('check_messages', 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
1530
|
-
const _0xf875ec = _0x4cf077;
|
|
1531
|
-
try {
|
|
1532
|
-
return textResult(await _0x7fa0c4['check_messages']());
|
|
1533
|
-
} catch (_0x5f5834) {
|
|
1534
|
-
return textResult(_0x5f5834 instanceof Error ? _0x5f5834[_0xf875ec(0x15c)] : _0xf875ec(0x274), !![]);
|
|
1535
|
-
}
|
|
1536
|
-
}), _0x1cadc0[_0x4cf077(0x263)]('read_history', _0x4cf077(_0x41c04b._0xa9a607), {
|
|
1537
|
-
'channel': _0x3cb920['string'](),
|
|
1538
|
-
'limit': _0x3cb920[_0x4cf077(_0x41c04b._0x58e4d2)]()[_0x4cf077(0x24a)](),
|
|
1539
|
-
'before': _0x3cb920[_0x4cf077(_0x41c04b._0x58e4d2)]()['optional'](),
|
|
1540
|
-
'after': _0x3cb920[_0x4cf077(0x24f)]()['optional']()
|
|
1541
|
-
}, async _0x23415b => {
|
|
1542
|
-
try {
|
|
1543
|
-
return textResult(await _0x7fa0c4['read_history'](_0x23415b));
|
|
1544
|
-
} catch (_0x23b517) {
|
|
1545
|
-
return textResult(_0x23b517 instanceof Error ? _0x23b517['message'] : 'read_history\x20failed', !![]);
|
|
1546
|
-
}
|
|
1547
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x271a25)](_0x4cf077(0x20a), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
1548
|
-
const _0x15c216 = _0x4cf077;
|
|
1549
|
-
try {
|
|
1550
|
-
return textResult(await _0x7fa0c4[_0x15c216(_0x26a8ce._0x224745)]());
|
|
1551
|
-
} catch (_0x33a89f) {
|
|
1552
|
-
return textResult(_0x33a89f instanceof Error ? _0x33a89f[_0x15c216(0x15c)] : _0x15c216(_0x26a8ce._0x1fc7d8), !![]);
|
|
1553
|
-
}
|
|
1554
|
-
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x201), _0x4cf077(_0x41c04b._0x2e1e80), {
|
|
1555
|
-
'channel': _0x3cb920['string'](),
|
|
1556
|
-
'status': _0x3cb920['enum']([
|
|
1557
|
-
_0x4cf077(0x216),
|
|
1558
|
-
'in_progress',
|
|
1559
|
-
_0x4cf077(_0x41c04b._0x5bed4f),
|
|
1560
|
-
_0x4cf077(_0x41c04b._0x3befeb)
|
|
1561
|
-
])[_0x4cf077(_0x41c04b._0x30ba0f)]()
|
|
1562
|
-
}, async _0x1228dc => {
|
|
1563
|
-
const _0x3c8b95 = _0x4cf077;
|
|
1564
|
-
try {
|
|
1565
|
-
return textResult(await _0x7fa0c4[_0x3c8b95(_0x1862c2._0x3d9bde)](_0x1228dc));
|
|
1566
|
-
} catch (_0x4b5bdf) {
|
|
1567
|
-
return textResult(_0x4b5bdf instanceof Error ? _0x4b5bdf[_0x3c8b95(_0x1862c2._0x35e757)] : _0x3c8b95(_0x1862c2._0xdd72f5), !![]);
|
|
1568
|
-
}
|
|
1569
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)](_0x4cf077(0x222), 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
1570
|
-
'channel': _0x3cb920['string'](),
|
|
1571
|
-
'idempotency_key': _0x3cb920[_0x4cf077(0x1cd)]()[_0x4cf077(0x24a)](),
|
|
1572
|
-
'tasks': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x2afa3a)]({
|
|
1573
|
-
'title': _0x3cb920[_0x4cf077(_0x41c04b._0xae0a3c)](),
|
|
1574
|
-
'description': _0x3cb920['string']()[_0x4cf077(_0x41c04b._0x425d5f)](),
|
|
1575
|
-
'priority': _0x3cb920['enum']([
|
|
1576
|
-
'low',
|
|
1577
|
-
_0x4cf077(0x232),
|
|
1578
|
-
'high',
|
|
1579
|
-
_0x4cf077(0x294)
|
|
1580
|
-
])[_0x4cf077(0x24a)]()
|
|
1581
|
-
}))
|
|
1582
|
-
}, async _0x4651b5 => {
|
|
1583
|
-
const _0x2505bd = _0x4cf077;
|
|
1584
|
-
try {
|
|
1585
|
-
return textResult(await _0x7fa0c4[_0x2505bd(_0x11e13c._0x5df8a5)](_0x4651b5));
|
|
1586
|
-
} catch (_0x5ed80c) {
|
|
1587
|
-
return textResult(_0x5ed80c instanceof Error ? _0x5ed80c['message'] : _0x2505bd(_0x11e13c._0x574ccd), !![]);
|
|
1588
|
-
}
|
|
1589
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x39b94f)](_0x4cf077(_0x41c04b._0x18395f), _0x4cf077(0x1f4), {
|
|
1590
|
-
'channel': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1591
|
-
'task_numbers': _0x3cb920[_0x4cf077(_0x41c04b._0x349cc8)](_0x3cb920['number']())['optional'](),
|
|
1592
|
-
'message_ids': _0x3cb920[_0x4cf077(_0x41c04b._0x349cc8)](_0x3cb920['string']())[_0x4cf077(0x24a)](),
|
|
1593
|
-
'evidence': _0x3cb920['record'](_0x3cb920[_0x4cf077(0x1cd)](), _0x3cb920[_0x4cf077(_0x41c04b._0x2afa3a)]({
|
|
1594
|
-
'create_thread': _0x3cb920[_0x4cf077(0x20f)]()[_0x4cf077(_0x41c04b._0x1797c5)](),
|
|
1595
|
-
'create_task': _0x3cb920['unknown']()['optional']()
|
|
1596
|
-
}))['optional'](),
|
|
1597
|
-
'idempotency_key': _0x3cb920['string']()[_0x4cf077(_0x41c04b._0x425d5f)]()
|
|
1598
|
-
}, async _0x2f9cd9 => {
|
|
1599
|
-
const _0x348485 = _0x4cf077;
|
|
1600
|
-
try {
|
|
1601
|
-
return textResult(await _0x7fa0c4[_0x348485(0x234)](_0x2f9cd9));
|
|
1602
|
-
} catch (_0x345091) {
|
|
1603
|
-
return textResult(_0x345091 instanceof Error ? _0x345091['message'] : 'claim_tasks\x20failed', !![]);
|
|
1604
|
-
}
|
|
1605
|
-
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x198), _0x4cf077(0x137), {
|
|
1606
|
-
'channel': _0x3cb920['string'](),
|
|
1607
|
-
'task_number': _0x3cb920[_0x4cf077(_0x41c04b._0x3c9eba)](),
|
|
1608
|
-
'idempotency_key': _0x3cb920['string']()[_0x4cf077(0x24a)]()
|
|
1609
|
-
}, async _0x3bdda5 => {
|
|
1610
|
-
const _0x3e652e = _0x4cf077;
|
|
1611
|
-
try {
|
|
1612
|
-
return textResult(await _0x7fa0c4[_0x3e652e(0x198)](_0x3bdda5));
|
|
1613
|
-
} catch (_0x7cb791) {
|
|
1614
|
-
return textResult(_0x7cb791 instanceof Error ? _0x7cb791[_0x3e652e(_0x36a75c._0x48908a)] : _0x3e652e(_0x36a75c._0x753d9d), !![]);
|
|
1615
|
-
}
|
|
1616
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x57594f)](_0x4cf077(0x27b), _0x4cf077(0x27e), {
|
|
1617
|
-
'channel': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1618
|
-
'task_number': _0x3cb920[_0x4cf077(0x24f)](),
|
|
1619
|
-
'status': _0x3cb920['enum']([
|
|
1620
|
-
_0x4cf077(_0x41c04b._0x1936c5),
|
|
1621
|
-
'in_progress',
|
|
1622
|
-
_0x4cf077(_0x41c04b._0x5ec3b1),
|
|
1623
|
-
'done'
|
|
1624
|
-
]),
|
|
1625
|
-
'idempotency_key': _0x3cb920['string']()[_0x4cf077(_0x41c04b._0x1797c5)]()
|
|
1626
|
-
}, async _0x20a5b1 => {
|
|
1627
|
-
const _0x38ff31 = _0x4cf077;
|
|
1628
|
-
try {
|
|
1629
|
-
return textResult(await _0x7fa0c4[_0x38ff31(_0x3d5efc._0x2b0619)](_0x20a5b1));
|
|
1630
|
-
} catch (_0x12c60e) {
|
|
1631
|
-
return textResult(_0x12c60e instanceof Error ? _0x12c60e[_0x38ff31(0x15c)] : _0x38ff31(_0x3d5efc._0x5f29e6), !![]);
|
|
1632
|
-
}
|
|
1633
|
-
}), _0x1cadc0['tool'](_0x4cf077(_0x41c04b._0x3799ff), _0x4cf077(_0x41c04b._0x554d1a), {
|
|
1634
|
-
'channel': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1635
|
-
'file_path': _0x3cb920[_0x4cf077(_0x41c04b._0xae0a3c)]()
|
|
1636
|
-
}, async _0x3e1172 => {
|
|
1637
|
-
const _0x6471f7 = _0x4cf077;
|
|
1638
|
-
try {
|
|
1639
|
-
return textResult(await _0x7fa0c4[_0x6471f7(0x217)](_0x3e1172));
|
|
1640
|
-
} catch (_0x3c1800) {
|
|
1641
|
-
return textResult(_0x3c1800 instanceof Error ? _0x3c1800['message'] : _0x6471f7(_0x13b24e._0x2ea12f), !![]);
|
|
1642
|
-
}
|
|
1643
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)]('view_file', _0x4cf077(0x1fb), { 'attachment_id': _0x3cb920[_0x4cf077(_0x41c04b._0x56e0c0)]() }, async _0x443c6f => {
|
|
1644
|
-
const _0x406e46 = _0x4cf077;
|
|
1645
|
-
try {
|
|
1646
|
-
return textResult(await _0x7fa0c4[_0x406e46(0x287)](_0x443c6f));
|
|
1647
|
-
} catch (_0x2411f4) {
|
|
1648
|
-
return textResult(_0x2411f4 instanceof Error ? _0x2411f4['message'] : _0x406e46(_0x1315a2._0x54cc4f), !![]);
|
|
1649
|
-
}
|
|
1650
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)](_0x4cf077(0x2a8), 'Spawn\x20a\x20worker\x20agent\x20to\x20handle\x20a\x20subtask\x20asynchronously.\x20The\x20worker\x20runs\x20in\x20its\x20own\x20session\x20and\x20reports\x20back\x20when\x20done.', {
|
|
1651
|
-
'work_key': _0x3cb920['string'](),
|
|
1652
|
-
'thread_target': _0x3cb920['string'](),
|
|
1653
|
-
'objective': _0x3cb920[_0x4cf077(_0x41c04b._0x172d87)](),
|
|
1654
|
-
'conclusions': _0x3cb920[_0x4cf077(0x235)](_0x3cb920[_0x4cf077(_0x41c04b._0x2881f9)]())[_0x4cf077(_0x41c04b._0x3f08e5)](),
|
|
1655
|
-
'relevant_files': _0x3cb920['array'](_0x3cb920[_0x4cf077(0x1cd)]())[_0x4cf077(0x24a)](),
|
|
1656
|
-
'open_questions': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x2881f9)]())[_0x4cf077(0x24a)](),
|
|
1657
|
-
'reply_target': _0x3cb920[_0x4cf077(_0x41c04b._0x56e0c0)](),
|
|
1658
|
-
'task_id': _0x3cb920[_0x4cf077(0x1cd)]()[_0x4cf077(0x24a)]()
|
|
1659
|
-
}, async _0x391eea => {
|
|
1660
|
-
const _0x1c54d2 = _0x4cf077;
|
|
1661
|
-
try {
|
|
1662
|
-
return textResult(await _0x7fa0c4[_0x1c54d2(_0x1e1d10._0x1da898)](_0x391eea));
|
|
1663
|
-
} catch (_0x50e27a) {
|
|
1664
|
-
return textResult(_0x50e27a instanceof Error ? _0x50e27a['message'] : _0x1c54d2(_0x1e1d10._0x817df9), !![]);
|
|
1665
|
-
}
|
|
1666
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x29e20f)](_0x4cf077(0x252), _0x4cf077(0x14b), { 'work_key': _0x3cb920[_0x4cf077(_0x41c04b._0x2881f9)]() }, async _0x381a7d => {
|
|
1667
|
-
const _0x43ba4e = _0x4cf077;
|
|
1668
|
-
try {
|
|
1669
|
-
return textResult(await _0x7fa0c4['get_worker_status'](_0x381a7d));
|
|
1670
|
-
} catch (_0x1b9858) {
|
|
1671
|
-
return textResult(_0x1b9858 instanceof Error ? _0x1b9858[_0x43ba4e(0x15c)] : _0x43ba4e(_0x3e6635._0x36dc52), !![]);
|
|
1672
|
-
}
|
|
1673
|
-
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x1da), _0x4cf077(_0x41c04b._0x3b6968), { 'work_key': _0x3cb920['string']() }, async _0x3ba7ab => {
|
|
1674
|
-
const _0x41dfb3 = _0x4cf077;
|
|
1675
|
-
try {
|
|
1676
|
-
return textResult(await _0x7fa0c4['get_worker_result'](_0x3ba7ab));
|
|
1677
|
-
} catch (_0x1c34f1) {
|
|
1678
|
-
return textResult(_0x1c34f1 instanceof Error ? _0x1c34f1[_0x41dfb3(0x15c)] : 'get_worker_result\x20failed', !![]);
|
|
1679
|
-
}
|
|
1680
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x29e20f)](_0x4cf077(0x16f), _0x4cf077(0x185), {
|
|
1681
|
-
'work_key': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1682
|
-
'result': _0x3cb920[_0x4cf077(_0x41c04b._0x10e727)]([
|
|
1683
|
-
_0x4cf077(0x15b),
|
|
1684
|
-
'blocked',
|
|
1685
|
-
_0x4cf077(_0x41c04b._0x3f72cd)
|
|
1686
|
-
]),
|
|
1687
|
-
'summary': _0x3cb920[_0x4cf077(_0x41c04b._0x4ef5d6)](),
|
|
1688
|
-
'decisions': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x38cfee)]())[_0x4cf077(0x24a)](),
|
|
1689
|
-
'files_changed': _0x3cb920[_0x4cf077(0x235)](_0x3cb920[_0x4cf077(_0x41c04b._0x16ee1a)]())[_0x4cf077(0x24a)](),
|
|
1690
|
-
'open_issues': _0x3cb920['array'](_0x3cb920[_0x4cf077(0x1cd)]())[_0x4cf077(_0x41c04b._0x425d5f)](),
|
|
1691
|
-
'next_steps': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x3436a6)]())[_0x4cf077(0x24a)]()
|
|
1692
|
-
}, async _0x5b2179 => {
|
|
1693
|
-
const _0x5fb5d8 = _0x4cf077;
|
|
1694
|
-
try {
|
|
1695
|
-
return textResult(await _0x7fa0c4[_0x5fb5d8(_0x30115d._0x5d8080)](_0x5b2179));
|
|
1696
|
-
} catch (_0x28e81a) {
|
|
1697
|
-
return textResult(_0x28e81a instanceof Error ? _0x28e81a[_0x5fb5d8(0x15c)] : _0x5fb5d8(_0x30115d._0x1dfa29), !![]);
|
|
1698
|
-
}
|
|
1699
|
-
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x23d), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
1700
|
-
'work_key': _0x3cb920['string'](),
|
|
1701
|
-
'reason': _0x3cb920[_0x4cf077(_0x41c04b._0x3436a6)]()
|
|
1702
|
-
}, async _0x2614c2 => {
|
|
1703
|
-
const _0x3510f3 = _0x4cf077;
|
|
1704
|
-
try {
|
|
1705
|
-
return textResult(await _0x7fa0c4[_0x3510f3(0x23d)](_0x2614c2));
|
|
1706
|
-
} catch (_0x5a5c94) {
|
|
1707
|
-
return textResult(_0x5a5c94 instanceof Error ? _0x5a5c94[_0x3510f3(_0x4f9d98._0x5eaa52)] : _0x3510f3(_0x4f9d98._0x4cc09e), !![]);
|
|
1708
|
-
}
|
|
1709
|
-
}), _0x4b95b4?.[_0x4cf077(_0x41c04b._0xf2c6da)] && _0x1cadc0[_0x4cf077(_0x41c04b._0x3b9e7a)](_0x4cf077(0x132), _0x4cf077(_0x41c04b._0x26a15c), { 'work_key': _0x3cb920['string']() }, async _0x54ab7b => {
|
|
1710
|
-
const _0x47c4b0 = _0x4cf077;
|
|
1711
|
-
try {
|
|
1712
|
-
return textResult(await _0x7fa0c4['mark_waiting_input'](_0x54ab7b));
|
|
1713
|
-
} catch (_0x3d54c1) {
|
|
1714
|
-
return textResult(_0x3d54c1 instanceof Error ? _0x3d54c1[_0x47c4b0(_0x2d7bb2._0x1d245a)] : _0x47c4b0(0x21b), !![]);
|
|
1715
|
-
}
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
async function createChatBridgeServer(_0x3bf8c4) {
|
|
1719
|
-
const _0x1e8efe = { _0x146326: 0x1de }, _0x2d8214 = _0x2c1aa0, {McpServer: _0x59da82} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x5c21a9 = new _0x59da82({
|
|
1720
|
-
'name': _0x2d8214(_0x1e8efe._0x146326),
|
|
1721
|
-
'version': _0x2d8214(0x299)
|
|
1722
|
-
}), _0x6c096f = createChatBridgeHandlers(_0x3bf8c4);
|
|
1723
|
-
return await registerChatBridgeTools(_0x5c21a9, _0x6c096f, { 'workerMode': _0x3bf8c4[_0x2d8214(0x15d)] }), {
|
|
1724
|
-
'handlers': _0x6c096f,
|
|
1725
|
-
'server': _0x5c21a9
|
|
1726
|
-
};
|
|
1727
|
-
}
|
|
1728
|
-
function readFlag(_0x393484, _0x4fff7f) {
|
|
1729
|
-
const _0x3f815c = _0x2c1aa0, _0x32d872 = _0x393484[_0x3f815c(0x151)](_0x4fff7f);
|
|
1730
|
-
if (_0x32d872 === -0x1)
|
|
1731
|
-
return void 0x0;
|
|
1732
|
-
return _0x393484[_0x32d872 + 0x1];
|
|
1733
|
-
}
|
|
1734
|
-
function parseChatBridgeArgs(_0x3df1b6) {
|
|
1735
|
-
const _0x28b424 = {
|
|
1736
|
-
_0x5750fe: 0x26d,
|
|
1737
|
-
_0x34c76e: 0x14e,
|
|
1738
|
-
_0xfc9004: 0x27a,
|
|
1739
|
-
_0x167b04: 0x293,
|
|
1740
|
-
_0x83c097: 0x1ea,
|
|
1741
|
-
_0x41cb4b: 0x194,
|
|
1742
|
-
_0x3274d4: 0x1a5
|
|
1743
|
-
}, _0x3ed015 = _0x2c1aa0, _0x5dda31 = readFlag(_0x3df1b6, '--agent-id'), _0x191d74 = readFlag(_0x3df1b6, _0x3ed015(_0x28b424._0x5750fe)), _0x79f6a5 = readFlag(_0x3df1b6, _0x3ed015(0x29e)), _0x26092e = readFlag(_0x3df1b6, _0x3ed015(_0x28b424._0x34c76e)) ?? _0x3ed015(0x236), _0x414a83 = readFlag(_0x3df1b6, _0x3ed015(_0x28b424._0xfc9004)), _0x195efd = readFlag(_0x3df1b6, _0x3ed015(0x1f8)), _0xaccfe8 = readFlag(_0x3df1b6, '--worker-mode-enabled'), _0x5b37e6 = readFlag(_0x3df1b6, '--worker-thread-target'), _0x25ca5a = _0x3df1b6[_0x3ed015(0x1a3)](_0x3ed015(0x1e6)), _0xa0299 = _0x79f6a5 === void 0x0 ? void 0x0 : Number[_0x3ed015(0x21c)](_0x79f6a5, 0xa);
|
|
1744
|
-
if (!_0x5dda31)
|
|
1745
|
-
throw new Error(_0x3ed015(_0x28b424._0x167b04));
|
|
1746
|
-
if (!_0x191d74)
|
|
1747
|
-
throw new Error(_0x3ed015(_0x28b424._0x83c097));
|
|
1748
|
-
if (_0x79f6a5 !== void 0x0 && (_0xa0299 === void 0x0 || !Number['isFinite'](_0xa0299) || _0xa0299 < 0x0))
|
|
1749
|
-
throw new Error(_0x3ed015(_0x28b424._0x41cb4b));
|
|
1750
|
-
return {
|
|
1751
|
-
'agentId': _0x5dda31,
|
|
1752
|
-
'daemonApiKey': _0x191d74,
|
|
1753
|
-
'daemonLocalUrl': _0x414a83,
|
|
1754
|
-
'initialLastSeenSeq': _0xa0299,
|
|
1755
|
-
'sessionId': _0x195efd,
|
|
1756
|
-
'serverUrl': _0x26092e,
|
|
1757
|
-
'workerModeEnabled': _0xaccfe8 === void 0x0 ? void 0x0 : _0xaccfe8 !== _0x3ed015(_0x28b424._0x3274d4),
|
|
1758
|
-
'workerThreadTarget': _0x5b37e6,
|
|
1759
|
-
'workerMode': _0x25ca5a
|
|
1760
|
-
};
|
|
929
|
+
return '\x20[' + _0x12e982[_0x268b31(0x1e3)] + _0x268b31(0x170) + (_0x12e982[_0x268b31(_0x41a2f5._0x3ab293)] > 0x1 ? 's' : '') + ':\x20' + _0x12e982['map'](_0x712bc0 => _0x712bc0[_0x268b31(0x25c)] + _0x268b31(0x249) + _0x712bc0['id'] + ')')[_0x268b31(_0x41a2f5._0x5b3131)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1761
930
|
}
|
|
1762
|
-
function
|
|
1763
|
-
const
|
|
1764
|
-
'
|
|
931
|
+
function _0x4879() {
|
|
932
|
+
const _0x2257c8 = [
|
|
933
|
+
'lIbnzxnZywDLieLeoIa',
|
|
934
|
+
'ihn0yxr1CZ0',
|
|
935
|
+
'zMLSDgvY',
|
|
936
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
937
|
+
'Bg9JywXLq29TCgfYzq',
|
|
938
|
+
'y29UBMvJDa',
|
|
939
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
940
|
+
'BgLZDf90yxnRCW',
|
|
941
|
+
'nZG0ntnuvMP0vKW',
|
|
942
|
+
'D3nZoG',
|
|
943
|
+
'y2fJAgveAxi',
|
|
944
|
+
'v29YA2vYici',
|
|
945
|
+
'BgvUz3rO',
|
|
946
|
+
'DhjPBq',
|
|
947
|
+
'D29YA2vYtw9Kzq',
|
|
948
|
+
'z2v0vgLTzq',
|
|
949
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
950
|
+
'ywDLBNq',
|
|
951
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
952
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
953
|
+
'CgfKu3rHCNq',
|
|
954
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
955
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
956
|
+
'DgL0Bgu',
|
|
957
|
+
'igzHAwXLzdOG',
|
|
958
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
959
|
+
'zw51Bq',
|
|
960
|
+
'Aw5FCMv2Awv3',
|
|
961
|
+
'DgfZAY0',
|
|
962
|
+
'zgfLBw9UqxbPs2v5',
|
|
963
|
+
'C3bHD25Lza',
|
|
964
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
965
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
966
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
967
|
+
'kg5VBMuP',
|
|
968
|
+
'C2vX',
|
|
969
|
+
'ywz0zxi',
|
|
970
|
+
'DxbSB2fKx2zPBgu',
|
|
971
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
972
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
973
|
+
'ywjVCNrLza',
|
|
974
|
+
'lNnSB2nR',
|
|
975
|
+
'D29YA2vYCW',
|
|
976
|
+
'BgLZDfrHC2TZ',
|
|
977
|
+
'C3rYAw5NAwz5',
|
|
978
|
+
'AgfZtw9Yzq',
|
|
979
|
+
'mJyXnZa0neLrr2zIta',
|
|
980
|
+
'ywjVCNq',
|
|
981
|
+
'mtG5mZCYoenIq2DKvq',
|
|
982
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1765
983
|
'ChvZAa',
|
|
984
|
+
'r0vu',
|
|
985
|
+
'y3vYC29Y',
|
|
986
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
987
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1766
988
|
'z2v0tw9UDgG',
|
|
989
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
990
|
+
'C3bHD25FD29YA2vY',
|
|
991
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
992
|
+
'ywDNCMvNyxrLswrZ',
|
|
993
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
994
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
995
|
+
'w3nLCt0',
|
|
996
|
+
'CMvHC29U',
|
|
997
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
998
|
+
'lIbtzxnZAw9UieLeoIa',
|
|
999
|
+
'lsaJ',
|
|
1000
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1001
|
+
'y29UDgvUDc10ExbL',
|
|
1002
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1003
|
+
'C2v0',
|
|
1004
|
+
'zMLUza',
|
|
1005
|
+
'CgfYDgLJAxbHBNrZ',
|
|
1006
|
+
'zgvZDhjVEwvK',
|
|
1007
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
1008
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1009
|
+
'zMfPBgvK',
|
|
1767
1010
|
'rMLSzsb1CgXVywrLzdOG',
|
|
1768
|
-
'
|
|
1769
|
-
'
|
|
1770
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1771
|
-
'C3rHCNrZv2L0Aa',
|
|
1772
|
-
'z2v0rNvSBfLLyxi',
|
|
1773
|
-
'khvUA25VD24P',
|
|
1774
|
-
'C3vJy2vZCW',
|
|
1011
|
+
'l3n0yxj0',
|
|
1012
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1775
1013
|
'C2L6zuj5DgvZ',
|
|
1776
|
-
'
|
|
1777
|
-
'
|
|
1778
|
-
'AhvTyw5Z',
|
|
1779
|
-
'lsba',
|
|
1780
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1781
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1782
|
-
'ue9tva',
|
|
1783
|
-
'DxrMoa',
|
|
1784
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1785
|
-
'BgLZDfrHC2TZ',
|
|
1786
|
-
'CNvUswq',
|
|
1787
|
-
'DgHYzwfKswq',
|
|
1788
|
-
'mJeWt2DAAKfL',
|
|
1789
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1790
|
-
'zMv0y2HjBxbS',
|
|
1791
|
-
'y2HLy2TnzxnZywDLCW',
|
|
1792
|
-
'ChjVDg9JB2W',
|
|
1793
|
-
'y2HHDa',
|
|
1794
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1795
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
1796
|
-
'zMLSzw5HBwu',
|
|
1797
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
1798
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1799
|
-
'BM93',
|
|
1800
|
-
'ywDLBNrjza',
|
|
1801
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
1014
|
+
'BMfTzq',
|
|
1015
|
+
'zgf0yq',
|
|
1802
1016
|
'C2L6zq',
|
|
1803
|
-
'
|
|
1804
|
-
'
|
|
1805
|
-
'
|
|
1806
|
-
'
|
|
1807
|
-
'
|
|
1808
|
-
'
|
|
1809
|
-
'
|
|
1810
|
-
'
|
|
1811
|
-
'
|
|
1812
|
-
'
|
|
1813
|
-
'
|
|
1814
|
-
'
|
|
1815
|
-
'
|
|
1816
|
-
'
|
|
1817
|
-
'
|
|
1818
|
-
'
|
|
1819
|
-
'
|
|
1820
|
-
'
|
|
1821
|
-
'lsaJ',
|
|
1822
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1823
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1824
|
-
'C2vUzf9TzxnZywDL',
|
|
1825
|
-
'B2jQzwn0',
|
|
1826
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1827
|
-
'l3rHC2TZl2nSywLT',
|
|
1828
|
-
'BgLZDf90yxnRCW',
|
|
1829
|
-
'ihn0yxr1CZ0',
|
|
1830
|
-
'yxr0ywnOBwvUDhm',
|
|
1831
|
-
'Aw1Hz2uVD2vICa',
|
|
1017
|
+
'y3jLyxrLvgfZA3m',
|
|
1018
|
+
'Aw1Hz2uVANbLzW',
|
|
1019
|
+
'nJyWDKz1Dvfg',
|
|
1020
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1021
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1022
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1023
|
+
'y2HHBM5LBhm',
|
|
1024
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1025
|
+
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
1026
|
+
'DMfSDwvZ',
|
|
1027
|
+
'CMvZDwX0',
|
|
1028
|
+
'ls1Hz2vUDc1Pza',
|
|
1029
|
+
'l3vWBg9Hza',
|
|
1030
|
+
'nNvuvu9WzG',
|
|
1031
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1032
|
+
'iIbUB3qGzM91BMq',
|
|
1033
|
+
'ig1LC3nHz2vZkqOk',
|
|
1034
|
+
'sfruuca',
|
|
1832
1035
|
'C29Tzq',
|
|
1833
|
-
'
|
|
1834
|
-
'
|
|
1835
|
-
'
|
|
1836
|
-
'
|
|
1837
|
-
'BgLZDf9Zzxj2zxi',
|
|
1838
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
1839
|
-
'CgfYDgLJAxbHBNrjza',
|
|
1840
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1841
|
-
'lcb3B3jRx2TLEtOG',
|
|
1842
|
-
'Dw5RBM93BG',
|
|
1843
|
-
'zxjYB3i',
|
|
1844
|
-
'CMvXDwvZDfvYBa',
|
|
1845
|
-
'BwfW',
|
|
1846
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1847
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1848
|
-
'l3DVCMTLCNmVC3bHD24',
|
|
1849
|
-
'Dg9KBW',
|
|
1850
|
-
'DxbSB2fKx2zPBgu',
|
|
1036
|
+
'ywDLBNrZ',
|
|
1037
|
+
'C2vUzf9TzxnZywDL',
|
|
1038
|
+
'y2XPzw50',
|
|
1039
|
+
'v29YA2vYia',
|
|
1851
1040
|
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1852
|
-
'
|
|
1853
|
-
'
|
|
1854
|
-
'
|
|
1855
|
-
'
|
|
1856
|
-
'
|
|
1857
|
-
'
|
|
1858
|
-
'
|
|
1859
|
-
'
|
|
1860
|
-
'
|
|
1041
|
+
'BwfW',
|
|
1042
|
+
'lMjPBG',
|
|
1043
|
+
'DgHYzwfKvgfYz2v0',
|
|
1044
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1045
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1046
|
+
'l3nLCNzLCG',
|
|
1047
|
+
'icHPzdO',
|
|
1048
|
+
'ndKZmtC0oevkEefUwq',
|
|
1049
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1050
|
+
'BwvTyMvYCW',
|
|
1051
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1052
|
+
'iJOGC3rHDhvZpq',
|
|
1053
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1054
|
+
'B3bLBL9PC3n1zxm',
|
|
1055
|
+
'C2HHmJu2',
|
|
1056
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1861
1057
|
'y3jLyxrLx3rHC2TZ',
|
|
1862
|
-
'
|
|
1863
|
-
'
|
|
1058
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1059
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1060
|
+
'BwvZC2fNzq',
|
|
1061
|
+
'y2XHAw1uyxnRCW',
|
|
1062
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1063
|
+
'CMvZDwX0sNnVBG',
|
|
1064
|
+
'z2v0rgf0zq',
|
|
1065
|
+
'D29YA19RzxK',
|
|
1066
|
+
'zMLSzw5HBwu',
|
|
1067
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1068
|
+
'y3jLyxrLzef0',
|
|
1069
|
+
'ChjVDg9JB2W',
|
|
1070
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1071
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
1072
|
+
'zgvZy3jPChrPB24',
|
|
1073
|
+
'zxjYB3i',
|
|
1074
|
+
'lsba',
|
|
1075
|
+
'C2vUze1LC3nHz2u',
|
|
1076
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1077
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1078
|
+
'z2v0',
|
|
1079
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
1080
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1081
|
+
'C3rHCNrLza',
|
|
1082
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1083
|
+
'l2fWAs9Hz2vUDhm/C2vYDMvYswq9',
|
|
1084
|
+
'y2HHBM5LBe5HBwu',
|
|
1085
|
+
'iYmJieH1BwfUCW',
|
|
1086
|
+
'zgLNzxn0',
|
|
1087
|
+
'cGOTls0G',
|
|
1088
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1089
|
+
'AhvTyw5Z',
|
|
1090
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
1091
|
+
'ig1ZzZ0',
|
|
1092
|
+
'CMvJB3jK',
|
|
1093
|
+
'Dgv4Da',
|
|
1094
|
+
'yxjYyxLcDwzMzxi',
|
|
1095
|
+
'z2v0sg91CNm',
|
|
1864
1096
|
'C2XPy2u',
|
|
1865
|
-
'
|
|
1097
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGBM90ignVBMzPz3vYzwqP',
|
|
1098
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1099
|
+
'Agv4',
|
|
1100
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1101
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1102
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
1103
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1104
|
+
'BwLU',
|
|
1105
|
+
'kgXLz2fJEsK',
|
|
1106
|
+
'ywz0zxjtzxe',
|
|
1107
|
+
'Aw5JBhvKzxm',
|
|
1108
|
+
'yMvMB3jL',
|
|
1109
|
+
'DMLLD19MAwXL',
|
|
1110
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1111
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1112
|
+
'l3rHC2TZpW',
|
|
1113
|
+
'Ahr0Chm6',
|
|
1114
|
+
'C2vUzgvYvhLWzq',
|
|
1115
|
+
'yM9KEu1HCMTKB3DU',
|
|
1116
|
+
'mtm3mJeWEfv4qxjQ',
|
|
1117
|
+
'B3b0Aw9UywW',
|
|
1118
|
+
'AxnbCNjHEq',
|
|
1119
|
+
'C3rYAw5N',
|
|
1120
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1121
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1122
|
+
'y2HHBM5LBeLK',
|
|
1866
1123
|
'zMLSzxnFy2HHBMDLza',
|
|
1124
|
+
'C2vYDMvY',
|
|
1125
|
+
'AgfZ',
|
|
1126
|
+
'C2f2zq',
|
|
1867
1127
|
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
1128
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1129
|
+
'C3vJy2vZCW',
|
|
1130
|
+
'AhjLzG',
|
|
1131
|
+
'CNvUswq',
|
|
1132
|
+
'nJeZmdyXnursyKroCa',
|
|
1133
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1134
|
+
'ue9tva',
|
|
1135
|
+
'zMLSzv9WyxrO',
|
|
1136
|
+
'BwvZC2fNzxm',
|
|
1137
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
1138
|
+
'Aw1Hz2uVCg5N',
|
|
1868
1139
|
'AM9PBG',
|
|
1140
|
+
'AxnjBNrLz2vY',
|
|
1141
|
+
'Axnoyu4',
|
|
1142
|
+
'CxvLDwvK',
|
|
1143
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1144
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1145
|
+
'AxngAwXL',
|
|
1869
1146
|
'CMvZCg9UC2u',
|
|
1870
|
-
'
|
|
1871
|
-
'
|
|
1872
|
-
'
|
|
1873
|
-
'
|
|
1874
|
-
'
|
|
1875
|
-
'
|
|
1876
|
-
'
|
|
1147
|
+
'C3bHD25FD29YA2vYigzHAwXLza',
|
|
1148
|
+
'DgfYz2v0',
|
|
1149
|
+
'C3rHCNrZv2L0Aa',
|
|
1150
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
1151
|
+
'Aw1Hz2uVD2vICa',
|
|
1152
|
+
'ls1ZzxnZAw9UlwLK',
|
|
1153
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1154
|
+
'ignSywLTzwq',
|
|
1155
|
+
'y29UDgvUDa',
|
|
1156
|
+
'C3rVCe1HAw4',
|
|
1157
|
+
'BgLTAxq',
|
|
1158
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1159
|
+
'ywrK',
|
|
1160
|
+
'lcbWCMv2Awv3pq',
|
|
1161
|
+
'AhvTyw4',
|
|
1162
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1163
|
+
'Dw5JBgfPBv90yxnR',
|
|
1164
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1165
|
+
'mc4WlJa',
|
|
1166
|
+
'y29UDgvUDejHC2u2na',
|
|
1167
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1168
|
+
'C2vYDMvYtMfTzq',
|
|
1169
|
+
'CMvHzf9OAxn0B3j5',
|
|
1170
|
+
'C2vYDMvYx21LBwjLCNm',
|
|
1171
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1172
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1173
|
+
'y29TCgXLDgvK',
|
|
1174
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1175
|
+
'yxr0ywnOBwvUDhm',
|
|
1176
|
+
'DxjNzw50',
|
|
1177
|
+
'C2vUzgvYtMfTzq',
|
|
1178
|
+
'AgvHzgvYCW',
|
|
1877
1179
|
'BwvKAxvT',
|
|
1878
|
-
'
|
|
1879
|
-
'
|
|
1880
|
-
'
|
|
1881
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1882
|
-
'iYmJieH1BwfUCW',
|
|
1883
|
-
'Dgv4Dc9JC3y',
|
|
1884
|
-
'Axnoyu4',
|
|
1885
|
-
'CMvZDwX0',
|
|
1886
|
-
'y2HHBM5LBeLK',
|
|
1887
|
-
'y2XHAw1uyxnRCW',
|
|
1888
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1889
|
-
'y2XHAw0GzMfPBgvK',
|
|
1890
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
1891
|
-
'CMvHzeHPC3rVCNK',
|
|
1892
|
-
'ig1LC3nHz2vZkqOk',
|
|
1180
|
+
'DgfZA19Pza',
|
|
1181
|
+
'BwvZC2fNzuLK',
|
|
1182
|
+
'y2f0y2G',
|
|
1893
1183
|
'Dgv4Dc9WBgfPBG',
|
|
1894
|
-
'
|
|
1895
|
-
'CNvUBMLUzW',
|
|
1896
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1897
|
-
'r0vu',
|
|
1184
|
+
'yxjYyxK',
|
|
1898
1185
|
'DxnLCG',
|
|
1899
|
-
'
|
|
1900
|
-
'
|
|
1901
|
-
'
|
|
1902
|
-
'
|
|
1903
|
-
'
|
|
1904
|
-
'
|
|
1905
|
-
'
|
|
1186
|
+
'y29UDgvUDfr5Cgu',
|
|
1187
|
+
'y2XHAw1FDgfZA3m',
|
|
1188
|
+
'D3m6',
|
|
1189
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1190
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1191
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1192
|
+
'l2zPBMLZAa',
|
|
1193
|
+
'Dw5JBgfPBvrHC2S',
|
|
1906
1194
|
'BNvTyMvY',
|
|
1907
|
-
'
|
|
1908
|
-
'
|
|
1909
|
-
'
|
|
1910
|
-
'
|
|
1911
|
-
'
|
|
1912
|
-
'
|
|
1913
|
-
'
|
|
1914
|
-
'
|
|
1915
|
-
'
|
|
1916
|
-
'
|
|
1917
|
-
'
|
|
1195
|
+
'u3bHD24Gysb3B3jRzxiGywDLBNqGDg8GAgfUzgXLigeGC3vIDgfZAYbHC3LUy2HYB25VDxnSEs4GvgHLihDVCMTLCIbYDw5ZigLUigL0CYbVD24GC2vZC2LVBIbHBMqGCMvWB3j0CYbIywnRihDOzw4Gzg9Uzs4',
|
|
1196
|
+
'B2jQzwn0',
|
|
1197
|
+
'igf0DgfJAg1LBNq',
|
|
1198
|
+
'DxbSB2fKrMLSzq',
|
|
1199
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1200
|
+
'Dg9tDhjPBMC',
|
|
1201
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
1202
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1203
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1204
|
+
'xsba',
|
|
1205
|
+
'DxrMoa',
|
|
1206
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1207
|
+
'CMvWBhLFDgfYz2v0',
|
|
1208
|
+
'Dg9gAxHLza',
|
|
1918
1209
|
'C2vZC2LVBKLK',
|
|
1919
|
-
'
|
|
1920
|
-
'
|
|
1921
|
-
'
|
|
1922
|
-
'
|
|
1923
|
-
'
|
|
1924
|
-
'
|
|
1925
|
-
'
|
|
1926
|
-
'
|
|
1210
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
1211
|
+
'ndu0odm5n1bYC1rduW',
|
|
1212
|
+
'l3DVCMTLCNmVC3bHD24',
|
|
1213
|
+
'mMnetfbytG',
|
|
1214
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1215
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1216
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1217
|
+
'BgLZDf9Zzxj2zxi',
|
|
1927
1218
|
'Bwf4',
|
|
1928
|
-
'
|
|
1929
|
-
'
|
|
1930
|
-
'
|
|
1931
|
-
'
|
|
1932
|
-
'
|
|
1933
|
-
'
|
|
1934
|
-
'
|
|
1935
|
-
'
|
|
1936
|
-
'
|
|
1937
|
-
'
|
|
1938
|
-
'
|
|
1939
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1940
|
-
'DgfZAY0',
|
|
1941
|
-
'CMvZDwX0CW',
|
|
1942
|
-
'y29UDgvUDc10ExbL',
|
|
1943
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1944
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1945
|
-
'yMfZzw5HBwu',
|
|
1946
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1219
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1220
|
+
'l3jLy2vPDMu',
|
|
1221
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1222
|
+
'BMv4Den1CNnVCG',
|
|
1223
|
+
'Bg93',
|
|
1224
|
+
'zg06',
|
|
1225
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1226
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1227
|
+
'ANnVBG',
|
|
1228
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1229
|
+
'CMvHzeHPC3rVCNK',
|
|
1947
1230
|
'ihrPBwu9',
|
|
1231
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
1232
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
1948
1233
|
'C3vTBwfYEq',
|
|
1949
|
-
'
|
|
1950
|
-
'
|
|
1951
|
-
'
|
|
1952
|
-
'
|
|
1953
|
-
'
|
|
1954
|
-
'
|
|
1955
|
-
'
|
|
1956
|
-
'
|
|
1957
|
-
'
|
|
1958
|
-
'
|
|
1959
|
-
'
|
|
1960
|
-
'
|
|
1961
|
-
'
|
|
1962
|
-
'
|
|
1963
|
-
'yM9KEu1HCMTKB3DU',
|
|
1964
|
-
'uefuq0G',
|
|
1965
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1966
|
-
'zgLZCg9ZAxrPB24',
|
|
1234
|
+
'z2v0u2vJB25KCW',
|
|
1235
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1236
|
+
'CgfYDgLJAxbHBNq',
|
|
1237
|
+
'Dw5RBM93BG',
|
|
1238
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
1239
|
+
'zgvJAxnPB25Z',
|
|
1240
|
+
'yMfZzw5HBwu',
|
|
1241
|
+
'Dg9VBa',
|
|
1242
|
+
'ywDNCMvNyxrLswq',
|
|
1243
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
1244
|
+
'Bwf0y2Hoyw1L',
|
|
1245
|
+
'Aw5FChjVz3jLC3m',
|
|
1246
|
+
'DgfZA0LK',
|
|
1247
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1967
1248
|
'Cgf5Bg9HzePZB24',
|
|
1968
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1969
|
-
'zgfLBw9UqxbPs2v5',
|
|
1970
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1971
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
1972
|
-
'l2zPBMLZAa',
|
|
1973
|
-
'y3vYC29Y',
|
|
1974
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1975
|
-
'DxjNzw50',
|
|
1976
|
-
'z2v0',
|
|
1977
|
-
'iJOGC3rHDhvZpq',
|
|
1978
1249
|
'y2HHBM5LBa',
|
|
1979
|
-
'
|
|
1980
|
-
'
|
|
1981
|
-
'C3rYAw5NAwz5',
|
|
1982
|
-
'ywDNCMvNyxrLswq',
|
|
1983
|
-
'otbyCuv4s1K',
|
|
1984
|
-
'y29UDgvUDfr5Cgu',
|
|
1985
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1986
|
-
'yMvMB3jL',
|
|
1987
|
-
'AhjLzG',
|
|
1988
|
-
'iIbUB3qGzM91BMq',
|
|
1989
|
-
'BwvTyMvY',
|
|
1990
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
1991
|
-
'yxr0ywnOBwvUDeLK',
|
|
1992
|
-
'D29YA2vY',
|
|
1993
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1994
|
-
'zg0T',
|
|
1995
|
-
'C3bHD25FD29YA2vY',
|
|
1996
|
-
'lNnSB2nR',
|
|
1997
|
-
'ig1ZzZ0',
|
|
1998
|
-
'C2vYDMvY',
|
|
1999
|
-
'l3nLCNzLCG',
|
|
2000
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
2001
|
-
'DgHYzwfK',
|
|
2002
|
-
'y29UBMvJDa',
|
|
2003
|
-
'zMLSzv9WyxrO',
|
|
2004
|
-
'C3bHD25Lza',
|
|
2005
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
2006
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
2007
|
-
'l3nLBMq',
|
|
2008
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
2009
|
-
'C2vYDMvYvxjS',
|
|
2010
|
-
'ywz0zxi',
|
|
2011
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
2012
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
2013
|
-
'z2v0u2vJB25KCW',
|
|
2014
|
-
'CM9VDe1LC3nHz2vjza',
|
|
2015
|
-
'CxvLDwvK',
|
|
2016
|
-
'ywjVCNq',
|
|
2017
|
-
'CMvHC29U',
|
|
1250
|
+
'CgfYC2u',
|
|
1251
|
+
'CgfYDgLJAxbHBNrjza',
|
|
2018
1252
|
'DMLLD19MAwXLigzHAwXLza',
|
|
2019
|
-
'
|
|
2020
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
2021
|
-
'BwLU',
|
|
2022
|
-
'C29YDa',
|
|
2023
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
2024
|
-
'DgfZA19Pza',
|
|
2025
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
2026
|
-
'BwvTyMvYCW',
|
|
2027
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
2028
|
-
'ls1Zzxj2zxiTDxjS',
|
|
1253
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
2029
1254
|
'Dg9ju09tDhjPBMC',
|
|
2030
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
2031
|
-
'Aw5KzxHpzG',
|
|
2032
|
-
'C3rHDhvZ',
|
|
2033
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
2034
|
-
'B3bLBL9PC3n1zxm',
|
|
2035
|
-
'ywDLBNrZ',
|
|
2036
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
2037
|
-
'lMjPBG',
|
|
2038
|
-
'sfruuca',
|
|
2039
|
-
'z2v0sg91CNm',
|
|
2040
|
-
'ANnVBG',
|
|
2041
|
-
'y29TCgXLDgvK',
|
|
2042
|
-
'BwvZC2fNzq',
|
|
2043
|
-
'D29YA2vYtw9Kzq',
|
|
2044
|
-
'BgLTAxq',
|
|
2045
|
-
'yxv0BZO',
|
|
2046
|
-
'BwvZC2fNzxm',
|
|
2047
|
-
'igf0DgfJAg1LBNq',
|
|
2048
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
2049
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
2050
|
-
'AhvTyw4',
|
|
2051
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
2052
|
-
'C2vX',
|
|
2053
|
-
'l2nVBNrLBNq',
|
|
2054
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
2055
|
-
'y3jLyxrLvgfZA3m',
|
|
2056
|
-
'zg9Uzq',
|
|
2057
1255
|
'A2LUza',
|
|
2058
|
-
'
|
|
2059
|
-
'
|
|
2060
|
-
'
|
|
2061
|
-
'
|
|
2062
|
-
'y2HHBM5LBe5HBwu',
|
|
2063
|
-
'Aw5FCMv2Awv3',
|
|
2064
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
2065
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
2066
|
-
'ihr5Cgu9ywDLBNq',
|
|
2067
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
2068
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
2069
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
2070
|
-
'y29UDgvUDejHC2u2na',
|
|
2071
|
-
'D3nZoG',
|
|
2072
|
-
'zgvSzxrL',
|
|
2073
|
-
'zxHWAxjLC0f0',
|
|
2074
|
-
'z2v0rgf0zq',
|
|
2075
|
-
'y2XPzw50',
|
|
2076
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
2077
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
2078
|
-
'zw50CMLLCW',
|
|
2079
|
-
'ig1LC3nHz2u9',
|
|
2080
|
-
'ywDLBNq',
|
|
2081
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
1256
|
+
'zg9Uzq',
|
|
1257
|
+
'DgHYzwfKswq',
|
|
1258
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1259
|
+
'DgHYzwfK',
|
|
2082
1260
|
'iYmJiefNzw50CW',
|
|
1261
|
+
'iYmJienOyw5UzwXZ',
|
|
1262
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1263
|
+
'D29YA2vY',
|
|
1264
|
+
'Ahr0CdO',
|
|
1265
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1266
|
+
'Dgv4Dc9JC3y',
|
|
1267
|
+
'l3rHC2TZl2nSywLT',
|
|
1268
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
1269
|
+
'Dg9KBW',
|
|
1270
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1271
|
+
'zw50CMLLCW',
|
|
1272
|
+
'y2XHAw0GzMfPBgvK',
|
|
1273
|
+
'DgHYzwfKtNvTyMvY',
|
|
1274
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
2083
1275
|
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
2084
|
-
'
|
|
2085
|
-
'
|
|
2086
|
-
'
|
|
2087
|
-
'D29YA2vYCW',
|
|
2088
|
-
'v29YA2vYici',
|
|
1276
|
+
'ihr5Cgu9ywDLBNq',
|
|
1277
|
+
'C3rHDhvZ',
|
|
1278
|
+
'ig1LC3nHz2u9',
|
|
2089
1279
|
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
2090
|
-
'
|
|
2091
|
-
'
|
|
2092
|
-
'
|
|
2093
|
-
'
|
|
2094
|
-
'
|
|
2095
|
-
'
|
|
2096
|
-
'
|
|
2097
|
-
'
|
|
2098
|
-
'
|
|
2099
|
-
'
|
|
2100
|
-
'
|
|
2101
|
-
'
|
|
2102
|
-
'
|
|
2103
|
-
'
|
|
2104
|
-
'
|
|
2105
|
-
'
|
|
2106
|
-
'
|
|
2107
|
-
'EM9K',
|
|
2108
|
-
'6k+35Rgcia',
|
|
2109
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
2110
|
-
'y29UDgvUDa',
|
|
2111
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
2112
|
-
'z2v0vgLTzq',
|
|
2113
|
-
'Aw5JBhvKzxm',
|
|
2114
|
-
'zMLUza',
|
|
2115
|
-
'zMfSC2u',
|
|
2116
|
-
'C2vUzgvYtMfTzq',
|
|
2117
|
-
'zgLZCgXHEu5HBwu',
|
|
2118
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
2119
|
-
'xsba',
|
|
2120
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
2121
|
-
'C2vUzgvYvhLWzq',
|
|
2122
|
-
'mZiWmdu4rgPhrNnw',
|
|
1280
|
+
'zNjVBq',
|
|
1281
|
+
'zxHWAxjLC0f0',
|
|
1282
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1283
|
+
'zgLZCg9ZAxrPB24',
|
|
1284
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1285
|
+
'z2v0rNvSBfLLyxi',
|
|
1286
|
+
'yM9KEvrLEhq',
|
|
1287
|
+
'C3bSAxq',
|
|
1288
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1289
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1290
|
+
'C29YDa',
|
|
1291
|
+
'ywDLBNrjza',
|
|
1292
|
+
'DxbKyxrL',
|
|
1293
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1294
|
+
'yxjNDG',
|
|
1295
|
+
'Bwv0yq',
|
|
1296
|
+
'l2nVBNrLBNq',
|
|
2123
1297
|
'DgfZA051BwjLCG',
|
|
2124
|
-
'
|
|
2125
|
-
'
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
'
|
|
2141
|
-
|
|
2142
|
-
'
|
|
1298
|
+
'CMvWBgfJzq',
|
|
1299
|
+
'C2LNBMfS'
|
|
1300
|
+
];
|
|
1301
|
+
_0x4879 = function () {
|
|
1302
|
+
return _0x2257c8;
|
|
1303
|
+
};
|
|
1304
|
+
return _0x4879();
|
|
1305
|
+
}
|
|
1306
|
+
function formatCheckMessages(_0xa9f7a) {
|
|
1307
|
+
const _0x153ee5 = { _0x492926: 0x243 }, _0x3f4c88 = {
|
|
1308
|
+
_0x498614: 0x1bf,
|
|
1309
|
+
_0x438fd9: 0x2ae,
|
|
1310
|
+
_0x52c6c0: 0x160,
|
|
1311
|
+
_0x3c77c2: 0x25e
|
|
1312
|
+
}, _0x3f2a58 = _0x4ab0ed;
|
|
1313
|
+
if (_0xa9f7a['length'] === 0x0)
|
|
1314
|
+
return 'No\x20new\x20messages.';
|
|
1315
|
+
return _0xa9f7a[_0x3f2a58(_0x153ee5._0x492926)](_0x48dead => {
|
|
1316
|
+
const _0x529470 = _0x3f2a58, _0x4e0ee6 = _0x48dead[_0x529470(0x28c)] === 'agent' ? _0x529470(_0x3f4c88._0x498614) : '';
|
|
1317
|
+
return '[target=' + _0x48dead[_0x529470(_0x3f4c88._0x438fd9)] + _0x529470(0x275) + _0x48dead[_0x529470(_0x3f4c88._0x52c6c0)][_0x529470(0x27a)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x48dead[_0x529470(_0x3f4c88._0x3c77c2)]) + _0x4e0ee6 + _0x529470(0x177) + _0x48dead[_0x529470(0x15c)] + ':\x20' + _0x48dead[_0x529470(0x2b5)] + formatAttachmentSuffix(_0x48dead['attachments']);
|
|
1318
|
+
})['join']('\x0a');
|
|
1319
|
+
}
|
|
1320
|
+
function formatHistory(_0x44ec37) {
|
|
1321
|
+
const _0x2978d0 = {
|
|
1322
|
+
_0xbaa984: 0x2a2,
|
|
1323
|
+
_0x3cdb49: 0x1e3,
|
|
1324
|
+
_0x48addb: 0x243,
|
|
1325
|
+
_0x438f9a: 0x2a5,
|
|
1326
|
+
_0x1b66a9: 0x271,
|
|
1327
|
+
_0x3fb63f: 0x189,
|
|
1328
|
+
_0x431297: 0x1e3,
|
|
1329
|
+
_0x36ca67: 0x23b
|
|
1330
|
+
}, _0x4785b1 = {
|
|
1331
|
+
_0xf4e7c7: 0x1e8,
|
|
1332
|
+
_0x1d620e: 0x1bf,
|
|
1333
|
+
_0x5a0eb1: 0x215,
|
|
1334
|
+
_0x4b5ed8: 0x1fa,
|
|
1335
|
+
_0x81219c: 0x160,
|
|
1336
|
+
_0x2770d4: 0x177
|
|
1337
|
+
}, _0x392e85 = _0x4ab0ed;
|
|
1338
|
+
if (_0x44ec37[_0x392e85(_0x2978d0._0xbaa984)][_0x392e85(_0x2978d0._0x3cdb49)] === 0x0)
|
|
1339
|
+
return '##\x20Message\x20History\x20for\x20' + _0x44ec37['channel'] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1340
|
+
const _0x3e7b2b = _0x44ec37['messages'][_0x392e85(_0x2978d0._0x48addb)](_0x56e744 => {
|
|
1341
|
+
const _0xe6bb6 = _0x392e85, _0x5a6473 = _0x56e744['senderType'] === _0xe6bb6(_0x4785b1._0xf4e7c7) ? _0xe6bb6(_0x4785b1._0x1d620e) : '';
|
|
1342
|
+
return _0xe6bb6(_0x4785b1._0x5a0eb1) + _0x56e744[_0xe6bb6(_0x4785b1._0x4b5ed8)] + _0xe6bb6(0x275) + _0x56e744[_0xe6bb6(_0x4785b1._0x81219c)] + _0xe6bb6(0x191) + toLocalTime(_0x56e744['createdAt']) + _0x5a6473 + _0xe6bb6(_0x4785b1._0x2770d4) + _0x56e744[_0xe6bb6(0x15c)] + ':\x20' + _0x56e744[_0xe6bb6(0x2b5)] + formatAttachmentSuffix(_0x56e744[_0xe6bb6(0x15a)]);
|
|
1343
|
+
})[_0x392e85(_0x2978d0._0x438f9a)]('\x0a'), _0x896441 = _0x44ec37['hasMore'] && _0x44ec37['nextCursor'] ? _0x392e85(_0x2978d0._0x1b66a9) + _0x44ec37[_0x392e85(_0x2978d0._0xbaa984)][_0x392e85(0x1e3)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x44ec37[_0x392e85(_0x2978d0._0x3fb63f)] + _0x392e85(0x252) : '';
|
|
1344
|
+
return '##\x20Message\x20History\x20for\x20' + _0x44ec37[_0x392e85(0x1a4)] + '\x20(' + _0x44ec37[_0x392e85(0x2a2)][_0x392e85(_0x2978d0._0x431297)] + _0x392e85(_0x2978d0._0x36ca67) + _0x3e7b2b + _0x896441;
|
|
1345
|
+
}
|
|
1346
|
+
function formatServerDirectory(_0x5dba44) {
|
|
1347
|
+
const _0x46ec37 = {
|
|
1348
|
+
_0xc03f8b: 0x231,
|
|
1349
|
+
_0x1afd66: 0x2a5,
|
|
1350
|
+
_0x491c85: 0x23e,
|
|
1351
|
+
_0x855944: 0x243,
|
|
1352
|
+
_0x294c9b: 0x1f9,
|
|
1353
|
+
_0x4d88d5: 0x243,
|
|
1354
|
+
_0x1f551c: 0x2c2,
|
|
1355
|
+
_0x2999de: 0x1b0
|
|
1356
|
+
}, _0x420fbe = _0x4ab0ed, _0x2a8159 = _0x5dba44[_0x420fbe(_0x46ec37._0xc03f8b)]['length'] > 0x0 ? _0x5dba44[_0x420fbe(0x231)][_0x420fbe(0x243)](_0x9e3af7 => _0x9e3af7[_0x420fbe(0x262)] ? _0x420fbe(0x219) + _0x9e3af7[_0x420fbe(0x228)] + '\x20—\x20' + _0x9e3af7[_0x420fbe(0x262)] : _0x420fbe(0x219) + _0x9e3af7[_0x420fbe(0x228)])[_0x420fbe(_0x46ec37._0x1afd66)]('\x0a') : _0x420fbe(0x1f9), _0x16aed1 = _0x5dba44[_0x420fbe(0x23e)][_0x420fbe(0x1e3)] > 0x0 ? _0x5dba44[_0x420fbe(_0x46ec37._0x491c85)][_0x420fbe(_0x46ec37._0x855944)](_0x153ca6 => _0x420fbe(0x264) + _0x153ca6[_0x420fbe(0x228)])['join']('\x0a') : _0x420fbe(_0x46ec37._0x294c9b), _0x388ab1 = _0x5dba44[_0x420fbe(0x273)]['length'] > 0x0 ? _0x5dba44[_0x420fbe(0x273)][_0x420fbe(_0x46ec37._0x4d88d5)](_0x556f5a => _0x420fbe(0x264) + _0x556f5a[_0x420fbe(0x228)])[_0x420fbe(0x2a5)]('\x0a') : _0x420fbe(0x1f9);
|
|
1357
|
+
return [
|
|
1358
|
+
'##\x20Server:\x20' + _0x5dba44[_0x420fbe(_0x46ec37._0x1f551c)],
|
|
1359
|
+
'',
|
|
1360
|
+
_0x420fbe(_0x46ec37._0x2999de),
|
|
1361
|
+
_0x2a8159,
|
|
1362
|
+
'',
|
|
1363
|
+
_0x420fbe(0x1af),
|
|
1364
|
+
_0x16aed1,
|
|
1365
|
+
'',
|
|
1366
|
+
_0x420fbe(0x26f),
|
|
1367
|
+
_0x388ab1
|
|
1368
|
+
][_0x420fbe(_0x46ec37._0x1afd66)]('\x0a');
|
|
1369
|
+
}
|
|
1370
|
+
function formatUploadResult(_0x579791) {
|
|
1371
|
+
const _0x5df97c = {
|
|
1372
|
+
_0x5b9096: 0x25c,
|
|
1373
|
+
_0x1daa90: 0x17b,
|
|
1374
|
+
_0x17aa7c: 0x213
|
|
1375
|
+
}, _0x3a19e0 = _0x4ab0ed;
|
|
1376
|
+
return _0x3a19e0(0x224) + _0x579791[_0x3a19e0(_0x5df97c._0x5b9096)] + '\x20(' + (_0x579791['sizeBytes'] / 0x400)[_0x3a19e0(_0x5df97c._0x1daa90)](0x1) + _0x3a19e0(_0x5df97c._0x17aa7c) + _0x579791['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1377
|
+
}
|
|
1378
|
+
function formatViewFileResult(_0x4bff56, _0x1b8dc0) {
|
|
1379
|
+
const _0x497a5e = { _0x55dc54: 0x22f }, _0x47f9bd = _0x4ab0ed;
|
|
1380
|
+
return _0x1b8dc0 ? _0x47f9bd(_0x497a5e._0x55dc54) + _0x4bff56 : 'Downloaded\x20to:\x20' + _0x4bff56;
|
|
1381
|
+
}
|
|
1382
|
+
function formatTaskList(_0x249b7c, _0x5e7c93) {
|
|
1383
|
+
const _0x1cbaa2 = {
|
|
1384
|
+
_0x52fbdc: 0x1e3,
|
|
1385
|
+
_0x49a8f9: 0x243
|
|
1386
|
+
}, _0x511190 = {
|
|
1387
|
+
_0x56a927: 0x1d4,
|
|
1388
|
+
_0x3a96e7: 0x160,
|
|
1389
|
+
_0x4dd4f1: 0x1d4,
|
|
1390
|
+
_0x3e71c9: 0x1ee
|
|
1391
|
+
}, _0x16d397 = _0x4ab0ed;
|
|
1392
|
+
if (_0x249b7c[_0x16d397(_0x1cbaa2._0x52fbdc)] === 0x0)
|
|
1393
|
+
return _0x16d397(0x266);
|
|
1394
|
+
return _0x249b7c[_0x16d397(_0x1cbaa2._0x49a8f9)](_0x55e24a => {
|
|
1395
|
+
const _0x2a9673 = _0x16d397, _0x5b4810 = _0x55e24a[_0x2a9673(_0x511190._0x56a927)] == null ? _0x2a9673(0x283) : '#' + _0x55e24a[_0x2a9673(_0x511190._0x56a927)], _0x187a2d = _0x55e24a[_0x2a9673(0x160)] ? _0x2a9673(0x1c1) + _0x55e24a[_0x2a9673(_0x511190._0x3a96e7)] : '', _0x1d2d1a = _0x5e7c93 && _0x55e24a[_0x2a9673(0x1d4)] != null && _0x5e7c93[_0x2a9673(0x297)](_0x55e24a[_0x2a9673(_0x511190._0x4dd4f1)]) ? _0x2a9673(0x2c1) : '';
|
|
1396
|
+
return _0x5b4810 + '\x20[' + _0x55e24a['status'] + ']\x20' + _0x55e24a[_0x2a9673(_0x511190._0x3e71c9)] + _0x187a2d + _0x1d2d1a;
|
|
1397
|
+
})['join']('\x0a');
|
|
1398
|
+
}
|
|
1399
|
+
function formatCreatedTasks(_0x22be42) {
|
|
1400
|
+
const _0xc636ea = {
|
|
1401
|
+
_0x45bbef: 0x1e3,
|
|
1402
|
+
_0x2f89c4: 0x217,
|
|
1403
|
+
_0xfb5961: 0x243
|
|
1404
|
+
}, _0x1d2846 = _0x4ab0ed;
|
|
1405
|
+
if (_0x22be42[_0x1d2846(_0xc636ea._0x45bbef)] === 0x0)
|
|
1406
|
+
return _0x1d2846(_0xc636ea._0x2f89c4);
|
|
1407
|
+
return _0x22be42[_0x1d2846(_0xc636ea._0xfb5961)](_0x4acdea => {
|
|
1408
|
+
const _0x2a1dfd = _0x1d2846, _0x4bd928 = _0x4acdea[_0x2a1dfd(0x1d4)] == null ? '(legacy)' : '#' + _0x4acdea[_0x2a1dfd(0x1d4)];
|
|
1409
|
+
return _0x4bd928 + '\x20' + _0x4acdea[_0x2a1dfd(0x1ee)] + _0x2a1dfd(0x1c1) + _0x4acdea[_0x2a1dfd(0x160)];
|
|
1410
|
+
})['join']('\x0a');
|
|
1411
|
+
}
|
|
1412
|
+
function formatClaimTaskResults(_0x4856fb) {
|
|
1413
|
+
const _0x5b032e = {
|
|
1414
|
+
_0x221f0a: 0x1e3,
|
|
1415
|
+
_0x53b259: 0x175,
|
|
1416
|
+
_0x3a9572: 0x2a5
|
|
1417
|
+
}, _0x193bdb = {
|
|
1418
|
+
_0x3bce1b: 0x1c1,
|
|
1419
|
+
_0x32db6f: 0x2b6,
|
|
1420
|
+
_0x1e06a3: 0x261,
|
|
1421
|
+
_0x4d723a: 0x2bc,
|
|
1422
|
+
_0x220cf9: 0x21c,
|
|
1423
|
+
_0x4e413f: 0x20c,
|
|
1424
|
+
_0x3348ab: 0x1d9,
|
|
1425
|
+
_0x53557f: 0x226,
|
|
1426
|
+
_0x29bf14: 0x2b4,
|
|
1427
|
+
_0x48920d: 0x160,
|
|
1428
|
+
_0x255799: 0x1bb
|
|
1429
|
+
}, _0x15043f = _0x4ab0ed;
|
|
1430
|
+
if (_0x4856fb[_0x15043f(_0x5b032e._0x221f0a)] === 0x0)
|
|
1431
|
+
return _0x15043f(_0x5b032e._0x53b259);
|
|
1432
|
+
return _0x4856fb[_0x15043f(0x243)](_0x63e7f9 => {
|
|
1433
|
+
const _0x47f690 = _0x15043f;
|
|
1434
|
+
if (_0x63e7f9['success']) {
|
|
1435
|
+
const _0x2d33b7 = _0x63e7f9[_0x47f690(0x1d4)] == null ? '(legacy)' : '#' + _0x63e7f9[_0x47f690(0x1d4)], _0x20c845 = _0x63e7f9[_0x47f690(0x160)] ? _0x47f690(_0x193bdb._0x3bce1b) + _0x63e7f9[_0x47f690(0x160)] : '', _0x22ac38 = _0x63e7f9['workerHandoff'] ? [
|
|
1436
|
+
_0x47f690(0x1bd),
|
|
1437
|
+
_0x63e7f9[_0x47f690(_0x193bdb._0x32db6f)] ? _0x47f690(_0x193bdb._0x1e06a3) : null,
|
|
1438
|
+
_0x63e7f9[_0x47f690(0x2bc)] ? 'executionMode=' + _0x63e7f9[_0x47f690(_0x193bdb._0x4d723a)] : null,
|
|
1439
|
+
_0x63e7f9['threadTarget'] ? _0x47f690(0x280) + _0x63e7f9[_0x47f690(0x245)] : null,
|
|
1440
|
+
_0x63e7f9[_0x47f690(0x20c)] ? _0x47f690(_0x193bdb._0x220cf9) + _0x63e7f9[_0x47f690(_0x193bdb._0x4e413f)] : null
|
|
1441
|
+
][_0x47f690(_0x193bdb._0x3348ab)](Boolean)[_0x47f690(0x2a5)]('\x20') : _0x63e7f9[_0x47f690(_0x193bdb._0x53557f)] ? _0x47f690(0x233) + _0x63e7f9[_0x47f690(0x226)] : '';
|
|
1442
|
+
return [
|
|
1443
|
+
_0x2d33b7 + _0x47f690(_0x193bdb._0x29bf14) + _0x20c845,
|
|
1444
|
+
_0x22ac38
|
|
1445
|
+
][_0x47f690(_0x193bdb._0x3348ab)](Boolean)[_0x47f690(0x2a5)]('\x20');
|
|
1446
|
+
}
|
|
1447
|
+
const _0x36232a = _0x63e7f9[_0x47f690(0x1d4)] == null ? _0x63e7f9[_0x47f690(_0x193bdb._0x48920d)] ?? '(unknown)' : '#' + _0x63e7f9['taskNumber'];
|
|
1448
|
+
return _0x36232a + _0x47f690(0x1ef) + (_0x63e7f9['reason'] ?? _0x47f690(_0x193bdb._0x255799));
|
|
1449
|
+
})[_0x15043f(_0x5b032e._0x3a9572)]('\x0a');
|
|
1450
|
+
}
|
|
1451
|
+
function formatUnclaimTaskResult(_0x375477) {
|
|
1452
|
+
const _0xc0d0ae = { _0x526d9e: 0x1d4 }, _0x1e4df4 = _0x4ab0ed, _0x3982fa = _0x375477[_0x1e4df4(_0xc0d0ae._0x526d9e)] == null ? _0x1e4df4(0x283) : '#' + _0x375477[_0x1e4df4(0x1d4)];
|
|
1453
|
+
return _0x3982fa + _0x1e4df4(0x1d8) + _0x375477['status'];
|
|
1454
|
+
}
|
|
1455
|
+
function formatUpdateTaskStatusResult(_0x6919cb) {
|
|
1456
|
+
const _0x15db32 = { _0x536f68: 0x1d4 }, _0x2db57d = _0x4ab0ed, _0x2cfb65 = _0x6919cb[_0x2db57d(0x1d4)] == null ? '(legacy)' : '#' + _0x6919cb[_0x2db57d(_0x15db32._0x536f68)];
|
|
1457
|
+
return _0x2cfb65 + '\x20status=' + _0x6919cb[_0x2db57d(0x1c0)];
|
|
1458
|
+
}
|
|
1459
|
+
function getChatBridgeToolDefinitions() {
|
|
1460
|
+
const _0x3724cd = {
|
|
1461
|
+
_0x44aacc: 0x1f0,
|
|
1462
|
+
_0x6ab1bc: 0x1fc,
|
|
1463
|
+
_0x37f739: 0x287,
|
|
1464
|
+
_0x2843d6: 0x166,
|
|
1465
|
+
_0x303f56: 0x1a8,
|
|
1466
|
+
_0x4564b0: 0x2a3
|
|
1467
|
+
}, _0x475a08 = _0x4ab0ed;
|
|
1468
|
+
return [
|
|
1469
|
+
{ 'name': _0x475a08(0x23f) },
|
|
1470
|
+
{ 'name': _0x475a08(_0x3724cd._0x44aacc) },
|
|
1471
|
+
{ 'name': _0x475a08(0x2c3) },
|
|
1472
|
+
{ 'name': _0x475a08(0x184) },
|
|
1473
|
+
{ 'name': _0x475a08(_0x3724cd._0x6ab1bc) },
|
|
1474
|
+
{ 'name': _0x475a08(_0x3724cd._0x37f739) },
|
|
1475
|
+
{ 'name': 'list_tasks' },
|
|
1476
|
+
{ 'name': 'create_tasks' },
|
|
1477
|
+
{ 'name': _0x475a08(_0x3724cd._0x2843d6) },
|
|
1478
|
+
{ 'name': 'unclaim_task' },
|
|
1479
|
+
{ 'name': _0x475a08(0x272) },
|
|
1480
|
+
{ 'name': _0x475a08(0x210) },
|
|
1481
|
+
{ 'name': _0x475a08(0x157) },
|
|
1482
|
+
{ 'name': _0x475a08(_0x3724cd._0x303f56) },
|
|
1483
|
+
{ 'name': _0x475a08(_0x3724cd._0x4564b0) },
|
|
1484
|
+
{ 'name': _0x475a08(0x186) },
|
|
1485
|
+
{ 'name': 'mark_waiting_input' }
|
|
2143
1486
|
];
|
|
2144
|
-
|
|
2145
|
-
|
|
1487
|
+
}
|
|
1488
|
+
function createChatBridgeHandlers(_0x38edde) {
|
|
1489
|
+
const _0x109611 = {
|
|
1490
|
+
_0x544988: 0x267,
|
|
1491
|
+
_0x28c6c6: 0x216,
|
|
1492
|
+
_0x1564f8: 0x18e,
|
|
1493
|
+
_0xf82af0: 0x168
|
|
1494
|
+
}, _0x222e3b = {
|
|
1495
|
+
_0x546401: 0x2a0,
|
|
1496
|
+
_0x4a879a: 0x203,
|
|
1497
|
+
_0x4c1c19: 0x25b,
|
|
1498
|
+
_0x31f44a: 0x1ce,
|
|
1499
|
+
_0x420097: 0x214,
|
|
1500
|
+
_0xc81ee6: 0x1c2
|
|
1501
|
+
}, _0x2ebb57 = {
|
|
1502
|
+
_0x1d507b: 0x267,
|
|
1503
|
+
_0x26a4a3: 0x192,
|
|
1504
|
+
_0xb4c0: 0x19a,
|
|
1505
|
+
_0x3366d: 0x295,
|
|
1506
|
+
_0x379274: 0x250,
|
|
1507
|
+
_0x40317e: 0x18e,
|
|
1508
|
+
_0x30c266: 0x1e2,
|
|
1509
|
+
_0xcf6191: 0x25b,
|
|
1510
|
+
_0x4d031a: 0x1c7
|
|
1511
|
+
}, _0x4f62d5 = {
|
|
1512
|
+
_0x21f533: 0x267,
|
|
1513
|
+
_0x5dc9d1: 0x281,
|
|
1514
|
+
_0x5edc9d: 0x199,
|
|
1515
|
+
_0x22af6f: 0x1ec,
|
|
1516
|
+
_0x69d102: 0x27c,
|
|
1517
|
+
_0x4085f0: 0x25b
|
|
1518
|
+
}, _0x302647 = {
|
|
1519
|
+
_0x4a8c85: 0x267,
|
|
1520
|
+
_0x4add36: 0x267,
|
|
1521
|
+
_0x4a65c1: 0x1c5,
|
|
1522
|
+
_0x513712: 0x18e
|
|
1523
|
+
}, _0x445bf1 = {
|
|
1524
|
+
_0x5b5547: 0x1ce,
|
|
1525
|
+
_0x3d263e: 0x27b,
|
|
1526
|
+
_0x466ff2: 0x267,
|
|
1527
|
+
_0x5bd23f: 0x17f,
|
|
1528
|
+
_0xdafd1a: 0x203,
|
|
1529
|
+
_0x1f3e2e: 0x25b,
|
|
1530
|
+
_0x1858b4: 0x1f5
|
|
1531
|
+
}, _0x41dd08 = {
|
|
1532
|
+
_0xf43c58: 0x26c,
|
|
1533
|
+
_0x1e09cc: 0x298,
|
|
1534
|
+
_0x372e0e: 0x165,
|
|
1535
|
+
_0x27990c: 0x1ad
|
|
1536
|
+
}, _0x2ce1b6 = {
|
|
1537
|
+
_0x4a02b7: 0x221,
|
|
1538
|
+
_0x21b541: 0x2a1,
|
|
1539
|
+
_0x33f55a: 0x240
|
|
1540
|
+
}, _0x2779b1 = { _0x547638: 0x240 }, _0xa98df3 = { _0x260e3c: 0x22b }, _0x1239fd = {
|
|
1541
|
+
_0x696e1e: 0x267,
|
|
1542
|
+
_0x14d6d5: 0x27a,
|
|
1543
|
+
_0x2d465e: 0x21e,
|
|
1544
|
+
_0x3acd4e: 0x2b9
|
|
1545
|
+
}, _0x349482 = { _0x49c21b: 0x240 }, _0x39d128 = { _0x2f6011: 0x240 }, _0x188bef = { _0x14e3c6: 0x1e5 }, _0x4762d6 = {
|
|
1546
|
+
_0x4bf372: 0x265,
|
|
1547
|
+
_0x30d3a8: 0x2ae,
|
|
1548
|
+
_0x4a6f19: 0x1d7,
|
|
1549
|
+
_0x4d341f: 0x160
|
|
1550
|
+
}, _0x318730 = {
|
|
1551
|
+
_0x41aa83: 0x267,
|
|
1552
|
+
_0x52b760: 0x18e,
|
|
1553
|
+
_0x2308f5: 0x201,
|
|
1554
|
+
_0x17b623: 0x220,
|
|
1555
|
+
_0x583599: 0x24f
|
|
1556
|
+
}, _0x1a0984 = {
|
|
1557
|
+
_0x18d2c5: 0x1ce,
|
|
1558
|
+
_0x183dd8: 0x258,
|
|
1559
|
+
_0x18d231: 0x190,
|
|
1560
|
+
_0x1bbd6f: 0x2a2,
|
|
1561
|
+
_0x1792ae: 0x191,
|
|
1562
|
+
_0x46952b: 0x29a,
|
|
1563
|
+
_0x2bb206: 0x2a5,
|
|
1564
|
+
_0x4b9f6d: 0x260,
|
|
1565
|
+
_0x1b0afe: 0x1ce,
|
|
1566
|
+
_0x3e2022: 0x1a1,
|
|
1567
|
+
_0xea5e2b: 0x164,
|
|
1568
|
+
_0x556280: 0x18e,
|
|
1569
|
+
_0x553b58: 0x263,
|
|
1570
|
+
_0x48f8ee: 0x22e,
|
|
1571
|
+
_0x1d3eef: 0x26b,
|
|
1572
|
+
_0x3557da: 0x1b2
|
|
1573
|
+
};
|
|
1574
|
+
async function _0x2be5f0(_0x16aee8) {
|
|
1575
|
+
const _0x5a115b = _0xaeca;
|
|
1576
|
+
if (!_0x38edde[_0x5a115b(0x267)] || !_0x38edde[_0x5a115b(_0x1a0984._0x18d2c5)] || _0x38edde[_0x5a115b(0x1e5)] || _0x38edde[_0x5a115b(0x16a)] !== !![])
|
|
1577
|
+
return null;
|
|
1578
|
+
const _0x1ae0ea = parseTarget(_0x16aee8[_0x5a115b(0x1a4)]);
|
|
1579
|
+
if (_0x1ae0ea[_0x5a115b(0x1aa)] !== _0x5a115b(0x1a4))
|
|
1580
|
+
return null;
|
|
1581
|
+
const _0x4a9887 = _0x16aee8[_0x5a115b(0x1bc)] != null ? _0x1ae0ea[_0x5a115b(_0x1a0984._0x183dd8)] + ':t' + _0x16aee8[_0x5a115b(0x1bc)] : _0x1ae0ea[_0x5a115b(0x258)] + ':' + _0x16aee8[_0x5a115b(0x160)];
|
|
1582
|
+
let _0x5e6863;
|
|
1583
|
+
try {
|
|
1584
|
+
const _0x48ea38 = await _0x38edde[_0x5a115b(0x240)][_0x5a115b(_0x1a0984._0x18d231)]({
|
|
1585
|
+
'channel': _0x4a9887,
|
|
1586
|
+
'limit': 0x14
|
|
1587
|
+
});
|
|
1588
|
+
_0x5e6863 = _0x48ea38[_0x5a115b(_0x1a0984._0x1bbd6f)]['find'](_0x549d56 => _0x549d56['messageId'] === _0x16aee8[_0x5a115b(0x160)]);
|
|
1589
|
+
} catch {
|
|
1590
|
+
_0x5e6863 = void 0x0;
|
|
1591
|
+
}
|
|
1592
|
+
const _0x425578 = _0x16aee8[_0x5a115b(0x1d4)] == null ? '(legacy)' : '#' + _0x16aee8['taskNumber'], _0x4bdc1f = [
|
|
1593
|
+
'[target=' + _0x4a9887 + _0x5a115b(0x275) + _0x16aee8[_0x5a115b(0x160)]['slice'](0x0, 0x8) + _0x5a115b(_0x1a0984._0x1792ae) + new Date()[_0x5a115b(0x1a9)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x425578 + '\x20已切换到\x20worker\x20执行',
|
|
1594
|
+
'',
|
|
1595
|
+
_0x5e6863 ? _0x5a115b(_0x1a0984._0x46952b) + _0x5e6863[_0x5a115b(0x2b5)] : _0x5a115b(0x1f7) + _0x16aee8['messageId'],
|
|
1596
|
+
'',
|
|
1597
|
+
'Thread\x20target:\x20' + _0x4a9887,
|
|
1598
|
+
_0x5a115b(0x1ed)
|
|
1599
|
+
][_0x5a115b(_0x1a0984._0x2bb206)]('\x0a'), _0x2435d3 = await fetch(_0x38edde['daemonLocalUrl'] + '/workers/deliver', {
|
|
1600
|
+
'method': _0x5a115b(0x2a0),
|
|
1601
|
+
'headers': { 'Content-Type': _0x5a115b(_0x1a0984._0x4b9f6d) },
|
|
1602
|
+
'body': JSON[_0x5a115b(0x203)]({
|
|
1603
|
+
'agent_id': _0x38edde[_0x5a115b(_0x1a0984._0x1b0afe)],
|
|
1604
|
+
'thread_target': _0x4a9887,
|
|
1605
|
+
'spawn_packet': {
|
|
1606
|
+
'replyTarget': _0x4a9887,
|
|
1607
|
+
..._0x16aee8[_0x5a115b(_0x1a0984._0x3e2022)] ? { 'taskId': _0x16aee8['taskId'] } : _0x16aee8['taskNumber'] != null ? { 'taskId': _0x5a115b(0x1f3) + _0x16aee8['taskNumber'] } : {}
|
|
1608
|
+
},
|
|
1609
|
+
'payload': {
|
|
1610
|
+
'mode': _0x5a115b(_0x1a0984._0xea5e2b),
|
|
1611
|
+
'text': _0x4bdc1f
|
|
1612
|
+
}
|
|
1613
|
+
})
|
|
1614
|
+
}), _0x2dbeb8 = await _0x2435d3[_0x5a115b(_0x1a0984._0x556280)]();
|
|
1615
|
+
if (!_0x2dbeb8['ok'])
|
|
1616
|
+
throw new Error(_0x2dbeb8[_0x5a115b(_0x1a0984._0x553b58)] ?? _0x5a115b(_0x1a0984._0x48f8ee));
|
|
1617
|
+
return {
|
|
1618
|
+
'stopMain': !![],
|
|
1619
|
+
'threadTarget': _0x4a9887,
|
|
1620
|
+
'workerDisposition': _0x2dbeb8[_0x5a115b(0x1c6)] === _0x5a115b(0x2a8) ? 'queued' : _0x5a115b(_0x1a0984._0x1d3eef),
|
|
1621
|
+
'workerHandoff': !![],
|
|
1622
|
+
'workerSessionId': _0x2dbeb8[_0x5a115b(0x232)] ?? '',
|
|
1623
|
+
'executionMode': _0x5a115b(_0x1a0984._0x3557da)
|
|
1624
|
+
};
|
|
1625
|
+
}
|
|
1626
|
+
async function _0x2777e3() {
|
|
1627
|
+
const _0xfc0bfc = _0xaeca;
|
|
1628
|
+
if (!_0x38edde[_0xfc0bfc(0x267)] || !_0x38edde[_0xfc0bfc(0x1ce)] || _0x38edde[_0xfc0bfc(0x1e5)])
|
|
1629
|
+
return null;
|
|
1630
|
+
try {
|
|
1631
|
+
const _0x273aaa = await fetch(_0x38edde[_0xfc0bfc(_0x318730._0x41aa83)] + '/workers/list?agent_id=' + encodeURIComponent(_0x38edde['agentId'])), _0x3a6837 = await _0x273aaa[_0xfc0bfc(_0x318730._0x52b760)]();
|
|
1632
|
+
if (!_0x3a6837['ok'])
|
|
1633
|
+
return null;
|
|
1634
|
+
const _0x20c5be = new Set();
|
|
1635
|
+
for (const _0x4216ee of _0x3a6837[_0xfc0bfc(_0x318730._0x2308f5)]) {
|
|
1636
|
+
_0x4216ee['status'] !== _0xfc0bfc(_0x318730._0x17b623) && _0x4216ee[_0xfc0bfc(_0x318730._0x583599)] && _0x20c5be[_0xfc0bfc(0x2b9)](_0x4216ee['thread_target']);
|
|
1637
|
+
}
|
|
1638
|
+
return _0x20c5be['size'] > 0x0 ? _0x20c5be : null;
|
|
1639
|
+
} catch {
|
|
1640
|
+
return null;
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
return {
|
|
1644
|
+
async 'send_message'(_0x121a48) {
|
|
1645
|
+
const _0xb05d62 = _0xaeca, _0x183f97 = await _0x38edde[_0xb05d62(0x240)][_0xb05d62(_0x4762d6._0x4bf372)]({
|
|
1646
|
+
'attachmentIds': _0x121a48['attachment_ids'],
|
|
1647
|
+
'content': _0x121a48[_0xb05d62(0x2b5)],
|
|
1648
|
+
'target': _0x121a48[_0xb05d62(_0x4762d6._0x30d3a8)]
|
|
1649
|
+
});
|
|
1650
|
+
return _0xb05d62(0x159) + _0x121a48['target'] + _0xb05d62(_0x4762d6._0x4a6f19) + _0x183f97[_0xb05d62(_0x4762d6._0x4d341f)];
|
|
1651
|
+
},
|
|
1652
|
+
async 'check_messages'() {
|
|
1653
|
+
const _0x455d6c = _0xaeca, _0x2d018e = await _0x38edde['client'][_0x455d6c(0x2b8)]();
|
|
1654
|
+
if (!_0x38edde[_0x455d6c(_0x188bef._0x14e3c6)]) {
|
|
1655
|
+
const _0x4698cb = await _0x2777e3();
|
|
1656
|
+
if (_0x4698cb)
|
|
1657
|
+
return formatCheckMessages(_0x2d018e[_0x455d6c(0x2a2)]['filter'](_0x2d2303 => !_0x4698cb[_0x455d6c(0x297)](_0x2d2303['target'])));
|
|
1658
|
+
}
|
|
1659
|
+
return formatCheckMessages(_0x2d018e[_0x455d6c(0x2a2)]);
|
|
1660
|
+
},
|
|
1661
|
+
async 'read_history'(_0x2ed10a) {
|
|
1662
|
+
const _0x435140 = _0xaeca, _0x27c182 = await _0x38edde[_0x435140(_0x39d128._0x2f6011)]['readHistory'](_0x2ed10a);
|
|
1663
|
+
return formatHistory(_0x27c182);
|
|
1664
|
+
},
|
|
1665
|
+
async 'list_server'() {
|
|
1666
|
+
const _0x58f7fb = _0xaeca, _0x3284c8 = await _0x38edde[_0x58f7fb(_0x349482._0x49c21b)]['listServer']();
|
|
1667
|
+
return formatServerDirectory(_0x3284c8);
|
|
1668
|
+
},
|
|
1669
|
+
async 'list_tasks'(_0x585ffa) {
|
|
1670
|
+
const _0x4681a3 = _0xaeca, _0x1bfe2d = await _0x38edde['client'][_0x4681a3(0x202)](_0x585ffa);
|
|
1671
|
+
let _0x45e0e7;
|
|
1672
|
+
if (_0x38edde[_0x4681a3(0x267)] && _0x38edde[_0x4681a3(0x1ce)])
|
|
1673
|
+
try {
|
|
1674
|
+
const _0x3d092c = await fetch(_0x38edde[_0x4681a3(_0x1239fd._0x696e1e)] + _0x4681a3(0x25d) + encodeURIComponent(_0x38edde['agentId'])), _0x34b105 = await _0x3d092c[_0x4681a3(0x18e)]();
|
|
1675
|
+
if (_0x34b105['ok']) {
|
|
1676
|
+
const _0x56f998 = _0x585ffa['channel'] + ':';
|
|
1677
|
+
_0x45e0e7 = new Set();
|
|
1678
|
+
for (const _0x3c665a of _0x34b105[_0x4681a3(0x201)]) {
|
|
1679
|
+
if (_0x3c665a[_0x4681a3(0x1c0)] === _0x4681a3(0x220))
|
|
1680
|
+
continue;
|
|
1681
|
+
if (_0x3c665a['thread_target']?.[_0x4681a3(0x2af)](_0x56f998)) {
|
|
1682
|
+
const _0x3d7748 = _0x3c665a['thread_target'][_0x4681a3(_0x1239fd._0x14d6d5)](_0x56f998['length']), _0xcaa030 = _0x1bfe2d['tasks'][_0x4681a3(_0x1239fd._0x2d465e)](_0x5a6fc5 => _0x5a6fc5[_0x4681a3(0x160)]?.[_0x4681a3(0x2af)](_0x3d7748) === !![]);
|
|
1683
|
+
if (_0xcaa030?.[_0x4681a3(0x1d4)] != null) {
|
|
1684
|
+
_0x45e0e7[_0x4681a3(0x2b9)](_0xcaa030[_0x4681a3(0x1d4)]);
|
|
1685
|
+
continue;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
if (_0x3c665a[_0x4681a3(0x15f)]) {
|
|
1689
|
+
const _0x1410b6 = _0x1bfe2d['tasks']['find'](_0x285863 => _0x285863['taskId'] === _0x3c665a[_0x4681a3(0x15f)]);
|
|
1690
|
+
_0x1410b6?.['taskNumber'] != null && _0x45e0e7[_0x4681a3(_0x1239fd._0x3acd4e)](_0x1410b6[_0x4681a3(0x1d4)]);
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
} catch {
|
|
1695
|
+
}
|
|
1696
|
+
return formatTaskList(_0x1bfe2d['tasks'], _0x45e0e7);
|
|
1697
|
+
},
|
|
1698
|
+
async 'create_tasks'(_0x3653b5) {
|
|
1699
|
+
const _0x44bb47 = _0xaeca, _0xac3c80 = await _0x38edde['client'][_0x44bb47(_0xa98df3._0x260e3c)](_0x3653b5);
|
|
1700
|
+
return formatCreatedTasks(_0xac3c80['tasks']);
|
|
1701
|
+
},
|
|
1702
|
+
async 'claim_tasks'(_0x1b8164) {
|
|
1703
|
+
const _0x55f9d2 = {
|
|
1704
|
+
_0x385c2f: 0x29b,
|
|
1705
|
+
_0x1b6b12: 0x1a1,
|
|
1706
|
+
_0x7d5f0b: 0x1d4,
|
|
1707
|
+
_0x85eb89: 0x22e
|
|
1708
|
+
}, _0x3f661c = _0xaeca, _0x181777 = await _0x38edde['client'][_0x3f661c(0x257)](_0x1b8164), _0x433dc2 = await Promise['all'](_0x181777['results'][_0x3f661c(0x243)](async _0x215fb8 => {
|
|
1709
|
+
const _0x292835 = _0x3f661c;
|
|
1710
|
+
if (!_0x215fb8[_0x292835(_0x55f9d2._0x385c2f)] || !_0x215fb8[_0x292835(0x160)])
|
|
1711
|
+
return _0x215fb8;
|
|
1712
|
+
try {
|
|
1713
|
+
const _0x44a77f = await _0x2be5f0({
|
|
1714
|
+
'channel': _0x1b8164[_0x292835(0x1a4)],
|
|
1715
|
+
'messageId': _0x215fb8[_0x292835(0x160)],
|
|
1716
|
+
'taskId': _0x215fb8[_0x292835(_0x55f9d2._0x1b6b12)],
|
|
1717
|
+
'taskNumber': _0x215fb8[_0x292835(_0x55f9d2._0x7d5f0b)],
|
|
1718
|
+
'threadNumber': _0x215fb8[_0x292835(0x1bc)]
|
|
1719
|
+
});
|
|
1720
|
+
return _0x44a77f ? {
|
|
1721
|
+
..._0x215fb8,
|
|
1722
|
+
..._0x44a77f
|
|
1723
|
+
} : _0x215fb8;
|
|
1724
|
+
} catch (_0x569943) {
|
|
1725
|
+
return {
|
|
1726
|
+
..._0x215fb8,
|
|
1727
|
+
'workerHandoffError': _0x569943 instanceof Error ? _0x569943[_0x292835(0x256)] : _0x292835(_0x55f9d2._0x85eb89)
|
|
1728
|
+
};
|
|
1729
|
+
}
|
|
1730
|
+
}));
|
|
1731
|
+
return formatClaimTaskResults(_0x433dc2);
|
|
1732
|
+
},
|
|
1733
|
+
async 'unclaim_task'(_0x2f965b) {
|
|
1734
|
+
const _0x24e0bd = _0xaeca, _0x4a5e5c = await _0x38edde[_0x24e0bd(_0x2779b1._0x547638)][_0x24e0bd(0x16c)](_0x2f965b);
|
|
1735
|
+
return formatUnclaimTaskResult(_0x4a5e5c);
|
|
1736
|
+
},
|
|
1737
|
+
async 'update_task_status'(_0x2a6f69) {
|
|
1738
|
+
const _0x4d7207 = await _0x38edde['client']['updateTaskStatus'](_0x2a6f69);
|
|
1739
|
+
return formatUpdateTaskStatusResult(_0x4d7207);
|
|
1740
|
+
},
|
|
1741
|
+
async 'upload_file'(_0x1b7732) {
|
|
1742
|
+
const _0x49d127 = _0xaeca, _0x59754a = await _0x38edde[_0x49d127(_0x2ce1b6._0x4a02b7)](_0x1b7732[_0x49d127(_0x2ce1b6._0x21b541)]), {
|
|
1743
|
+
sizeBytes: _0x3182d4,
|
|
1744
|
+
..._0xe23702
|
|
1745
|
+
} = _0x59754a, _0x482cbc = await _0x38edde[_0x49d127(_0x2ce1b6._0x33f55a)][_0x49d127(0x171)]({
|
|
1746
|
+
'channel': _0x1b7732['channel'],
|
|
1747
|
+
..._0xe23702
|
|
1748
|
+
});
|
|
1749
|
+
return formatUploadResult(_0x482cbc);
|
|
1750
|
+
},
|
|
1751
|
+
async 'view_file'(_0x2d8118) {
|
|
1752
|
+
const _0x10a922 = _0xaeca, _0x67baf6 = await _0x38edde['attachmentCache'][_0x10a922(0x1da)](_0x2d8118['attachment_id']);
|
|
1753
|
+
if (_0x67baf6)
|
|
1754
|
+
return formatViewFileResult(_0x67baf6, !![]);
|
|
1755
|
+
const _0x4b50f8 = await _0x38edde[_0x10a922(0x240)][_0x10a922(_0x41dd08._0xf43c58)](_0x2d8118[_0x10a922(0x1e7)]), _0x45bab1 = await _0x38edde['attachmentCache'][_0x10a922(_0x41dd08._0x1e09cc)]({
|
|
1756
|
+
'attachmentId': _0x2d8118['attachment_id'],
|
|
1757
|
+
'contentType': _0x4b50f8[_0x10a922(_0x41dd08._0x372e0e)],
|
|
1758
|
+
'data': _0x4b50f8[_0x10a922(0x229)],
|
|
1759
|
+
'originalFilename': _0x4b50f8[_0x10a922(_0x41dd08._0x27990c)]
|
|
1760
|
+
});
|
|
1761
|
+
return formatViewFileResult(_0x45bab1, ![]);
|
|
1762
|
+
},
|
|
1763
|
+
async 'spawn_worker'(_0x518a2c) {
|
|
1764
|
+
const _0x52b095 = _0xaeca;
|
|
1765
|
+
if (!_0x38edde['daemonLocalUrl'] || !_0x38edde[_0x52b095(_0x445bf1._0x5b5547)])
|
|
1766
|
+
return _0x52b095(_0x445bf1._0x3d263e);
|
|
1767
|
+
const _0x20f765 = await fetch(_0x38edde[_0x52b095(_0x445bf1._0x466ff2)] + _0x52b095(_0x445bf1._0x5bd23f), {
|
|
1768
|
+
'method': _0x52b095(0x2a0),
|
|
1769
|
+
'headers': { 'Content-Type': _0x52b095(0x260) },
|
|
1770
|
+
'body': JSON[_0x52b095(_0x445bf1._0xdafd1a)]({
|
|
1771
|
+
'agent_id': _0x38edde[_0x52b095(_0x445bf1._0x5b5547)],
|
|
1772
|
+
'work_key': _0x518a2c[_0x52b095(_0x445bf1._0x1f3e2e)],
|
|
1773
|
+
'thread_target': _0x518a2c[_0x52b095(0x24f)],
|
|
1774
|
+
'spawn_packet': {
|
|
1775
|
+
'replyTarget': _0x518a2c[_0x52b095(0x17a)],
|
|
1776
|
+
'taskId': _0x518a2c[_0x52b095(0x15f)]
|
|
1777
|
+
}
|
|
1778
|
+
})
|
|
1779
|
+
}), _0x226383 = await _0x20f765['json']();
|
|
1780
|
+
if (!_0x226383['ok'])
|
|
1781
|
+
throw new Error(_0x226383[_0x52b095(0x263)] ?? 'spawn_worker\x20failed');
|
|
1782
|
+
const _0x503974 = _0x226383[_0x52b095(0x1c6)] === _0x52b095(0x2a8) ? _0x52b095(0x2a8) : _0x52b095(_0x445bf1._0x1858b4);
|
|
1783
|
+
return _0x52b095(0x241) + _0x503974 + _0x52b095(0x218) + _0x226383[_0x52b095(0x232)] + ',\x20work_key:\x20' + _0x518a2c[_0x52b095(0x25b)];
|
|
1784
|
+
},
|
|
1785
|
+
async 'get_worker_status'(_0x43ea16) {
|
|
1786
|
+
const _0x37bf0e = _0xaeca;
|
|
1787
|
+
if (!_0x38edde[_0x37bf0e(_0x302647._0x4a8c85)])
|
|
1788
|
+
return _0x37bf0e(0x281);
|
|
1789
|
+
const _0x7c08b = await fetch(_0x38edde[_0x37bf0e(_0x302647._0x4add36)] + _0x37bf0e(_0x302647._0x4a65c1) + encodeURIComponent(_0x43ea16[_0x37bf0e(0x25b)])), _0x2f6270 = await _0x7c08b[_0x37bf0e(_0x302647._0x513712)]();
|
|
1790
|
+
if (!_0x2f6270['ok'])
|
|
1791
|
+
return 'Worker\x20\x22' + _0x43ea16['work_key'] + _0x37bf0e(0x23a);
|
|
1792
|
+
return 'Worker\x20\x22' + _0x43ea16[_0x37bf0e(0x25b)] + _0x37bf0e(0x24e) + _0x2f6270['status'];
|
|
1793
|
+
},
|
|
1794
|
+
async 'get_worker_result'(_0x368740) {
|
|
1795
|
+
const _0x3b2689 = _0xaeca;
|
|
1796
|
+
if (!_0x38edde[_0x3b2689(_0x4f62d5._0x21f533)])
|
|
1797
|
+
return _0x3b2689(_0x4f62d5._0x5dc9d1);
|
|
1798
|
+
const _0x3630ca = await fetch(_0x38edde[_0x3b2689(0x267)] + _0x3b2689(_0x4f62d5._0x5edc9d) + encodeURIComponent(_0x368740[_0x3b2689(0x25b)])), _0x5f441c = await _0x3630ca[_0x3b2689(0x18e)]();
|
|
1799
|
+
if (!_0x5f441c[_0x3b2689(_0x4f62d5._0x22af6f)])
|
|
1800
|
+
return _0x3b2689(_0x4f62d5._0x69d102) + _0x368740[_0x3b2689(_0x4f62d5._0x4085f0)] + '\x22';
|
|
1801
|
+
return JSON[_0x3b2689(0x203)](_0x5f441c['resume_packet'], null, 0x2);
|
|
1802
|
+
},
|
|
1803
|
+
async 'finish_worker'(_0x525326) {
|
|
1804
|
+
const _0x428b77 = _0xaeca;
|
|
1805
|
+
if (!_0x38edde['daemonLocalUrl'])
|
|
1806
|
+
return _0x428b77(0x281);
|
|
1807
|
+
const _0x286681 = await fetch(_0x38edde[_0x428b77(_0x2ebb57._0x1d507b)] + _0x428b77(_0x2ebb57._0x26a4a3), {
|
|
1808
|
+
'method': _0x428b77(0x2a0),
|
|
1809
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1810
|
+
'body': JSON[_0x428b77(0x203)]({
|
|
1811
|
+
'work_key': _0x525326[_0x428b77(0x25b)],
|
|
1812
|
+
'resume_packet': {
|
|
1813
|
+
'objective': '',
|
|
1814
|
+
'result': _0x525326[_0x428b77(0x235)],
|
|
1815
|
+
'summary': _0x525326[_0x428b77(0x194)],
|
|
1816
|
+
'decisions': _0x525326[_0x428b77(_0x2ebb57._0xb4c0)] ?? [],
|
|
1817
|
+
'filesChanged': _0x525326[_0x428b77(_0x2ebb57._0x3366d)] ?? [],
|
|
1818
|
+
'openIssues': _0x525326[_0x428b77(_0x2ebb57._0x379274)] ?? [],
|
|
1819
|
+
'nextSteps': _0x525326['next_steps'] ?? []
|
|
1820
|
+
}
|
|
1821
|
+
})
|
|
1822
|
+
}), _0x2a1df6 = await _0x286681[_0x428b77(_0x2ebb57._0x40317e)]();
|
|
1823
|
+
if (!_0x2a1df6['ok'])
|
|
1824
|
+
throw new Error(_0x2a1df6['error'] ?? _0x428b77(0x26a));
|
|
1825
|
+
return _0x428b77(_0x2ebb57._0x30c266) + _0x525326[_0x428b77(_0x2ebb57._0xcf6191)] + _0x428b77(_0x2ebb57._0x4d031a) + _0x525326['result'];
|
|
1826
|
+
},
|
|
1827
|
+
async 'mark_waiting_input'(_0x183110) {
|
|
1828
|
+
const _0x4ffe6b = _0xaeca;
|
|
1829
|
+
if (!_0x38edde[_0x4ffe6b(0x267)] || !_0x38edde[_0x4ffe6b(0x1ce)])
|
|
1830
|
+
return _0x4ffe6b(0x269);
|
|
1831
|
+
const _0x3faf95 = await fetch(_0x38edde[_0x4ffe6b(0x267)] + '/workers/waiting_input', {
|
|
1832
|
+
'method': _0x4ffe6b(_0x222e3b._0x546401),
|
|
1833
|
+
'headers': { 'Content-Type': _0x4ffe6b(0x260) },
|
|
1834
|
+
'body': JSON[_0x4ffe6b(_0x222e3b._0x4a879a)]({
|
|
1835
|
+
'work_key': _0x183110[_0x4ffe6b(_0x222e3b._0x4c1c19)],
|
|
1836
|
+
'agent_id': _0x38edde[_0x4ffe6b(_0x222e3b._0x31f44a)]
|
|
1837
|
+
})
|
|
1838
|
+
}), _0x3f04eb = await _0x3faf95[_0x4ffe6b(0x18e)]();
|
|
1839
|
+
if (!_0x3f04eb['ok'])
|
|
1840
|
+
throw new Error(_0x3f04eb['error'] ?? _0x4ffe6b(_0x222e3b._0x420097));
|
|
1841
|
+
return 'Worker\x20\x22' + _0x183110[_0x4ffe6b(0x25b)] + _0x4ffe6b(_0x222e3b._0xc81ee6);
|
|
1842
|
+
},
|
|
1843
|
+
async 'escalate_to_main'(_0x13f2e1) {
|
|
1844
|
+
const _0x1e1407 = _0xaeca;
|
|
1845
|
+
if (!_0x38edde[_0x1e1407(0x267)])
|
|
1846
|
+
return _0x1e1407(0x281);
|
|
1847
|
+
const _0x2c08b3 = await fetch(_0x38edde[_0x1e1407(_0x109611._0x544988)] + _0x1e1407(0x239), {
|
|
1848
|
+
'method': _0x1e1407(0x2a0),
|
|
1849
|
+
'headers': { 'Content-Type': _0x1e1407(0x260) },
|
|
1850
|
+
'body': JSON[_0x1e1407(0x203)]({
|
|
1851
|
+
'work_key': _0x13f2e1[_0x1e1407(0x25b)],
|
|
1852
|
+
'reason': _0x13f2e1[_0x1e1407(_0x109611._0x28c6c6)]
|
|
1853
|
+
})
|
|
1854
|
+
}), _0x5ede09 = await _0x2c08b3[_0x1e1407(_0x109611._0x1564f8)]();
|
|
1855
|
+
if (!_0x5ede09['ok'])
|
|
1856
|
+
throw new Error(_0x5ede09[_0x1e1407(0x263)] ?? _0x1e1407(_0x109611._0xf82af0));
|
|
1857
|
+
return _0x1e1407(0x169) + _0x13f2e1['reason'];
|
|
1858
|
+
}
|
|
1859
|
+
};
|
|
1860
|
+
}
|
|
1861
|
+
function textResult(_0x1ff1c0, _0x509a4c = ![]) {
|
|
1862
|
+
const _0x2e78fc = _0x4ab0ed;
|
|
1863
|
+
return {
|
|
1864
|
+
'content': [{
|
|
1865
|
+
'type': _0x2e78fc(0x277),
|
|
1866
|
+
'text': _0x1ff1c0
|
|
1867
|
+
}],
|
|
1868
|
+
..._0x509a4c ? { 'isError': !![] } : {}
|
|
1869
|
+
};
|
|
1870
|
+
}
|
|
1871
|
+
async function registerChatBridgeTools(_0x56dd02, _0x10cf2e, _0xdca9cc) {
|
|
1872
|
+
const _0x4eb70f = {
|
|
1873
|
+
_0xaad434: 0x19c,
|
|
1874
|
+
_0x37b6f6: 0x23f,
|
|
1875
|
+
_0x2983e3: 0x291,
|
|
1876
|
+
_0x2fabfa: 0x28f,
|
|
1877
|
+
_0xfdbb2f: 0x1f0,
|
|
1878
|
+
_0x9f9e62: 0x2c3,
|
|
1879
|
+
_0xcb3ed2: 0x291,
|
|
1880
|
+
_0x438361: 0x274,
|
|
1881
|
+
_0x26647f: 0x1b8,
|
|
1882
|
+
_0x2d3cd7: 0x1f2,
|
|
1883
|
+
_0xe2f670: 0x28f,
|
|
1884
|
+
_0x424b13: 0x163,
|
|
1885
|
+
_0x5602fb: 0x16f,
|
|
1886
|
+
_0x1a9f6b: 0x1f1,
|
|
1887
|
+
_0x5f20b8: 0x19c,
|
|
1888
|
+
_0x176592: 0x166,
|
|
1889
|
+
_0x5e180b: 0x163,
|
|
1890
|
+
_0x4b14b7: 0x291,
|
|
1891
|
+
_0x267cf6: 0x291,
|
|
1892
|
+
_0xc0343: 0x16f,
|
|
1893
|
+
_0x1a516c: 0x28f,
|
|
1894
|
+
_0x3c1057: 0x19c,
|
|
1895
|
+
_0x4d2fa9: 0x2bd,
|
|
1896
|
+
_0x3d2fbe: 0x1dd,
|
|
1897
|
+
_0x4752e8: 0x19c,
|
|
1898
|
+
_0x2f5dc1: 0x272,
|
|
1899
|
+
_0x541d43: 0x1f2,
|
|
1900
|
+
_0x526f83: 0x1ab,
|
|
1901
|
+
_0x401bd7: 0x2b0,
|
|
1902
|
+
_0x211faf: 0x19c,
|
|
1903
|
+
_0x6e5765: 0x1cc,
|
|
1904
|
+
_0x5ed01d: 0x19c,
|
|
1905
|
+
_0xf0aecf: 0x210,
|
|
1906
|
+
_0x293df3: 0x291,
|
|
1907
|
+
_0xbb6a1d: 0x291,
|
|
1908
|
+
_0x1b7f33: 0x291,
|
|
1909
|
+
_0x46eb43: 0x19c,
|
|
1910
|
+
_0x123509: 0x157,
|
|
1911
|
+
_0xde4a58: 0x208,
|
|
1912
|
+
_0x1e7dda: 0x299,
|
|
1913
|
+
_0x34bc91: 0x1be,
|
|
1914
|
+
_0x310855: 0x163,
|
|
1915
|
+
_0x187ea0: 0x163,
|
|
1916
|
+
_0x2c6f27: 0x20f
|
|
1917
|
+
}, _0x3e2ee9 = {
|
|
1918
|
+
_0x3dc5aa: 0x186,
|
|
1919
|
+
_0x472837: 0x256,
|
|
1920
|
+
_0x5016c8: 0x168
|
|
1921
|
+
}, _0x558b2e = {
|
|
1922
|
+
_0x568679: 0x2a3,
|
|
1923
|
+
_0xcfef8d: 0x256
|
|
1924
|
+
}, _0x2e665c = { _0x91909e: 0x1a8 }, _0x3a75a6 = { _0x27e9c6: 0x1ea }, _0x3e9244 = { _0x43e3b2: 0x210 }, _0xa6f0d9 = {
|
|
1925
|
+
_0x43563e: 0x256,
|
|
1926
|
+
_0x37fe1e: 0x1a7
|
|
1927
|
+
}, _0x52c3eb = { _0x4e2fab: 0x1f6 }, _0x30dfa3 = { _0x5925fb: 0x272 }, _0x3206bc = {
|
|
1928
|
+
_0x34c0b8: 0x2bd,
|
|
1929
|
+
_0x53ff00: 0x256
|
|
1930
|
+
}, _0x179610 = {
|
|
1931
|
+
_0x215bbd: 0x253,
|
|
1932
|
+
_0x3f3e14: 0x256
|
|
1933
|
+
}, _0x3c41d7 = {
|
|
1934
|
+
_0x4bc6a7: 0x256,
|
|
1935
|
+
_0x84f694: 0x1fe
|
|
1936
|
+
}, _0x2c4708 = { _0x542f96: 0x2b3 }, _0x4345f8 = _0x4ab0ed, {z: _0x114985} = await import('zod');
|
|
1937
|
+
_0x56dd02[_0x4345f8(_0x4eb70f._0xaad434)](_0x4345f8(_0x4eb70f._0x37b6f6), 'Send\x20a\x20message\x20to\x20a\x20channel\x20or\x20DM.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages;\x20thread\x20targets\x20use\x20the\x20same\x20field.', {
|
|
1938
|
+
'target': _0x114985[_0x4345f8(_0x4eb70f._0x2983e3)](),
|
|
1939
|
+
'content': _0x114985[_0x4345f8(0x291)](),
|
|
1940
|
+
'attachment_ids': _0x114985[_0x4345f8(0x163)](_0x114985['string']())[_0x4345f8(_0x4eb70f._0x2fabfa)]()
|
|
1941
|
+
}, async _0x3619c2 => {
|
|
1942
|
+
const _0xe2614f = _0x4345f8;
|
|
1943
|
+
try {
|
|
1944
|
+
return textResult(await _0x10cf2e[_0xe2614f(0x23f)](_0x3619c2));
|
|
1945
|
+
} catch (_0x247f36) {
|
|
1946
|
+
return textResult(_0x247f36 instanceof Error ? _0x247f36[_0xe2614f(0x256)] : 'send_message\x20failed', !![]);
|
|
1947
|
+
}
|
|
1948
|
+
}), _0x56dd02[_0x4345f8(0x19c)](_0x4345f8(_0x4eb70f._0xfdbb2f), _0x4345f8(0x24d), {}, async () => {
|
|
1949
|
+
const _0x3b1477 = _0x4345f8;
|
|
1950
|
+
try {
|
|
1951
|
+
return textResult(await _0x10cf2e[_0x3b1477(0x1f0)]());
|
|
1952
|
+
} catch (_0x4e4a5f) {
|
|
1953
|
+
return textResult(_0x4e4a5f instanceof Error ? _0x4e4a5f['message'] : _0x3b1477(_0x2c4708._0x542f96), !![]);
|
|
1954
|
+
}
|
|
1955
|
+
}), _0x56dd02['tool'](_0x4345f8(_0x4eb70f._0x9f9e62), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
1956
|
+
'channel': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)](),
|
|
1957
|
+
'limit': _0x114985[_0x4345f8(0x16d)]()[_0x4345f8(0x28f)](),
|
|
1958
|
+
'before': _0x114985[_0x4345f8(0x16d)]()['optional'](),
|
|
1959
|
+
'after': _0x114985['number']()['optional']()
|
|
1960
|
+
}, async _0x3bcfbf => {
|
|
1961
|
+
const _0x3b3605 = _0x4345f8;
|
|
1962
|
+
try {
|
|
1963
|
+
return textResult(await _0x10cf2e[_0x3b3605(0x2c3)](_0x3bcfbf));
|
|
1964
|
+
} catch (_0x4086cb) {
|
|
1965
|
+
return textResult(_0x4086cb instanceof Error ? _0x4086cb['message'] : _0x3b3605(0x172), !![]);
|
|
1966
|
+
}
|
|
1967
|
+
}), _0x56dd02[_0x4345f8(0x19c)](_0x4345f8(0x184), _0x4345f8(_0x4eb70f._0x438361), {}, async () => {
|
|
1968
|
+
const _0x5a3764 = _0x4345f8;
|
|
1969
|
+
try {
|
|
1970
|
+
return textResult(await _0x10cf2e['list_server']());
|
|
1971
|
+
} catch (_0x385827) {
|
|
1972
|
+
return textResult(_0x385827 instanceof Error ? _0x385827[_0x5a3764(0x256)] : _0x5a3764(0x1b9), !![]);
|
|
1973
|
+
}
|
|
1974
|
+
}), _0x56dd02[_0x4345f8(0x19c)](_0x4345f8(0x1de), 'List\x20tasks\x20in\x20a\x20channel.', {
|
|
1975
|
+
'channel': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)](),
|
|
1976
|
+
'status': _0x114985[_0x4345f8(0x1f1)]([
|
|
1977
|
+
_0x4345f8(_0x4eb70f._0x26647f),
|
|
1978
|
+
'in_progress',
|
|
1979
|
+
_0x4345f8(_0x4eb70f._0x2d3cd7),
|
|
1980
|
+
'done'
|
|
1981
|
+
])[_0x4345f8(_0x4eb70f._0xe2f670)]()
|
|
1982
|
+
}, async _0x9b8295 => {
|
|
1983
|
+
const _0x5f4a3e = _0x4345f8;
|
|
1984
|
+
try {
|
|
1985
|
+
return textResult(await _0x10cf2e['list_tasks'](_0x9b8295));
|
|
1986
|
+
} catch (_0x5c4694) {
|
|
1987
|
+
return textResult(_0x5c4694 instanceof Error ? _0x5c4694[_0x5f4a3e(_0x3c41d7._0x4bc6a7)] : _0x5f4a3e(_0x3c41d7._0x84f694), !![]);
|
|
1988
|
+
}
|
|
1989
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0xaad434)]('create_tasks', _0x4345f8(0x17d), {
|
|
1990
|
+
'channel': _0x114985['string'](),
|
|
1991
|
+
'idempotency_key': _0x114985[_0x4345f8(0x291)]()['optional'](),
|
|
1992
|
+
'tasks': _0x114985[_0x4345f8(_0x4eb70f._0x424b13)](_0x114985[_0x4345f8(_0x4eb70f._0x5602fb)]({
|
|
1993
|
+
'title': _0x114985[_0x4345f8(0x291)](),
|
|
1994
|
+
'description': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)]()[_0x4345f8(0x28f)](),
|
|
1995
|
+
'priority': _0x114985[_0x4345f8(_0x4eb70f._0x1a9f6b)]([
|
|
1996
|
+
_0x4345f8(0x18a),
|
|
1997
|
+
_0x4345f8(0x15e),
|
|
1998
|
+
'high',
|
|
1999
|
+
_0x4345f8(0x15b)
|
|
2000
|
+
])['optional']()
|
|
2001
|
+
}))
|
|
2002
|
+
}, async _0x4fa82b => {
|
|
2003
|
+
const _0x1bb72e = _0x4345f8;
|
|
2004
|
+
try {
|
|
2005
|
+
return textResult(await _0x10cf2e[_0x1bb72e(_0x179610._0x215bbd)](_0x4fa82b));
|
|
2006
|
+
} catch (_0x330ae4) {
|
|
2007
|
+
return textResult(_0x330ae4 instanceof Error ? _0x330ae4[_0x1bb72e(_0x179610._0x3f3e14)] : _0x1bb72e(0x230), !![]);
|
|
2008
|
+
}
|
|
2009
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x5f20b8)](_0x4345f8(_0x4eb70f._0x176592), _0x4345f8(0x176), {
|
|
2010
|
+
'channel': _0x114985[_0x4345f8(0x291)](),
|
|
2011
|
+
'task_numbers': _0x114985[_0x4345f8(0x163)](_0x114985[_0x4345f8(0x16d)]())['optional'](),
|
|
2012
|
+
'message_ids': _0x114985[_0x4345f8(_0x4eb70f._0x5e180b)](_0x114985[_0x4345f8(_0x4eb70f._0x4b14b7)]())[_0x4345f8(0x28f)](),
|
|
2013
|
+
'evidence': _0x114985[_0x4345f8(0x276)](_0x114985[_0x4345f8(_0x4eb70f._0x267cf6)](), _0x114985[_0x4345f8(_0x4eb70f._0xc0343)]({
|
|
2014
|
+
'create_thread': _0x114985['unknown']()[_0x4345f8(0x28f)](),
|
|
2015
|
+
'create_task': _0x114985[_0x4345f8(0x198)]()[_0x4345f8(0x28f)]()
|
|
2016
|
+
}))[_0x4345f8(0x28f)](),
|
|
2017
|
+
'idempotency_key': _0x114985['string']()[_0x4345f8(_0x4eb70f._0x1a516c)]()
|
|
2018
|
+
}, async _0x45c9dd => {
|
|
2019
|
+
const _0x42942d = _0x4345f8;
|
|
2020
|
+
try {
|
|
2021
|
+
return textResult(await _0x10cf2e[_0x42942d(0x166)](_0x45c9dd));
|
|
2022
|
+
} catch (_0x101c8c) {
|
|
2023
|
+
return textResult(_0x101c8c instanceof Error ? _0x101c8c['message'] : _0x42942d(0x27f), !![]);
|
|
2024
|
+
}
|
|
2025
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x3c1057)](_0x4345f8(_0x4eb70f._0x4d2fa9), _0x4345f8(_0x4eb70f._0x3d2fbe), {
|
|
2026
|
+
'channel': _0x114985[_0x4345f8(_0x4eb70f._0x4b14b7)](),
|
|
2027
|
+
'task_number': _0x114985['number'](),
|
|
2028
|
+
'idempotency_key': _0x114985[_0x4345f8(0x291)]()['optional']()
|
|
2029
|
+
}, async _0x3cce50 => {
|
|
2030
|
+
const _0x34a659 = _0x4345f8;
|
|
2031
|
+
try {
|
|
2032
|
+
return textResult(await _0x10cf2e[_0x34a659(_0x3206bc._0x34c0b8)](_0x3cce50));
|
|
2033
|
+
} catch (_0x5222fd) {
|
|
2034
|
+
return textResult(_0x5222fd instanceof Error ? _0x5222fd[_0x34a659(_0x3206bc._0x53ff00)] : 'unclaim_task\x20failed', !![]);
|
|
2035
|
+
}
|
|
2036
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x4752e8)](_0x4345f8(_0x4eb70f._0x2f5dc1), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.', {
|
|
2037
|
+
'channel': _0x114985['string'](),
|
|
2038
|
+
'task_number': _0x114985[_0x4345f8(0x16d)](),
|
|
2039
|
+
'status': _0x114985[_0x4345f8(0x1f1)]([
|
|
2040
|
+
'todo',
|
|
2041
|
+
_0x4345f8(0x1a0),
|
|
2042
|
+
_0x4345f8(_0x4eb70f._0x541d43),
|
|
2043
|
+
_0x4345f8(_0x4eb70f._0x526f83)
|
|
2044
|
+
]),
|
|
2045
|
+
'idempotency_key': _0x114985[_0x4345f8(_0x4eb70f._0x2983e3)]()['optional']()
|
|
2046
|
+
}, async _0x2665a6 => {
|
|
2047
|
+
const _0x219f5e = _0x4345f8;
|
|
2048
|
+
try {
|
|
2049
|
+
return textResult(await _0x10cf2e[_0x219f5e(_0x30dfa3._0x5925fb)](_0x2665a6));
|
|
2050
|
+
} catch (_0x6c00dd) {
|
|
2051
|
+
return textResult(_0x6c00dd instanceof Error ? _0x6c00dd[_0x219f5e(0x256)] : _0x219f5e(0x247), !![]);
|
|
2052
|
+
}
|
|
2053
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x5f20b8)](_0x4345f8(0x1fc), _0x4345f8(_0x4eb70f._0x401bd7), {
|
|
2054
|
+
'channel': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)](),
|
|
2055
|
+
'file_path': _0x114985[_0x4345f8(_0x4eb70f._0x267cf6)]()
|
|
2056
|
+
}, async _0x57d4fe => {
|
|
2057
|
+
const _0x438a5a = _0x4345f8;
|
|
2058
|
+
try {
|
|
2059
|
+
return textResult(await _0x10cf2e[_0x438a5a(0x1fc)](_0x57d4fe));
|
|
2060
|
+
} catch (_0x4ad2b9) {
|
|
2061
|
+
return textResult(_0x4ad2b9 instanceof Error ? _0x4ad2b9['message'] : _0x438a5a(_0x52c3eb._0x4e2fab), !![]);
|
|
2062
|
+
}
|
|
2063
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x211faf)]('view_file', _0x4345f8(_0x4eb70f._0x6e5765), { 'attachment_id': _0x114985[_0x4345f8(0x291)]() }, async _0x31e0e1 => {
|
|
2064
|
+
const _0x1ac9b0 = _0x4345f8;
|
|
2065
|
+
try {
|
|
2066
|
+
return textResult(await _0x10cf2e[_0x1ac9b0(0x287)](_0x31e0e1));
|
|
2067
|
+
} catch (_0x493663) {
|
|
2068
|
+
return textResult(_0x493663 instanceof Error ? _0x493663[_0x1ac9b0(_0xa6f0d9._0x43563e)] : _0x1ac9b0(_0xa6f0d9._0x37fe1e), !![]);
|
|
2069
|
+
}
|
|
2070
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x5ed01d)](_0x4345f8(_0x4eb70f._0xf0aecf), _0x4345f8(0x16e), {
|
|
2071
|
+
'work_key': _0x114985[_0x4345f8(0x291)](),
|
|
2072
|
+
'thread_target': _0x114985[_0x4345f8(_0x4eb70f._0x293df3)](),
|
|
2073
|
+
'objective': _0x114985['string'](),
|
|
2074
|
+
'conclusions': _0x114985[_0x4345f8(0x163)](_0x114985['string']())[_0x4345f8(0x28f)](),
|
|
2075
|
+
'relevant_files': _0x114985[_0x4345f8(_0x4eb70f._0x424b13)](_0x114985[_0x4345f8(_0x4eb70f._0xbb6a1d)]())[_0x4345f8(_0x4eb70f._0xe2f670)](),
|
|
2076
|
+
'open_questions': _0x114985['array'](_0x114985[_0x4345f8(_0x4eb70f._0x267cf6)]())[_0x4345f8(0x28f)](),
|
|
2077
|
+
'reply_target': _0x114985[_0x4345f8(0x291)](),
|
|
2078
|
+
'task_id': _0x114985[_0x4345f8(_0x4eb70f._0x1b7f33)]()[_0x4345f8(_0x4eb70f._0x2fabfa)]()
|
|
2079
|
+
}, async _0x182921 => {
|
|
2080
|
+
const _0x25c888 = _0x4345f8;
|
|
2081
|
+
try {
|
|
2082
|
+
return textResult(await _0x10cf2e[_0x25c888(_0x3e9244._0x43e3b2)](_0x182921));
|
|
2083
|
+
} catch (_0x3dc737) {
|
|
2084
|
+
return textResult(_0x3dc737 instanceof Error ? _0x3dc737['message'] : _0x25c888(0x2ad), !![]);
|
|
2085
|
+
}
|
|
2086
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x46eb43)](_0x4345f8(_0x4eb70f._0x123509), _0x4345f8(_0x4eb70f._0xde4a58), { 'work_key': _0x114985[_0x4345f8(0x291)]() }, async _0x3e3227 => {
|
|
2087
|
+
const _0x199ef3 = _0x4345f8;
|
|
2088
|
+
try {
|
|
2089
|
+
return textResult(await _0x10cf2e['get_worker_status'](_0x3e3227));
|
|
2090
|
+
} catch (_0x48d4b5) {
|
|
2091
|
+
return textResult(_0x48d4b5 instanceof Error ? _0x48d4b5[_0x199ef3(0x256)] : _0x199ef3(_0x3a75a6._0x27e9c6), !![]);
|
|
2092
|
+
}
|
|
2093
|
+
}), _0x56dd02['tool'](_0x4345f8(0x1a8), _0x4345f8(_0x4eb70f._0x1e7dda), { 'work_key': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)]() }, async _0x5b5428 => {
|
|
2094
|
+
const _0x4d7eaf = _0x4345f8;
|
|
2095
|
+
try {
|
|
2096
|
+
return textResult(await _0x10cf2e[_0x4d7eaf(_0x2e665c._0x91909e)](_0x5b5428));
|
|
2097
|
+
} catch (_0x10eabf) {
|
|
2098
|
+
return textResult(_0x10eabf instanceof Error ? _0x10eabf[_0x4d7eaf(0x256)] : _0x4d7eaf(0x19e), !![]);
|
|
2099
|
+
}
|
|
2100
|
+
}), _0x56dd02['tool']('finish_worker', _0x4345f8(_0x4eb70f._0x34bc91), {
|
|
2101
|
+
'work_key': _0x114985['string'](),
|
|
2102
|
+
'result': _0x114985[_0x4345f8(_0x4eb70f._0x1a9f6b)]([
|
|
2103
|
+
_0x4345f8(0x158),
|
|
2104
|
+
'blocked',
|
|
2105
|
+
_0x4345f8(0x223)
|
|
2106
|
+
]),
|
|
2107
|
+
'summary': _0x114985[_0x4345f8(_0x4eb70f._0x2983e3)](),
|
|
2108
|
+
'decisions': _0x114985[_0x4345f8(_0x4eb70f._0x310855)](_0x114985['string']())[_0x4345f8(0x28f)](),
|
|
2109
|
+
'files_changed': _0x114985[_0x4345f8(0x163)](_0x114985['string']())[_0x4345f8(_0x4eb70f._0xe2f670)](),
|
|
2110
|
+
'open_issues': _0x114985[_0x4345f8(_0x4eb70f._0x187ea0)](_0x114985['string']())['optional'](),
|
|
2111
|
+
'next_steps': _0x114985[_0x4345f8(0x163)](_0x114985['string']())['optional']()
|
|
2112
|
+
}, async _0x44f4bd => {
|
|
2113
|
+
const _0x3ac16b = _0x4345f8;
|
|
2114
|
+
try {
|
|
2115
|
+
return textResult(await _0x10cf2e[_0x3ac16b(_0x558b2e._0x568679)](_0x44f4bd));
|
|
2116
|
+
} catch (_0x360244) {
|
|
2117
|
+
return textResult(_0x360244 instanceof Error ? _0x360244[_0x3ac16b(_0x558b2e._0xcfef8d)] : _0x3ac16b(0x26a), !![]);
|
|
2118
|
+
}
|
|
2119
|
+
}), _0x56dd02['tool'](_0x4345f8(0x186), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
2120
|
+
'work_key': _0x114985['string'](),
|
|
2121
|
+
'reason': _0x114985[_0x4345f8(0x291)]()
|
|
2122
|
+
}, async _0x24834a => {
|
|
2123
|
+
const _0x1c0d8c = _0x4345f8;
|
|
2124
|
+
try {
|
|
2125
|
+
return textResult(await _0x10cf2e[_0x1c0d8c(_0x3e2ee9._0x3dc5aa)](_0x24834a));
|
|
2126
|
+
} catch (_0x11d3ec) {
|
|
2127
|
+
return textResult(_0x11d3ec instanceof Error ? _0x11d3ec[_0x1c0d8c(_0x3e2ee9._0x472837)] : _0x1c0d8c(_0x3e2ee9._0x5016c8), !![]);
|
|
2128
|
+
}
|
|
2129
|
+
}), _0xdca9cc?.['workerMode'] && _0x56dd02[_0x4345f8(0x19c)](_0x4345f8(_0x4eb70f._0x2c6f27), _0x4345f8(0x222), { 'work_key': _0x114985[_0x4345f8(0x291)]() }, async _0x275c22 => {
|
|
2130
|
+
const _0x38927b = _0x4345f8;
|
|
2131
|
+
try {
|
|
2132
|
+
return textResult(await _0x10cf2e['mark_waiting_input'](_0x275c22));
|
|
2133
|
+
} catch (_0x1a4ee9) {
|
|
2134
|
+
return textResult(_0x1a4ee9 instanceof Error ? _0x1a4ee9['message'] : _0x38927b(0x214), !![]);
|
|
2135
|
+
}
|
|
2136
|
+
});
|
|
2137
|
+
}
|
|
2138
|
+
async function createChatBridgeServer(_0x51f387) {
|
|
2139
|
+
const _0x273648 = _0x4ab0ed, {McpServer: _0x205ba9} = await import(_0x273648(0x2c5)), _0x449afc = new _0x205ba9({
|
|
2140
|
+
'name': 'chat',
|
|
2141
|
+
'version': _0x273648(0x2bf)
|
|
2142
|
+
}), _0x56e24c = createChatBridgeHandlers(_0x51f387);
|
|
2143
|
+
return await registerChatBridgeTools(_0x449afc, _0x56e24c, { 'workerMode': _0x51f387[_0x273648(0x1e5)] }), {
|
|
2144
|
+
'handlers': _0x56e24c,
|
|
2145
|
+
'server': _0x449afc
|
|
2146
|
+
};
|
|
2147
|
+
}
|
|
2148
|
+
function readFlag(_0x551332, _0x3b5fb0) {
|
|
2149
|
+
const _0x20e68b = _0x551332['indexOf'](_0x3b5fb0);
|
|
2150
|
+
if (_0x20e68b === -0x1)
|
|
2151
|
+
return void 0x0;
|
|
2152
|
+
return _0x551332[_0x20e68b + 0x1];
|
|
2153
|
+
}
|
|
2154
|
+
function parseChatBridgeArgs(_0x4db6c7) {
|
|
2155
|
+
const _0x5aa5a1 = {
|
|
2156
|
+
_0x731ce9: 0x20d,
|
|
2157
|
+
_0x271c48: 0x255
|
|
2158
|
+
}, _0xefa0ef = _0x4ab0ed, _0x1039c7 = readFlag(_0x4db6c7, _0xefa0ef(0x236)), _0xd6176d = readFlag(_0x4db6c7, _0xefa0ef(_0x5aa5a1._0x731ce9)), _0x1df697 = readFlag(_0x4db6c7, _0xefa0ef(0x2a9)), _0x733cb9 = readFlag(_0x4db6c7, '--server-url') ?? 'http://localhost:8121', _0x1a23d0 = readFlag(_0x4db6c7, _0xefa0ef(0x18f)), _0x8474bf = readFlag(_0x4db6c7, _0xefa0ef(0x2b2)), _0x2122e5 = readFlag(_0x4db6c7, _0xefa0ef(0x18c)), _0x39c097 = readFlag(_0x4db6c7, '--worker-thread-target'), _0x40ea5f = _0x4db6c7['includes'](_0xefa0ef(0x174)), _0x4a9dfd = _0x1df697 === void 0x0 ? void 0x0 : Number['parseInt'](_0x1df697, 0xa);
|
|
2159
|
+
if (!_0x1039c7)
|
|
2160
|
+
throw new Error(_0xefa0ef(0x292));
|
|
2161
|
+
if (!_0xd6176d)
|
|
2162
|
+
throw new Error(_0xefa0ef(_0x5aa5a1._0x271c48));
|
|
2163
|
+
if (_0x1df697 !== void 0x0 && (_0x4a9dfd === void 0x0 || !Number['isFinite'](_0x4a9dfd) || _0x4a9dfd < 0x0))
|
|
2164
|
+
throw new Error(_0xefa0ef(0x21a));
|
|
2165
|
+
return {
|
|
2166
|
+
'agentId': _0x1039c7,
|
|
2167
|
+
'daemonApiKey': _0xd6176d,
|
|
2168
|
+
'daemonLocalUrl': _0x1a23d0,
|
|
2169
|
+
'initialLastSeenSeq': _0x4a9dfd,
|
|
2170
|
+
'sessionId': _0x8474bf,
|
|
2171
|
+
'serverUrl': _0x733cb9,
|
|
2172
|
+
'workerModeEnabled': _0x2122e5 === void 0x0 ? void 0x0 : _0x2122e5 !== 'false',
|
|
2173
|
+
'workerThreadTarget': _0x39c097,
|
|
2174
|
+
'workerMode': _0x40ea5f
|
|
2146
2175
|
};
|
|
2147
|
-
return _0x5c8c();
|
|
2148
2176
|
}
|
|
2149
|
-
async function runChatBridgeCli(
|
|
2150
|
-
const
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
'
|
|
2156
|
-
'
|
|
2157
|
-
'
|
|
2158
|
-
'daemonLocalUrl': _0x21b956[_0x13ce7b(_0x2f8eeb._0x152adb)],
|
|
2177
|
+
async function runChatBridgeCli(_0xc25b64) {
|
|
2178
|
+
const _0x5e5d72 = {
|
|
2179
|
+
_0x9fd3c8: 0x1d0,
|
|
2180
|
+
_0x2991c3: 0x1dc
|
|
2181
|
+
}, _0x1773cd = _0x4ab0ed, _0x175d04 = parseChatBridgeArgs(_0xc25b64), {StdioServerTransport: _0x23c675} = await import(_0x1773cd(_0x5e5d72._0x9fd3c8)), _0x10a746 = createInternalAgentClient(_0x175d04), _0x4464fd = createAttachmentCache(), _0x36d7ee = await createChatBridgeServer({
|
|
2182
|
+
'agentId': _0x175d04[_0x1773cd(0x1ce)],
|
|
2183
|
+
'attachmentCache': _0x4464fd,
|
|
2184
|
+
'client': _0x10a746,
|
|
2185
|
+
'daemonLocalUrl': _0x175d04[_0x1773cd(0x267)],
|
|
2159
2186
|
'uploadPreparer': prepareUploadFile,
|
|
2160
|
-
'workerModeEnabled':
|
|
2161
|
-
'workerMode':
|
|
2187
|
+
'workerModeEnabled': _0x175d04[_0x1773cd(0x16a)],
|
|
2188
|
+
'workerMode': _0x175d04['workerMode']
|
|
2162
2189
|
});
|
|
2163
|
-
await
|
|
2190
|
+
await _0x36d7ee[_0x1773cd(0x296)][_0x1773cd(_0x5e5d72._0x2991c3)](new _0x23c675());
|
|
2164
2191
|
}
|
|
2165
|
-
var executedAsEntry = process[
|
|
2166
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2192
|
+
var executedAsEntry = process[_0x4ab0ed(0x1d1)][0x1] ? import.meta.url === pathToFileURL(process[_0x4ab0ed(0x1d1)][0x1])[_0x4ab0ed(0x29c)] : ![];
|
|
2193
|
+
executedAsEntry && await runChatBridgeCli(process[_0x4ab0ed(0x1d1)][_0x4ab0ed(0x27a)](0x2));
|
|
2167
2194
|
export {
|
|
2168
2195
|
createChatBridgeHandlers,
|
|
2169
2196
|
createChatBridgeServer,
|