@dscord/daemon 0.1.24 → 0.1.26
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 +1940 -1942
- package/dist/index.js +8302 -8283
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const _0x5e2837 = _0x34a4;
|
|
2
|
+
(function (_0x1f4a67, _0x261033) {
|
|
3
|
+
const _0x240ea8 = {
|
|
4
|
+
_0x5112ae: 0x26e,
|
|
5
|
+
_0x5b1601: 0x237,
|
|
6
|
+
_0x64beb4: 0x25e,
|
|
7
|
+
_0x2c8035: 0x217,
|
|
8
|
+
_0x56e8cf: 0x27f,
|
|
9
|
+
_0x33a345: 0x1b5
|
|
10
|
+
}, _0x17ac00 = _0x34a4, _0x534c89 = _0x1f4a67();
|
|
9
11
|
while (!![]) {
|
|
10
12
|
try {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
+
const _0x50724b = -parseInt(_0x17ac00(_0x240ea8._0x5112ae)) / 0x1 * (parseInt(_0x17ac00(_0x240ea8._0x5b1601)) / 0x2) + -parseInt(_0x17ac00(0x301)) / 0x3 * (parseInt(_0x17ac00(0x1fa)) / 0x4) + -parseInt(_0x17ac00(0x1d4)) / 0x5 + -parseInt(_0x17ac00(_0x240ea8._0x64beb4)) / 0x6 + -parseInt(_0x17ac00(_0x240ea8._0x2c8035)) / 0x7 * (parseInt(_0x17ac00(_0x240ea8._0x56e8cf)) / 0x8) + parseInt(_0x17ac00(0x1c7)) / 0x9 + parseInt(_0x17ac00(_0x240ea8._0x33a345)) / 0xa;
|
|
14
|
+
if (_0x50724b === _0x261033)
|
|
13
15
|
break;
|
|
14
16
|
else
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
|
|
17
|
+
_0x534c89['push'](_0x534c89['shift']());
|
|
18
|
+
} catch (_0x2064c6) {
|
|
19
|
+
_0x534c89['push'](_0x534c89['shift']());
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
|
-
}(
|
|
22
|
+
}(_0x1f7c, 0x7aaa6));
|
|
21
23
|
import { pathToFileURL } from 'node:url';
|
|
22
24
|
import {
|
|
23
25
|
mkdir,
|
|
@@ -27,82 +29,101 @@ import {
|
|
|
27
29
|
writeFile
|
|
28
30
|
} from 'node:fs/promises';
|
|
29
31
|
import { homedir } from 'node:os';
|
|
30
|
-
import
|
|
32
|
+
import _0x37700d from 'node:path';
|
|
31
33
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
32
|
-
'.csv':
|
|
33
|
-
'.gif':
|
|
34
|
-
'.jpeg':
|
|
35
|
-
'.jpg':
|
|
36
|
-
'.json':
|
|
37
|
-
'.md':
|
|
38
|
-
'.pdf':
|
|
39
|
-
'.png':
|
|
40
|
-
'.svg':
|
|
41
|
-
'.txt':
|
|
42
|
-
'.webp':
|
|
34
|
+
'.csv': 'text/csv',
|
|
35
|
+
'.gif': _0x5e2837(0x2d1),
|
|
36
|
+
'.jpeg': _0x5e2837(0x214),
|
|
37
|
+
'.jpg': _0x5e2837(0x214),
|
|
38
|
+
'.json': 'application/json',
|
|
39
|
+
'.md': _0x5e2837(0x1f7),
|
|
40
|
+
'.pdf': _0x5e2837(0x24b),
|
|
41
|
+
'.png': _0x5e2837(0x1b3),
|
|
42
|
+
'.svg': _0x5e2837(0x26d),
|
|
43
|
+
'.txt': _0x5e2837(0x26b),
|
|
44
|
+
'.webp': 'image/webp',
|
|
43
45
|
'.xml': 'application/xml',
|
|
44
46
|
'.zip': 'application/zip'
|
|
45
47
|
};
|
|
46
|
-
function guessContentType(
|
|
47
|
-
const
|
|
48
|
-
return MIME_BY_EXTENSION[
|
|
48
|
+
function guessContentType(_0x5d19fb) {
|
|
49
|
+
const _0x485e03 = { _0x13b2b9: 0x30e }, _0x1733ab = _0x5e2837;
|
|
50
|
+
return MIME_BY_EXTENSION[_0x37700d[_0x1733ab(_0x485e03._0x13b2b9)](_0x5d19fb)[_0x1733ab(0x323)]()] ?? _0x1733ab(0x2a2);
|
|
49
51
|
}
|
|
50
|
-
function safeFilename(
|
|
51
|
-
const
|
|
52
|
-
return
|
|
52
|
+
function safeFilename(_0x9be506) {
|
|
53
|
+
const _0x883d1e = _0x5e2837;
|
|
54
|
+
return _0x9be506[_0x883d1e(0x1d9)](/[\\/]/g, '-');
|
|
53
55
|
}
|
|
54
|
-
function extensionFor(
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
_0x41c7f4: 0x160
|
|
58
|
-
}, _0x1c4845 = _0x15d6d8, _0x2743f4 = Object[_0x1c4845(_0x2443e2._0x59fa23)](MIME_BY_EXTENSION)[_0x1c4845(0x21e)](([, _0x50482c]) => _0x50482c === _0x5123a9);
|
|
59
|
-
return _0x2743f4?.[0x0] ?? _0x1c4845(_0x2443e2._0x41c7f4);
|
|
56
|
+
function extensionFor(_0x317bd8) {
|
|
57
|
+
const _0x206855 = _0x5e2837, _0x2dbe8a = Object[_0x206855(0x1af)](MIME_BY_EXTENSION)['find'](([, _0x424f64]) => _0x424f64 === _0x317bd8);
|
|
58
|
+
return _0x2dbe8a?.[0x0] ?? _0x206855(0x2d5);
|
|
60
59
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
function _0x34a4(_0x394083, _0x5894fa) {
|
|
61
|
+
_0x394083 = _0x394083 - 0x1a1;
|
|
62
|
+
const _0x1f7c4e = _0x1f7c();
|
|
63
|
+
let _0x34a453 = _0x1f7c4e[_0x394083];
|
|
64
|
+
if (_0x34a4['CvtoeN'] === undefined) {
|
|
65
|
+
var _0x156a59 = function (_0x4a3cb8) {
|
|
66
|
+
const _0x494206 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
67
|
+
let _0x37700d = '', _0x5d19fb = '';
|
|
68
|
+
for (let _0x9be506 = 0x0, _0x317bd8, _0x2dbe8a, _0x424f64 = 0x0; _0x2dbe8a = _0x4a3cb8['charAt'](_0x424f64++); ~_0x2dbe8a && (_0x317bd8 = _0x9be506 % 0x4 ? _0x317bd8 * 0x40 + _0x2dbe8a : _0x2dbe8a, _0x9be506++ % 0x4) ? _0x37700d += String['fromCharCode'](0xff & _0x317bd8 >> (-0x2 * _0x9be506 & 0x6)) : 0x0) {
|
|
69
|
+
_0x2dbe8a = _0x494206['indexOf'](_0x2dbe8a);
|
|
70
|
+
}
|
|
71
|
+
for (let _0x9c0bf8 = 0x0, _0x5d4898 = _0x37700d['length']; _0x9c0bf8 < _0x5d4898; _0x9c0bf8++) {
|
|
72
|
+
_0x5d19fb += '%' + ('00' + _0x37700d['charCodeAt'](_0x9c0bf8)['toString'](0x10))['slice'](-0x2);
|
|
73
|
+
}
|
|
74
|
+
return decodeURIComponent(_0x5d19fb);
|
|
75
|
+
};
|
|
76
|
+
_0x34a4['MQzTsK'] = _0x156a59, _0x34a4['kJSYMP'] = {}, _0x34a4['CvtoeN'] = !![];
|
|
77
|
+
}
|
|
78
|
+
const _0x569aa1 = _0x1f7c4e[0x0], _0x110aa6 = _0x394083 + _0x569aa1, _0x13da48 = _0x34a4['kJSYMP'][_0x110aa6];
|
|
79
|
+
return !_0x13da48 ? (_0x34a453 = _0x34a4['MQzTsK'](_0x34a453), _0x34a4['kJSYMP'][_0x110aa6] = _0x34a453) : _0x34a453 = _0x13da48, _0x34a453;
|
|
80
|
+
}
|
|
81
|
+
async function prepareUploadFile(_0x9c0bf8, _0x5d4898 = {}) {
|
|
82
|
+
const _0x552e0c = {
|
|
83
|
+
_0x385b36: 0x243,
|
|
84
|
+
_0x324b4b: 0x1ab,
|
|
85
|
+
_0x57b376: 0x284,
|
|
86
|
+
_0x14c6b5: 0x20d
|
|
87
|
+
}, _0x4ef9c4 = _0x5e2837;
|
|
88
|
+
if (!_0x37700d[_0x4ef9c4(0x31c)](_0x9c0bf8))
|
|
68
89
|
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
69
|
-
const
|
|
70
|
-
if (!
|
|
71
|
-
throw new Error(
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
74
|
-
throw new Error(
|
|
75
|
-
const
|
|
90
|
+
const _0x5395c = await stat(_0x9c0bf8)[_0x4ef9c4(_0x552e0c._0x385b36)](() => null);
|
|
91
|
+
if (!_0x5395c || !_0x5395c[_0x4ef9c4(0x280)]())
|
|
92
|
+
throw new Error(_0x4ef9c4(0x29f) + _0x9c0bf8);
|
|
93
|
+
const _0x178dce = _0x5d4898[_0x4ef9c4(0x20f)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
94
|
+
if (_0x5395c['size'] > _0x178dce)
|
|
95
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x5395c[_0x4ef9c4(_0x552e0c._0x324b4b)]);
|
|
96
|
+
const _0x2beba7 = await readFile(_0x9c0bf8), _0xb1a6ca = _0x37700d[_0x4ef9c4(_0x552e0c._0x57b376)](_0x9c0bf8);
|
|
76
97
|
return {
|
|
77
|
-
'contentBase64':
|
|
78
|
-
'contentType': guessContentType(
|
|
79
|
-
'filename':
|
|
80
|
-
'sizeBytes':
|
|
98
|
+
'contentBase64': _0x2beba7[_0x4ef9c4(_0x552e0c._0x14c6b5)](_0x4ef9c4(0x291)),
|
|
99
|
+
'contentType': guessContentType(_0xb1a6ca),
|
|
100
|
+
'filename': _0xb1a6ca,
|
|
101
|
+
'sizeBytes': _0x5395c['size']
|
|
81
102
|
};
|
|
82
103
|
}
|
|
83
|
-
function createAttachmentCache(
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
},
|
|
104
|
+
function createAttachmentCache(_0x4f3617 = {}) {
|
|
105
|
+
const _0x18f127 = {
|
|
106
|
+
_0x3cc02: 0x2c0,
|
|
107
|
+
_0x43bba8: 0x314
|
|
108
|
+
}, _0x591159 = {
|
|
109
|
+
_0x549010: 0x228,
|
|
110
|
+
_0xfe77ee: 0x228,
|
|
111
|
+
_0x2057f6: 0x212,
|
|
112
|
+
_0x3593c4: 0x32e
|
|
113
|
+
}, _0x122898 = { _0x19f065: 0x32f }, _0x192329 = _0x5e2837, _0x1838f0 = _0x4f3617[_0x192329(0x28d)] ?? _0x37700d[_0x192329(0x32f)](homedir(), _0x192329(_0x18f127._0x3cc02), _0x192329(_0x18f127._0x43bba8));
|
|
93
114
|
return {
|
|
94
|
-
'cacheDir':
|
|
95
|
-
async 'findCachedPath'(
|
|
96
|
-
const
|
|
97
|
-
await mkdir(
|
|
98
|
-
const
|
|
99
|
-
return
|
|
115
|
+
'cacheDir': _0x1838f0,
|
|
116
|
+
async 'findCachedPath'(_0x35a041) {
|
|
117
|
+
const _0x2b097b = _0x192329;
|
|
118
|
+
await mkdir(_0x1838f0, { 'recursive': !![] });
|
|
119
|
+
const _0x4f0796 = await readdir(_0x1838f0), _0x1dbca4 = _0x4f0796['find'](_0x142b80 => _0x142b80[_0x2b097b(0x2b5)](_0x35a041 + '-') || _0x142b80['startsWith'](_0x35a041));
|
|
120
|
+
return _0x1dbca4 ? _0x37700d[_0x2b097b(_0x122898._0x19f065)](_0x1838f0, _0x1dbca4) : null;
|
|
100
121
|
},
|
|
101
|
-
async 'save'(
|
|
102
|
-
const
|
|
103
|
-
await mkdir(
|
|
104
|
-
const
|
|
105
|
-
return await writeFile(
|
|
122
|
+
async 'save'(_0x10077d) {
|
|
123
|
+
const _0x5e01bb = _0x192329;
|
|
124
|
+
await mkdir(_0x1838f0, { 'recursive': !![] });
|
|
125
|
+
const _0x5da8ba = _0x10077d[_0x5e01bb(_0x591159._0x549010)]?.[_0x5e01bb(0x292)]() ? safeFilename(_0x10077d[_0x5e01bb(_0x591159._0xfe77ee)]) : '' + _0x10077d['attachmentId'] + extensionFor(_0x10077d[_0x5e01bb(_0x591159._0x2057f6)]), _0xaa9085 = _0x37700d[_0x5e01bb(0x32f)](_0x1838f0, _0x10077d[_0x5e01bb(_0x591159._0x3593c4)] + '-' + _0x5da8ba);
|
|
126
|
+
return await writeFile(_0xaa9085, _0x10077d[_0x5e01bb(0x24c)]), _0xaa9085;
|
|
106
127
|
}
|
|
107
128
|
};
|
|
108
129
|
}
|
|
@@ -110,2198 +131,2175 @@ import {
|
|
|
110
131
|
createHash,
|
|
111
132
|
randomUUID
|
|
112
133
|
} from 'node:crypto';
|
|
113
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
114
|
-
function ensureSegment(
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
_0x33e1e8: 0x135
|
|
118
|
-
}, _0x4a6222 = _0x15d6d8, _0x35f431 = _0x46d629[_0x4a6222(_0x49a5f2._0x319679)]();
|
|
119
|
-
if (!_0x35f431 || _0x35f431[_0x4a6222(_0x49a5f2._0x33e1e8)](':'))
|
|
134
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x5e2837(0x2bc);
|
|
135
|
+
function ensureSegment(_0x1be192) {
|
|
136
|
+
const _0x58af62 = { _0x2ac7e5: 0x2ec }, _0x99792c = _0x5e2837, _0x516cbe = _0x1be192['trim']();
|
|
137
|
+
if (!_0x516cbe || _0x516cbe[_0x99792c(_0x58af62._0x2ac7e5)](':'))
|
|
120
138
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
121
|
-
return
|
|
139
|
+
return _0x516cbe;
|
|
122
140
|
}
|
|
123
|
-
function parseThreadParts(
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
},
|
|
128
|
-
if (
|
|
141
|
+
function parseThreadParts(_0x4a5888) {
|
|
142
|
+
const _0x837fc = {
|
|
143
|
+
_0x412013: 0x1d5,
|
|
144
|
+
_0x444c2b: 0x1d5
|
|
145
|
+
}, _0x52ae59 = _0x5e2837, _0x317409 = _0x4a5888[_0x52ae59(0x1e8)](':');
|
|
146
|
+
if (_0x317409[_0x52ae59(_0x837fc._0x412013)] < 0x1 || _0x317409[_0x52ae59(_0x837fc._0x444c2b)] > 0x2)
|
|
129
147
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
130
148
|
return {
|
|
131
|
-
'channelName': ensureSegment(
|
|
132
|
-
'threadShortId':
|
|
149
|
+
'channelName': ensureSegment(_0x317409[0x0] ?? ''),
|
|
150
|
+
'threadShortId': _0x317409[0x1] ? ensureSegment(_0x317409[0x1]) : null
|
|
133
151
|
};
|
|
134
152
|
}
|
|
135
|
-
function parseTarget(
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
if (!_0x48cebd)
|
|
153
|
+
function parseTarget(_0x32d516) {
|
|
154
|
+
const _0x296616 = {
|
|
155
|
+
_0x488e5e: 0x292,
|
|
156
|
+
_0x1e1c1d: 0x31b,
|
|
157
|
+
_0x18fc1e: 0x23c,
|
|
158
|
+
_0x2dc3ee: 0x2b5,
|
|
159
|
+
_0xe156f5: 0x1fe,
|
|
160
|
+
_0x5987fa: 0x31b
|
|
161
|
+
}, _0x10857b = _0x5e2837, _0x4bfe94 = _0x32d516[_0x10857b(_0x296616._0x488e5e)]();
|
|
162
|
+
if (!_0x4bfe94)
|
|
146
163
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
147
|
-
if (
|
|
148
|
-
const
|
|
149
|
-
if (!
|
|
164
|
+
if (_0x4bfe94['startsWith']('#')) {
|
|
165
|
+
const _0x4d6ad4 = parseThreadParts(_0x4bfe94[_0x10857b(0x24a)](0x1)), _0x2064dd = '#' + _0x4d6ad4['channelName'];
|
|
166
|
+
if (!_0x4d6ad4[_0x10857b(_0x296616._0x1e1c1d)])
|
|
150
167
|
return {
|
|
151
|
-
'channelName':
|
|
152
|
-
'channelTarget':
|
|
153
|
-
'kind':
|
|
154
|
-
'target':
|
|
168
|
+
'channelName': _0x4d6ad4[_0x10857b(0x1fe)],
|
|
169
|
+
'channelTarget': _0x2064dd,
|
|
170
|
+
'kind': _0x10857b(0x22b),
|
|
171
|
+
'target': _0x2064dd
|
|
155
172
|
};
|
|
156
173
|
return {
|
|
157
|
-
'channelName':
|
|
158
|
-
'channelTarget':
|
|
159
|
-
'kind':
|
|
160
|
-
'target':
|
|
161
|
-
'threadShortId':
|
|
174
|
+
'channelName': _0x4d6ad4[_0x10857b(0x1fe)],
|
|
175
|
+
'channelTarget': _0x2064dd,
|
|
176
|
+
'kind': _0x10857b(_0x296616._0x18fc1e),
|
|
177
|
+
'target': _0x2064dd + ':' + _0x4d6ad4['threadShortId'],
|
|
178
|
+
'threadShortId': _0x4d6ad4[_0x10857b(0x31b)]
|
|
162
179
|
};
|
|
163
180
|
}
|
|
164
|
-
if (
|
|
165
|
-
const
|
|
166
|
-
if (!
|
|
181
|
+
if (_0x4bfe94[_0x10857b(0x2b5)]('dm:')) {
|
|
182
|
+
const _0x3d6891 = parseThreadParts(_0x4bfe94['slice'](0x3));
|
|
183
|
+
if (!_0x3d6891[_0x10857b(0x1fe)][_0x10857b(_0x296616._0x2dc3ee)]('dm-'))
|
|
167
184
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
168
|
-
const
|
|
169
|
-
if (!
|
|
185
|
+
const _0x434aa7 = _0x10857b(0x30b) + _0x3d6891[_0x10857b(_0x296616._0xe156f5)];
|
|
186
|
+
if (!_0x3d6891[_0x10857b(0x31b)])
|
|
170
187
|
return {
|
|
171
|
-
'channelName':
|
|
172
|
-
'channelTarget':
|
|
173
|
-
'kind':
|
|
174
|
-
'target':
|
|
188
|
+
'channelName': _0x3d6891[_0x10857b(0x1fe)],
|
|
189
|
+
'channelTarget': _0x434aa7,
|
|
190
|
+
'kind': 'channel',
|
|
191
|
+
'target': _0x434aa7
|
|
175
192
|
};
|
|
176
193
|
return {
|
|
177
|
-
'channelName':
|
|
178
|
-
'channelTarget':
|
|
194
|
+
'channelName': _0x3d6891[_0x10857b(0x1fe)],
|
|
195
|
+
'channelTarget': _0x434aa7,
|
|
179
196
|
'kind': 'thread',
|
|
180
|
-
'target':
|
|
181
|
-
'threadShortId':
|
|
197
|
+
'target': _0x434aa7 + ':' + _0x3d6891[_0x10857b(0x31b)],
|
|
198
|
+
'threadShortId': _0x3d6891[_0x10857b(_0x296616._0x5987fa)]
|
|
182
199
|
};
|
|
183
200
|
}
|
|
184
201
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
185
202
|
}
|
|
186
|
-
function
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
var _0x161da8 = function (_0x2d0bc1) {
|
|
192
|
-
const _0x3923fe = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
193
|
-
let _0x5e67bd = '', _0xfe6095 = '';
|
|
194
|
-
for (let _0x429db5 = 0x0, _0x5123a9, _0x2743f4, _0x50482c = 0x0; _0x2743f4 = _0x2d0bc1['charAt'](_0x50482c++); ~_0x2743f4 && (_0x5123a9 = _0x429db5 % 0x4 ? _0x5123a9 * 0x40 + _0x2743f4 : _0x2743f4, _0x429db5++ % 0x4) ? _0x5e67bd += String['fromCharCode'](0xff & _0x5123a9 >> (-0x2 * _0x429db5 & 0x6)) : 0x0) {
|
|
195
|
-
_0x2743f4 = _0x3923fe['indexOf'](_0x2743f4);
|
|
196
|
-
}
|
|
197
|
-
for (let _0x2d4983 = 0x0, _0x3223aa = _0x5e67bd['length']; _0x2d4983 < _0x3223aa; _0x2d4983++) {
|
|
198
|
-
_0xfe6095 += '%' + ('00' + _0x5e67bd['charCodeAt'](_0x2d4983)['toString'](0x10))['slice'](-0x2);
|
|
199
|
-
}
|
|
200
|
-
return decodeURIComponent(_0xfe6095);
|
|
201
|
-
};
|
|
202
|
-
_0x3844['ZTsBkI'] = _0x161da8, _0x3844['SmQLjy'] = {}, _0x3844['HFsmfV'] = !![];
|
|
203
|
-
}
|
|
204
|
-
const _0x2144f6 = _0x419973[0x0], _0x22ad2b = _0x383972 + _0x2144f6, _0xf5275c = _0x3844['SmQLjy'][_0x22ad2b];
|
|
205
|
-
return !_0xf5275c ? (_0x38441b = _0x3844['ZTsBkI'](_0x38441b), _0x3844['SmQLjy'][_0x22ad2b] = _0x38441b) : _0x38441b = _0xf5275c, _0x38441b;
|
|
206
|
-
}
|
|
207
|
-
function asErrorMessage(_0x1b3f64, _0x2c5414) {
|
|
208
|
-
const _0x3e879e = _0x15d6d8;
|
|
209
|
-
if (typeof _0x1b3f64 === _0x3e879e(0x140) && _0x1b3f64[_0x3e879e(0x269)]())
|
|
210
|
-
return _0x1b3f64;
|
|
211
|
-
return _0x2c5414;
|
|
203
|
+
function asErrorMessage(_0x1ac47a, _0x58fb56) {
|
|
204
|
+
const _0x23d24a = _0x5e2837;
|
|
205
|
+
if (typeof _0x1ac47a === 'string' && _0x1ac47a[_0x23d24a(0x292)]())
|
|
206
|
+
return _0x1ac47a;
|
|
207
|
+
return _0x58fb56;
|
|
212
208
|
}
|
|
213
|
-
function asRecord(
|
|
214
|
-
const
|
|
215
|
-
return typeof
|
|
209
|
+
function asRecord(_0x1b0b62) {
|
|
210
|
+
const _0x612cda = { _0x2a1b0f: 0x1c9 }, _0x54079b = _0x5e2837;
|
|
211
|
+
return typeof _0x1b0b62 === _0x54079b(_0x612cda._0x2a1b0f) && _0x1b0b62 !== null ? _0x1b0b62 : {};
|
|
216
212
|
}
|
|
217
|
-
function stableStringify(
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
213
|
+
function stableStringify(_0x3825ec) {
|
|
214
|
+
const _0xa742af = {
|
|
215
|
+
_0x267e96: 0x320,
|
|
216
|
+
_0x1c0391: 0x32f,
|
|
217
|
+
_0x19b539: 0x2fc,
|
|
218
|
+
_0x2f1c91: 0x236,
|
|
219
|
+
_0x1966df: 0x2ed
|
|
220
|
+
}, _0x1d0251 = _0x5e2837;
|
|
221
|
+
if (_0x3825ec === null || typeof _0x3825ec !== _0x1d0251(0x1c9))
|
|
222
|
+
return JSON[_0x1d0251(0x245)](_0x3825ec);
|
|
223
|
+
if (Array[_0x1d0251(_0xa742af._0x267e96)](_0x3825ec))
|
|
224
|
+
return '[' + _0x3825ec[_0x1d0251(0x2ed)](_0x39bc67 => stableStringify(_0x39bc67))[_0x1d0251(_0xa742af._0x1c0391)](',') + ']';
|
|
225
|
+
const _0x4e2398 = Object[_0x1d0251(0x1af)](_0x3825ec)[_0x1d0251(_0xa742af._0x19b539)](([, _0x38e57c]) => _0x38e57c !== void 0x0)[_0x1d0251(_0xa742af._0x2f1c91)](([_0x27c033], [_0x6aa328]) => _0x27c033[_0x1d0251(0x2c7)](_0x6aa328))[_0x1d0251(_0xa742af._0x1966df)](([_0x42f881, _0x454f88]) => JSON[_0x1d0251(0x245)](_0x42f881) + ':' + stableStringify(_0x454f88));
|
|
226
|
+
return '{' + _0x4e2398[_0x1d0251(_0xa742af._0x1c0391)](',') + '}';
|
|
230
227
|
}
|
|
231
|
-
function createHeaders(
|
|
232
|
-
const
|
|
228
|
+
function createHeaders(_0x509fb8) {
|
|
229
|
+
const _0x4fb299 = _0x5e2837;
|
|
233
230
|
return {
|
|
234
|
-
'Content-Type':
|
|
235
|
-
'x-daemon-api-key':
|
|
231
|
+
'Content-Type': _0x4fb299(0x253),
|
|
232
|
+
'x-daemon-api-key': _0x509fb8
|
|
236
233
|
};
|
|
237
234
|
}
|
|
238
|
-
function toHttpBaseUrl(
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
235
|
+
function toHttpBaseUrl(_0x2055b9) {
|
|
236
|
+
const _0x52be46 = {
|
|
237
|
+
_0x302b85: 0x1b0,
|
|
238
|
+
_0x4fcb62: 0x2cf,
|
|
239
|
+
_0xbce713: 0x1f4,
|
|
240
|
+
_0x3e1bdf: 0x29e,
|
|
241
|
+
_0xedca94: 0x1d9
|
|
242
|
+
}, _0x36e3b3 = _0x5e2837, _0x5144dd = new URL(_0x2055b9);
|
|
243
|
+
if (_0x5144dd[_0x36e3b3(0x220)] === _0x36e3b3(_0x52be46._0x302b85))
|
|
244
|
+
_0x5144dd['protocol'] = _0x36e3b3(_0x52be46._0x4fcb62);
|
|
246
245
|
else
|
|
247
|
-
|
|
248
|
-
return
|
|
246
|
+
_0x5144dd['protocol'] === _0x36e3b3(_0x52be46._0xbce713) && (_0x5144dd[_0x36e3b3(0x220)] = _0x36e3b3(_0x52be46._0x3e1bdf));
|
|
247
|
+
return _0x5144dd[_0x36e3b3(0x20d)]()[_0x36e3b3(_0x52be46._0xedca94)](/\/$/, '');
|
|
249
248
|
}
|
|
250
|
-
function isMentionBoundary(
|
|
251
|
-
const
|
|
252
|
-
return !
|
|
249
|
+
function isMentionBoundary(_0x4ead21) {
|
|
250
|
+
const _0x2dc69e = { _0xd17cef: 0x2d4 }, _0x35a31b = _0x5e2837;
|
|
251
|
+
return !_0x4ead21 || /\s|[([{'",。!?、:;]/[_0x35a31b(_0x2dc69e._0xd17cef)](_0x4ead21);
|
|
253
252
|
}
|
|
254
|
-
function isMentionTerminal(
|
|
255
|
-
|
|
253
|
+
function isMentionTerminal(_0x3b12a8) {
|
|
254
|
+
const _0x3f7d54 = _0x5e2837;
|
|
255
|
+
return !_0x3b12a8 || /\s|[)\]}'",。!?、:;,.!?]/[_0x3f7d54(0x2d4)](_0x3b12a8);
|
|
256
256
|
}
|
|
257
|
-
function buildMatchableEntries(
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}, _0x38dcd9 = _0x15d6d8, _0x2290ac = [];
|
|
263
|
-
for (const _0x2601d7 of [
|
|
264
|
-
..._0x1dcec4[_0x38dcd9(_0x5af7f6._0x44bb5b)],
|
|
265
|
-
..._0x1dcec4['humans']
|
|
257
|
+
function buildMatchableEntries(_0x26ce55) {
|
|
258
|
+
const _0x4fbab4 = _0x5e2837, _0x3d3674 = [];
|
|
259
|
+
for (const _0x277c8c of [
|
|
260
|
+
..._0x26ce55[_0x4fbab4(0x2ad)],
|
|
261
|
+
..._0x26ce55[_0x4fbab4(0x21a)]
|
|
266
262
|
]) {
|
|
267
|
-
|
|
268
|
-
'matchName':
|
|
269
|
-
'matchNameLower':
|
|
270
|
-
'participantId':
|
|
271
|
-
}),
|
|
272
|
-
'matchName':
|
|
273
|
-
'matchNameLower':
|
|
274
|
-
'participantId':
|
|
263
|
+
_0x3d3674[_0x4fbab4(0x27e)]({
|
|
264
|
+
'matchName': _0x277c8c['name'],
|
|
265
|
+
'matchNameLower': _0x277c8c['name'][_0x4fbab4(0x2b6)](),
|
|
266
|
+
'participantId': _0x277c8c['id']
|
|
267
|
+
}), _0x277c8c['id'] !== _0x277c8c[_0x4fbab4(0x1a9)] && _0x3d3674[_0x4fbab4(0x27e)]({
|
|
268
|
+
'matchName': _0x277c8c['id'],
|
|
269
|
+
'matchNameLower': _0x277c8c['id'][_0x4fbab4(0x2b6)](),
|
|
270
|
+
'participantId': _0x277c8c['id']
|
|
275
271
|
});
|
|
276
272
|
}
|
|
277
|
-
return
|
|
273
|
+
return _0x3d3674;
|
|
278
274
|
}
|
|
279
|
-
function extractMentionedParticipantIds(
|
|
280
|
-
const
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
for (let _0x4f4e56 = 0x0; _0x4f4e56 < _0x158b70['length']; _0x4f4e56 += 0x1) {
|
|
290
|
-
if (_0x158b70[_0x4f4e56] !== '@' || !isMentionBoundary(_0x158b70[_0x4f4e56 - 0x1]))
|
|
275
|
+
function extractMentionedParticipantIds(_0xe66ccb, _0x529a91) {
|
|
276
|
+
const _0x146878 = {
|
|
277
|
+
_0x4b0fa8: 0x24a,
|
|
278
|
+
_0x40c168: 0x2b6,
|
|
279
|
+
_0x4c53f2: 0x208,
|
|
280
|
+
_0x4a53e8: 0x27e,
|
|
281
|
+
_0x23a975: 0x1d5
|
|
282
|
+
}, _0x1e6dc4 = { _0x377abb: 0x1d5 }, _0x1c8cfa = _0x5e2837, _0x5c42f9 = buildMatchableEntries(_0x529a91)[_0x1c8cfa(0x236)]((_0x46bb2d, _0x2a46eb) => _0x2a46eb['matchName'][_0x1c8cfa(0x1d5)] - _0x46bb2d[_0x1c8cfa(0x2de)][_0x1c8cfa(0x1d5)]), _0x1347d2 = [], _0x12d494 = new Set();
|
|
283
|
+
for (let _0x3741f9 = 0x0; _0x3741f9 < _0xe66ccb[_0x1c8cfa(0x1d5)]; _0x3741f9 += 0x1) {
|
|
284
|
+
if (_0xe66ccb[_0x3741f9] !== '@' || !isMentionBoundary(_0xe66ccb[_0x3741f9 - 0x1]))
|
|
291
285
|
continue;
|
|
292
|
-
const
|
|
293
|
-
const
|
|
294
|
-
if (!
|
|
286
|
+
const _0x2c089e = _0xe66ccb[_0x1c8cfa(_0x146878._0x4b0fa8)](_0x3741f9 + 0x1), _0x3db7b2 = _0x2c089e[_0x1c8cfa(_0x146878._0x40c168)](), _0x3a82a7 = _0x5c42f9[_0x1c8cfa(_0x146878._0x4c53f2)](_0x4e338f => {
|
|
287
|
+
const _0x5030e4 = _0x1c8cfa;
|
|
288
|
+
if (!_0x3db7b2[_0x5030e4(0x2b5)](_0x4e338f[_0x5030e4(0x283)]))
|
|
295
289
|
return ![];
|
|
296
|
-
return isMentionTerminal(
|
|
290
|
+
return isMentionTerminal(_0x2c089e[_0x4e338f[_0x5030e4(0x2de)][_0x5030e4(_0x1e6dc4._0x377abb)]]);
|
|
297
291
|
});
|
|
298
|
-
if (!
|
|
292
|
+
if (!_0x3a82a7 || _0x12d494[_0x1c8cfa(0x2c8)](_0x3a82a7['participantId']))
|
|
299
293
|
continue;
|
|
300
|
-
|
|
294
|
+
_0x12d494[_0x1c8cfa(0x2bf)](_0x3a82a7['participantId']), _0x1347d2[_0x1c8cfa(_0x146878._0x4a53e8)](_0x3a82a7[_0x1c8cfa(0x2d3)]), _0x3741f9 += _0x3a82a7[_0x1c8cfa(0x2de)][_0x1c8cfa(_0x146878._0x23a975)];
|
|
301
295
|
}
|
|
302
|
-
return
|
|
296
|
+
return _0x1347d2;
|
|
303
297
|
}
|
|
304
298
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
305
|
-
function anySignal(...
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
299
|
+
function anySignal(..._0x1dc38b) {
|
|
300
|
+
const _0x1dc666 = {
|
|
301
|
+
_0x5df983: 0x300,
|
|
302
|
+
_0x6fc7d2: 0x2bd,
|
|
303
|
+
_0x3e2235: 0x2bd
|
|
304
|
+
}, _0x50c707 = _0x5e2837, _0x9471c9 = new AbortController();
|
|
305
|
+
for (const _0x1573af of _0x1dc38b) {
|
|
306
|
+
if (_0x1573af[_0x50c707(0x2dd)])
|
|
307
|
+
return _0x9471c9[_0x50c707(_0x1dc666._0x5df983)](_0x1573af[_0x50c707(0x28e)]), _0x9471c9[_0x50c707(_0x1dc666._0x6fc7d2)];
|
|
308
|
+
_0x1573af['addEventListener'](_0x50c707(0x300), () => _0x9471c9[_0x50c707(0x300)](_0x1573af[_0x50c707(0x28e)]), {
|
|
311
309
|
'once': !![],
|
|
312
|
-
'signal':
|
|
310
|
+
'signal': _0x9471c9[_0x50c707(0x2bd)]
|
|
313
311
|
});
|
|
314
312
|
}
|
|
315
|
-
return
|
|
313
|
+
return _0x9471c9[_0x50c707(_0x1dc666._0x3e2235)];
|
|
316
314
|
}
|
|
317
|
-
function createInternalAgentClient(
|
|
318
|
-
const
|
|
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
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
_0x419384: 0x1e7,
|
|
472
|
-
_0x4a2051: 0x269
|
|
473
|
-
}, _0x5a799b = {
|
|
474
|
-
_0x5c2a27: 0x1af,
|
|
475
|
-
_0x566c30: 0x23b,
|
|
476
|
-
_0x4949e9: 0x22b,
|
|
477
|
-
_0x3a897e: 0x22a
|
|
478
|
-
}, _0x48cdc4 = _0x15d6d8, _0x489cf6 = _0x13d36f['fetchImpl'] ?? fetch, _0x5dad0a = _0x13d36f[_0x48cdc4(_0x43e8f8._0x139ca8)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x1caab5 = typeof _0x13d36f['initialLastSeenSeq'] === _0x48cdc4(0x2a4) && _0x13d36f[_0x48cdc4(0x262)] > 0x0 ? _0x13d36f['initialLastSeenSeq'] : 0x0, _0x5979b7 = _0x13d36f['daemonLocalUrl']?.['trim']() || void 0x0, _0x299cbf = _0x13d36f['sessionId']?.[_0x48cdc4(_0x43e8f8._0x537ee3)]() || void 0x0, _0x31c393 = _0x13d36f[_0x48cdc4(_0x43e8f8._0x118f56)] === !![], _0x50f71f = _0x13d36f[_0x48cdc4(_0x43e8f8._0x3eb146)]?.[_0x48cdc4(_0x43e8f8._0x537ee3)]() || void 0x0, _0x2255dd = _0x13d36f[_0x48cdc4(_0x43e8f8._0x532984)]?.[_0x48cdc4(0x269)]() || void 0x0, _0x260a25 = createHeaders(_0x13d36f[_0x48cdc4(_0x43e8f8._0x29017e)]), _0x558658 = toHttpBaseUrl(_0x13d36f['serverUrl']);
|
|
479
|
-
let _0x4627c1 = null;
|
|
480
|
-
const _0x4d25d3 = new Map();
|
|
481
|
-
let _0x16e3b1 = _0x1caab5, _0x27a6f4 = _0x1caab5;
|
|
482
|
-
function _0x3d2826(_0x211204) {
|
|
483
|
-
const _0x5bae67 = _0x48cdc4, _0x4edfae = _0x211204[_0x5bae67(0x152)][_0x5bae67(_0x5a799b._0x5c2a27)][_0x5bae67(0x218)](_0x5bae67(0x19b)) ?? _0x5bae67(0x16c), _0x4016af = _0x211204[_0x5bae67(_0x5a799b._0x566c30)][_0x5bae67(0x269)]()[_0x5bae67(0x27a)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x5bae67(0x1f4);
|
|
484
|
-
return _0x5bae67(_0x5a799b._0x4949e9) + _0x211204[_0x5bae67(0x169)] + '\x20返回了非\x20JSON\x20响应(status=' + _0x211204[_0x5bae67(0x152)][_0x5bae67(0x27f)] + _0x5bae67(0x204) + _0x4edfae + ',\x20preview=' + _0x4016af + _0x5bae67(_0x5a799b._0x3a897e);
|
|
315
|
+
function createInternalAgentClient(_0x29ed46) {
|
|
316
|
+
const _0x1f4237 = {
|
|
317
|
+
_0x55dfc4: 0x25f,
|
|
318
|
+
_0x4d59b3: 0x1ba,
|
|
319
|
+
_0x5e4f6d: 0x2ff,
|
|
320
|
+
_0xcdb304: 0x292
|
|
321
|
+
}, _0x1aa4a7 = {
|
|
322
|
+
_0x19ba2f: 0x1dc,
|
|
323
|
+
_0x303401: 0x1f8,
|
|
324
|
+
_0x5efd5f: 0x321,
|
|
325
|
+
_0x5ba1f5: 0x222,
|
|
326
|
+
_0x548130: 0x2fc,
|
|
327
|
+
_0x224346: 0x1e4,
|
|
328
|
+
_0x3c91e5: 0x2ed,
|
|
329
|
+
_0x131559: 0x1ec,
|
|
330
|
+
_0x21fcf6: 0x20b,
|
|
331
|
+
_0x1254ff: 0x305,
|
|
332
|
+
_0x573e69: 0x2f2,
|
|
333
|
+
_0x3a4393: 0x310,
|
|
334
|
+
_0x5a2614: 0x2c3,
|
|
335
|
+
_0x11aaaa: 0x1d2,
|
|
336
|
+
_0x101448: 0x223,
|
|
337
|
+
_0x4b3154: 0x302,
|
|
338
|
+
_0x1b2b05: 0x1a9,
|
|
339
|
+
_0x3c6b29: 0x1dd,
|
|
340
|
+
_0x3e26bd: 0x1d5,
|
|
341
|
+
_0x455f55: 0x2ed,
|
|
342
|
+
_0x19bba9: 0x27e,
|
|
343
|
+
_0x1405e5: 0x2ef,
|
|
344
|
+
_0x1bd385: 0x26c,
|
|
345
|
+
_0x247cd4: 0x319,
|
|
346
|
+
_0x444608: 0x241,
|
|
347
|
+
_0x1a29e8: 0x1be,
|
|
348
|
+
_0x3c5931: 0x1ec,
|
|
349
|
+
_0x41a25f: 0x2fc
|
|
350
|
+
}, _0x1290c9 = {
|
|
351
|
+
_0x43b932: 0x2a5,
|
|
352
|
+
_0x2b8178: 0x22c
|
|
353
|
+
}, _0x3d72c0 = {
|
|
354
|
+
_0x12740: 0x32b,
|
|
355
|
+
_0xf0c40a: 0x2b9,
|
|
356
|
+
_0x55fd35: 0x24c,
|
|
357
|
+
_0x16275e: 0x298,
|
|
358
|
+
_0x14c511: 0x302,
|
|
359
|
+
_0x55c88f: 0x30d,
|
|
360
|
+
_0x251cc0: 0x1a1,
|
|
361
|
+
_0x3e8351: 0x255,
|
|
362
|
+
_0x3a0d06: 0x24c
|
|
363
|
+
}, _0x7ddc8b = {
|
|
364
|
+
_0x45aa84: 0x22b,
|
|
365
|
+
_0x417469: 0x245,
|
|
366
|
+
_0x2222d5: 0x22c,
|
|
367
|
+
_0x411cfa: 0x275,
|
|
368
|
+
_0x581aa1: 0x212,
|
|
369
|
+
_0x181f3b: 0x24c,
|
|
370
|
+
_0x33d2b9: 0x228,
|
|
371
|
+
_0x37a8b9: 0x25a
|
|
372
|
+
}, _0x2a1280 = {
|
|
373
|
+
_0x19ec3d: 0x245,
|
|
374
|
+
_0x3894a1: 0x22e
|
|
375
|
+
}, _0x336daf = { _0x3b81a1: 0x249 }, _0x18c4a4 = {
|
|
376
|
+
_0x39f1ee: 0x303,
|
|
377
|
+
_0x53c6f1: 0x245
|
|
378
|
+
}, _0x3790f9 = {
|
|
379
|
+
_0x55f684: 0x25b,
|
|
380
|
+
_0x1018d7: 0x245,
|
|
381
|
+
_0x3f75f8: 0x22e
|
|
382
|
+
}, _0xb80567 = {
|
|
383
|
+
_0x5676d2: 0x1dc,
|
|
384
|
+
_0x4ec28f: 0x22b,
|
|
385
|
+
_0x4b82fa: 0x2b9,
|
|
386
|
+
_0x2d1a27: 0x2b9,
|
|
387
|
+
_0x22f462: 0x2cc,
|
|
388
|
+
_0x492bdb: 0x321
|
|
389
|
+
}, _0x415d82 = { _0x5aab89: 0x245 }, _0x16e063 = {
|
|
390
|
+
_0x7c5b05: 0x22e,
|
|
391
|
+
_0x27ff57: 0x24c
|
|
392
|
+
}, _0x370969 = { _0x5d0e5d: 0x245 }, _0x387488 = { _0x1d2777: 0x24c }, _0x5c6fc0 = {
|
|
393
|
+
_0x53fef0: 0x2cc,
|
|
394
|
+
_0x1ddc05: 0x20b,
|
|
395
|
+
_0x34515c: 0x1d5,
|
|
396
|
+
_0x3a0d85: 0x22e,
|
|
397
|
+
_0x5ce021: 0x24c
|
|
398
|
+
}, _0x4e9122 = {
|
|
399
|
+
_0x46cc4d: 0x305,
|
|
400
|
+
_0xf22d44: 0x1dc,
|
|
401
|
+
_0x50e334: 0x321,
|
|
402
|
+
_0x2388ac: 0x27a,
|
|
403
|
+
_0x41940b: 0x20d,
|
|
404
|
+
_0x31a9ce: 0x24c,
|
|
405
|
+
_0x365754: 0x222,
|
|
406
|
+
_0x523755: 0x222
|
|
407
|
+
}, _0x13d0bf = {
|
|
408
|
+
_0x12f37e: 0x23c,
|
|
409
|
+
_0x203e89: 0x2e8,
|
|
410
|
+
_0x3f8058: 0x310,
|
|
411
|
+
_0xe8e882: 0x2f2,
|
|
412
|
+
_0x415955: 0x2b5,
|
|
413
|
+
_0x7ce4d1: 0x31b
|
|
414
|
+
}, _0x1f1fbc = {
|
|
415
|
+
_0x5f257e: 0x2e8,
|
|
416
|
+
_0x3ff865: 0x310,
|
|
417
|
+
_0x2ba339: 0x2f2,
|
|
418
|
+
_0x2da1ec: 0x2e8,
|
|
419
|
+
_0x3b1086: 0x24a
|
|
420
|
+
}, _0x12eb4b = { _0x1982ae: 0x23e }, _0x3be985 = {
|
|
421
|
+
_0x191636: 0x254,
|
|
422
|
+
_0x2397c2: 0x243
|
|
423
|
+
}, _0x5b862d = {
|
|
424
|
+
_0x5c59d2: 0x321,
|
|
425
|
+
_0x366977: 0x24c,
|
|
426
|
+
_0x4e871c: 0x264,
|
|
427
|
+
_0x408d92: 0x2fc,
|
|
428
|
+
_0x2c1448: 0x1e4,
|
|
429
|
+
_0x29b6a8: 0x1a9
|
|
430
|
+
}, _0x3446ad = {
|
|
431
|
+
_0x3afc74: 0x259,
|
|
432
|
+
_0x83cc32: 0x22e,
|
|
433
|
+
_0x3c897b: 0x24c,
|
|
434
|
+
_0x487ac5: 0x305,
|
|
435
|
+
_0x45351a: 0x24c
|
|
436
|
+
}, _0x692b12 = {
|
|
437
|
+
_0x583d53: 0x245,
|
|
438
|
+
_0x264d2a: 0x1e0
|
|
439
|
+
}, _0x57fa71 = {
|
|
440
|
+
_0xcc8da4: 0x2bd,
|
|
441
|
+
_0x175d62: 0x1c1,
|
|
442
|
+
_0x3f8bc9: 0x2b9
|
|
443
|
+
}, _0x5c72a1 = {
|
|
444
|
+
_0x32ff47: 0x2bd,
|
|
445
|
+
_0x23a871: 0x262,
|
|
446
|
+
_0x2b2920: 0x1c1
|
|
447
|
+
}, _0x923c86 = {
|
|
448
|
+
_0x11bd2b: 0x1ec,
|
|
449
|
+
_0x11c586: 0x1d1,
|
|
450
|
+
_0x4175be: 0x21c,
|
|
451
|
+
_0x1ba9aa: 0x2cb,
|
|
452
|
+
_0x340dfb: 0x2c2,
|
|
453
|
+
_0x5a4633: 0x244,
|
|
454
|
+
_0x51cee4: 0x1dc
|
|
455
|
+
}, _0xae8e80 = { _0x18f94d: 0x255 }, _0x36f0da = {
|
|
456
|
+
_0x269768: 0x2dc,
|
|
457
|
+
_0x2d1628: 0x298,
|
|
458
|
+
_0xacc0ae: 0x1d9,
|
|
459
|
+
_0x37eec5: 0x28a,
|
|
460
|
+
_0xd7d911: 0x2af,
|
|
461
|
+
_0x496540: 0x296
|
|
462
|
+
}, _0x5119b5 = _0x5e2837, _0x2cccb9 = _0x29ed46[_0x5119b5(0x246)] ?? fetch, _0x13ce15 = _0x29ed46['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3646a1 = typeof _0x29ed46['initialLastSeenSeq'] === _0x5119b5(0x28b) && _0x29ed46[_0x5119b5(_0x1f4237._0x55dfc4)] > 0x0 ? _0x29ed46[_0x5119b5(0x25f)] : 0x0, _0xdc6c6d = _0x29ed46[_0x5119b5(_0x1f4237._0x4d59b3)]?.['trim']() || void 0x0, _0x57fc1f = _0x29ed46[_0x5119b5(_0x1f4237._0x5e4f6d)]?.['trim']() || void 0x0, _0x395046 = _0x29ed46['workerModeEnabled'] === !![], _0xdf33c9 = _0x29ed46['workerSessionId']?.[_0x5119b5(_0x1f4237._0xcdb304)]() || void 0x0, _0x2bfab9 = _0x29ed46[_0x5119b5(0x1cc)]?.[_0x5119b5(0x292)]() || void 0x0, _0x54e203 = createHeaders(_0x29ed46['daemonApiKey']), _0x32e8c5 = toHttpBaseUrl(_0x29ed46[_0x5119b5(0x1cf)]);
|
|
463
|
+
let _0x3b38de = null;
|
|
464
|
+
const _0x1cfa2d = new Map();
|
|
465
|
+
let _0x18cc3e = _0x3646a1, _0x98f8f9 = _0x3646a1;
|
|
466
|
+
function _0x1d458e(_0x5c9a2b) {
|
|
467
|
+
const _0x239ec2 = _0x5119b5, _0x2d7d2d = _0x5c9a2b[_0x239ec2(_0x36f0da._0x269768)][_0x239ec2(_0x36f0da._0x2d1628)][_0x239ec2(0x302)](_0x239ec2(0x30d)) ?? _0x239ec2(0x1b9), _0x4ab95f = _0x5c9a2b['bodyText'][_0x239ec2(0x292)]()[_0x239ec2(_0x36f0da._0xacc0ae)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x239ec2(_0x36f0da._0x37eec5);
|
|
468
|
+
return '请求\x20' + _0x5c9a2b[_0x239ec2(_0x36f0da._0xd7d911)] + _0x239ec2(_0x36f0da._0x496540) + _0x5c9a2b[_0x239ec2(_0x36f0da._0x269768)]['status'] + _0x239ec2(0x256) + _0x2d7d2d + _0x239ec2(0x1c8) + _0x4ab95f + _0x239ec2(0x2e4);
|
|
485
469
|
}
|
|
486
|
-
async function
|
|
487
|
-
const
|
|
488
|
-
if (!
|
|
470
|
+
async function _0x31aec8(_0x2820ea, _0x31644a) {
|
|
471
|
+
const _0x4ecaa8 = _0x5119b5, _0x41f146 = Buffer['from'](await _0x31644a[_0x4ecaa8(_0xae8e80._0x18f94d)]())[_0x4ecaa8(0x20d)](_0x4ecaa8(0x27d));
|
|
472
|
+
if (!_0x41f146[_0x4ecaa8(0x292)]())
|
|
489
473
|
return {};
|
|
490
474
|
try {
|
|
491
|
-
return JSON[
|
|
475
|
+
return JSON[_0x4ecaa8(0x1ea)](_0x41f146);
|
|
492
476
|
} catch {
|
|
493
|
-
throw new Error(
|
|
494
|
-
'bodyText':
|
|
495
|
-
'requestUrl':
|
|
496
|
-
'response':
|
|
477
|
+
throw new Error(_0x1d458e({
|
|
478
|
+
'bodyText': _0x41f146,
|
|
479
|
+
'requestUrl': _0x2820ea,
|
|
480
|
+
'response': _0x31644a
|
|
497
481
|
}));
|
|
498
482
|
}
|
|
499
483
|
}
|
|
500
|
-
function
|
|
501
|
-
const
|
|
502
|
-
if (
|
|
503
|
-
return
|
|
504
|
-
const
|
|
505
|
-
for (const [
|
|
506
|
-
|
|
484
|
+
function _0x31bdd7(_0x25f04d, _0x42f541) {
|
|
485
|
+
const _0x1fe401 = _0x5119b5, _0x330d32 = typeof _0x42f541[_0x1fe401(0x1d1)] === _0x1fe401(_0x923c86._0x11bd2b) ? _0x42f541[_0x1fe401(_0x923c86._0x11c586)][_0x1fe401(0x292)]() : '';
|
|
486
|
+
if (_0x330d32)
|
|
487
|
+
return _0x330d32;
|
|
488
|
+
const _0x866a53 = Date[_0x1fe401(_0x923c86._0x4175be)]();
|
|
489
|
+
for (const [_0x5e4f2c, _0x37c0fb] of _0x1cfa2d) {
|
|
490
|
+
_0x37c0fb[_0x1fe401(0x289)] <= _0x866a53 && _0x1cfa2d[_0x1fe401(_0x923c86._0x1ba9aa)](_0x5e4f2c);
|
|
507
491
|
}
|
|
508
|
-
const
|
|
509
|
-
...
|
|
492
|
+
const _0x544a8e = {
|
|
493
|
+
..._0x42f541,
|
|
510
494
|
'idempotency_key': void 0x0
|
|
511
|
-
},
|
|
512
|
-
if (
|
|
513
|
-
return
|
|
514
|
-
const
|
|
515
|
-
return
|
|
516
|
-
'expiresAt':
|
|
517
|
-
'value':
|
|
518
|
-
}),
|
|
495
|
+
}, _0x353a99 = createHash(_0x1fe401(_0x923c86._0x340dfb))[_0x1fe401(_0x923c86._0x5a4633)](_0x25f04d + ':' + stableStringify(_0x544a8e))['digest'](_0x1fe401(0x248)), _0x5ed446 = _0x25f04d + ':' + _0x353a99, _0x5590ec = _0x1cfa2d['get'](_0x5ed446);
|
|
496
|
+
if (_0x5590ec)
|
|
497
|
+
return _0x5590ec[_0x1fe401(0x238)];
|
|
498
|
+
const _0x35a961 = _0x1fe401(0x267) + _0x25f04d + ':' + randomUUID();
|
|
499
|
+
return _0x1cfa2d[_0x1fe401(_0x923c86._0x51cee4)](_0x5ed446, {
|
|
500
|
+
'expiresAt': _0x866a53 + 0x5 * 0x3c * 0x3e8,
|
|
501
|
+
'value': _0x35a961
|
|
502
|
+
}), _0x35a961;
|
|
519
503
|
}
|
|
520
|
-
async function
|
|
521
|
-
const
|
|
504
|
+
async function _0x4501d3(_0x50d8a7, _0x2c991f) {
|
|
505
|
+
const _0x5dc89f = _0x5119b5, _0x3ec3be = new AbortController(), _0x273120 = setTimeout(() => _0x3ec3be['abort'](), _0x13ce15), _0x3df2d8 = _0x2c991f?.[_0x5dc89f(_0x5c72a1._0x32ff47)] ? anySignal(_0x2c991f[_0x5dc89f(0x2bd)], _0x3ec3be['signal']) : _0x3ec3be[_0x5dc89f(0x2bd)], _0xebc4ee = '' + _0x32e8c5 + _0x50d8a7;
|
|
522
506
|
try {
|
|
523
|
-
const
|
|
524
|
-
...
|
|
525
|
-
'signal':
|
|
526
|
-
}),
|
|
527
|
-
if (!
|
|
528
|
-
throw new Error(asErrorMessage(
|
|
529
|
-
return
|
|
507
|
+
const _0x4d8b27 = await _0x2cccb9(_0xebc4ee, {
|
|
508
|
+
..._0x2c991f,
|
|
509
|
+
'signal': _0x3df2d8
|
|
510
|
+
}), _0x14b701 = await _0x31aec8(_0xebc4ee, _0x4d8b27);
|
|
511
|
+
if (!_0x4d8b27['ok'] || _0x14b701[_0x5dc89f(_0x5c72a1._0x23a871)] === ![])
|
|
512
|
+
throw new Error(asErrorMessage(_0x14b701[_0x5dc89f(_0x5c72a1._0x2b2920)], 'HTTP\x20' + _0x4d8b27[_0x5dc89f(0x2b9)]));
|
|
513
|
+
return _0x14b701;
|
|
530
514
|
} finally {
|
|
531
|
-
clearTimeout(
|
|
515
|
+
clearTimeout(_0x273120);
|
|
532
516
|
}
|
|
533
517
|
}
|
|
534
|
-
async function
|
|
535
|
-
const
|
|
518
|
+
async function _0x12c9db(_0x493610, _0x2dfce3) {
|
|
519
|
+
const _0xef46b8 = _0x5119b5, _0x1d053a = new AbortController(), _0x26bb12 = setTimeout(() => _0x1d053a[_0xef46b8(0x300)](), _0x13ce15), _0x217106 = _0x2dfce3?.[_0xef46b8(_0x57fa71._0xcc8da4)] ? anySignal(_0x2dfce3['signal'], _0x1d053a['signal']) : _0x1d053a[_0xef46b8(0x2bd)], _0x1f3d4d = '' + _0x32e8c5 + _0x493610;
|
|
536
520
|
try {
|
|
537
|
-
const
|
|
538
|
-
...
|
|
539
|
-
'signal':
|
|
540
|
-
}),
|
|
541
|
-
if (!
|
|
542
|
-
throw new Error(asErrorMessage(
|
|
543
|
-
return
|
|
521
|
+
const _0x4783f9 = await _0x2cccb9(_0x1f3d4d, {
|
|
522
|
+
..._0x2dfce3,
|
|
523
|
+
'signal': _0x217106
|
|
524
|
+
}), _0xea84b6 = await _0x31aec8(_0x1f3d4d, _0x4783f9);
|
|
525
|
+
if (!_0x4783f9['ok'])
|
|
526
|
+
throw new Error(asErrorMessage(_0xea84b6[_0xef46b8(_0x57fa71._0x175d62)], _0xef46b8(0x1e0) + _0x4783f9[_0xef46b8(_0x57fa71._0x3f8bc9)]));
|
|
527
|
+
return _0xea84b6;
|
|
544
528
|
} finally {
|
|
545
|
-
clearTimeout(
|
|
529
|
+
clearTimeout(_0x26bb12);
|
|
546
530
|
}
|
|
547
531
|
}
|
|
548
|
-
async function
|
|
549
|
-
const
|
|
550
|
-
if (!
|
|
532
|
+
async function _0x4d81ce(_0x1d240a) {
|
|
533
|
+
const _0x87079 = _0x5119b5;
|
|
534
|
+
if (!_0x57fc1f || _0x1d240a <= _0x98f8f9)
|
|
551
535
|
return;
|
|
552
|
-
await
|
|
553
|
-
'body': JSON[
|
|
554
|
-
'headers':
|
|
555
|
-
'method':
|
|
556
|
-
}),
|
|
536
|
+
await _0x4501d3('/api/agent-sessions/' + encodeURIComponent(_0x57fc1f) + _0x87079(0x32d), {
|
|
537
|
+
'body': JSON[_0x87079(0x245)]({ 'lastSeenSeq': _0x1d240a }),
|
|
538
|
+
'headers': _0x54e203,
|
|
539
|
+
'method': _0x87079(0x2c4)
|
|
540
|
+
}), _0x98f8f9 = _0x1d240a;
|
|
557
541
|
}
|
|
558
|
-
async function
|
|
559
|
-
const
|
|
560
|
-
if (!
|
|
542
|
+
async function _0x115b1d(_0x568699) {
|
|
543
|
+
const _0x351fab = _0x5119b5;
|
|
544
|
+
if (!_0xdc6c6d || !_0xdf33c9 || _0x568699 <= _0x98f8f9)
|
|
561
545
|
return;
|
|
562
|
-
const
|
|
563
|
-
'body': JSON[
|
|
564
|
-
'last_seen_seq':
|
|
565
|
-
'worker_session_id':
|
|
546
|
+
const _0x4c3df1 = await _0x2cccb9(_0xdc6c6d + '/workers/context-metrics', {
|
|
547
|
+
'body': JSON[_0x351fab(_0x692b12._0x583d53)]({
|
|
548
|
+
'last_seen_seq': _0x568699,
|
|
549
|
+
'worker_session_id': _0xdf33c9
|
|
566
550
|
}),
|
|
567
|
-
'headers': { 'Content-Type':
|
|
568
|
-
'method':
|
|
551
|
+
'headers': { 'Content-Type': _0x351fab(0x253) },
|
|
552
|
+
'method': _0x351fab(0x22e)
|
|
569
553
|
});
|
|
570
|
-
if (!
|
|
571
|
-
throw new Error(
|
|
572
|
-
|
|
554
|
+
if (!_0x4c3df1['ok'])
|
|
555
|
+
throw new Error(_0x351fab(_0x692b12._0x264d2a) + _0x4c3df1[_0x351fab(0x2b9)]);
|
|
556
|
+
_0x98f8f9 = _0x568699;
|
|
573
557
|
}
|
|
574
|
-
async function
|
|
575
|
-
const
|
|
576
|
-
'body': JSON[
|
|
577
|
-
'headers':
|
|
578
|
-
'method':
|
|
558
|
+
async function _0x147a6a(_0x293a4b) {
|
|
559
|
+
const _0x3f83fc = _0x5119b5, _0x564712 = parseTarget(_0x293a4b), _0x489144 = await _0x4501d3('/internal/agent/' + _0x29ed46[_0x3f83fc(0x321)] + _0x3f83fc(_0x3446ad._0x3afc74), {
|
|
560
|
+
'body': JSON[_0x3f83fc(0x245)]({ 'target': _0x564712[_0x3f83fc(0x22c)] }),
|
|
561
|
+
'headers': _0x54e203,
|
|
562
|
+
'method': _0x3f83fc(_0x3446ad._0x83cc32)
|
|
579
563
|
});
|
|
580
564
|
return {
|
|
581
|
-
'channelId':
|
|
582
|
-
'target':
|
|
583
|
-
'task':
|
|
584
|
-
'threadId':
|
|
585
|
-
'threadNumber':
|
|
565
|
+
'channelId': _0x489144[_0x3f83fc(0x24c)]?.['channelId'] ?? '',
|
|
566
|
+
'target': _0x564712['channelTarget'],
|
|
567
|
+
'task': _0x489144[_0x3f83fc(0x24c)]?.[_0x3f83fc(0x273)],
|
|
568
|
+
'threadId': _0x489144[_0x3f83fc(_0x3446ad._0x3c897b)]?.[_0x3f83fc(_0x3446ad._0x487ac5)],
|
|
569
|
+
'threadNumber': _0x489144[_0x3f83fc(_0x3446ad._0x45351a)]?.[_0x3f83fc(0x310)]
|
|
586
570
|
};
|
|
587
571
|
}
|
|
588
|
-
async function
|
|
589
|
-
const
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
_0x26413e: 0x208,
|
|
596
|
-
_0xb61623: 0x1a7,
|
|
597
|
-
_0x583af6: 0x224,
|
|
598
|
-
_0xab712e: 0x163
|
|
599
|
-
}, _0x13b2a0 = _0x48cdc4;
|
|
600
|
-
if (!_0x1df72a[_0x13b2a0(_0x3367ee._0x24d387)] && _0x4627c1)
|
|
601
|
-
return _0x4627c1;
|
|
602
|
-
return _0x4627c1 = (async () => {
|
|
603
|
-
const _0x53f05d = _0x13b2a0, _0x5085f0 = await _0x1d8040(_0x53f05d(_0x36ae33._0xf9cd50) + _0x13d36f[_0x53f05d(_0x36ae33._0x177c4f)] + _0x53f05d(_0x36ae33._0x294f77), {
|
|
604
|
-
'headers': _0x260a25,
|
|
572
|
+
async function _0x5d7d92(_0x9609 = {}) {
|
|
573
|
+
const _0x1fd4df = _0x5119b5;
|
|
574
|
+
if (!_0x9609[_0x1fd4df(_0x3be985._0x191636)] && _0x3b38de)
|
|
575
|
+
return _0x3b38de;
|
|
576
|
+
return _0x3b38de = (async () => {
|
|
577
|
+
const _0x597be4 = _0x1fd4df, _0x288070 = await _0x4501d3(_0x597be4(0x2cc) + _0x29ed46[_0x597be4(_0x5b862d._0x5c59d2)] + '/server', {
|
|
578
|
+
'headers': _0x54e203,
|
|
605
579
|
'method': 'GET'
|
|
606
|
-
}),
|
|
607
|
-
'id':
|
|
608
|
-
'name':
|
|
609
|
-
}))['filter'](
|
|
610
|
-
'id':
|
|
611
|
-
'name':
|
|
612
|
-
}))[
|
|
580
|
+
}), _0x356280 = _0x288070[_0x597be4(_0x5b862d._0x366977)]?.[_0x597be4(_0x5b862d._0x4e871c)] ?? [], _0x13574b = _0x356280['filter'](_0x248184 => _0x248184[_0x597be4(0x260)]?.['type'] === _0x597be4(0x225))[_0x597be4(0x2ed)](_0x396aa0 => ({
|
|
581
|
+
'id': _0x49eb72(_0x396aa0),
|
|
582
|
+
'name': _0x2ca28a(_0x396aa0)
|
|
583
|
+
}))['filter'](_0x3d6a88 => _0x3d6a88['id']), _0x57a39d = _0x356280[_0x597be4(_0x5b862d._0x408d92)](_0x168f8e => _0x168f8e[_0x597be4(0x260)]?.[_0x597be4(0x235)] !== _0x597be4(0x225))[_0x597be4(0x2ed)](_0xac78c8 => ({
|
|
584
|
+
'id': _0x49eb72(_0xac78c8),
|
|
585
|
+
'name': _0x2ca28a(_0xac78c8)
|
|
586
|
+
}))[_0x597be4(_0x5b862d._0x408d92)](_0x5d5436 => _0x5d5436['id']), _0x38f65b = _0x288070['data']?.[_0x597be4(0x2a3)]['id'] ?? '';
|
|
613
587
|
return {
|
|
614
|
-
'agents':
|
|
615
|
-
'channels':
|
|
616
|
-
'humans':
|
|
617
|
-
'serverId':
|
|
618
|
-
'serverName':
|
|
588
|
+
'agents': _0x13574b,
|
|
589
|
+
'channels': _0x288070['data']?.[_0x597be4(_0x5b862d._0x2c1448)] ?? [],
|
|
590
|
+
'humans': _0x57a39d,
|
|
591
|
+
'serverId': _0x38f65b,
|
|
592
|
+
'serverName': _0x288070[_0x597be4(0x24c)]?.['server'][_0x597be4(_0x5b862d._0x29b6a8)] ?? _0x38f65b
|
|
619
593
|
};
|
|
620
|
-
})()[
|
|
621
|
-
|
|
622
|
-
throw
|
|
623
|
-
}),
|
|
594
|
+
})()[_0x1fd4df(_0x3be985._0x2397c2)](_0x4ebc14 => {
|
|
595
|
+
_0x3b38de = null;
|
|
596
|
+
throw _0x4ebc14;
|
|
597
|
+
}), _0x3b38de;
|
|
624
598
|
}
|
|
625
|
-
function
|
|
626
|
-
const
|
|
627
|
-
return
|
|
599
|
+
function _0x4e5fd8(_0xeb1d86, _0x5bc561) {
|
|
600
|
+
const _0x30dddd = _0x5119b5;
|
|
601
|
+
return _0x5bc561['agents'][_0x30dddd(0x297)](_0x4dc711 => _0x4dc711['id'] === _0xeb1d86 || _0x4dc711[_0x30dddd(0x1a9)] === _0xeb1d86) ? _0x30dddd(0x225) : _0x30dddd(_0x12eb4b._0x1982ae);
|
|
628
602
|
}
|
|
629
|
-
function
|
|
630
|
-
const
|
|
631
|
-
if (
|
|
632
|
-
return
|
|
633
|
-
if (
|
|
634
|
-
return
|
|
635
|
-
if (
|
|
636
|
-
return
|
|
637
|
-
return
|
|
603
|
+
function _0x359a51(_0x583b2b) {
|
|
604
|
+
const _0x37b2e2 = _0x5119b5;
|
|
605
|
+
if (_0x583b2b['threadNumber'] != null)
|
|
606
|
+
return _0x583b2b[_0x37b2e2(_0x1f1fbc._0x5f257e)] + ':t' + _0x583b2b[_0x37b2e2(_0x1f1fbc._0x3ff865)];
|
|
607
|
+
if (_0x583b2b['rootMessageId'])
|
|
608
|
+
return _0x583b2b[_0x37b2e2(0x2e8)] + ':' + _0x583b2b[_0x37b2e2(_0x1f1fbc._0x2ba339)];
|
|
609
|
+
if (_0x583b2b[_0x37b2e2(0x305)])
|
|
610
|
+
return _0x583b2b[_0x37b2e2(_0x1f1fbc._0x2da1ec)] + ':' + _0x583b2b[_0x37b2e2(0x305)][_0x37b2e2(_0x1f1fbc._0x3b1086)](0x0, 0x8);
|
|
611
|
+
return _0x583b2b[_0x37b2e2(_0x1f1fbc._0x5f257e)];
|
|
638
612
|
}
|
|
639
|
-
function
|
|
640
|
-
const
|
|
613
|
+
function _0x1bc22e(_0x51b143, _0x2ac911) {
|
|
614
|
+
const _0x438ac5 = _0x5119b5;
|
|
641
615
|
try {
|
|
642
|
-
const
|
|
643
|
-
if (
|
|
616
|
+
const _0x59e693 = parseTarget(_0x51b143);
|
|
617
|
+
if (_0x59e693['kind'] !== _0x438ac5(_0x13d0bf._0x12f37e) || _0x59e693[_0x438ac5(_0x13d0bf._0x203e89)] !== _0x2ac911[_0x438ac5(0x2e8)])
|
|
644
618
|
return ![];
|
|
645
|
-
if (
|
|
619
|
+
if (_0x2ac911[_0x438ac5(0x310)] != null && _0x59e693[_0x438ac5(0x31b)] === 't' + _0x2ac911[_0x438ac5(_0x13d0bf._0x3f8058)])
|
|
646
620
|
return !![];
|
|
647
|
-
if (
|
|
648
|
-
return
|
|
649
|
-
if (
|
|
650
|
-
return
|
|
621
|
+
if (_0x2ac911[_0x438ac5(_0x13d0bf._0xe8e882)])
|
|
622
|
+
return _0x59e693['threadShortId'] === _0x2ac911[_0x438ac5(0x2f2)] || _0x2ac911[_0x438ac5(0x2f2)][_0x438ac5(_0x13d0bf._0x415955)](_0x59e693['threadShortId']);
|
|
623
|
+
if (_0x2ac911[_0x438ac5(0x305)])
|
|
624
|
+
return _0x59e693[_0x438ac5(_0x13d0bf._0x7ce4d1)] === _0x2ac911[_0x438ac5(0x305)] || _0x2ac911[_0x438ac5(0x305)][_0x438ac5(0x2b5)](_0x59e693[_0x438ac5(0x31b)]);
|
|
651
625
|
return ![];
|
|
652
626
|
} catch {
|
|
653
627
|
return ![];
|
|
654
628
|
}
|
|
655
629
|
}
|
|
656
|
-
function
|
|
657
|
-
const
|
|
658
|
-
return
|
|
630
|
+
function _0x49eb72(_0x5d0278) {
|
|
631
|
+
const _0x291233 = _0x5119b5;
|
|
632
|
+
return _0x5d0278[_0x291233(0x313)]?.['participantId'] ?? _0x5d0278['participant']?.['id'] ?? _0x5d0278['participantId'] ?? '';
|
|
659
633
|
}
|
|
660
|
-
function
|
|
661
|
-
|
|
662
|
-
return _0x4390af[_0x32e3e7(0x29e)]?.['name'] ?? _0x3974b5(_0x4390af);
|
|
634
|
+
function _0x2ca28a(_0x13a023) {
|
|
635
|
+
return _0x13a023['participant']?.['name'] ?? _0x49eb72(_0x13a023);
|
|
663
636
|
}
|
|
664
|
-
async function
|
|
665
|
-
const
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
const
|
|
671
|
-
'headers':
|
|
672
|
-
'method':
|
|
673
|
-
}),
|
|
674
|
-
'attachments': (
|
|
675
|
-
'filename':
|
|
676
|
-
'id':
|
|
637
|
+
async function _0x1d3530(_0x26fc83) {
|
|
638
|
+
const _0x39ef85 = _0x5119b5, _0x2e66f7 = Math['min'](_0x26fc83['limit'] ?? 0x32, 0x64), _0x486eb9 = await _0x5d7d92(), _0x3600f8 = new URLSearchParams();
|
|
639
|
+
_0x3600f8['set']('limit', String(_0x2e66f7));
|
|
640
|
+
_0x26fc83[_0x39ef85(_0x4e9122._0x46cc4d)] ? (_0x3600f8[_0x39ef85(_0x4e9122._0xf22d44)](_0x39ef85(_0x4e9122._0x46cc4d), _0x26fc83[_0x39ef85(0x305)]), _0x3600f8[_0x39ef85(0x1dc)]('channelId', _0x26fc83['channelId'])) : _0x3600f8[_0x39ef85(0x1dc)](_0x39ef85(0x20b), _0x26fc83[_0x39ef85(0x20b)]);
|
|
641
|
+
_0x26fc83[_0x39ef85(0x322)] && _0x3600f8[_0x39ef85(0x1dc)](_0x39ef85(0x1de), String(_0x26fc83[_0x39ef85(0x322)]));
|
|
642
|
+
_0x26fc83['after'] !== void 0x0 && _0x3600f8[_0x39ef85(_0x4e9122._0xf22d44)]('after', String(_0x26fc83['after']));
|
|
643
|
+
const _0x50957b = await _0x4501d3('/internal/agent/' + _0x29ed46[_0x39ef85(_0x4e9122._0x50e334)] + _0x39ef85(_0x4e9122._0x2388ac) + _0x3600f8[_0x39ef85(_0x4e9122._0x41940b)](), {
|
|
644
|
+
'headers': _0x54e203,
|
|
645
|
+
'method': _0x39ef85(0x29a)
|
|
646
|
+
}), _0x31184d = (_0x50957b[_0x39ef85(_0x4e9122._0x31a9ce)] ?? [])['map'](_0x5efc66 => ({
|
|
647
|
+
'attachments': (_0x5efc66[_0x39ef85(0x314)] ?? [])[_0x39ef85(0x2ed)](_0x1350ae => ({
|
|
648
|
+
'filename': _0x1350ae['filename'] ?? _0x1350ae['id'],
|
|
649
|
+
'id': _0x1350ae['id']
|
|
677
650
|
})),
|
|
678
|
-
'content':
|
|
679
|
-
'createdAt':
|
|
680
|
-
'messageId':
|
|
681
|
-
'senderName':
|
|
682
|
-
'senderType':
|
|
683
|
-
'seq':
|
|
651
|
+
'content': _0x5efc66['bodyMarkdown'] ?? '',
|
|
652
|
+
'createdAt': _0x5efc66[_0x39ef85(0x26c)],
|
|
653
|
+
'messageId': _0x5efc66['id'],
|
|
654
|
+
'senderName': _0x5efc66[_0x39ef85(0x241)],
|
|
655
|
+
'senderType': _0x4e5fd8(_0x5efc66[_0x39ef85(0x241)], _0x486eb9),
|
|
656
|
+
'seq': _0x5efc66[_0x39ef85(0x29b)] ?? 0x0
|
|
684
657
|
}));
|
|
685
658
|
return {
|
|
686
|
-
'channel':
|
|
687
|
-
'hasMore':
|
|
688
|
-
'messages':
|
|
689
|
-
'nextCursor':
|
|
659
|
+
'channel': _0x26fc83['channelTarget'],
|
|
660
|
+
'hasMore': _0x50957b[_0x39ef85(_0x4e9122._0x365754)]?.[_0x39ef85(0x2ab)] ?? ![],
|
|
661
|
+
'messages': _0x31184d,
|
|
662
|
+
'nextCursor': _0x50957b[_0x39ef85(_0x4e9122._0x523755)]?.['cursor']
|
|
690
663
|
};
|
|
691
664
|
}
|
|
692
665
|
return {
|
|
693
|
-
async 'sendMessage'(
|
|
694
|
-
const
|
|
666
|
+
async 'sendMessage'(_0x42f867) {
|
|
667
|
+
const _0x2714e6 = _0x5119b5, _0x25b9e5 = await _0x147a6a(_0x42f867['target']), _0x405c76 = _0x42f867['content']['includes']('@') ? extractMentionedParticipantIds(_0x42f867[_0x2714e6(0x2ef)], await _0x5d7d92()) : [], _0x5cf7f0 = await _0x4501d3(_0x2714e6(_0x5c6fc0._0x53fef0) + _0x29ed46[_0x2714e6(0x321)] + _0x2714e6(0x2f1), {
|
|
695
668
|
'body': JSON['stringify']({
|
|
696
|
-
'attachment_ids':
|
|
697
|
-
'bodyMarkdown':
|
|
698
|
-
'channelId':
|
|
699
|
-
...
|
|
700
|
-
'threadId':
|
|
701
|
-
...
|
|
669
|
+
'attachment_ids': _0x42f867[_0x2714e6(0x2e2)],
|
|
670
|
+
'bodyMarkdown': _0x42f867['content'],
|
|
671
|
+
'channelId': _0x25b9e5[_0x2714e6(_0x5c6fc0._0x1ddc05)],
|
|
672
|
+
..._0x405c76[_0x2714e6(_0x5c6fc0._0x34515c)] > 0x0 ? { 'mentionedParticipantIds': _0x405c76 } : {},
|
|
673
|
+
'threadId': _0x25b9e5[_0x2714e6(0x305)],
|
|
674
|
+
..._0x42f867[_0x2714e6(0x1a7)] ? { 'visibility': _0x42f867['visibility'] } : {}
|
|
702
675
|
}),
|
|
703
|
-
'headers':
|
|
704
|
-
'method':
|
|
676
|
+
'headers': _0x54e203,
|
|
677
|
+
'method': _0x2714e6(_0x5c6fc0._0x3a0d85)
|
|
705
678
|
});
|
|
706
|
-
return { 'messageId':
|
|
679
|
+
return { 'messageId': _0x5cf7f0[_0x2714e6(_0x5c6fc0._0x5ce021)]?.['id'] ?? '' };
|
|
707
680
|
},
|
|
708
681
|
async 'listSchedules'() {
|
|
709
|
-
const
|
|
710
|
-
'headers':
|
|
711
|
-
'method':
|
|
682
|
+
const _0x3456b4 = _0x5119b5, _0x396d90 = await _0x4501d3(_0x3456b4(0x32c), {
|
|
683
|
+
'headers': _0x54e203,
|
|
684
|
+
'method': 'GET'
|
|
712
685
|
});
|
|
713
|
-
return
|
|
686
|
+
return _0x396d90[_0x3456b4(_0x387488._0x1d2777)] ?? [];
|
|
714
687
|
},
|
|
715
|
-
async 'claimScheduleRun'(
|
|
716
|
-
const
|
|
717
|
-
'body': JSON[
|
|
718
|
-
'headers':
|
|
719
|
-
'method':
|
|
688
|
+
async 'claimScheduleRun'(_0x3815f8) {
|
|
689
|
+
const _0x466d5d = _0x5119b5, _0x5225c7 = await _0x4501d3('/api/internal/schedules/claim', {
|
|
690
|
+
'body': JSON[_0x466d5d(_0x370969._0x5d0e5d)](_0x3815f8),
|
|
691
|
+
'headers': _0x54e203,
|
|
692
|
+
'method': _0x466d5d(0x22e)
|
|
720
693
|
});
|
|
721
|
-
return
|
|
694
|
+
return _0x5225c7['data'] ?? {
|
|
722
695
|
'granted': ![],
|
|
723
696
|
'runId': null,
|
|
724
697
|
'schedule': null,
|
|
725
|
-
'scheduledFor':
|
|
698
|
+
'scheduledFor': _0x3815f8['scheduledFor']
|
|
726
699
|
};
|
|
727
700
|
},
|
|
728
|
-
async 'startScheduleRun'(
|
|
729
|
-
const
|
|
730
|
-
'body': JSON[
|
|
731
|
-
'headers':
|
|
732
|
-
'method':
|
|
701
|
+
async 'startScheduleRun'(_0x2c6510) {
|
|
702
|
+
const _0x362d51 = _0x5119b5, _0x3354d1 = await _0x4501d3('/api/internal/schedules/' + encodeURIComponent(_0x2c6510[_0x362d51(0x1f9)]) + _0x362d51(0x1a6), {
|
|
703
|
+
'body': JSON[_0x362d51(0x245)]({}),
|
|
704
|
+
'headers': _0x54e203,
|
|
705
|
+
'method': _0x362d51(_0x16e063._0x7c5b05)
|
|
733
706
|
});
|
|
734
|
-
return
|
|
707
|
+
return _0x3354d1[_0x362d51(_0x16e063._0x27ff57)] ?? {
|
|
735
708
|
'claimedByDaemonId': '',
|
|
736
|
-
'id':
|
|
709
|
+
'id': _0x2c6510[_0x362d51(0x1f9)],
|
|
737
710
|
'scheduleId': '',
|
|
738
|
-
'status':
|
|
711
|
+
'status': _0x362d51(0x1cd)
|
|
739
712
|
};
|
|
740
713
|
},
|
|
741
|
-
async 'finishScheduleRun'(
|
|
742
|
-
const
|
|
743
|
-
'body': JSON[
|
|
744
|
-
'error':
|
|
745
|
-
'resultJson':
|
|
746
|
-
'status':
|
|
714
|
+
async 'finishScheduleRun'(_0x5b490e) {
|
|
715
|
+
const _0x1a5a7b = _0x5119b5, _0x251b8f = await _0x4501d3(_0x1a5a7b(0x22d) + encodeURIComponent(_0x5b490e[_0x1a5a7b(0x1f9)]) + '/finish', {
|
|
716
|
+
'body': JSON[_0x1a5a7b(_0x415d82._0x5aab89)]({
|
|
717
|
+
'error': _0x5b490e[_0x1a5a7b(0x1c1)],
|
|
718
|
+
'resultJson': _0x5b490e[_0x1a5a7b(0x1ca)],
|
|
719
|
+
'status': _0x5b490e['status']
|
|
747
720
|
}),
|
|
748
|
-
'headers':
|
|
749
|
-
'method':
|
|
721
|
+
'headers': _0x54e203,
|
|
722
|
+
'method': _0x1a5a7b(0x22e)
|
|
750
723
|
});
|
|
751
|
-
return
|
|
724
|
+
return _0x251b8f[_0x1a5a7b(0x24c)] ?? {
|
|
752
725
|
'nextRunAt': null,
|
|
753
726
|
'run': {
|
|
754
727
|
'claimedByDaemonId': '',
|
|
755
|
-
'id':
|
|
728
|
+
'id': _0x5b490e[_0x1a5a7b(0x1f9)],
|
|
756
729
|
'scheduleId': '',
|
|
757
|
-
'status':
|
|
730
|
+
'status': _0x5b490e[_0x1a5a7b(0x2b9)]
|
|
758
731
|
}
|
|
759
732
|
};
|
|
760
733
|
},
|
|
761
|
-
async 'listTasks'(
|
|
762
|
-
const
|
|
763
|
-
return
|
|
764
|
-
'headers':
|
|
765
|
-
'method':
|
|
734
|
+
async 'listTasks'(_0x41e40a) {
|
|
735
|
+
const _0x5a4674 = _0x5119b5, _0xb3ce4f = new URLSearchParams();
|
|
736
|
+
return _0xb3ce4f[_0x5a4674(_0xb80567._0x5676d2)](_0x5a4674(_0xb80567._0x4ec28f), _0x41e40a['channel']), _0x41e40a[_0x5a4674(_0xb80567._0x4b82fa)] && _0xb3ce4f[_0x5a4674(0x1dc)]('status', _0x41e40a[_0x5a4674(_0xb80567._0x2d1a27)]), _0x12c9db(_0x5a4674(_0xb80567._0x22f462) + _0x29ed46[_0x5a4674(_0xb80567._0x492bdb)] + _0x5a4674(0x2fa) + _0xb3ce4f[_0x5a4674(0x20d)](), {
|
|
737
|
+
'headers': _0x54e203,
|
|
738
|
+
'method': 'GET'
|
|
766
739
|
});
|
|
767
740
|
},
|
|
768
|
-
async 'createTasks'(
|
|
769
|
-
const
|
|
770
|
-
return
|
|
771
|
-
'body': JSON[
|
|
772
|
-
...
|
|
773
|
-
'idempotency_key':
|
|
741
|
+
async 'createTasks'(_0x166d8e) {
|
|
742
|
+
const _0x45937d = _0x5119b5;
|
|
743
|
+
return _0x12c9db(_0x45937d(0x2cc) + _0x29ed46['agentId'] + _0x45937d(_0x3790f9._0x55f684), {
|
|
744
|
+
'body': JSON[_0x45937d(_0x3790f9._0x1018d7)]({
|
|
745
|
+
..._0x166d8e,
|
|
746
|
+
'idempotency_key': _0x31bdd7(_0x45937d(0x2fd), _0x166d8e)
|
|
774
747
|
}),
|
|
775
|
-
'headers':
|
|
776
|
-
'method':
|
|
748
|
+
'headers': _0x54e203,
|
|
749
|
+
'method': _0x45937d(_0x3790f9._0x3f75f8)
|
|
777
750
|
});
|
|
778
751
|
},
|
|
779
|
-
async 'claimTasks'(
|
|
780
|
-
const
|
|
781
|
-
return
|
|
782
|
-
'body': JSON[
|
|
783
|
-
...
|
|
784
|
-
'idempotency_key':
|
|
752
|
+
async 'claimTasks'(_0x3345ad) {
|
|
753
|
+
const _0x7f2b02 = _0x5119b5;
|
|
754
|
+
return _0x12c9db(_0x7f2b02(0x2cc) + _0x29ed46[_0x7f2b02(0x321)] + _0x7f2b02(_0x18c4a4._0x39f1ee), {
|
|
755
|
+
'body': JSON[_0x7f2b02(_0x18c4a4._0x53c6f1)]({
|
|
756
|
+
..._0x3345ad,
|
|
757
|
+
'idempotency_key': _0x31bdd7(_0x7f2b02(0x1e1), _0x3345ad)
|
|
785
758
|
}),
|
|
786
|
-
'headers':
|
|
787
|
-
'method':
|
|
759
|
+
'headers': _0x54e203,
|
|
760
|
+
'method': _0x7f2b02(0x22e)
|
|
788
761
|
});
|
|
789
762
|
},
|
|
790
|
-
async 'unclaimTask'(
|
|
791
|
-
const
|
|
792
|
-
return
|
|
793
|
-
'body': JSON[
|
|
794
|
-
...
|
|
795
|
-
'idempotency_key':
|
|
763
|
+
async 'unclaimTask'(_0x52a3e6) {
|
|
764
|
+
const _0x5431d4 = _0x5119b5;
|
|
765
|
+
return _0x12c9db('/internal/agent/' + _0x29ed46[_0x5431d4(0x321)] + _0x5431d4(0x24d), {
|
|
766
|
+
'body': JSON[_0x5431d4(0x245)]({
|
|
767
|
+
..._0x52a3e6,
|
|
768
|
+
'idempotency_key': _0x31bdd7(_0x5431d4(_0x336daf._0x3b81a1), _0x52a3e6)
|
|
796
769
|
}),
|
|
797
|
-
'headers':
|
|
798
|
-
'method':
|
|
770
|
+
'headers': _0x54e203,
|
|
771
|
+
'method': _0x5431d4(0x22e)
|
|
799
772
|
});
|
|
800
773
|
},
|
|
801
|
-
async 'updateTaskStatus'(
|
|
802
|
-
const
|
|
803
|
-
return
|
|
804
|
-
'body': JSON[
|
|
805
|
-
...
|
|
806
|
-
'idempotency_key':
|
|
774
|
+
async 'updateTaskStatus'(_0x139209) {
|
|
775
|
+
const _0xcdb4a = _0x5119b5;
|
|
776
|
+
return _0x12c9db(_0xcdb4a(0x2cc) + _0x29ed46[_0xcdb4a(0x321)] + _0xcdb4a(0x1df), {
|
|
777
|
+
'body': JSON[_0xcdb4a(_0x2a1280._0x19ec3d)]({
|
|
778
|
+
..._0x139209,
|
|
779
|
+
'idempotency_key': _0x31bdd7(_0xcdb4a(0x28f), _0x139209)
|
|
807
780
|
}),
|
|
808
|
-
'headers':
|
|
809
|
-
'method':
|
|
781
|
+
'headers': _0x54e203,
|
|
782
|
+
'method': _0xcdb4a(_0x2a1280._0x3894a1)
|
|
810
783
|
});
|
|
811
784
|
},
|
|
812
|
-
async 'uploadFile'(
|
|
813
|
-
const
|
|
814
|
-
if (
|
|
815
|
-
throw new Error(
|
|
816
|
-
const
|
|
817
|
-
'body': JSON[
|
|
818
|
-
'channel':
|
|
819
|
-
'contentBase64':
|
|
820
|
-
'contentType':
|
|
821
|
-
'originalFilename':
|
|
785
|
+
async 'uploadFile'(_0x540687) {
|
|
786
|
+
const _0x5258f4 = _0x5119b5, _0xa98e00 = await _0x147a6a(_0x540687[_0x5258f4(_0x7ddc8b._0x45aa84)]);
|
|
787
|
+
if (_0xa98e00['threadId'])
|
|
788
|
+
throw new Error(_0x5258f4(0x21f));
|
|
789
|
+
const _0x39aa19 = await _0x4501d3('/internal/agent/' + _0x29ed46['agentId'] + '/upload', {
|
|
790
|
+
'body': JSON[_0x5258f4(_0x7ddc8b._0x417469)]({
|
|
791
|
+
'channel': _0xa98e00[_0x5258f4(_0x7ddc8b._0x2222d5)],
|
|
792
|
+
'contentBase64': _0x540687[_0x5258f4(_0x7ddc8b._0x411cfa)],
|
|
793
|
+
'contentType': _0x540687[_0x5258f4(_0x7ddc8b._0x581aa1)],
|
|
794
|
+
'originalFilename': _0x540687['filename']
|
|
822
795
|
}),
|
|
823
|
-
'headers':
|
|
824
|
-
'method':
|
|
796
|
+
'headers': _0x54e203,
|
|
797
|
+
'method': _0x5258f4(0x22e)
|
|
825
798
|
});
|
|
826
799
|
return {
|
|
827
|
-
'attachmentId':
|
|
828
|
-
'filename':
|
|
829
|
-
'sizeBytes':
|
|
800
|
+
'attachmentId': _0x39aa19[_0x5258f4(0x24c)]?.['id'] ?? '',
|
|
801
|
+
'filename': _0x39aa19[_0x5258f4(_0x7ddc8b._0x181f3b)]?.[_0x5258f4(_0x7ddc8b._0x33d2b9)] ?? _0x540687[_0x5258f4(_0x7ddc8b._0x37a8b9)],
|
|
802
|
+
'sizeBytes': _0x39aa19[_0x5258f4(0x24c)]?.[_0x5258f4(0x242)] ?? 0x0
|
|
830
803
|
};
|
|
831
804
|
},
|
|
832
|
-
async 'downloadAttachment'(
|
|
833
|
-
const
|
|
834
|
-
'headers':
|
|
835
|
-
'method':
|
|
836
|
-
}),
|
|
805
|
+
async 'downloadAttachment'(_0x2a53ba) {
|
|
806
|
+
const _0x4099e9 = _0x5119b5, _0x140adf = await _0x4501d3(_0x4099e9(_0x3d72c0._0x12740) + _0x2a53ba, {
|
|
807
|
+
'headers': _0x54e203,
|
|
808
|
+
'method': _0x4099e9(0x29a)
|
|
809
|
+
}), _0x37db66 = new AbortController(), _0x22cbdf = setTimeout(() => _0x37db66[_0x4099e9(0x300)](), _0x13ce15);
|
|
837
810
|
try {
|
|
838
|
-
const
|
|
839
|
-
'headers':
|
|
840
|
-
'method':
|
|
841
|
-
'signal':
|
|
811
|
+
const _0x32160b = await _0x2cccb9(_0x32e8c5 + '/api/attachments/' + _0x2a53ba + _0x4099e9(0x295), {
|
|
812
|
+
'headers': _0x54e203,
|
|
813
|
+
'method': _0x4099e9(0x29a),
|
|
814
|
+
'signal': _0x37db66[_0x4099e9(0x2bd)]
|
|
842
815
|
});
|
|
843
|
-
if (!
|
|
844
|
-
throw new Error(
|
|
816
|
+
if (!_0x32160b['ok'])
|
|
817
|
+
throw new Error(_0x4099e9(0x1e0) + _0x32160b[_0x4099e9(_0x3d72c0._0xf0c40a)]);
|
|
845
818
|
return {
|
|
846
|
-
'contentType':
|
|
847
|
-
'data': Buffer[
|
|
848
|
-
'originalFilename':
|
|
819
|
+
'contentType': _0x140adf[_0x4099e9(_0x3d72c0._0x55fd35)]?.[_0x4099e9(0x212)] ?? _0x32160b[_0x4099e9(_0x3d72c0._0x16275e)][_0x4099e9(_0x3d72c0._0x14c511)](_0x4099e9(_0x3d72c0._0x55c88f)) ?? _0x4099e9(0x2a2),
|
|
820
|
+
'data': Buffer[_0x4099e9(_0x3d72c0._0x251cc0)](await _0x32160b[_0x4099e9(_0x3d72c0._0x3e8351)]()),
|
|
821
|
+
'originalFilename': _0x140adf[_0x4099e9(_0x3d72c0._0x3a0d06)]?.[_0x4099e9(0x228)]
|
|
849
822
|
};
|
|
850
823
|
} finally {
|
|
851
|
-
clearTimeout(
|
|
824
|
+
clearTimeout(_0x22cbdf);
|
|
852
825
|
}
|
|
853
826
|
},
|
|
854
827
|
async 'listServer'() {
|
|
855
|
-
return
|
|
828
|
+
return _0x5d7d92({ 'forceRefresh': !![] });
|
|
856
829
|
},
|
|
857
|
-
async 'readHistory'(
|
|
858
|
-
const
|
|
859
|
-
return
|
|
860
|
-
'after':
|
|
861
|
-
'before':
|
|
862
|
-
'channelId':
|
|
863
|
-
'channelTarget':
|
|
864
|
-
'limit':
|
|
865
|
-
'threadId':
|
|
830
|
+
async 'readHistory'(_0x5a8796) {
|
|
831
|
+
const _0x1cd08d = _0x5119b5, _0x4ac355 = await _0x147a6a(_0x5a8796['channel']);
|
|
832
|
+
return _0x1d3530({
|
|
833
|
+
'after': _0x5a8796[_0x1cd08d(_0x1290c9._0x43b932)],
|
|
834
|
+
'before': _0x5a8796['before'],
|
|
835
|
+
'channelId': _0x4ac355[_0x1cd08d(0x20b)],
|
|
836
|
+
'channelTarget': _0x4ac355[_0x1cd08d(_0x1290c9._0x2b8178)],
|
|
837
|
+
'limit': _0x5a8796[_0x1cd08d(0x202)],
|
|
838
|
+
'threadId': _0x4ac355['threadId']
|
|
866
839
|
});
|
|
867
840
|
},
|
|
868
|
-
'resolveTarget':
|
|
841
|
+
'resolveTarget': _0x147a6a,
|
|
869
842
|
async 'checkMessages'() {
|
|
870
|
-
const
|
|
871
|
-
|
|
872
|
-
const
|
|
873
|
-
'headers':
|
|
843
|
+
const _0x2d900f = { _0x140378: 0x2cd }, _0x2786a4 = _0x5119b5, _0x5569c6 = new URLSearchParams();
|
|
844
|
+
_0x5569c6[_0x2786a4(_0x1aa4a7._0x19ba2f)](_0x2786a4(_0x1aa4a7._0x303401), String(_0x18cc3e));
|
|
845
|
+
const _0x2f96aa = _0x5569c6['toString'](), _0x2de8ec = await _0x4501d3('/internal/agent/' + _0x29ed46[_0x2786a4(_0x1aa4a7._0x5efd5f)] + _0x2786a4(0x27c) + (_0x2f96aa ? '?' + _0x2f96aa : ''), {
|
|
846
|
+
'headers': _0x54e203,
|
|
874
847
|
'method': 'GET'
|
|
875
|
-
}),
|
|
876
|
-
let
|
|
877
|
-
|
|
878
|
-
|
|
848
|
+
}), _0x2ea846 = _0x2de8ec[_0x2786a4(0x24c)] ?? [], _0x3584ac = _0x2de8ec[_0x2786a4(_0x1aa4a7._0x5ba1f5)]?.['cursor'], _0x41184c = _0x3584ac !== void 0x0 ? Math['max'](_0x18cc3e, _0x3584ac) : _0x2ea846[_0x2786a4(0x1d5)] > 0x0 ? Math[_0x2786a4(0x1dd)](_0x18cc3e, _0x2ea846[_0x2ea846[_0x2786a4(0x1d5)] - 0x1]['seq']) : _0x18cc3e, _0x270236 = _0x2ea846[_0x2786a4(_0x1aa4a7._0x548130)](_0x26d9be => _0x26d9be[_0x2786a4(0x2da)] === 'message'), _0x2fdc9f = _0x2bfab9 === void 0x0 && _0x395046;
|
|
849
|
+
let _0x249a0d = await _0x5d7d92(), _0x2fcbc6 = new Map(_0x249a0d[_0x2786a4(0x1e4)][_0x2786a4(0x2ed)](_0x3bcde3 => [
|
|
850
|
+
_0x3bcde3['id'],
|
|
851
|
+
_0x3bcde3
|
|
879
852
|
]));
|
|
880
|
-
const
|
|
881
|
-
const
|
|
882
|
-
return Boolean(
|
|
853
|
+
const _0x3103bb = _0x270236[_0x2786a4(0x297)](_0x106d2 => {
|
|
854
|
+
const _0x8fa813 = _0x2786a4, _0xb9b7d9 = asRecord(_0x106d2[_0x8fa813(_0x2d900f._0x140378)]), _0x990207 = typeof _0xb9b7d9?.[_0x8fa813(0x20b)] === _0x8fa813(0x1ec) ? _0xb9b7d9[_0x8fa813(0x20b)] : '';
|
|
855
|
+
return Boolean(_0x990207) && !_0x2fcbc6['has'](_0x990207);
|
|
883
856
|
});
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
857
|
+
_0x3103bb && (_0x249a0d = await _0x5d7d92({ 'forceRefresh': !![] }), _0x2fcbc6 = new Map(_0x249a0d[_0x2786a4(_0x1aa4a7._0x224346)][_0x2786a4(_0x1aa4a7._0x3c91e5)](_0x3fbfe0 => [
|
|
858
|
+
_0x3fbfe0['id'],
|
|
859
|
+
_0x3fbfe0
|
|
887
860
|
])));
|
|
888
|
-
const
|
|
889
|
-
for (const
|
|
890
|
-
const
|
|
891
|
-
if (!
|
|
861
|
+
const _0x583768 = new Map();
|
|
862
|
+
for (const _0x2c6567 of _0x270236) {
|
|
863
|
+
const _0x4876b1 = asRecord(_0x2c6567[_0x2786a4(0x2cd)]), _0x54f1b7 = typeof _0x4876b1[_0x2786a4(0x20b)] === _0x2786a4(_0x1aa4a7._0x131559) ? _0x4876b1[_0x2786a4(_0x1aa4a7._0x21fcf6)] : '';
|
|
864
|
+
if (!_0x54f1b7)
|
|
892
865
|
continue;
|
|
893
|
-
const
|
|
866
|
+
const _0x5d7d7a = typeof _0x4876b1['threadId'] === 'string' ? _0x4876b1[_0x2786a4(_0x1aa4a7._0x1254ff)] : void 0x0, _0xd5694a = typeof _0x4876b1[_0x2786a4(0x2f2)] === _0x2786a4(0x1ec) ? _0x4876b1[_0x2786a4(_0x1aa4a7._0x573e69)] : void 0x0, _0x32a87e = typeof _0x4876b1[_0x2786a4(_0x1aa4a7._0x3a4393)] === 'number' && Number[_0x2786a4(0x257)](_0x4876b1[_0x2786a4(_0x1aa4a7._0x3a4393)]) ? _0x4876b1[_0x2786a4(0x310)] : void 0x0, _0x5c6e8c = Boolean(_0x5d7d7a && (!_0xd5694a || _0x2c6567[_0x2786a4(0x1d2)] !== _0xd5694a)), _0x23d44c = _0x5c6e8c ? _0x54f1b7 + ':' + _0x5d7d7a : _0x54f1b7, _0x395972 = _0x583768[_0x2786a4(0x302)](_0x23d44c) ?? {
|
|
894
867
|
'aggregateIds': [],
|
|
895
|
-
'channelId':
|
|
868
|
+
'channelId': _0x54f1b7,
|
|
896
869
|
'entries': new Map(),
|
|
897
|
-
'isThreadReply':
|
|
898
|
-
'rootMessageId':
|
|
899
|
-
'threadNumber':
|
|
900
|
-
'threadId':
|
|
870
|
+
'isThreadReply': _0x5c6e8c,
|
|
871
|
+
'rootMessageId': _0xd5694a,
|
|
872
|
+
'threadNumber': _0x32a87e,
|
|
873
|
+
'threadId': _0x5c6e8c ? _0x5d7d7a : void 0x0
|
|
901
874
|
};
|
|
902
|
-
|
|
903
|
-
'payloadJson':
|
|
904
|
-
'seq':
|
|
905
|
-
}),
|
|
875
|
+
_0x395972[_0x2786a4(0x310)] == null && _0x32a87e != null && (_0x395972[_0x2786a4(0x310)] = _0x32a87e), !_0x395972['rootMessageId'] && _0xd5694a && (_0x395972['rootMessageId'] = _0xd5694a), _0x395972[_0x2786a4(_0x1aa4a7._0x5a2614)]['push'](_0x2c6567[_0x2786a4(_0x1aa4a7._0x11aaaa)]), _0x395972['entries'][_0x2786a4(0x1dc)](_0x2c6567[_0x2786a4(0x1d2)], {
|
|
876
|
+
'payloadJson': _0x2c6567['payloadJson'],
|
|
877
|
+
'seq': _0x2c6567[_0x2786a4(_0x1aa4a7._0x101448)]
|
|
878
|
+
}), _0x583768[_0x2786a4(0x1dc)](_0x23d44c, _0x395972);
|
|
906
879
|
}
|
|
907
|
-
const
|
|
908
|
-
for (const
|
|
880
|
+
const _0x1e08cc = [];
|
|
881
|
+
for (const _0x3109c6 of _0x583768[_0x2786a4(0x31e)]()) {
|
|
909
882
|
const {
|
|
910
|
-
channelId:
|
|
911
|
-
threadId:
|
|
912
|
-
rootMessageId:
|
|
913
|
-
threadNumber:
|
|
914
|
-
aggregateIds:
|
|
915
|
-
isThreadReply:
|
|
916
|
-
entries:
|
|
917
|
-
} =
|
|
918
|
-
'channelTarget':
|
|
919
|
-
'rootMessageId':
|
|
920
|
-
'threadId':
|
|
921
|
-
'threadNumber':
|
|
922
|
-
},
|
|
923
|
-
'channelId':
|
|
924
|
-
'channelTarget':
|
|
925
|
-
'limit': Math[
|
|
926
|
-
'threadId':
|
|
927
|
-
}),
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
])),
|
|
931
|
-
for (const
|
|
932
|
-
if (!
|
|
883
|
+
channelId: _0xc02e81,
|
|
884
|
+
threadId: _0x34d7b2,
|
|
885
|
+
rootMessageId: _0x5bdcb3,
|
|
886
|
+
threadNumber: _0x87a38b,
|
|
887
|
+
aggregateIds: _0xeca275,
|
|
888
|
+
isThreadReply: _0x354fb4,
|
|
889
|
+
entries: _0x53dcdd
|
|
890
|
+
} = _0x3109c6, _0x8a33f9 = _0x2fcbc6[_0x2786a4(_0x1aa4a7._0x4b3154)](_0xc02e81), _0x3d99c3 = _0x8a33f9?.[_0x2786a4(_0x1aa4a7._0x1b2b05)] ?? _0xc02e81, _0xf06c3a = _0x8a33f9?.[_0x2786a4(0x2bb)] === 'dm' ? _0x2786a4(0x30b) + _0x3d99c3 : '#' + _0x3d99c3, _0x1c1a72 = {
|
|
891
|
+
'channelTarget': _0xf06c3a,
|
|
892
|
+
'rootMessageId': _0x5bdcb3,
|
|
893
|
+
'threadId': _0x34d7b2,
|
|
894
|
+
'threadNumber': _0x87a38b
|
|
895
|
+
}, _0x2341f6 = await _0x1d3530({
|
|
896
|
+
'channelId': _0xc02e81,
|
|
897
|
+
'channelTarget': _0xf06c3a,
|
|
898
|
+
'limit': Math[_0x2786a4(_0x1aa4a7._0x3c6b29)](_0xeca275[_0x2786a4(_0x1aa4a7._0x3e26bd)], 0x32),
|
|
899
|
+
'threadId': _0x34d7b2
|
|
900
|
+
}), _0x3713a1 = new Map(_0x2341f6['messages'][_0x2786a4(_0x1aa4a7._0x455f55)](_0x41c4de => [
|
|
901
|
+
_0x41c4de['messageId'],
|
|
902
|
+
_0x41c4de
|
|
903
|
+
])), _0x2290bf = _0x34d7b2 ? _0x359a51(_0x1c1a72) : _0xf06c3a, _0x2dc405 = _0x2bfab9 ? _0x354fb4 && _0x1bc22e(_0x2bfab9, _0x1c1a72) : !![], _0x422cc2 = _0x354fb4 ? _0x2dc405 && _0x2bfab9 ? _0x2bfab9 : _0x2290bf : _0xf06c3a;
|
|
904
|
+
for (const _0x3bfe68 of _0xeca275) {
|
|
905
|
+
if (!_0x2dc405)
|
|
933
906
|
continue;
|
|
934
|
-
const
|
|
935
|
-
if (
|
|
907
|
+
const _0x7ce38a = _0x53dcdd['get'](_0x3bfe68), _0x28defc = _0x7ce38a ? asRecord(_0x7ce38a[_0x2786a4(0x2cd)]) : void 0x0, _0x9106ae = _0x28defc?.[_0x2786a4(0x1d0)] === _0x2786a4(0x1ae);
|
|
908
|
+
if (_0x2fdc9f && _0x9106ae)
|
|
936
909
|
continue;
|
|
937
|
-
const
|
|
938
|
-
if (
|
|
939
|
-
|
|
940
|
-
'attachments':
|
|
941
|
-
'content':
|
|
942
|
-
'createdAt':
|
|
943
|
-
'messageId':
|
|
944
|
-
'senderName':
|
|
945
|
-
'senderType':
|
|
946
|
-
'target':
|
|
947
|
-
...
|
|
910
|
+
const _0x3521ea = _0x3713a1[_0x2786a4(0x302)](_0x3bfe68);
|
|
911
|
+
if (_0x3521ea) {
|
|
912
|
+
_0x1e08cc[_0x2786a4(_0x1aa4a7._0x19bba9)]({
|
|
913
|
+
'attachments': _0x3521ea['attachments'],
|
|
914
|
+
'content': _0x3521ea[_0x2786a4(_0x1aa4a7._0x1405e5)],
|
|
915
|
+
'createdAt': _0x3521ea[_0x2786a4(_0x1aa4a7._0x1bd385)],
|
|
916
|
+
'messageId': _0x3521ea['messageId'],
|
|
917
|
+
'senderName': _0x3521ea[_0x2786a4(0x1b2)],
|
|
918
|
+
'senderType': _0x3521ea[_0x2786a4(_0x1aa4a7._0x247cd4)],
|
|
919
|
+
'target': _0x422cc2,
|
|
920
|
+
..._0x9106ae ? { 'targetedTask': !![] } : {}
|
|
948
921
|
});
|
|
949
922
|
continue;
|
|
950
923
|
}
|
|
951
|
-
if (
|
|
952
|
-
const
|
|
953
|
-
|
|
924
|
+
if (_0x7ce38a) {
|
|
925
|
+
const _0x14e45e = typeof _0x28defc?.[_0x2786a4(_0x1aa4a7._0x444608)] === _0x2786a4(0x1ec) ? _0x28defc['senderParticipantId'] : '', _0x5059ee = typeof _0x28defc?.[_0x2786a4(_0x1aa4a7._0x1a29e8)] === _0x2786a4(_0x1aa4a7._0x3c5931) ? _0x28defc[_0x2786a4(_0x1aa4a7._0x1a29e8)] : '';
|
|
926
|
+
_0x14e45e && _0x5059ee && _0x1e08cc[_0x2786a4(0x27e)]({
|
|
954
927
|
'attachments': [],
|
|
955
|
-
'content':
|
|
956
|
-
'createdAt': new Date()[
|
|
957
|
-
'messageId':
|
|
958
|
-
'senderName':
|
|
959
|
-
'senderType':
|
|
960
|
-
'target':
|
|
961
|
-
...
|
|
928
|
+
'content': _0x5059ee,
|
|
929
|
+
'createdAt': new Date()[_0x2786a4(0x1e3)](),
|
|
930
|
+
'messageId': _0x3bfe68,
|
|
931
|
+
'senderName': _0x14e45e,
|
|
932
|
+
'senderType': _0x4e5fd8(_0x14e45e, _0x249a0d),
|
|
933
|
+
'target': _0x422cc2,
|
|
934
|
+
..._0x9106ae ? { 'targetedTask': !![] } : {}
|
|
962
935
|
});
|
|
963
936
|
}
|
|
964
937
|
}
|
|
965
938
|
}
|
|
966
|
-
if (
|
|
967
|
-
if (
|
|
968
|
-
await
|
|
939
|
+
if (_0x41184c > 0x0) {
|
|
940
|
+
if (_0x57fc1f)
|
|
941
|
+
await _0x4d81ce(_0x41184c);
|
|
969
942
|
else
|
|
970
|
-
|
|
943
|
+
_0xdf33c9 && await _0x115b1d(_0x41184c);
|
|
971
944
|
}
|
|
972
|
-
return
|
|
945
|
+
return _0x41184c > _0x18cc3e && (_0x18cc3e = _0x41184c), { 'messages': _0x2bfab9 ? _0x1e08cc : _0x2fdc9f ? _0x1e08cc[_0x2786a4(_0x1aa4a7._0x41a25f)](_0x13c7a7 => _0x13c7a7['targetedTask'] !== !![]) : _0x1e08cc };
|
|
973
946
|
}
|
|
974
947
|
};
|
|
975
948
|
}
|
|
976
|
-
function toLocalTime(
|
|
977
|
-
const
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
949
|
+
function toLocalTime(_0x6c7b29) {
|
|
950
|
+
const _0x47d355 = {
|
|
951
|
+
_0xe4c6f: 0x2d6,
|
|
952
|
+
_0x2020a7: 0x211,
|
|
953
|
+
_0x7388a8: 0x207,
|
|
954
|
+
_0xd5372f: 0x2f0,
|
|
955
|
+
_0x59e01e: 0x1c6
|
|
956
|
+
}, _0x893be1 = _0x5e2837, _0x40d41c = new Date(_0x6c7b29);
|
|
957
|
+
if (Number['isNaN'](_0x40d41c[_0x893be1(_0x47d355._0xe4c6f)]()))
|
|
958
|
+
return _0x6c7b29;
|
|
959
|
+
const _0x3b1424 = _0x11243e => String(_0x11243e)[_0x893be1(0x2f9)](0x2, '0');
|
|
960
|
+
return _0x40d41c[_0x893be1(_0x47d355._0x2020a7)]() + '-' + _0x3b1424(_0x40d41c[_0x893be1(_0x47d355._0x7388a8)]() + 0x1) + '-' + _0x3b1424(_0x40d41c['getDate']()) + '\x20' + _0x3b1424(_0x40d41c[_0x893be1(_0x47d355._0xd5372f)]()) + ':' + _0x3b1424(_0x40d41c[_0x893be1(_0x47d355._0x59e01e)]()) + ':' + _0x3b1424(_0x40d41c[_0x893be1(0x2e6)]());
|
|
982
961
|
}
|
|
983
|
-
function formatAttachmentSuffix(
|
|
984
|
-
const
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
962
|
+
function formatAttachmentSuffix(_0x54a67e) {
|
|
963
|
+
const _0x26a7b5 = {
|
|
964
|
+
_0x1dd346: 0x1d5,
|
|
965
|
+
_0x5bbe9c: 0x1d5,
|
|
966
|
+
_0x34c810: 0x2ed,
|
|
967
|
+
_0xc65d4a: 0x229
|
|
968
|
+
}, _0x3a463c = _0x5e2837;
|
|
969
|
+
if (!_0x54a67e || _0x54a67e[_0x3a463c(_0x26a7b5._0x1dd346)] === 0x0)
|
|
989
970
|
return '';
|
|
990
|
-
return '\x20[' +
|
|
971
|
+
return '\x20[' + _0x54a67e[_0x3a463c(_0x26a7b5._0x1dd346)] + '\x20attachment' + (_0x54a67e[_0x3a463c(_0x26a7b5._0x5bbe9c)] > 0x1 ? 's' : '') + ':\x20' + _0x54a67e[_0x3a463c(_0x26a7b5._0x34c810)](_0x1d7c95 => _0x1d7c95[_0x3a463c(0x25a)] + _0x3a463c(0x2b4) + _0x1d7c95['id'] + ')')[_0x3a463c(0x32f)](',\x20') + _0x3a463c(_0x26a7b5._0xc65d4a);
|
|
991
972
|
}
|
|
992
|
-
function formatCheckMessages(
|
|
993
|
-
const
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
},
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
return _0x209e31(0x213) + _0x31ee44[_0x209e31(0x1fe)] + _0x209e31(_0xe15d74._0x12fe02) + _0x31ee44[_0x209e31(_0xe15d74._0x15e034)][_0x209e31(0x263)](0x0, 0x8) + _0x209e31(0x120) + toLocalTime(_0x31ee44[_0x209e31(0x13c)]) + _0x45c81d + _0x209e31(0x229) + _0x31ee44[_0x209e31(_0xe15d74._0xf36a10)] + ':\x20' + _0x31ee44[_0x209e31(0x23f)] + formatAttachmentSuffix(_0x31ee44[_0x209e31(_0xe15d74._0x586dab)]);
|
|
1008
|
-
})[_0x5af5a3(_0x8029e0._0x49d51b)]('\x0a');
|
|
973
|
+
function formatCheckMessages(_0xc712b0) {
|
|
974
|
+
const _0x528e4e = {
|
|
975
|
+
_0xd5d82d: 0x2ed,
|
|
976
|
+
_0x179190: 0x32f
|
|
977
|
+
}, _0x54af61 = {
|
|
978
|
+
_0x144bc6: 0x1d7,
|
|
979
|
+
_0x53ecc8: 0x317,
|
|
980
|
+
_0x14c29a: 0x24a
|
|
981
|
+
}, _0x5d12d7 = _0x5e2837;
|
|
982
|
+
if (_0xc712b0[_0x5d12d7(0x1d5)] === 0x0)
|
|
983
|
+
return _0x5d12d7(0x2c5);
|
|
984
|
+
return _0xc712b0[_0x5d12d7(_0x528e4e._0xd5d82d)](_0x3713ff => {
|
|
985
|
+
const _0xeda05e = _0x5d12d7, _0x1904ed = _0x3713ff[_0xeda05e(0x319)] === _0xeda05e(0x225) ? _0xeda05e(_0x54af61._0x144bc6) : '';
|
|
986
|
+
return _0xeda05e(_0x54af61._0x53ecc8) + _0x3713ff['target'] + _0xeda05e(0x1b1) + _0x3713ff['messageId'][_0xeda05e(_0x54af61._0x14c29a)](0x0, 0x8) + _0xeda05e(0x231) + toLocalTime(_0x3713ff[_0xeda05e(0x26c)]) + _0x1904ed + _0xeda05e(0x25c) + _0x3713ff[_0xeda05e(0x1b2)] + ':\x20' + _0x3713ff[_0xeda05e(0x2ef)] + formatAttachmentSuffix(_0x3713ff['attachments']);
|
|
987
|
+
})[_0x5d12d7(_0x528e4e._0x179190)]('\x0a');
|
|
1009
988
|
}
|
|
1010
|
-
function formatHistory(
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
989
|
+
function formatHistory(_0xa28882) {
|
|
990
|
+
const _0x17b901 = {
|
|
991
|
+
_0x4ebc08: 0x1d5,
|
|
992
|
+
_0x4b8b6f: 0x22b,
|
|
993
|
+
_0x3467ca: 0x2fb,
|
|
994
|
+
_0x2ec5b2: 0x2ed,
|
|
995
|
+
_0x57bc06: 0x307,
|
|
996
|
+
_0x243c2c: 0x265,
|
|
997
|
+
_0x490798: 0x233
|
|
998
|
+
}, _0x54ca60 = {
|
|
999
|
+
_0x1c931c: 0x319,
|
|
1000
|
+
_0x41d5bc: 0x223,
|
|
1001
|
+
_0x40631d: 0x1b1,
|
|
1002
|
+
_0x18c680: 0x25c,
|
|
1003
|
+
_0x3e809c: 0x314
|
|
1004
|
+
}, _0x28c049 = _0x5e2837;
|
|
1005
|
+
if (_0xa28882[_0x28c049(0x265)][_0x28c049(_0x17b901._0x4ebc08)] === 0x0)
|
|
1006
|
+
return _0x28c049(0x30c) + _0xa28882[_0x28c049(_0x17b901._0x4b8b6f)] + _0x28c049(_0x17b901._0x3467ca);
|
|
1007
|
+
const _0x3a215f = _0xa28882[_0x28c049(0x265)][_0x28c049(_0x17b901._0x2ec5b2)](_0x2c9dd2 => {
|
|
1008
|
+
const _0x19670e = _0x28c049, _0x2c9f34 = _0x2c9dd2[_0x19670e(_0x54ca60._0x1c931c)] === _0x19670e(0x225) ? _0x19670e(0x1d7) : '';
|
|
1009
|
+
return _0x19670e(0x327) + _0x2c9dd2[_0x19670e(_0x54ca60._0x41d5bc)] + _0x19670e(_0x54ca60._0x40631d) + _0x2c9dd2[_0x19670e(0x270)] + _0x19670e(0x231) + toLocalTime(_0x2c9dd2[_0x19670e(0x26c)]) + _0x2c9f34 + _0x19670e(_0x54ca60._0x18c680) + _0x2c9dd2['senderName'] + ':\x20' + _0x2c9dd2['content'] + formatAttachmentSuffix(_0x2c9dd2[_0x19670e(_0x54ca60._0x3e809c)]);
|
|
1010
|
+
})[_0x28c049(0x32f)]('\x0a'), _0x56e10b = _0xa28882['hasMore'] && _0xa28882[_0x28c049(_0x17b901._0x57bc06)] ? _0x28c049(0x24e) + _0xa28882[_0x28c049(0x265)]['length'] + '\x20messages\x20shown.\x20Use\x20before=' + _0xa28882[_0x28c049(_0x17b901._0x57bc06)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1011
|
+
return _0x28c049(0x30c) + _0xa28882[_0x28c049(_0x17b901._0x4b8b6f)] + '\x20(' + _0xa28882[_0x28c049(_0x17b901._0x243c2c)]['length'] + _0x28c049(_0x17b901._0x490798) + _0x3a215f + _0x56e10b;
|
|
1032
1012
|
}
|
|
1033
|
-
function formatServerDirectory(
|
|
1034
|
-
const
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
_0x261430: 0x195,
|
|
1042
|
-
_0x26451c: 0x1d2,
|
|
1043
|
-
_0x446629: 0x15d,
|
|
1044
|
-
_0x285418: 0x21c,
|
|
1045
|
-
_0x4f2f2b: 0x18d,
|
|
1046
|
-
_0x4d2945: 0x27b
|
|
1047
|
-
}, _0x569ec0 = _0x15d6d8, _0x41ec80 = _0x32bdf4[_0x569ec0(_0x518eac._0x29649e)][_0x569ec0(_0x518eac._0x357b79)] > 0x0 ? _0x32bdf4[_0x569ec0(_0x518eac._0x29649e)][_0x569ec0(_0x518eac._0x8b1180)](_0x469ead => _0x469ead[_0x569ec0(0x13d)] ? _0x569ec0(0x1fa) + _0x469ead[_0x569ec0(0x130)] + _0x569ec0(0x231) + _0x469ead[_0x569ec0(0x13d)] : _0x569ec0(0x1fa) + _0x469ead[_0x569ec0(0x130)])[_0x569ec0(_0x518eac._0x469548)]('\x0a') : _0x569ec0(0x195), _0x159029 = _0x32bdf4[_0x569ec0(0x14d)][_0x569ec0(_0x518eac._0x2a446d)] > 0x0 ? _0x32bdf4[_0x569ec0(_0x518eac._0x3377df)]['map'](_0x2a551d => '-\x20@' + _0x2a551d['name'])[_0x569ec0(0x15d)]('\x0a') : _0x569ec0(_0x518eac._0x261430), _0x5dbd32 = _0x32bdf4[_0x569ec0(0x1d2)][_0x569ec0(_0x518eac._0x2a446d)] > 0x0 ? _0x32bdf4[_0x569ec0(_0x518eac._0x26451c)][_0x569ec0(0x208)](_0x3fc970 => _0x569ec0(0x2a6) + _0x3fc970['name'])[_0x569ec0(_0x518eac._0x446629)]('\x0a') : _0x569ec0(_0x518eac._0x261430);
|
|
1013
|
+
function formatServerDirectory(_0x12d992) {
|
|
1014
|
+
const _0x14de63 = {
|
|
1015
|
+
_0x2f6fac: 0x32f,
|
|
1016
|
+
_0x48d656: 0x2ed,
|
|
1017
|
+
_0x41984e: 0x21a,
|
|
1018
|
+
_0x196a69: 0x224,
|
|
1019
|
+
_0xf13620: 0x2a7
|
|
1020
|
+
}, _0x1423bb = _0x5e2837, _0x215513 = _0x12d992[_0x1423bb(0x1e4)]['length'] > 0x0 ? _0x12d992[_0x1423bb(0x1e4)]['map'](_0x4e96cd => _0x4e96cd['description'] ? _0x1423bb(0x311) + _0x4e96cd['name'] + '\x20—\x20' + _0x4e96cd[_0x1423bb(0x1e6)] : _0x1423bb(0x311) + _0x4e96cd['name'])[_0x1423bb(_0x14de63._0x2f6fac)]('\x0a') : _0x1423bb(0x1d6), _0x5dc2d6 = _0x12d992[_0x1423bb(0x2ad)][_0x1423bb(0x1d5)] > 0x0 ? _0x12d992['agents'][_0x1423bb(_0x14de63._0x48d656)](_0x5c9b88 => '-\x20@' + _0x5c9b88[_0x1423bb(0x1a9)])[_0x1423bb(0x32f)]('\x0a') : _0x1423bb(0x1d6), _0x469212 = _0x12d992[_0x1423bb(_0x14de63._0x41984e)][_0x1423bb(0x1d5)] > 0x0 ? _0x12d992['humans'][_0x1423bb(0x2ed)](_0x21dff8 => _0x1423bb(0x28c) + _0x21dff8['name'])[_0x1423bb(0x32f)]('\x0a') : _0x1423bb(0x1d6);
|
|
1048
1021
|
return [
|
|
1049
|
-
|
|
1022
|
+
_0x1423bb(_0x14de63._0x196a69) + _0x12d992[_0x1423bb(0x204)],
|
|
1050
1023
|
'',
|
|
1051
|
-
|
|
1052
|
-
|
|
1024
|
+
_0x1423bb(0x1a8),
|
|
1025
|
+
_0x215513,
|
|
1053
1026
|
'',
|
|
1054
|
-
|
|
1055
|
-
|
|
1027
|
+
'###\x20Agents',
|
|
1028
|
+
_0x5dc2d6,
|
|
1056
1029
|
'',
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
][
|
|
1030
|
+
_0x1423bb(_0x14de63._0xf13620),
|
|
1031
|
+
_0x469212
|
|
1032
|
+
][_0x1423bb(0x32f)]('\x0a');
|
|
1060
1033
|
}
|
|
1061
|
-
function formatUploadResult(
|
|
1062
|
-
const
|
|
1063
|
-
|
|
1064
|
-
_0x278026: 0x167
|
|
1065
|
-
}, _0x5693b5 = _0x15d6d8;
|
|
1066
|
-
return _0x5693b5(0x240) + _0x11c05b[_0x5693b5(_0x1297e9._0x40413a)] + '\x20(' + (_0x11c05b['sizeBytes'] / 0x400)[_0x5693b5(0x1bc)](0x1) + _0x5693b5(_0x1297e9._0x278026) + _0x11c05b['attachmentId'] + _0x5693b5(0x14c);
|
|
1034
|
+
function formatUploadResult(_0x320442) {
|
|
1035
|
+
const _0x32bbf3 = { _0x19a910: 0x230 }, _0x118959 = _0x5e2837;
|
|
1036
|
+
return _0x118959(0x315) + _0x320442['filename'] + '\x20(' + (_0x320442['sizeBytes'] / 0x400)[_0x118959(_0x32bbf3._0x19a910)](0x1) + _0x118959(0x299) + _0x320442['attachmentId'] + _0x118959(0x1da);
|
|
1067
1037
|
}
|
|
1068
|
-
function formatViewFileResult(
|
|
1069
|
-
const
|
|
1070
|
-
return
|
|
1038
|
+
function formatViewFileResult(_0x5dffb5, _0x1a17d6) {
|
|
1039
|
+
const _0x2d2630 = { _0x17f03b: 0x1fc }, _0x2ba38c = _0x5e2837;
|
|
1040
|
+
return _0x1a17d6 ? _0x2ba38c(0x272) + _0x5dffb5 : _0x2ba38c(_0x2d2630._0x17f03b) + _0x5dffb5;
|
|
1071
1041
|
}
|
|
1072
|
-
function formatTaskList(
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
return _0x36ce51[_0x206037(_0x2cb346._0x28fdcb)](_0x1dacb2 => {
|
|
1088
|
-
const _0x2a2811 = _0x206037, _0x4f8175 = _0x1dacb2[_0x2a2811(0x16d)] == null ? _0x2a2811(_0x3b16f7._0x266e12) : '#' + _0x1dacb2[_0x2a2811(_0x3b16f7._0x17151a)], _0x36e225 = _0x1dacb2['messageId'] ? _0x2a2811(0x272) + _0x1dacb2['messageId'] : '', _0x5b7323 = _0x1b9da5 && _0x1dacb2[_0x2a2811(0x16d)] != null && _0x1b9da5['has'](_0x1dacb2[_0x2a2811(_0x3b16f7._0x10a099)]) ? _0x2a2811(_0x3b16f7._0x538105) : '';
|
|
1089
|
-
return _0x4f8175 + '\x20[' + _0x1dacb2['status'] + ']\x20' + _0x1dacb2[_0x2a2811(_0x3b16f7._0x4e3123)] + _0x36e225 + _0x5b7323;
|
|
1090
|
-
})[_0x206037(_0x2cb346._0xb1781e)]('\x0a');
|
|
1042
|
+
function formatTaskList(_0x62a7d1, _0x49452e) {
|
|
1043
|
+
const _0x6a2d7d = { _0x13702a: 0x1d5 }, _0x48614d = {
|
|
1044
|
+
_0x4c877a: 0x293,
|
|
1045
|
+
_0x257c72: 0x270,
|
|
1046
|
+
_0x2a91fe: 0x1c3,
|
|
1047
|
+
_0x5cebcd: 0x2c8,
|
|
1048
|
+
_0x2f8aff: 0x24f,
|
|
1049
|
+
_0x180ce6: 0x215
|
|
1050
|
+
}, _0x5e696a = _0x5e2837;
|
|
1051
|
+
if (_0x62a7d1[_0x5e696a(_0x6a2d7d._0x13702a)] === 0x0)
|
|
1052
|
+
return 'No\x20tasks\x20found.';
|
|
1053
|
+
return _0x62a7d1['map'](_0x1857fc => {
|
|
1054
|
+
const _0x162ad0 = _0x5e696a, _0x20da7c = _0x1857fc['taskNumber'] == null ? _0x162ad0(_0x48614d._0x4c877a) : '#' + _0x1857fc['taskNumber'], _0x286fb3 = _0x1857fc[_0x162ad0(_0x48614d._0x257c72)] ? _0x162ad0(_0x48614d._0x2a91fe) + _0x1857fc['messageId'] : '', _0x5ea0ef = _0x49452e && _0x1857fc['taskNumber'] != null && _0x49452e[_0x162ad0(_0x48614d._0x5cebcd)](_0x1857fc[_0x162ad0(_0x48614d._0x2f8aff)]) ? _0x162ad0(_0x48614d._0x180ce6) : '';
|
|
1055
|
+
return _0x20da7c + '\x20[' + _0x1857fc[_0x162ad0(0x2b9)] + ']\x20' + _0x1857fc[_0x162ad0(0x2f4)] + _0x286fb3 + _0x5ea0ef;
|
|
1056
|
+
})['join']('\x0a');
|
|
1091
1057
|
}
|
|
1092
|
-
function formatCreatedTasks(
|
|
1093
|
-
const
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
},
|
|
1097
|
-
if (
|
|
1098
|
-
return
|
|
1099
|
-
return
|
|
1100
|
-
const
|
|
1101
|
-
return
|
|
1102
|
-
})[
|
|
1058
|
+
function formatCreatedTasks(_0x4691aa) {
|
|
1059
|
+
const _0x4819b9 = { _0x158b00: 0x2ed }, _0x18eb0f = {
|
|
1060
|
+
_0x4dd2a3: 0x24f,
|
|
1061
|
+
_0x3de714: 0x24f
|
|
1062
|
+
}, _0x1ca9f1 = _0x5e2837;
|
|
1063
|
+
if (_0x4691aa[_0x1ca9f1(0x1d5)] === 0x0)
|
|
1064
|
+
return 'No\x20tasks\x20created.';
|
|
1065
|
+
return _0x4691aa[_0x1ca9f1(_0x4819b9._0x158b00)](_0x1381b3 => {
|
|
1066
|
+
const _0x95cfd0 = _0x1ca9f1, _0x532e8a = _0x1381b3[_0x95cfd0(_0x18eb0f._0x4dd2a3)] == null ? _0x95cfd0(0x293) : '#' + _0x1381b3[_0x95cfd0(_0x18eb0f._0x3de714)];
|
|
1067
|
+
return _0x532e8a + '\x20' + _0x1381b3[_0x95cfd0(0x2f4)] + _0x95cfd0(0x1c3) + _0x1381b3[_0x95cfd0(0x270)];
|
|
1068
|
+
})[_0x1ca9f1(0x32f)]('\x0a');
|
|
1103
1069
|
}
|
|
1104
|
-
function formatClaimTaskResults(
|
|
1105
|
-
const
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1070
|
+
function formatClaimTaskResults(_0x4a953a) {
|
|
1071
|
+
const _0x352173 = {
|
|
1072
|
+
_0x2ecb14: 0x1d5,
|
|
1073
|
+
_0x15a2c3: 0x2c1
|
|
1074
|
+
}, _0x44066c = {
|
|
1075
|
+
_0x96614b: 0x24f,
|
|
1076
|
+
_0x40999c: 0x24f,
|
|
1077
|
+
_0xf5af6e: 0x270,
|
|
1078
|
+
_0x5a78ac: 0x30f,
|
|
1079
|
+
_0xec17cb: 0x2f7,
|
|
1080
|
+
_0xd4d3cb: 0x216,
|
|
1081
|
+
_0x1a400c: 0x268,
|
|
1082
|
+
_0x265dc0: 0x2fc,
|
|
1083
|
+
_0x55209a: 0x23d,
|
|
1084
|
+
_0x30eb45: 0x2f3,
|
|
1085
|
+
_0x300ded: 0x2ac,
|
|
1086
|
+
_0x2d6d2b: 0x24f
|
|
1087
|
+
}, _0x37bfe0 = _0x5e2837;
|
|
1088
|
+
if (_0x4a953a[_0x37bfe0(_0x352173._0x2ecb14)] === 0x0)
|
|
1089
|
+
return _0x37bfe0(_0x352173._0x15a2c3);
|
|
1090
|
+
return _0x4a953a[_0x37bfe0(0x2ed)](_0x2de6f6 => {
|
|
1091
|
+
const _0x3daaa3 = _0x37bfe0;
|
|
1092
|
+
if (_0x2de6f6['success']) {
|
|
1093
|
+
const _0x9ecb32 = _0x2de6f6[_0x3daaa3(_0x44066c._0x96614b)] == null ? '(legacy)' : '#' + _0x2de6f6[_0x3daaa3(_0x44066c._0x40999c)], _0x207b64 = _0x2de6f6[_0x3daaa3(_0x44066c._0xf5af6e)] ? '\x20message=' + _0x2de6f6['messageId'] : '';
|
|
1094
|
+
if (_0x2de6f6[_0x3daaa3(_0x44066c._0x5a78ac)]) {
|
|
1095
|
+
const _0x443d93 = [
|
|
1096
|
+
'workerHandoff=true',
|
|
1097
|
+
_0x2de6f6[_0x3daaa3(_0x44066c._0xec17cb)] ? 'stopMain=true' : null,
|
|
1098
|
+
_0x2de6f6[_0x3daaa3(0x22f)] ? _0x3daaa3(0x31f) + _0x2de6f6[_0x3daaa3(0x22f)] : null,
|
|
1099
|
+
_0x2de6f6['threadTarget'] ? 'threadTarget=' + _0x2de6f6[_0x3daaa3(0x1f3)] : null,
|
|
1100
|
+
_0x2de6f6[_0x3daaa3(_0x44066c._0xd4d3cb)] ? _0x3daaa3(_0x44066c._0x1a400c) + _0x2de6f6['workerDisposition'] : null
|
|
1101
|
+
][_0x3daaa3(_0x44066c._0x265dc0)](Boolean)['join']('\x20');
|
|
1102
|
+
return _0x9ecb32 + _0x3daaa3(_0x44066c._0x55209a) + _0x207b64 + '\x20' + _0x443d93 + _0x3daaa3(0x1db);
|
|
1103
|
+
}
|
|
1104
|
+
const _0x316fa7 = _0x2de6f6[_0x3daaa3(_0x44066c._0x30eb45)] ? _0x3daaa3(_0x44066c._0x300ded) + _0x2de6f6['workerHandoffError'] : '';
|
|
1105
|
+
return _0x9ecb32 + _0x3daaa3(_0x44066c._0x55209a) + _0x207b64 + _0x316fa7;
|
|
1136
1106
|
}
|
|
1137
|
-
const
|
|
1138
|
-
return
|
|
1107
|
+
const _0x407eaa = _0x2de6f6[_0x3daaa3(_0x44066c._0x96614b)] == null ? _0x2de6f6['messageId'] ?? _0x3daaa3(0x1e2) : '#' + _0x2de6f6[_0x3daaa3(_0x44066c._0x2d6d2b)];
|
|
1108
|
+
return _0x407eaa + _0x3daaa3(0x2b0) + (_0x2de6f6[_0x3daaa3(0x28e)] ?? _0x3daaa3(0x1d8));
|
|
1139
1109
|
})['join']('\x0a');
|
|
1140
1110
|
}
|
|
1141
|
-
function formatUnclaimTaskResult(
|
|
1142
|
-
const
|
|
1143
|
-
|
|
1144
|
-
_0x4edfe9: 0x211
|
|
1145
|
-
}, _0x579db0 = _0x15d6d8, _0x59da56 = _0x27ba99[_0x579db0(_0x2ea1c2._0x4bf6ef)] == null ? '(legacy)' : '#' + _0x27ba99[_0x579db0(_0x2ea1c2._0x4bf6ef)];
|
|
1146
|
-
return _0x59da56 + _0x579db0(_0x2ea1c2._0x4edfe9) + _0x27ba99[_0x579db0(0x27f)];
|
|
1111
|
+
function formatUnclaimTaskResult(_0x2d325f) {
|
|
1112
|
+
const _0x34e930 = { _0x509cff: 0x2fe }, _0x1c2d8e = _0x5e2837, _0x36aaeb = _0x2d325f[_0x1c2d8e(0x24f)] == null ? _0x1c2d8e(0x293) : '#' + _0x2d325f['taskNumber'];
|
|
1113
|
+
return _0x36aaeb + _0x1c2d8e(_0x34e930._0x509cff) + _0x2d325f[_0x1c2d8e(0x2b9)];
|
|
1147
1114
|
}
|
|
1148
|
-
function formatUpdateTaskStatusResult(
|
|
1149
|
-
const
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1115
|
+
function formatUpdateTaskStatusResult(_0x2748ae) {
|
|
1116
|
+
const _0xe71077 = {
|
|
1117
|
+
_0x526b4c: 0x24f,
|
|
1118
|
+
_0x15e0af: 0x2fe,
|
|
1119
|
+
_0x24b108: 0x2b9
|
|
1120
|
+
}, _0x509b8f = _0x5e2837, _0x2a64f3 = _0x2748ae[_0x509b8f(_0xe71077._0x526b4c)] == null ? '(legacy)' : '#' + _0x2748ae[_0x509b8f(0x24f)];
|
|
1121
|
+
return _0x2a64f3 + _0x509b8f(_0xe71077._0x15e0af) + _0x2748ae[_0x509b8f(_0xe71077._0x24b108)];
|
|
1154
1122
|
}
|
|
1155
1123
|
function getChatBridgeToolDefinitions() {
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
_0x429f70: 0x27e
|
|
1167
|
-
}, _0x4ba0ad = _0x15d6d8;
|
|
1124
|
+
const _0xf1c743 = {
|
|
1125
|
+
_0x1efac9: 0x1f6,
|
|
1126
|
+
_0x5ec11a: 0x2fd,
|
|
1127
|
+
_0x523c84: 0x1e1,
|
|
1128
|
+
_0x5b0c77: 0x249,
|
|
1129
|
+
_0x5b4771: 0x251,
|
|
1130
|
+
_0x47fe54: 0x2eb,
|
|
1131
|
+
_0x40a7a0: 0x26a,
|
|
1132
|
+
_0x5389be: 0x2aa
|
|
1133
|
+
}, _0x2596ef = _0x5e2837;
|
|
1168
1134
|
return [
|
|
1169
|
-
{ 'name':
|
|
1170
|
-
{ 'name':
|
|
1171
|
-
{ 'name':
|
|
1172
|
-
{ 'name':
|
|
1173
|
-
{ 'name':
|
|
1174
|
-
{ 'name':
|
|
1175
|
-
{ 'name':
|
|
1176
|
-
{ 'name':
|
|
1177
|
-
{ 'name':
|
|
1178
|
-
{ 'name':
|
|
1179
|
-
{ 'name':
|
|
1180
|
-
{ 'name':
|
|
1181
|
-
{ 'name':
|
|
1182
|
-
{ 'name':
|
|
1183
|
-
{ 'name':
|
|
1135
|
+
{ 'name': _0x2596ef(_0xf1c743._0x1efac9) },
|
|
1136
|
+
{ 'name': _0x2596ef(0x285) },
|
|
1137
|
+
{ 'name': 'read_history' },
|
|
1138
|
+
{ 'name': 'list_server' },
|
|
1139
|
+
{ 'name': 'upload_file' },
|
|
1140
|
+
{ 'name': 'view_file' },
|
|
1141
|
+
{ 'name': _0x2596ef(0x2a4) },
|
|
1142
|
+
{ 'name': _0x2596ef(_0xf1c743._0x5ec11a) },
|
|
1143
|
+
{ 'name': _0x2596ef(_0xf1c743._0x523c84) },
|
|
1144
|
+
{ 'name': _0x2596ef(_0xf1c743._0x5b0c77) },
|
|
1145
|
+
{ 'name': _0x2596ef(0x28f) },
|
|
1146
|
+
{ 'name': _0x2596ef(_0xf1c743._0x5b4771) },
|
|
1147
|
+
{ 'name': _0x2596ef(_0xf1c743._0x47fe54) },
|
|
1148
|
+
{ 'name': _0x2596ef(_0xf1c743._0x40a7a0) },
|
|
1149
|
+
{ 'name': _0x2596ef(_0xf1c743._0x5389be) },
|
|
1184
1150
|
{ 'name': 'mark_waiting_input' }
|
|
1185
1151
|
];
|
|
1186
1152
|
}
|
|
1187
|
-
function createChatBridgeHandlers(
|
|
1188
|
-
const
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
},
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1153
|
+
function createChatBridgeHandlers(_0x2f60a6) {
|
|
1154
|
+
const _0x44662d = {
|
|
1155
|
+
_0x30d80d: 0x2d2,
|
|
1156
|
+
_0x1a6f0d: 0x1c1,
|
|
1157
|
+
_0x36bf90: 0x328,
|
|
1158
|
+
_0x2c9079: 0x28e
|
|
1159
|
+
}, _0x69134a = {
|
|
1160
|
+
_0x37f00f: 0x1ba,
|
|
1161
|
+
_0x107280: 0x2df,
|
|
1162
|
+
_0x2ffb8e: 0x253,
|
|
1163
|
+
_0x684464: 0x271,
|
|
1164
|
+
_0x452919: 0x1ff
|
|
1165
|
+
}, _0x4c67fc = {
|
|
1166
|
+
_0xdd3c1: 0x1ba,
|
|
1167
|
+
_0x194dcd: 0x253,
|
|
1168
|
+
_0x2ca060: 0x271,
|
|
1169
|
+
_0x154c22: 0x2d7,
|
|
1170
|
+
_0x1ee897: 0x1a3,
|
|
1171
|
+
_0x319c5f: 0x1c1,
|
|
1172
|
+
_0x1aec1f: 0x2d7
|
|
1173
|
+
}, _0x5ca4ff = {
|
|
1174
|
+
_0x28dd16: 0x1ba,
|
|
1175
|
+
_0x3f7a7d: 0x2d2,
|
|
1176
|
+
_0x2f4d7f: 0x221,
|
|
1177
|
+
_0x51d3ae: 0x271,
|
|
1178
|
+
_0x329f84: 0x21e,
|
|
1179
|
+
_0x2e59f6: 0x308,
|
|
1180
|
+
_0x35d2a1: 0x245
|
|
1181
|
+
}, _0x11cf74 = {
|
|
1182
|
+
_0x54fd35: 0x1ba,
|
|
1183
|
+
_0x42e8b3: 0x1ba,
|
|
1184
|
+
_0x51ec05: 0x2ee,
|
|
1185
|
+
_0x51427c: 0x2b3,
|
|
1186
|
+
_0x1e75f7: 0x2b9
|
|
1187
|
+
}, _0x1557ff = {
|
|
1188
|
+
_0x470793: 0x218,
|
|
1189
|
+
_0x1f8186: 0x281,
|
|
1190
|
+
_0x1036e3: 0x212,
|
|
1191
|
+
_0x49ad40: 0x24c,
|
|
1192
|
+
_0x4168a1: 0x228
|
|
1193
|
+
}, _0x19dda4 = {
|
|
1194
|
+
_0x4a1726: 0x2e9,
|
|
1195
|
+
_0x44dc0f: 0x290
|
|
1196
|
+
}, _0x141195 = { _0x137249: 0x23a }, _0x174c47 = { _0x2fab89: 0x1b6 }, _0xff0955 = {
|
|
1197
|
+
_0x1e3923: 0x2e0,
|
|
1198
|
+
_0x3fdd19: 0x2ed
|
|
1199
|
+
}, _0x1f019a = {
|
|
1200
|
+
_0x2d73d4: 0x270,
|
|
1201
|
+
_0x52cffd: 0x2d9
|
|
1202
|
+
}, _0x44d603 = { _0x4b743: 0x2b1 }, _0x1d14de = {
|
|
1203
|
+
_0x45ad7d: 0x1ba,
|
|
1204
|
+
_0xe383ef: 0x2ee,
|
|
1205
|
+
_0x47b74e: 0x1a5,
|
|
1206
|
+
_0x45980f: 0x2b9,
|
|
1207
|
+
_0x2acf2d: 0x30a,
|
|
1208
|
+
_0x2adb2c: 0x24a,
|
|
1209
|
+
_0x5487c2: 0x1d5,
|
|
1210
|
+
_0x7e8e9c: 0x208,
|
|
1211
|
+
_0x65f13f: 0x24f,
|
|
1212
|
+
_0x12d0e7: 0x2bf,
|
|
1213
|
+
_0x48e2bf: 0x326,
|
|
1214
|
+
_0x1ef0a2: 0x24f,
|
|
1215
|
+
_0x592a82: 0x2b1
|
|
1216
|
+
}, _0x5db96d = { _0x5d703c: 0x1b6 }, _0x2e8dac = { _0x27d9b7: 0x209 }, _0x16599d = { _0x502245: 0x287 }, _0x816090 = {
|
|
1217
|
+
_0x3b2b38: 0x1ba,
|
|
1218
|
+
_0xc37d55: 0x1b6,
|
|
1219
|
+
_0x4cbe1b: 0x2a8,
|
|
1220
|
+
_0x4d7dc: 0x305,
|
|
1221
|
+
_0x366848: 0x24f,
|
|
1222
|
+
_0x2ebdc7: 0x293,
|
|
1223
|
+
_0x32d9d8: 0x317,
|
|
1224
|
+
_0x2ddcaa: 0x258,
|
|
1225
|
+
_0x40d103: 0x2ef,
|
|
1226
|
+
_0x25e9f5: 0x201,
|
|
1227
|
+
_0x51ed5b: 0x2db,
|
|
1228
|
+
_0x39d934: 0x232,
|
|
1229
|
+
_0x298ca9: 0x31a,
|
|
1230
|
+
_0x5556cb: 0x321,
|
|
1231
|
+
_0xe4d2a8: 0x273,
|
|
1232
|
+
_0x3557c1: 0x261,
|
|
1233
|
+
_0x560270: 0x21b,
|
|
1234
|
+
_0x5e220f: 0x240,
|
|
1235
|
+
_0x55ff73: 0x2ae
|
|
1236
|
+
}, _0x422b35 = {
|
|
1237
|
+
_0x451234: 0x321,
|
|
1238
|
+
_0x511630: 0x23f,
|
|
1239
|
+
_0x122601: 0x20c,
|
|
1240
|
+
_0x533f20: 0x2ee,
|
|
1241
|
+
_0x1cab97: 0x1a5,
|
|
1242
|
+
_0x1050c5: 0x30a
|
|
1243
|
+
}, _0x1d058a = {
|
|
1244
|
+
_0x53693b: 0x23f,
|
|
1245
|
+
_0x50d26f: 0x310,
|
|
1246
|
+
_0x5c0096: 0x1b6,
|
|
1247
|
+
_0x1dc894: 0x265,
|
|
1248
|
+
_0x3bc0fc: 0x208,
|
|
1249
|
+
_0x56640c: 0x24f,
|
|
1250
|
+
_0xc32694: 0x24f,
|
|
1251
|
+
_0x58775a: 0x270,
|
|
1252
|
+
_0x5dc8cb: 0x1e3,
|
|
1253
|
+
_0x364295: 0x29c,
|
|
1254
|
+
_0x2ab994: 0x219,
|
|
1255
|
+
_0x13db85: 0x2ef,
|
|
1256
|
+
_0x136d4e: 0x31d,
|
|
1257
|
+
_0xf0eca8: 0x279,
|
|
1258
|
+
_0x27d305: 0x31a,
|
|
1259
|
+
_0x267341: 0x22e,
|
|
1260
|
+
_0x58c5b2: 0x321,
|
|
1261
|
+
_0x503e13: 0x2d9,
|
|
1262
|
+
_0x47b85d: 0x2ee,
|
|
1263
|
+
_0x81084b: 0x1c1,
|
|
1264
|
+
_0x187729: 0x1b7,
|
|
1265
|
+
_0x45a831: 0x2ea,
|
|
1266
|
+
_0x3918c7: 0x1bf,
|
|
1267
|
+
_0x44ed89: 0x2be
|
|
1281
1268
|
};
|
|
1282
|
-
async function
|
|
1283
|
-
const
|
|
1284
|
-
if (!
|
|
1269
|
+
async function _0x580ff3(_0x397102) {
|
|
1270
|
+
const _0x324a3c = _0x34a4;
|
|
1271
|
+
if (!_0x2f60a6[_0x324a3c(0x1ba)] || !_0x2f60a6[_0x324a3c(0x321)] || _0x2f60a6[_0x324a3c(_0x1d058a._0x53693b)] || _0x2f60a6['workerModeEnabled'] !== !![])
|
|
1285
1272
|
return null;
|
|
1286
|
-
const
|
|
1287
|
-
if (
|
|
1273
|
+
const _0x7708d6 = parseTarget(_0x397102[_0x324a3c(0x22b)]);
|
|
1274
|
+
if (_0x7708d6['kind'] !== 'channel')
|
|
1288
1275
|
return null;
|
|
1289
|
-
const
|
|
1290
|
-
let
|
|
1276
|
+
const _0x3ec625 = _0x397102['threadNumber'] != null ? _0x7708d6['channelTarget'] + ':t' + _0x397102[_0x324a3c(_0x1d058a._0x50d26f)] : _0x7708d6[_0x324a3c(0x2e8)] + ':' + _0x397102[_0x324a3c(0x270)];
|
|
1277
|
+
let _0x47e2ef;
|
|
1291
1278
|
try {
|
|
1292
|
-
const
|
|
1293
|
-
'channel':
|
|
1279
|
+
const _0x3a31f8 = await _0x2f60a6[_0x324a3c(_0x1d058a._0x5c0096)][_0x324a3c(0x209)]({
|
|
1280
|
+
'channel': _0x3ec625,
|
|
1294
1281
|
'limit': 0x14
|
|
1295
1282
|
});
|
|
1296
|
-
|
|
1283
|
+
_0x47e2ef = _0x3a31f8[_0x324a3c(_0x1d058a._0x1dc894)][_0x324a3c(_0x1d058a._0x3bc0fc)](_0x57b36e => _0x57b36e['messageId'] === _0x397102[_0x324a3c(0x270)]);
|
|
1297
1284
|
} catch {
|
|
1298
|
-
|
|
1285
|
+
_0x47e2ef = void 0x0;
|
|
1299
1286
|
}
|
|
1300
|
-
const
|
|
1301
|
-
|
|
1287
|
+
const _0x20449d = _0x397102[_0x324a3c(_0x1d058a._0x56640c)] == null ? '(legacy)' : '#' + _0x397102[_0x324a3c(_0x1d058a._0xc32694)], _0x29a6ab = [
|
|
1288
|
+
_0x324a3c(0x317) + _0x3ec625 + '\x20msg=' + _0x397102[_0x324a3c(_0x1d058a._0x58775a)]['slice'](0x0, 0x8) + _0x324a3c(0x231) + new Date()[_0x324a3c(_0x1d058a._0x5dc8cb)]() + _0x324a3c(0x266) + _0x20449d + _0x324a3c(_0x1d058a._0x364295),
|
|
1302
1289
|
'',
|
|
1303
|
-
|
|
1290
|
+
_0x47e2ef ? _0x324a3c(_0x1d058a._0x2ab994) + _0x47e2ef[_0x324a3c(_0x1d058a._0x13db85)] : _0x324a3c(_0x1d058a._0x136d4e) + _0x397102[_0x324a3c(_0x1d058a._0x58775a)],
|
|
1304
1291
|
'',
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
][
|
|
1308
|
-
'method':
|
|
1309
|
-
'headers': { 'Content-Type':
|
|
1310
|
-
'body': JSON[
|
|
1311
|
-
'agent_id':
|
|
1312
|
-
'thread_target':
|
|
1292
|
+
'Thread\x20target:\x20' + _0x3ec625,
|
|
1293
|
+
_0x324a3c(_0x1d058a._0xf0eca8)
|
|
1294
|
+
]['join']('\x0a'), _0x3f98ff = await fetch(_0x2f60a6['daemonLocalUrl'] + _0x324a3c(_0x1d058a._0x27d305), {
|
|
1295
|
+
'method': _0x324a3c(_0x1d058a._0x267341),
|
|
1296
|
+
'headers': { 'Content-Type': _0x324a3c(0x253) },
|
|
1297
|
+
'body': JSON[_0x324a3c(0x245)]({
|
|
1298
|
+
'agent_id': _0x2f60a6[_0x324a3c(_0x1d058a._0x58c5b2)],
|
|
1299
|
+
'thread_target': _0x3ec625,
|
|
1313
1300
|
'spawn_packet': {
|
|
1314
|
-
'replyTarget':
|
|
1315
|
-
...
|
|
1301
|
+
'replyTarget': _0x3ec625,
|
|
1302
|
+
..._0x397102[_0x324a3c(0x2d9)] ? { 'taskId': _0x397102[_0x324a3c(_0x1d058a._0x503e13)] } : _0x397102[_0x324a3c(0x24f)] != null ? { 'taskId': _0x324a3c(0x2d0) + _0x397102[_0x324a3c(0x24f)] } : {}
|
|
1316
1303
|
},
|
|
1317
1304
|
'payload': {
|
|
1318
|
-
'mode':
|
|
1319
|
-
'text':
|
|
1305
|
+
'mode': _0x324a3c(0x261),
|
|
1306
|
+
'text': _0x29a6ab
|
|
1320
1307
|
}
|
|
1321
1308
|
})
|
|
1322
|
-
}),
|
|
1323
|
-
if (!
|
|
1324
|
-
throw new Error(
|
|
1309
|
+
}), _0x36f119 = await _0x3f98ff[_0x324a3c(_0x1d058a._0x47b85d)]();
|
|
1310
|
+
if (!_0x36f119['ok'])
|
|
1311
|
+
throw new Error(_0x36f119[_0x324a3c(_0x1d058a._0x81084b)] ?? _0x324a3c(0x1fd));
|
|
1325
1312
|
return {
|
|
1326
1313
|
'stopMain': !![],
|
|
1327
|
-
'threadTarget':
|
|
1328
|
-
'workerDisposition':
|
|
1314
|
+
'threadTarget': _0x3ec625,
|
|
1315
|
+
'workerDisposition': _0x36f119[_0x324a3c(_0x1d058a._0x187729)] === _0x324a3c(0x2ea) ? _0x324a3c(_0x1d058a._0x45a831) : _0x324a3c(_0x1d058a._0x3918c7),
|
|
1329
1316
|
'workerHandoff': !![],
|
|
1330
|
-
'workerSessionId':
|
|
1331
|
-
'executionMode':
|
|
1317
|
+
'workerSessionId': _0x36f119[_0x324a3c(_0x1d058a._0x44ed89)] ?? '',
|
|
1318
|
+
'executionMode': _0x324a3c(0x2c9)
|
|
1332
1319
|
};
|
|
1333
1320
|
}
|
|
1334
|
-
async function
|
|
1335
|
-
const
|
|
1336
|
-
if (!
|
|
1321
|
+
async function _0x4de151() {
|
|
1322
|
+
const _0x37cb4a = _0x34a4;
|
|
1323
|
+
if (!_0x2f60a6['daemonLocalUrl'] || !_0x2f60a6[_0x37cb4a(_0x422b35._0x451234)] || _0x2f60a6[_0x37cb4a(_0x422b35._0x511630)])
|
|
1337
1324
|
return null;
|
|
1338
1325
|
try {
|
|
1339
|
-
const
|
|
1340
|
-
if (!
|
|
1326
|
+
const _0x4eea50 = await fetch(_0x2f60a6[_0x37cb4a(0x1ba)] + _0x37cb4a(_0x422b35._0x122601) + encodeURIComponent(_0x2f60a6[_0x37cb4a(0x321)])), _0x1b5568 = await _0x4eea50[_0x37cb4a(_0x422b35._0x533f20)]();
|
|
1327
|
+
if (!_0x1b5568['ok'])
|
|
1341
1328
|
return null;
|
|
1342
|
-
const
|
|
1343
|
-
for (const
|
|
1344
|
-
|
|
1329
|
+
const _0x5b7666 = new Set();
|
|
1330
|
+
for (const _0x4432b7 of _0x1b5568[_0x37cb4a(_0x422b35._0x1cab97)]) {
|
|
1331
|
+
_0x4432b7[_0x37cb4a(0x2b9)] !== _0x37cb4a(0x29d) && _0x4432b7[_0x37cb4a(_0x422b35._0x1050c5)] && _0x5b7666[_0x37cb4a(0x2bf)](_0x4432b7[_0x37cb4a(0x30a)]);
|
|
1345
1332
|
}
|
|
1346
|
-
return
|
|
1333
|
+
return _0x5b7666[_0x37cb4a(0x1ab)] > 0x0 ? _0x5b7666 : null;
|
|
1347
1334
|
} catch {
|
|
1348
1335
|
return null;
|
|
1349
1336
|
}
|
|
1350
1337
|
}
|
|
1351
1338
|
return {
|
|
1352
|
-
async 'send_message'(
|
|
1353
|
-
const
|
|
1354
|
-
if (!
|
|
1355
|
-
const
|
|
1356
|
-
if (
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1339
|
+
async 'send_message'(_0x36a4a2) {
|
|
1340
|
+
const _0x119064 = _0x34a4;
|
|
1341
|
+
if (!_0x2f60a6[_0x119064(0x23f)] && _0x2f60a6['workerModeEnabled'] && _0x2f60a6[_0x119064(_0x816090._0x3b2b38)] && _0x2f60a6[_0x119064(0x321)]) {
|
|
1342
|
+
const _0x4f6fbd = await _0x2f60a6[_0x119064(_0x816090._0xc37d55)][_0x119064(_0x816090._0x4cbe1b)](_0x36a4a2[_0x119064(0x22c)]);
|
|
1343
|
+
if (_0x4f6fbd[_0x119064(0x273)] && _0x4f6fbd[_0x119064(_0x816090._0x4d7dc)]) {
|
|
1344
|
+
const _0x148573 = _0x4f6fbd[_0x119064(0x273)][_0x119064(_0x816090._0x366848)] != null ? '#' + _0x4f6fbd[_0x119064(0x273)]['taskNumber'] : _0x119064(_0x816090._0x2ebdc7), _0x7951fb = _0x4f6fbd[_0x119064(0x310)] != null ? _0x4f6fbd['target'] + ':t' + _0x4f6fbd['threadNumber'] : _0x4f6fbd['target'] + ':' + _0x4f6fbd[_0x119064(0x305)][_0x119064(0x24a)](0x0, 0x8), _0xb19a96 = [
|
|
1345
|
+
_0x119064(_0x816090._0x32d9d8) + _0x7951fb + '\x20msg=handoff\x20time=' + new Date()[_0x119064(0x1e3)]() + _0x119064(_0x816090._0x2ddcaa),
|
|
1359
1346
|
'',
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
][
|
|
1365
|
-
'method':
|
|
1347
|
+
'Original\x20message:\x20' + _0x36a4a2[_0x119064(_0x816090._0x40d103)],
|
|
1348
|
+
_0x119064(_0x816090._0x25e9f5) + _0x148573 + '\x20(' + _0x4f6fbd[_0x119064(0x273)][_0x119064(0x2d9)] + ')',
|
|
1349
|
+
_0x119064(_0x816090._0x51ed5b) + _0x7951fb,
|
|
1350
|
+
_0x119064(_0x816090._0x39d934)
|
|
1351
|
+
]['join']('\x0a'), _0x31e44e = await fetch(_0x2f60a6[_0x119064(_0x816090._0x3b2b38)] + _0x119064(_0x816090._0x298ca9), {
|
|
1352
|
+
'method': 'POST',
|
|
1366
1353
|
'headers': { 'Content-Type': 'application/json' },
|
|
1367
|
-
'body': JSON[
|
|
1368
|
-
'agent_id':
|
|
1369
|
-
'thread_target':
|
|
1354
|
+
'body': JSON[_0x119064(0x245)]({
|
|
1355
|
+
'agent_id': _0x2f60a6[_0x119064(_0x816090._0x5556cb)],
|
|
1356
|
+
'thread_target': _0x7951fb,
|
|
1370
1357
|
'spawn_packet': {
|
|
1371
|
-
'replyTarget':
|
|
1372
|
-
'taskId':
|
|
1358
|
+
'replyTarget': _0x7951fb,
|
|
1359
|
+
'taskId': _0x4f6fbd[_0x119064(_0x816090._0xe4d2a8)][_0x119064(0x2d9)]
|
|
1373
1360
|
},
|
|
1374
1361
|
'payload': {
|
|
1375
|
-
'mode':
|
|
1376
|
-
'text':
|
|
1362
|
+
'mode': _0x119064(_0x816090._0x3557c1),
|
|
1363
|
+
'text': _0xb19a96
|
|
1377
1364
|
}
|
|
1378
1365
|
})
|
|
1379
|
-
}),
|
|
1380
|
-
if (!
|
|
1381
|
-
throw new Error(
|
|
1366
|
+
}), _0x126255 = await _0x31e44e['json']();
|
|
1367
|
+
if (!_0x126255['ok'])
|
|
1368
|
+
throw new Error(_0x126255[_0x119064(0x1c1)] ?? _0x119064(0x27b));
|
|
1382
1369
|
return [
|
|
1383
|
-
|
|
1384
|
-
'
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
]['join']('\x20');
|
|
1370
|
+
_0x119064(_0x816090._0x560270) + _0x148573 + _0x119064(_0x816090._0x5e220f) + _0x7951fb + _0x119064(0x325),
|
|
1371
|
+
_0x119064(_0x816090._0x55ff73) + (_0x126255['disposition'] === _0x119064(0x2ea) ? 'queued' : _0x119064(0x1bf)) + '.',
|
|
1372
|
+
_0x119064(0x1f5)
|
|
1373
|
+
][_0x119064(0x32f)]('\x0a');
|
|
1388
1374
|
}
|
|
1389
1375
|
}
|
|
1390
|
-
const
|
|
1391
|
-
'attachmentIds':
|
|
1392
|
-
'content':
|
|
1393
|
-
'target':
|
|
1394
|
-
'visibility':
|
|
1376
|
+
const _0x8b940d = await _0x2f60a6[_0x119064(_0x816090._0xc37d55)]['sendMessage']({
|
|
1377
|
+
'attachmentIds': _0x36a4a2[_0x119064(0x239)],
|
|
1378
|
+
'content': _0x36a4a2[_0x119064(_0x816090._0x40d103)],
|
|
1379
|
+
'target': _0x36a4a2['target'],
|
|
1380
|
+
'visibility': _0x36a4a2[_0x119064(0x1a7)]
|
|
1395
1381
|
});
|
|
1396
|
-
return
|
|
1382
|
+
return _0x119064(0x210) + _0x36a4a2[_0x119064(0x22c)] + _0x119064(0x32a) + _0x8b940d[_0x119064(0x270)];
|
|
1397
1383
|
},
|
|
1398
1384
|
async 'check_messages'() {
|
|
1399
|
-
const
|
|
1400
|
-
if (!
|
|
1401
|
-
const
|
|
1402
|
-
if (
|
|
1403
|
-
return formatCheckMessages(
|
|
1385
|
+
const _0x1f2eb9 = _0x34a4, _0x3add60 = await _0x2f60a6['client'][_0x1f2eb9(_0x16599d._0x502245)]();
|
|
1386
|
+
if (!_0x2f60a6['workerMode']) {
|
|
1387
|
+
const _0x24f065 = await _0x4de151();
|
|
1388
|
+
if (_0x24f065)
|
|
1389
|
+
return formatCheckMessages(_0x3add60[_0x1f2eb9(0x265)]['filter'](_0x3ba79f => !_0x24f065[_0x1f2eb9(0x2c8)](_0x3ba79f[_0x1f2eb9(0x22c)])));
|
|
1404
1390
|
}
|
|
1405
|
-
return formatCheckMessages(
|
|
1391
|
+
return formatCheckMessages(_0x3add60['messages']);
|
|
1406
1392
|
},
|
|
1407
|
-
async 'read_history'(
|
|
1408
|
-
const
|
|
1409
|
-
return formatHistory(
|
|
1393
|
+
async 'read_history'(_0x26ef49) {
|
|
1394
|
+
const _0x2c3552 = _0x34a4, _0x50f262 = await _0x2f60a6['client'][_0x2c3552(_0x2e8dac._0x27d9b7)](_0x26ef49);
|
|
1395
|
+
return formatHistory(_0x50f262);
|
|
1410
1396
|
},
|
|
1411
1397
|
async 'list_server'() {
|
|
1412
|
-
const
|
|
1413
|
-
return formatServerDirectory(
|
|
1398
|
+
const _0x4ec162 = _0x34a4, _0x22a0fd = await _0x2f60a6[_0x4ec162(_0x5db96d._0x5d703c)][_0x4ec162(0x1ee)]();
|
|
1399
|
+
return formatServerDirectory(_0x22a0fd);
|
|
1414
1400
|
},
|
|
1415
|
-
async 'list_tasks'(
|
|
1416
|
-
const
|
|
1417
|
-
let
|
|
1418
|
-
if (
|
|
1401
|
+
async 'list_tasks'(_0xecbcd1) {
|
|
1402
|
+
const _0x1804da = _0x34a4, _0x4d0427 = await _0x2f60a6[_0x1804da(0x1b6)][_0x1804da(0x286)](_0xecbcd1);
|
|
1403
|
+
let _0x82a139;
|
|
1404
|
+
if (_0x2f60a6[_0x1804da(_0x1d14de._0x45ad7d)] && _0x2f60a6[_0x1804da(0x321)])
|
|
1419
1405
|
try {
|
|
1420
|
-
const
|
|
1421
|
-
if (
|
|
1422
|
-
const
|
|
1423
|
-
|
|
1424
|
-
for (const
|
|
1425
|
-
if (
|
|
1406
|
+
const _0x2032e3 = await fetch(_0x2f60a6[_0x1804da(_0x1d14de._0x45ad7d)] + '/workers/list?agent_id=' + encodeURIComponent(_0x2f60a6[_0x1804da(0x321)])), _0x5819f3 = await _0x2032e3[_0x1804da(_0x1d14de._0xe383ef)]();
|
|
1407
|
+
if (_0x5819f3['ok']) {
|
|
1408
|
+
const _0x21e17d = _0xecbcd1['channel'] + ':';
|
|
1409
|
+
_0x82a139 = new Set();
|
|
1410
|
+
for (const _0x3b8694 of _0x5819f3[_0x1804da(_0x1d14de._0x47b74e)]) {
|
|
1411
|
+
if (_0x3b8694[_0x1804da(_0x1d14de._0x45980f)] === 'destroyed')
|
|
1426
1412
|
continue;
|
|
1427
|
-
if (
|
|
1428
|
-
const
|
|
1429
|
-
if (
|
|
1430
|
-
|
|
1413
|
+
if (_0x3b8694[_0x1804da(_0x1d14de._0x2acf2d)]?.[_0x1804da(0x2b5)](_0x21e17d)) {
|
|
1414
|
+
const _0x4de0ce = _0x3b8694[_0x1804da(_0x1d14de._0x2acf2d)][_0x1804da(_0x1d14de._0x2adb2c)](_0x21e17d[_0x1804da(_0x1d14de._0x5487c2)]), _0x497377 = _0x4d0427['tasks'][_0x1804da(_0x1d14de._0x7e8e9c)](_0x359c4e => _0x359c4e['messageId']?.['startsWith'](_0x4de0ce) === !![]);
|
|
1415
|
+
if (_0x497377?.[_0x1804da(_0x1d14de._0x65f13f)] != null) {
|
|
1416
|
+
_0x82a139[_0x1804da(_0x1d14de._0x12d0e7)](_0x497377[_0x1804da(0x24f)]);
|
|
1431
1417
|
continue;
|
|
1432
1418
|
}
|
|
1433
1419
|
}
|
|
1434
|
-
if (
|
|
1435
|
-
const
|
|
1436
|
-
|
|
1420
|
+
if (_0x3b8694[_0x1804da(_0x1d14de._0x48e2bf)]) {
|
|
1421
|
+
const _0x23a98c = _0x4d0427[_0x1804da(0x2b1)][_0x1804da(_0x1d14de._0x7e8e9c)](_0x193c1f => _0x193c1f[_0x1804da(0x2d9)] === _0x3b8694[_0x1804da(0x326)]);
|
|
1422
|
+
_0x23a98c?.[_0x1804da(_0x1d14de._0x1ef0a2)] != null && _0x82a139[_0x1804da(_0x1d14de._0x12d0e7)](_0x23a98c['taskNumber']);
|
|
1437
1423
|
}
|
|
1438
1424
|
}
|
|
1439
1425
|
}
|
|
1440
1426
|
} catch {
|
|
1441
1427
|
}
|
|
1442
|
-
return formatTaskList(
|
|
1428
|
+
return formatTaskList(_0x4d0427[_0x1804da(_0x1d14de._0x592a82)], _0x82a139);
|
|
1443
1429
|
},
|
|
1444
|
-
async 'create_tasks'(
|
|
1445
|
-
const
|
|
1446
|
-
return formatCreatedTasks(
|
|
1430
|
+
async 'create_tasks'(_0x14871d) {
|
|
1431
|
+
const _0x1e1137 = _0x34a4, _0x1f6e99 = await _0x2f60a6[_0x1e1137(0x1b6)]['createTasks'](_0x14871d);
|
|
1432
|
+
return formatCreatedTasks(_0x1f6e99[_0x1e1137(_0x44d603._0x4b743)]);
|
|
1447
1433
|
},
|
|
1448
|
-
async 'claim_tasks'(
|
|
1449
|
-
const
|
|
1450
|
-
const
|
|
1451
|
-
if (!
|
|
1452
|
-
return
|
|
1434
|
+
async 'claim_tasks'(_0xba2491) {
|
|
1435
|
+
const _0x57123a = _0x34a4, _0x3ec971 = await _0x2f60a6['client'][_0x57123a(0x1fb)](_0xba2491), _0x32c219 = await Promise[_0x57123a(_0xff0955._0x1e3923)](_0x3ec971[_0x57123a(0x1c5)][_0x57123a(_0xff0955._0x3fdd19)](async _0x260aec => {
|
|
1436
|
+
const _0x3ecdfd = _0x57123a;
|
|
1437
|
+
if (!_0x260aec['success'] || !_0x260aec[_0x3ecdfd(_0x1f019a._0x2d73d4)])
|
|
1438
|
+
return _0x260aec;
|
|
1453
1439
|
try {
|
|
1454
|
-
const
|
|
1455
|
-
'channel':
|
|
1456
|
-
'messageId':
|
|
1457
|
-
'taskId':
|
|
1458
|
-
'taskNumber':
|
|
1459
|
-
'threadNumber':
|
|
1440
|
+
const _0x445078 = await _0x580ff3({
|
|
1441
|
+
'channel': _0xba2491[_0x3ecdfd(0x22b)],
|
|
1442
|
+
'messageId': _0x260aec[_0x3ecdfd(0x270)],
|
|
1443
|
+
'taskId': _0x260aec[_0x3ecdfd(_0x1f019a._0x52cffd)],
|
|
1444
|
+
'taskNumber': _0x260aec['taskNumber'],
|
|
1445
|
+
'threadNumber': _0x260aec['threadNumber']
|
|
1460
1446
|
});
|
|
1461
|
-
return
|
|
1462
|
-
...
|
|
1463
|
-
...
|
|
1464
|
-
} :
|
|
1465
|
-
} catch (
|
|
1447
|
+
return _0x445078 ? {
|
|
1448
|
+
..._0x260aec,
|
|
1449
|
+
..._0x445078
|
|
1450
|
+
} : _0x260aec;
|
|
1451
|
+
} catch (_0x3cb823) {
|
|
1466
1452
|
return {
|
|
1467
|
-
...
|
|
1468
|
-
'workerHandoffError':
|
|
1453
|
+
..._0x260aec,
|
|
1454
|
+
'workerHandoffError': _0x3cb823 instanceof Error ? _0x3cb823[_0x3ecdfd(0x274)] : 'worker\x20handoff\x20failed'
|
|
1469
1455
|
};
|
|
1470
1456
|
}
|
|
1471
1457
|
}));
|
|
1472
|
-
return formatClaimTaskResults(
|
|
1458
|
+
return formatClaimTaskResults(_0x32c219);
|
|
1473
1459
|
},
|
|
1474
|
-
async 'unclaim_task'(
|
|
1475
|
-
const
|
|
1476
|
-
return formatUnclaimTaskResult(
|
|
1460
|
+
async 'unclaim_task'(_0x49ff4d) {
|
|
1461
|
+
const _0x14b51c = _0x34a4, _0x8d0f8b = await _0x2f60a6[_0x14b51c(_0x174c47._0x2fab89)][_0x14b51c(0x1f1)](_0x49ff4d);
|
|
1462
|
+
return formatUnclaimTaskResult(_0x8d0f8b);
|
|
1477
1463
|
},
|
|
1478
|
-
async 'update_task_status'(
|
|
1479
|
-
const
|
|
1480
|
-
return formatUpdateTaskStatusResult(
|
|
1464
|
+
async 'update_task_status'(_0x36327a) {
|
|
1465
|
+
const _0x5ea5c1 = _0x34a4, _0x47094e = await _0x2f60a6['client'][_0x5ea5c1(_0x141195._0x137249)](_0x36327a);
|
|
1466
|
+
return formatUpdateTaskStatusResult(_0x47094e);
|
|
1481
1467
|
},
|
|
1482
|
-
async 'upload_file'(
|
|
1483
|
-
const
|
|
1484
|
-
sizeBytes:
|
|
1485
|
-
...
|
|
1486
|
-
} =
|
|
1487
|
-
'channel':
|
|
1488
|
-
...
|
|
1468
|
+
async 'upload_file'(_0x1b6c14) {
|
|
1469
|
+
const _0xc37788 = _0x34a4, _0x4dc0c5 = await _0x2f60a6[_0xc37788(_0x19dda4._0x4a1726)](_0x1b6c14[_0xc37788(_0x19dda4._0x44dc0f)]), {
|
|
1470
|
+
sizeBytes: _0x2abdf0,
|
|
1471
|
+
..._0x29e8de
|
|
1472
|
+
} = _0x4dc0c5, _0x1c25ed = await _0x2f60a6[_0xc37788(0x1b6)][_0xc37788(0x227)]({
|
|
1473
|
+
'channel': _0x1b6c14[_0xc37788(0x22b)],
|
|
1474
|
+
..._0x29e8de
|
|
1489
1475
|
});
|
|
1490
|
-
return formatUploadResult(
|
|
1476
|
+
return formatUploadResult(_0x1c25ed);
|
|
1491
1477
|
},
|
|
1492
|
-
async 'view_file'(
|
|
1493
|
-
const
|
|
1494
|
-
if (
|
|
1495
|
-
return formatViewFileResult(
|
|
1496
|
-
const
|
|
1497
|
-
'attachmentId':
|
|
1498
|
-
'contentType':
|
|
1499
|
-
'data':
|
|
1500
|
-
'originalFilename':
|
|
1478
|
+
async 'view_file'(_0x266150) {
|
|
1479
|
+
const _0x33c32a = _0x34a4, _0x4e95cf = await _0x2f60a6[_0x33c32a(_0x1557ff._0x470793)]['findCachedPath'](_0x266150[_0x33c32a(0x252)]);
|
|
1480
|
+
if (_0x4e95cf)
|
|
1481
|
+
return formatViewFileResult(_0x4e95cf, !![]);
|
|
1482
|
+
const _0xf7da7b = await _0x2f60a6[_0x33c32a(0x1b6)][_0x33c32a(_0x1557ff._0x1f8186)](_0x266150['attachment_id']), _0xfb1dbd = await _0x2f60a6['attachmentCache'][_0x33c32a(0x1ad)]({
|
|
1483
|
+
'attachmentId': _0x266150[_0x33c32a(0x252)],
|
|
1484
|
+
'contentType': _0xf7da7b[_0x33c32a(_0x1557ff._0x1036e3)],
|
|
1485
|
+
'data': _0xf7da7b[_0x33c32a(_0x1557ff._0x49ad40)],
|
|
1486
|
+
'originalFilename': _0xf7da7b[_0x33c32a(_0x1557ff._0x4168a1)]
|
|
1501
1487
|
});
|
|
1502
|
-
return formatViewFileResult(
|
|
1488
|
+
return formatViewFileResult(_0xfb1dbd, ![]);
|
|
1503
1489
|
},
|
|
1504
|
-
async 'get_worker_status'(
|
|
1505
|
-
const
|
|
1506
|
-
if (!
|
|
1490
|
+
async 'get_worker_status'(_0x166e1b) {
|
|
1491
|
+
const _0x4b6908 = _0x34a4;
|
|
1492
|
+
if (!_0x2f60a6[_0x4b6908(_0x11cf74._0x54fd35)])
|
|
1507
1493
|
return 'Worker\x20features\x20not\x20available';
|
|
1508
|
-
const
|
|
1509
|
-
if (!
|
|
1510
|
-
return
|
|
1511
|
-
return
|
|
1494
|
+
const _0x1c7c43 = await fetch(_0x2f60a6[_0x4b6908(_0x11cf74._0x42e8b3)] + _0x4b6908(0x25d) + encodeURIComponent(_0x166e1b[_0x4b6908(0x271)])), _0x81c839 = await _0x1c7c43[_0x4b6908(_0x11cf74._0x51ec05)]();
|
|
1495
|
+
if (!_0x81c839['ok'])
|
|
1496
|
+
return _0x4b6908(_0x11cf74._0x51427c) + _0x166e1b[_0x4b6908(0x271)] + _0x4b6908(0x1c2);
|
|
1497
|
+
return _0x4b6908(0x2b3) + _0x166e1b['work_key'] + '\x22:\x20status=' + _0x81c839[_0x4b6908(_0x11cf74._0x1e75f7)];
|
|
1512
1498
|
},
|
|
1513
|
-
async 'get_worker_result'(
|
|
1514
|
-
const
|
|
1515
|
-
if (!
|
|
1516
|
-
return
|
|
1517
|
-
const
|
|
1518
|
-
if (!
|
|
1519
|
-
return
|
|
1520
|
-
return JSON[
|
|
1499
|
+
async 'get_worker_result'(_0x13c113) {
|
|
1500
|
+
const _0x47acff = _0x34a4;
|
|
1501
|
+
if (!_0x2f60a6[_0x47acff(_0x5ca4ff._0x28dd16)])
|
|
1502
|
+
return _0x47acff(_0x5ca4ff._0x3f7a7d);
|
|
1503
|
+
const _0x5df621 = await fetch(_0x2f60a6[_0x47acff(_0x5ca4ff._0x28dd16)] + _0x47acff(_0x5ca4ff._0x2f4d7f) + encodeURIComponent(_0x13c113[_0x47acff(_0x5ca4ff._0x51d3ae)])), _0x131eb4 = await _0x5df621[_0x47acff(0x2ee)]();
|
|
1504
|
+
if (!_0x131eb4[_0x47acff(_0x5ca4ff._0x329f84)])
|
|
1505
|
+
return _0x47acff(_0x5ca4ff._0x2e59f6) + _0x13c113['work_key'] + '\x22';
|
|
1506
|
+
return JSON[_0x47acff(_0x5ca4ff._0x35d2a1)](_0x131eb4[_0x47acff(0x21e)], null, 0x2);
|
|
1521
1507
|
},
|
|
1522
|
-
async 'finish_worker'(
|
|
1523
|
-
const
|
|
1524
|
-
if (!
|
|
1525
|
-
return
|
|
1526
|
-
const
|
|
1527
|
-
'method':
|
|
1528
|
-
'headers': { 'Content-Type':
|
|
1529
|
-
'body': JSON[
|
|
1530
|
-
'work_key':
|
|
1508
|
+
async 'finish_worker'(_0x386c18) {
|
|
1509
|
+
const _0x21f8c9 = _0x34a4;
|
|
1510
|
+
if (!_0x2f60a6[_0x21f8c9(_0x4c67fc._0xdd3c1)])
|
|
1511
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1512
|
+
const _0x32f6ae = await fetch(_0x2f60a6[_0x21f8c9(0x1ba)] + _0x21f8c9(0x1e5), {
|
|
1513
|
+
'method': _0x21f8c9(0x22e),
|
|
1514
|
+
'headers': { 'Content-Type': _0x21f8c9(_0x4c67fc._0x194dcd) },
|
|
1515
|
+
'body': JSON[_0x21f8c9(0x245)]({
|
|
1516
|
+
'work_key': _0x386c18[_0x21f8c9(_0x4c67fc._0x2ca060)],
|
|
1531
1517
|
'resume_packet': {
|
|
1532
1518
|
'objective': '',
|
|
1533
|
-
'result':
|
|
1534
|
-
'summary':
|
|
1535
|
-
'decisions':
|
|
1536
|
-
'filesChanged':
|
|
1537
|
-
'openIssues':
|
|
1538
|
-
'nextSteps':
|
|
1519
|
+
'result': _0x386c18[_0x21f8c9(_0x4c67fc._0x154c22)],
|
|
1520
|
+
'summary': _0x386c18['summary'],
|
|
1521
|
+
'decisions': _0x386c18[_0x21f8c9(_0x4c67fc._0x1ee897)] ?? [],
|
|
1522
|
+
'filesChanged': _0x386c18['files_changed'] ?? [],
|
|
1523
|
+
'openIssues': _0x386c18[_0x21f8c9(0x1d3)] ?? [],
|
|
1524
|
+
'nextSteps': _0x386c18['next_steps'] ?? []
|
|
1539
1525
|
}
|
|
1540
1526
|
})
|
|
1541
|
-
}),
|
|
1542
|
-
if (!
|
|
1543
|
-
throw new Error(
|
|
1544
|
-
return
|
|
1527
|
+
}), _0x47f27f = await _0x32f6ae[_0x21f8c9(0x2ee)]();
|
|
1528
|
+
if (!_0x47f27f['ok'])
|
|
1529
|
+
throw new Error(_0x47f27f[_0x21f8c9(_0x4c67fc._0x319c5f)] ?? _0x21f8c9(0x2ba));
|
|
1530
|
+
return _0x21f8c9(0x2b3) + _0x386c18[_0x21f8c9(0x271)] + _0x21f8c9(0x20a) + _0x386c18[_0x21f8c9(_0x4c67fc._0x1aec1f)];
|
|
1545
1531
|
},
|
|
1546
|
-
async 'mark_waiting_input'(
|
|
1547
|
-
const
|
|
1548
|
-
if (!
|
|
1549
|
-
return
|
|
1550
|
-
const
|
|
1532
|
+
async 'mark_waiting_input'(_0x5eebe3) {
|
|
1533
|
+
const _0x307c60 = _0x34a4;
|
|
1534
|
+
if (!_0x2f60a6[_0x307c60(_0x69134a._0x37f00f)] || !_0x2f60a6['agentId'])
|
|
1535
|
+
return _0x307c60(_0x69134a._0x107280);
|
|
1536
|
+
const _0x39171e = await fetch(_0x2f60a6['daemonLocalUrl'] + _0x307c60(0x2e5), {
|
|
1551
1537
|
'method': 'POST',
|
|
1552
|
-
'headers': { 'Content-Type':
|
|
1538
|
+
'headers': { 'Content-Type': _0x307c60(_0x69134a._0x2ffb8e) },
|
|
1553
1539
|
'body': JSON['stringify']({
|
|
1554
|
-
'work_key':
|
|
1555
|
-
'agent_id':
|
|
1540
|
+
'work_key': _0x5eebe3[_0x307c60(_0x69134a._0x684464)],
|
|
1541
|
+
'agent_id': _0x2f60a6[_0x307c60(0x321)]
|
|
1556
1542
|
})
|
|
1557
|
-
}),
|
|
1558
|
-
if (!
|
|
1559
|
-
throw new Error(
|
|
1560
|
-
return
|
|
1543
|
+
}), _0x131fa2 = await _0x39171e[_0x307c60(0x2ee)]();
|
|
1544
|
+
if (!_0x131fa2['ok'])
|
|
1545
|
+
throw new Error(_0x131fa2[_0x307c60(0x1c1)] ?? _0x307c60(_0x69134a._0x452919));
|
|
1546
|
+
return _0x307c60(0x2b3) + _0x5eebe3['work_key'] + _0x307c60(0x1f0);
|
|
1561
1547
|
},
|
|
1562
|
-
async 'escalate_to_main'(
|
|
1563
|
-
const
|
|
1564
|
-
if (!
|
|
1565
|
-
return
|
|
1566
|
-
const
|
|
1567
|
-
'method':
|
|
1568
|
-
'headers': { 'Content-Type':
|
|
1569
|
-
'body': JSON[
|
|
1570
|
-
'work_key':
|
|
1571
|
-
'reason':
|
|
1548
|
+
async 'escalate_to_main'(_0x3063e8) {
|
|
1549
|
+
const _0x2b16ee = _0x34a4;
|
|
1550
|
+
if (!_0x2f60a6[_0x2b16ee(0x1ba)])
|
|
1551
|
+
return _0x2b16ee(_0x44662d._0x30d80d);
|
|
1552
|
+
const _0x35ca27 = await fetch(_0x2f60a6['daemonLocalUrl'] + '/workers/escalate', {
|
|
1553
|
+
'method': _0x2b16ee(0x22e),
|
|
1554
|
+
'headers': { 'Content-Type': _0x2b16ee(0x253) },
|
|
1555
|
+
'body': JSON[_0x2b16ee(0x245)]({
|
|
1556
|
+
'work_key': _0x3063e8[_0x2b16ee(0x271)],
|
|
1557
|
+
'reason': _0x3063e8['reason']
|
|
1572
1558
|
})
|
|
1573
|
-
}),
|
|
1574
|
-
if (!
|
|
1575
|
-
throw new Error(
|
|
1576
|
-
return
|
|
1559
|
+
}), _0x10c445 = await _0x35ca27[_0x2b16ee(0x2ee)]();
|
|
1560
|
+
if (!_0x10c445['ok'])
|
|
1561
|
+
throw new Error(_0x10c445[_0x2b16ee(_0x44662d._0x1a6f0d)] ?? _0x2b16ee(0x1e7));
|
|
1562
|
+
return _0x2b16ee(_0x44662d._0x36bf90) + _0x3063e8[_0x2b16ee(_0x44662d._0x2c9079)];
|
|
1577
1563
|
}
|
|
1578
1564
|
};
|
|
1579
1565
|
}
|
|
1580
|
-
function textResult(
|
|
1581
|
-
const
|
|
1566
|
+
function textResult(_0x1e82e5, _0x1fed18 = ![]) {
|
|
1567
|
+
const _0x1a96ff = _0x5e2837;
|
|
1582
1568
|
return {
|
|
1583
1569
|
'content': [{
|
|
1584
|
-
'type':
|
|
1585
|
-
'text':
|
|
1570
|
+
'type': _0x1a96ff(0x1bc),
|
|
1571
|
+
'text': _0x1e82e5
|
|
1586
1572
|
}],
|
|
1587
|
-
...
|
|
1588
|
-
};
|
|
1589
|
-
}
|
|
1590
|
-
async function registerChatBridgeTools(_0x2c0a4f, _0x1acf13, _0x2e1d17) {
|
|
1591
|
-
const _0x384acc = {
|
|
1592
|
-
_0x51be69: 0x1d5,
|
|
1593
|
-
_0xa56e21: 0x140,
|
|
1594
|
-
_0x50a13d: 0x217,
|
|
1595
|
-
_0x2f3f83: 0x1d7,
|
|
1596
|
-
_0x4fa223: 0x1d7,
|
|
1597
|
-
_0x3b6a3d: 0x285,
|
|
1598
|
-
_0x59b3b7: 0x15e,
|
|
1599
|
-
_0x11092a: 0x2a4,
|
|
1600
|
-
_0x53dc76: 0x1de,
|
|
1601
|
-
_0x25a79a: 0x124,
|
|
1602
|
-
_0x14e924: 0x1eb,
|
|
1603
|
-
_0x237a1a: 0x15e,
|
|
1604
|
-
_0x39ba14: 0x235,
|
|
1605
|
-
_0x5f26a5: 0x15e,
|
|
1606
|
-
_0x5c72b1: 0x29c,
|
|
1607
|
-
_0x47a94d: 0x182,
|
|
1608
|
-
_0x2141af: 0x15e,
|
|
1609
|
-
_0x4a6e4a: 0x1c3,
|
|
1610
|
-
_0x5a88a7: 0x140,
|
|
1611
|
-
_0x5cd37e: 0x15e,
|
|
1612
|
-
_0xb0077b: 0x20e,
|
|
1613
|
-
_0x521342: 0x16c,
|
|
1614
|
-
_0x5dd328: 0x15e,
|
|
1615
|
-
_0x27e913: 0x1c9,
|
|
1616
|
-
_0x5d44f0: 0x140,
|
|
1617
|
-
_0x2cb6ad: 0x1cc,
|
|
1618
|
-
_0x10a7e4: 0x140,
|
|
1619
|
-
_0x383d96: 0x1db,
|
|
1620
|
-
_0x53f615: 0x260,
|
|
1621
|
-
_0x3f6cfc: 0x1d7,
|
|
1622
|
-
_0x5c15d7: 0x1d0,
|
|
1623
|
-
_0x46165c: 0x1e1,
|
|
1624
|
-
_0x36b6b6: 0x173,
|
|
1625
|
-
_0x490d1c: 0x15a,
|
|
1626
|
-
_0x312220: 0x147,
|
|
1627
|
-
_0x448a61: 0x235,
|
|
1628
|
-
_0xb57de5: 0x140,
|
|
1629
|
-
_0x309b93: 0x235,
|
|
1630
|
-
_0x3961d0: 0x27e,
|
|
1631
|
-
_0xa7a56b: 0x140,
|
|
1632
|
-
_0x4fb54c: 0x1d7,
|
|
1633
|
-
_0x122931: 0x295
|
|
1634
|
-
}, _0x13b04d = { _0x24d0c9: 0x200 }, _0x31442a = { _0x2f8090: 0x22c }, _0x4bb5d0 = {
|
|
1635
|
-
_0x100d01: 0x173,
|
|
1636
|
-
_0x5784b7: 0x134
|
|
1637
|
-
}, _0x17f107 = { _0x11a3cb: 0x1e1 }, _0x5dbbe3 = { _0x3449f8: 0x28c }, _0x4dc651 = {
|
|
1638
|
-
_0x4a41f7: 0x200,
|
|
1639
|
-
_0x1cd2e1: 0x168
|
|
1640
|
-
}, _0x19c879 = {
|
|
1641
|
-
_0x41b495: 0x200,
|
|
1642
|
-
_0xc5a405: 0x1f5
|
|
1643
|
-
}, _0x28efe4 = { _0xc9d9cc: 0x16a }, _0xdc4f45 = {
|
|
1644
|
-
_0x5c88fd: 0x200,
|
|
1645
|
-
_0x2a9069: 0x246
|
|
1646
|
-
}, _0x299cf4 = { _0x5465f9: 0x222 }, _0x520729 = { _0x350146: 0x234 }, _0x1d08a4 = {
|
|
1647
|
-
_0x16efb9: 0x1de,
|
|
1648
|
-
_0x47ac4b: 0x200
|
|
1649
|
-
}, _0x37fc1a = {
|
|
1650
|
-
_0x1407c6: 0x200,
|
|
1651
|
-
_0x4c6009: 0x22f
|
|
1652
|
-
}, _0x579c4f = { _0x3bc9e4: 0x254 }, _0x94f102 = { _0x23643a: 0x251 }, _0x33e4d4 = _0x15d6d8, {z: _0x58654b} = await import(_0x33e4d4(0x1ed));
|
|
1653
|
-
_0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(0x251), _0x33e4d4(_0x384acc._0x51be69), {
|
|
1654
|
-
'target': _0x58654b[_0x33e4d4(0x140)](),
|
|
1655
|
-
'content': _0x58654b[_0x33e4d4(_0x384acc._0xa56e21)](),
|
|
1656
|
-
'attachment_ids': _0x58654b['array'](_0x58654b[_0x33e4d4(0x140)]())['optional'](),
|
|
1657
|
-
'visibility': _0x58654b[_0x33e4d4(0x1a1)]([
|
|
1658
|
-
_0x33e4d4(_0x384acc._0x50a13d),
|
|
1659
|
-
'aside'
|
|
1660
|
-
])[_0x33e4d4(0x15e)]()
|
|
1661
|
-
}, async _0x42b8ca => {
|
|
1662
|
-
const _0x51febf = _0x33e4d4;
|
|
1663
|
-
try {
|
|
1664
|
-
return textResult(await _0x1acf13[_0x51febf(_0x94f102._0x23643a)](_0x42b8ca));
|
|
1665
|
-
} catch (_0x3581e4) {
|
|
1666
|
-
return textResult(_0x3581e4 instanceof Error ? _0x3581e4['message'] : 'send_message\x20failed', !![]);
|
|
1667
|
-
}
|
|
1668
|
-
}), _0x2c0a4f[_0x33e4d4(_0x384acc._0x2f3f83)]('check_messages', _0x33e4d4(0x19f), {}, async () => {
|
|
1669
|
-
const _0x4227d9 = _0x33e4d4;
|
|
1670
|
-
try {
|
|
1671
|
-
return textResult(await _0x1acf13[_0x4227d9(_0x579c4f._0x3bc9e4)]());
|
|
1672
|
-
} catch (_0x8b2e82) {
|
|
1673
|
-
return textResult(_0x8b2e82 instanceof Error ? _0x8b2e82['message'] : 'check_messages\x20failed', !![]);
|
|
1674
|
-
}
|
|
1675
|
-
}), _0x2c0a4f[_0x33e4d4(_0x384acc._0x4fa223)](_0x33e4d4(0x266), _0x33e4d4(_0x384acc._0x3b6a3d), {
|
|
1676
|
-
'channel': _0x58654b[_0x33e4d4(0x140)](),
|
|
1677
|
-
'limit': _0x58654b[_0x33e4d4(0x2a4)]()['optional'](),
|
|
1678
|
-
'before': _0x58654b['number']()[_0x33e4d4(_0x384acc._0x59b3b7)](),
|
|
1679
|
-
'after': _0x58654b[_0x33e4d4(_0x384acc._0x11092a)]()['optional']()
|
|
1680
|
-
}, async _0x3cc0e2 => {
|
|
1681
|
-
const _0x23b768 = _0x33e4d4;
|
|
1682
|
-
try {
|
|
1683
|
-
return textResult(await _0x1acf13[_0x23b768(0x266)](_0x3cc0e2));
|
|
1684
|
-
} catch (_0x3a3a34) {
|
|
1685
|
-
return textResult(_0x3a3a34 instanceof Error ? _0x3a3a34[_0x23b768(_0x37fc1a._0x1407c6)] : _0x23b768(_0x37fc1a._0x4c6009), !![]);
|
|
1686
|
-
}
|
|
1687
|
-
}), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(_0x384acc._0x53dc76), _0x33e4d4(_0x384acc._0x25a79a), {}, async () => {
|
|
1688
|
-
const _0x55d42a = _0x33e4d4;
|
|
1689
|
-
try {
|
|
1690
|
-
return textResult(await _0x1acf13[_0x55d42a(_0x1d08a4._0x16efb9)]());
|
|
1691
|
-
} catch (_0x1d4af9) {
|
|
1692
|
-
return textResult(_0x1d4af9 instanceof Error ? _0x1d4af9[_0x55d42a(_0x1d08a4._0x47ac4b)] : _0x55d42a(0x20b), !![]);
|
|
1693
|
-
}
|
|
1694
|
-
}), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(_0x384acc._0x14e924), _0x33e4d4(0x1ce), {
|
|
1695
|
-
'channel': _0x58654b[_0x33e4d4(0x140)](),
|
|
1696
|
-
'status': _0x58654b[_0x33e4d4(0x1a1)]([
|
|
1697
|
-
'todo',
|
|
1698
|
-
_0x33e4d4(0x1cc),
|
|
1699
|
-
_0x33e4d4(0x175),
|
|
1700
|
-
_0x33e4d4(0x291)
|
|
1701
|
-
])['optional']()
|
|
1702
|
-
}, async _0x513ecb => {
|
|
1703
|
-
const _0x23aee5 = _0x33e4d4;
|
|
1704
|
-
try {
|
|
1705
|
-
return textResult(await _0x1acf13[_0x23aee5(0x1eb)](_0x513ecb));
|
|
1706
|
-
} catch (_0x47472b) {
|
|
1707
|
-
return textResult(_0x47472b instanceof Error ? _0x47472b[_0x23aee5(0x200)] : _0x23aee5(_0x520729._0x350146), !![]);
|
|
1708
|
-
}
|
|
1709
|
-
}), _0x2c0a4f['tool'](_0x33e4d4(0x222), _0x33e4d4(0x18f), {
|
|
1710
|
-
'channel': _0x58654b[_0x33e4d4(0x140)](),
|
|
1711
|
-
'idempotency_key': _0x58654b['string']()[_0x33e4d4(_0x384acc._0x237a1a)](),
|
|
1712
|
-
'tasks': _0x58654b[_0x33e4d4(_0x384acc._0x39ba14)](_0x58654b['object']({
|
|
1713
|
-
'title': _0x58654b[_0x33e4d4(_0x384acc._0xa56e21)](),
|
|
1714
|
-
'description': _0x58654b[_0x33e4d4(0x140)]()[_0x33e4d4(_0x384acc._0x5f26a5)](),
|
|
1715
|
-
'priority': _0x58654b['enum']([
|
|
1716
|
-
'low',
|
|
1717
|
-
_0x33e4d4(_0x384acc._0x5c72b1),
|
|
1718
|
-
'high',
|
|
1719
|
-
_0x33e4d4(_0x384acc._0x47a94d)
|
|
1720
|
-
])[_0x33e4d4(_0x384acc._0x2141af)]()
|
|
1721
|
-
}))
|
|
1722
|
-
}, async _0x28fb6b => {
|
|
1723
|
-
const _0x569bbe = _0x33e4d4;
|
|
1724
|
-
try {
|
|
1725
|
-
return textResult(await _0x1acf13[_0x569bbe(_0x299cf4._0x5465f9)](_0x28fb6b));
|
|
1726
|
-
} catch (_0x10e1f8) {
|
|
1727
|
-
return textResult(_0x10e1f8 instanceof Error ? _0x10e1f8['message'] : _0x569bbe(0x282), !![]);
|
|
1728
|
-
}
|
|
1729
|
-
}), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(_0x384acc._0x4a6e4a), _0x33e4d4(0x16b), {
|
|
1730
|
-
'channel': _0x58654b[_0x33e4d4(_0x384acc._0x5a88a7)](),
|
|
1731
|
-
'task_numbers': _0x58654b[_0x33e4d4(0x235)](_0x58654b[_0x33e4d4(0x2a4)]())[_0x33e4d4(_0x384acc._0x5cd37e)](),
|
|
1732
|
-
'message_ids': _0x58654b[_0x33e4d4(0x235)](_0x58654b[_0x33e4d4(0x140)]())[_0x33e4d4(_0x384acc._0x5cd37e)](),
|
|
1733
|
-
'evidence': _0x58654b['record'](_0x58654b[_0x33e4d4(0x140)](), _0x58654b[_0x33e4d4(_0x384acc._0xb0077b)]({
|
|
1734
|
-
'create_thread': _0x58654b[_0x33e4d4(_0x384acc._0x521342)]()[_0x33e4d4(_0x384acc._0x5dd328)](),
|
|
1735
|
-
'create_task': _0x58654b[_0x33e4d4(0x16c)]()[_0x33e4d4(0x15e)]()
|
|
1736
|
-
}))[_0x33e4d4(0x15e)](),
|
|
1737
|
-
'idempotency_key': _0x58654b[_0x33e4d4(0x140)]()[_0x33e4d4(0x15e)]()
|
|
1738
|
-
}, async _0x5e0476 => {
|
|
1739
|
-
const _0x5857b0 = _0x33e4d4;
|
|
1740
|
-
try {
|
|
1741
|
-
return textResult(await _0x1acf13['claim_tasks'](_0x5e0476));
|
|
1742
|
-
} catch (_0x127630) {
|
|
1743
|
-
return textResult(_0x127630 instanceof Error ? _0x127630[_0x5857b0(_0xdc4f45._0x5c88fd)] : _0x5857b0(_0xdc4f45._0x2a9069), !![]);
|
|
1744
|
-
}
|
|
1745
|
-
}), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(0x16a), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.', {
|
|
1746
|
-
'channel': _0x58654b[_0x33e4d4(_0x384acc._0x5a88a7)](),
|
|
1747
|
-
'task_number': _0x58654b[_0x33e4d4(0x2a4)](),
|
|
1748
|
-
'idempotency_key': _0x58654b[_0x33e4d4(0x140)]()[_0x33e4d4(_0x384acc._0x2141af)]()
|
|
1749
|
-
}, async _0x46bfd6 => {
|
|
1750
|
-
const _0x248c72 = _0x33e4d4;
|
|
1751
|
-
try {
|
|
1752
|
-
return textResult(await _0x1acf13[_0x248c72(_0x28efe4._0xc9d9cc)](_0x46bfd6));
|
|
1753
|
-
} catch (_0x1e2652) {
|
|
1754
|
-
return textResult(_0x1e2652 instanceof Error ? _0x1e2652[_0x248c72(0x200)] : _0x248c72(0x298), !![]);
|
|
1755
|
-
}
|
|
1756
|
-
}), _0x2c0a4f[_0x33e4d4(_0x384acc._0x4fa223)](_0x33e4d4(_0x384acc._0x27e913), _0x33e4d4(0x192), {
|
|
1757
|
-
'channel': _0x58654b[_0x33e4d4(_0x384acc._0x5d44f0)](),
|
|
1758
|
-
'task_number': _0x58654b[_0x33e4d4(_0x384acc._0x11092a)](),
|
|
1759
|
-
'status': _0x58654b['enum']([
|
|
1760
|
-
_0x33e4d4(0x1fc),
|
|
1761
|
-
_0x33e4d4(_0x384acc._0x2cb6ad),
|
|
1762
|
-
_0x33e4d4(0x175),
|
|
1763
|
-
_0x33e4d4(0x291)
|
|
1764
|
-
]),
|
|
1765
|
-
'idempotency_key': _0x58654b[_0x33e4d4(_0x384acc._0x5a88a7)]()['optional']()
|
|
1766
|
-
}, async _0x9f868 => {
|
|
1767
|
-
const _0x9f5cad = _0x33e4d4;
|
|
1768
|
-
try {
|
|
1769
|
-
return textResult(await _0x1acf13[_0x9f5cad(0x1c9)](_0x9f868));
|
|
1770
|
-
} catch (_0x470e9b) {
|
|
1771
|
-
return textResult(_0x470e9b instanceof Error ? _0x470e9b[_0x9f5cad(_0x19c879._0x41b495)] : _0x9f5cad(_0x19c879._0xc5a405), !![]);
|
|
1772
|
-
}
|
|
1773
|
-
}), _0x2c0a4f[_0x33e4d4(0x1d7)]('upload_file', _0x33e4d4(0x166), {
|
|
1774
|
-
'channel': _0x58654b[_0x33e4d4(_0x384acc._0xa56e21)](),
|
|
1775
|
-
'file_path': _0x58654b[_0x33e4d4(_0x384acc._0x10a7e4)]()
|
|
1776
|
-
}, async _0x318b2a => {
|
|
1777
|
-
const _0x16ad5a = _0x33e4d4;
|
|
1778
|
-
try {
|
|
1779
|
-
return textResult(await _0x1acf13[_0x16ad5a(0x1e8)](_0x318b2a));
|
|
1780
|
-
} catch (_0x204209) {
|
|
1781
|
-
return textResult(_0x204209 instanceof Error ? _0x204209['message'] : _0x16ad5a(0x299), !![]);
|
|
1782
|
-
}
|
|
1783
|
-
}), _0x2c0a4f['tool'](_0x33e4d4(_0x384acc._0x383d96), _0x33e4d4(_0x384acc._0x53f615), { 'attachment_id': _0x58654b['string']() }, async _0x56f547 => {
|
|
1784
|
-
const _0xa1c9f1 = _0x33e4d4;
|
|
1785
|
-
try {
|
|
1786
|
-
return textResult(await _0x1acf13[_0xa1c9f1(0x1db)](_0x56f547));
|
|
1787
|
-
} catch (_0x3e7418) {
|
|
1788
|
-
return textResult(_0x3e7418 instanceof Error ? _0x3e7418[_0xa1c9f1(_0x4dc651._0x4a41f7)] : _0xa1c9f1(_0x4dc651._0x1cd2e1), !![]);
|
|
1789
|
-
}
|
|
1790
|
-
}), _0x2c0a4f[_0x33e4d4(_0x384acc._0x3f6cfc)](_0x33e4d4(0x28c), _0x33e4d4(_0x384acc._0x5c15d7), { 'work_key': _0x58654b['string']() }, async _0xfa660a => {
|
|
1791
|
-
const _0x615eb0 = _0x33e4d4;
|
|
1792
|
-
try {
|
|
1793
|
-
return textResult(await _0x1acf13[_0x615eb0(_0x5dbbe3._0x3449f8)](_0xfa660a));
|
|
1794
|
-
} catch (_0x322694) {
|
|
1795
|
-
return textResult(_0x322694 instanceof Error ? _0x322694[_0x615eb0(0x200)] : 'get_worker_status\x20failed', !![]);
|
|
1796
|
-
}
|
|
1797
|
-
}), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(_0x384acc._0x46165c), _0x33e4d4(0x1e6), { 'work_key': _0x58654b[_0x33e4d4(0x140)]() }, async _0xfde60a => {
|
|
1798
|
-
const _0x2be5f7 = _0x33e4d4;
|
|
1799
|
-
try {
|
|
1800
|
-
return textResult(await _0x1acf13[_0x2be5f7(_0x17f107._0x11a3cb)](_0xfde60a));
|
|
1801
|
-
} catch (_0x3e3e9f) {
|
|
1802
|
-
return textResult(_0x3e3e9f instanceof Error ? _0x3e3e9f['message'] : 'get_worker_result\x20failed', !![]);
|
|
1803
|
-
}
|
|
1804
|
-
}), _0x2c0a4f[_0x33e4d4(_0x384acc._0x4fa223)](_0x33e4d4(_0x384acc._0x36b6b6), _0x33e4d4(_0x384acc._0x490d1c), {
|
|
1805
|
-
'work_key': _0x58654b[_0x33e4d4(0x140)](),
|
|
1806
|
-
'result': _0x58654b['enum']([
|
|
1807
|
-
_0x33e4d4(0x15c),
|
|
1808
|
-
_0x33e4d4(0x162),
|
|
1809
|
-
_0x33e4d4(_0x384acc._0x312220)
|
|
1810
|
-
]),
|
|
1811
|
-
'summary': _0x58654b[_0x33e4d4(0x140)](),
|
|
1812
|
-
'decisions': _0x58654b[_0x33e4d4(0x235)](_0x58654b[_0x33e4d4(0x140)]())[_0x33e4d4(0x15e)](),
|
|
1813
|
-
'files_changed': _0x58654b[_0x33e4d4(_0x384acc._0x39ba14)](_0x58654b[_0x33e4d4(_0x384acc._0x5a88a7)]())[_0x33e4d4(0x15e)](),
|
|
1814
|
-
'open_issues': _0x58654b[_0x33e4d4(_0x384acc._0x448a61)](_0x58654b[_0x33e4d4(_0x384acc._0xb57de5)]())[_0x33e4d4(0x15e)](),
|
|
1815
|
-
'next_steps': _0x58654b[_0x33e4d4(_0x384acc._0x309b93)](_0x58654b['string']())['optional']()
|
|
1816
|
-
}, async _0x3f4c52 => {
|
|
1817
|
-
const _0x1e5ca0 = _0x33e4d4;
|
|
1818
|
-
try {
|
|
1819
|
-
return textResult(await _0x1acf13[_0x1e5ca0(_0x4bb5d0._0x100d01)](_0x3f4c52));
|
|
1820
|
-
} catch (_0x12e88b) {
|
|
1821
|
-
return textResult(_0x12e88b instanceof Error ? _0x12e88b['message'] : _0x1e5ca0(_0x4bb5d0._0x5784b7), !![]);
|
|
1822
|
-
}
|
|
1823
|
-
}), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(_0x384acc._0x3961d0), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
1824
|
-
'work_key': _0x58654b[_0x33e4d4(_0x384acc._0xb57de5)](),
|
|
1825
|
-
'reason': _0x58654b[_0x33e4d4(_0x384acc._0xa7a56b)]()
|
|
1826
|
-
}, async _0x884e6e => {
|
|
1827
|
-
const _0xde809e = _0x33e4d4;
|
|
1828
|
-
try {
|
|
1829
|
-
return textResult(await _0x1acf13['escalate_to_main'](_0x884e6e));
|
|
1830
|
-
} catch (_0x55a6d2) {
|
|
1831
|
-
return textResult(_0x55a6d2 instanceof Error ? _0x55a6d2[_0xde809e(0x200)] : _0xde809e(_0x31442a._0x2f8090), !![]);
|
|
1832
|
-
}
|
|
1833
|
-
}), _0x2e1d17?.['workerMode'] && _0x2c0a4f[_0x33e4d4(_0x384acc._0x4fb54c)](_0x33e4d4(0x29d), _0x33e4d4(_0x384acc._0x122931), { 'work_key': _0x58654b[_0x33e4d4(_0x384acc._0x5d44f0)]() }, async _0x1453cc => {
|
|
1834
|
-
const _0x364fdd = _0x33e4d4;
|
|
1835
|
-
try {
|
|
1836
|
-
return textResult(await _0x1acf13['mark_waiting_input'](_0x1453cc));
|
|
1837
|
-
} catch (_0x993bc6) {
|
|
1838
|
-
return textResult(_0x993bc6 instanceof Error ? _0x993bc6[_0x364fdd(_0x13b04d._0x24d0c9)] : _0x364fdd(0x122), !![]);
|
|
1839
|
-
}
|
|
1840
|
-
});
|
|
1841
|
-
}
|
|
1842
|
-
async function createChatBridgeServer(_0x3bab65) {
|
|
1843
|
-
const _0x44402d = { _0x5477a2: 0x1d8 }, _0x6619e7 = _0x15d6d8, {McpServer: _0x30c9db} = await import(_0x6619e7(_0x44402d._0x5477a2)), _0x423a32 = new _0x30c9db({
|
|
1844
|
-
'name': _0x6619e7(0x157),
|
|
1845
|
-
'version': _0x6619e7(0x249)
|
|
1846
|
-
}), _0x36997f = createChatBridgeHandlers(_0x3bab65);
|
|
1847
|
-
return await registerChatBridgeTools(_0x423a32, _0x36997f, { 'workerMode': _0x3bab65[_0x6619e7(0x19a)] }), {
|
|
1848
|
-
'handlers': _0x36997f,
|
|
1849
|
-
'server': _0x423a32
|
|
1850
|
-
};
|
|
1851
|
-
}
|
|
1852
|
-
function readFlag(_0x305340, _0x5a20e9) {
|
|
1853
|
-
const _0x14e4df = { _0x12b5ec: 0x1f2 }, _0x2364d3 = _0x15d6d8, _0x49ae2f = _0x305340[_0x2364d3(_0x14e4df._0x12b5ec)](_0x5a20e9);
|
|
1854
|
-
if (_0x49ae2f === -0x1)
|
|
1855
|
-
return void 0x0;
|
|
1856
|
-
return _0x305340[_0x49ae2f + 0x1];
|
|
1857
|
-
}
|
|
1858
|
-
function parseChatBridgeArgs(_0x3a68d2) {
|
|
1859
|
-
const _0x4af55b = {
|
|
1860
|
-
_0x44483f: 0x1f7,
|
|
1861
|
-
_0x5c1a01: 0x1e4,
|
|
1862
|
-
_0x22db9d: 0x135,
|
|
1863
|
-
_0x55c423: 0x281,
|
|
1864
|
-
_0x187f08: 0x256,
|
|
1865
|
-
_0x27dd05: 0x237
|
|
1866
|
-
}, _0x49e93d = _0x15d6d8, _0x254323 = readFlag(_0x3a68d2, _0x49e93d(0x28e)), _0x2aee04 = readFlag(_0x3a68d2, _0x49e93d(_0x4af55b._0x44483f)), _0x5f53f6 = readFlag(_0x3a68d2, _0x49e93d(0x296)), _0x118169 = readFlag(_0x3a68d2, _0x49e93d(0x21a)) ?? _0x49e93d(_0x4af55b._0x5c1a01), _0xae2c11 = readFlag(_0x3a68d2, '--daemon-local-url'), _0x365ebc = readFlag(_0x3a68d2, '--session-id'), _0x5a53bd = readFlag(_0x3a68d2, _0x49e93d(0x1ac)), _0x3ec9e7 = readFlag(_0x3a68d2, _0x49e93d(0x1df)), _0x25f8e1 = readFlag(_0x3a68d2, '--worker-thread-target'), _0x5b540f = _0x3a68d2[_0x49e93d(_0x4af55b._0x22db9d)]('--worker-mode'), _0x415c1c = _0x5f53f6 === void 0x0 ? void 0x0 : Number[_0x49e93d(_0x4af55b._0x55c423)](_0x5f53f6, 0xa);
|
|
1867
|
-
if (!_0x254323)
|
|
1868
|
-
throw new Error(_0x49e93d(0x14f));
|
|
1869
|
-
if (!_0x2aee04)
|
|
1870
|
-
throw new Error(_0x49e93d(_0x4af55b._0x187f08));
|
|
1871
|
-
if (_0x5f53f6 !== void 0x0 && (_0x415c1c === void 0x0 || !Number[_0x49e93d(_0x4af55b._0x27dd05)](_0x415c1c) || _0x415c1c < 0x0))
|
|
1872
|
-
throw new Error(_0x49e93d(0x1ae));
|
|
1873
|
-
return {
|
|
1874
|
-
'agentId': _0x254323,
|
|
1875
|
-
'daemonApiKey': _0x2aee04,
|
|
1876
|
-
'daemonLocalUrl': _0xae2c11,
|
|
1877
|
-
'initialLastSeenSeq': _0x415c1c,
|
|
1878
|
-
'sessionId': _0x365ebc,
|
|
1879
|
-
'serverUrl': _0x118169,
|
|
1880
|
-
'workerModeEnabled': _0x5a53bd === void 0x0 ? void 0x0 : _0x5a53bd !== _0x49e93d(0x1c2),
|
|
1881
|
-
'workerSessionId': _0x3ec9e7,
|
|
1882
|
-
'workerThreadTarget': _0x25f8e1,
|
|
1883
|
-
'workerMode': _0x5b540f
|
|
1573
|
+
..._0x1fed18 ? { 'isError': !![] } : {}
|
|
1884
1574
|
};
|
|
1885
1575
|
}
|
|
1886
|
-
|
|
1887
|
-
const
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
export {
|
|
1901
|
-
createChatBridgeHandlers,
|
|
1902
|
-
createChatBridgeServer,
|
|
1903
|
-
getChatBridgeToolDefinitions,
|
|
1904
|
-
parseChatBridgeArgs,
|
|
1905
|
-
runChatBridgeCli
|
|
1906
|
-
};
|
|
1907
|
-
function _0x4199() {
|
|
1908
|
-
const _0xb40cad = [
|
|
1909
|
-
'yM9KEvrLEhq',
|
|
1910
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1911
|
-
'Dgv4Dc9WBgfPBG',
|
|
1912
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1913
|
-
'y29UDgvUDa',
|
|
1914
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
1915
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1916
|
-
'l3rHC2TZ',
|
|
1917
|
-
'yM9KEu1HCMTKB3DU',
|
|
1918
|
-
'Aw1Hz2uVz2LM',
|
|
1919
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1920
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1921
|
-
'yxjYyxLcDwzMzxi',
|
|
1922
|
-
'AgfZ',
|
|
1923
|
-
'mc4WlJa',
|
|
1924
|
-
'DMLZAwjPBgL0Eq',
|
|
1925
|
-
'DgHYzwfKtNvTyMvY',
|
|
1926
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1927
|
-
'D29YA19RzxK',
|
|
1928
|
-
'r0vu',
|
|
1929
|
-
'C2vUzgvYtMfTzq',
|
|
1930
|
-
'CNvUswq',
|
|
1931
|
-
'C2vUzf9TzxnZywDL',
|
|
1932
|
-
'CMvZDwX0sNnVBG',
|
|
1933
|
-
'CMvZDwX0',
|
|
1934
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
1935
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1936
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1937
|
-
'D29YA2vY',
|
|
1938
|
-
'zg06',
|
|
1939
|
-
'zg0T',
|
|
1940
|
-
'l2nVBNrLBNq',
|
|
1576
|
+
function _0x1f7c() {
|
|
1577
|
+
const _0x14be20 = [
|
|
1578
|
+
'y2HHBM5LBe5HBwu',
|
|
1579
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1580
|
+
'zw51Bq',
|
|
1581
|
+
'vgfZAZOG',
|
|
1582
|
+
'BgLTAxq',
|
|
1583
|
+
'DMLLD19MAwXL',
|
|
1584
|
+
'C2vYDMvYtMfTzq',
|
|
1585
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1586
|
+
'yxnPzgu',
|
|
1587
|
+
'z2v0tw9UDgG',
|
|
1588
|
+
'zMLUza',
|
|
1589
|
+
'CMvHzeHPC3rVCNK',
|
|
1941
1590
|
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1942
|
-
'
|
|
1943
|
-
'
|
|
1944
|
-
'
|
|
1945
|
-
'
|
|
1946
|
-
'
|
|
1947
|
-
'
|
|
1948
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1949
|
-
'C2XPy2u',
|
|
1950
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1951
|
-
'DxnLCG',
|
|
1952
|
-
'CMvHzf9OAxn0B3j5',
|
|
1953
|
-
'C2L6zuj5DgvZ',
|
|
1954
|
-
'y2HHBM5LBa',
|
|
1955
|
-
'DhjPBq',
|
|
1956
|
-
'lNnSB2nR',
|
|
1957
|
-
'ywz0zxi',
|
|
1958
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
1959
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1960
|
-
'yxv0BZO',
|
|
1961
|
-
'C3rVCe1HAw4',
|
|
1962
|
-
'l3DVCMTLCNmVzMLUAxnO',
|
|
1963
|
-
'l3rHC2TZpW',
|
|
1964
|
-
'ig1LC3nHz2u9',
|
|
1965
|
-
'mJC0ndKXCNjHugXd',
|
|
1966
|
-
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1967
|
-
'DxbKyxrL',
|
|
1968
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1969
|
-
'l3rHC2TZl2nSywLT',
|
|
1970
|
-
'ignSywLTzwq',
|
|
1971
|
-
'uefuq0G',
|
|
1972
|
-
'CMvWBgfJzq',
|
|
1973
|
-
'iYmJiefNzw50CW',
|
|
1974
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1975
|
-
'zxH0BMfTzq',
|
|
1976
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1977
|
-
'C3rHDhvZ',
|
|
1978
|
-
'AhjLzG',
|
|
1979
|
-
'CgfYC2vjBNq',
|
|
1980
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1981
|
-
'sfruuca',
|
|
1982
|
-
'D29YA2vYsgfUzg9MzG',
|
|
1983
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1984
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
1591
|
+
'y2HHBM5LBeLK',
|
|
1592
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1593
|
+
'Dg9tDhjPBMC',
|
|
1594
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
1595
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1596
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1985
1597
|
'z2v0rNvSBfLLyxi',
|
|
1986
|
-
'
|
|
1987
|
-
'
|
|
1988
|
-
'
|
|
1989
|
-
'
|
|
1990
|
-
'
|
|
1991
|
-
'
|
|
1992
|
-
'
|
|
1598
|
+
'y29UDgvUDfr5Cgu',
|
|
1599
|
+
'Aw5FCMv2Awv3',
|
|
1600
|
+
'Aw1Hz2uVANbLzW',
|
|
1601
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1602
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1603
|
+
'otG3mgjhAhbvwq',
|
|
1604
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
1605
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1606
|
+
'AhvTyw5Z',
|
|
1607
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1608
|
+
'BM93',
|
|
1609
|
+
'AhjLzG',
|
|
1993
1610
|
'CMvZDw1Lx3bHy2TLDa',
|
|
1994
|
-
'
|
|
1995
|
-
'
|
|
1996
|
-
'
|
|
1997
|
-
'
|
|
1998
|
-
'
|
|
1611
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1612
|
+
'ChjVDg9JB2W',
|
|
1613
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
1614
|
+
'Bwv0yq',
|
|
1615
|
+
'C2vX',
|
|
1616
|
+
'iYmGu2vYDMvYoIa',
|
|
1617
|
+
'ywDLBNq',
|
|
1999
1618
|
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
2000
|
-
'
|
|
2001
|
-
'
|
|
2002
|
-
'
|
|
2003
|
-
'
|
|
2004
|
-
'
|
|
2005
|
-
'
|
|
2006
|
-
'
|
|
2007
|
-
'
|
|
2008
|
-
'
|
|
2009
|
-
'
|
|
2010
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
2011
|
-
'yxr0ywnOBwvUDhm',
|
|
2012
|
-
'DgfZAY0',
|
|
2013
|
-
'mtfMyNz4q1y',
|
|
2014
|
-
'BNvTyMvY',
|
|
2015
|
-
'DgfZAW',
|
|
2016
|
-
'lsba',
|
|
2017
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
2018
|
-
'BgLZDfnLCNzLCG',
|
|
1619
|
+
'DxbSB2fKrMLSzq',
|
|
1620
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1621
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1622
|
+
'Dg9VBa',
|
|
1623
|
+
'y2HHBM5LBa',
|
|
1624
|
+
'DgfYz2v0',
|
|
1625
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1626
|
+
'ue9tva',
|
|
1627
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1628
|
+
'Dg9gAxHLza',
|
|
2019
1629
|
'ihrPBwu9',
|
|
2020
|
-
'
|
|
2021
|
-
'
|
|
2022
|
-
'
|
|
2023
|
-
'
|
|
2024
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
2025
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
2026
|
-
'CMvHC29U',
|
|
2027
|
-
'z2v0u2vJB25KCW',
|
|
2028
|
-
'B3bLBL9PC3n1zxm',
|
|
2029
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
2030
|
-
'BMv4Den1CNnVCG',
|
|
2031
|
-
'l3vWBg9Hza',
|
|
2032
|
-
'Bwf4',
|
|
2033
|
-
'ChvZAa',
|
|
2034
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
2035
|
-
'BMfTzq',
|
|
2036
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
2037
|
-
'DgL0Bgu',
|
|
2038
|
-
'DgfZA0LK',
|
|
2039
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
2040
|
-
'Aw5JBhvKzxm',
|
|
1630
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1631
|
+
'ig1LC3nHz2vZkqOk',
|
|
1632
|
+
'mc4WlJa',
|
|
1633
|
+
'DhLWzq',
|
|
2041
1634
|
'C29YDa',
|
|
2042
|
-
'
|
|
2043
|
-
'
|
|
2044
|
-
'
|
|
2045
|
-
'
|
|
2046
|
-
'
|
|
2047
|
-
'y3jLyxrLzef0',
|
|
2048
|
-
'zgvZy3jPChrPB24',
|
|
2049
|
-
'yxr0ywnOBwvUDeLK',
|
|
2050
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
2051
|
-
'C3rYAw5N',
|
|
2052
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
2053
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
2054
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
2055
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
2056
|
-
'Agv4',
|
|
2057
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
2058
|
-
'zMfPBgvK',
|
|
1635
|
+
'nta1ndHgswP0CMi',
|
|
1636
|
+
'DMfSDwu',
|
|
1637
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
1638
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1639
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
2059
1640
|
'DgHYzwfK',
|
|
2060
|
-
'
|
|
2061
|
-
'
|
|
1641
|
+
'ignSywLTzwq',
|
|
1642
|
+
'AhvTyw4',
|
|
1643
|
+
'D29YA2vYtw9Kzq',
|
|
1644
|
+
'igLUia',
|
|
1645
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1646
|
+
'C2L6zuj5DgvZ',
|
|
1647
|
+
'y2f0y2G',
|
|
1648
|
+
'DxbKyxrL',
|
|
2062
1649
|
'C3rYAw5NAwz5',
|
|
2063
|
-
'
|
|
2064
|
-
'
|
|
1650
|
+
'zMv0y2HjBxbS',
|
|
1651
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1652
|
+
'Agv4',
|
|
1653
|
+
'Dw5JBgfPBv90yxnR',
|
|
1654
|
+
'C2XPy2u',
|
|
2065
1655
|
'yxbWBgLJyxrPB24VCgrM',
|
|
2066
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
2067
|
-
'ntjwtNjHyxm',
|
|
2068
|
-
'y29UDgvUDfr5Cgu',
|
|
2069
|
-
'CMvZCg9UC2u',
|
|
2070
1656
|
'zgf0yq',
|
|
2071
|
-
'
|
|
2072
|
-
'
|
|
2073
|
-
'
|
|
2074
|
-
'
|
|
2075
|
-
'
|
|
2076
|
-
'
|
|
2077
|
-
'
|
|
2078
|
-
'
|
|
2079
|
-
'
|
|
2080
|
-
'
|
|
2081
|
-
'
|
|
2082
|
-
'
|
|
2083
|
-
'
|
|
2084
|
-
'
|
|
2085
|
-
'
|
|
2086
|
-
'
|
|
1657
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
1658
|
+
'cGOTls0G',
|
|
1659
|
+
'DgfZA051BwjLCG',
|
|
1660
|
+
'ls1Hz2vUDc1Pza',
|
|
1661
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1662
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
1663
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1664
|
+
'zM9Yy2vszwzYzxnO',
|
|
1665
|
+
'yxjYyxLcDwzMzxi',
|
|
1666
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
1667
|
+
'AxnjBNrLz2vY',
|
|
1668
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1669
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1670
|
+
'zMLSzw5HBwu',
|
|
1671
|
+
'l3rHC2TZ',
|
|
1672
|
+
'xsba',
|
|
1673
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1674
|
+
'nZKWota4zMjxAuTo',
|
|
1675
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1676
|
+
'CgfYDgLJAxbHBNq',
|
|
1677
|
+
'DxnLCG',
|
|
1678
|
+
'C3vJy2vZCW',
|
|
1679
|
+
'DxjNzw50',
|
|
1680
|
+
'BwvTyMvYCW',
|
|
1681
|
+
'BwvZC2fNzxm',
|
|
1682
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1683
|
+
'yxv0BZO',
|
|
1684
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1685
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1686
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
1687
|
+
'Dgv4Dc9WBgfPBG',
|
|
1688
|
+
'y3jLyxrLzef0',
|
|
1689
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
1690
|
+
'mtHUsKXeuLm',
|
|
1691
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1692
|
+
'BwvZC2fNzuLK',
|
|
1693
|
+
'D29YA19RzxK',
|
|
1694
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1695
|
+
'DgfZAW',
|
|
1696
|
+
'BwvZC2fNzq',
|
|
1697
|
+
'y29UDgvUDejHC2u2na',
|
|
1698
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1699
|
+
'ChvIBgLJ',
|
|
1700
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1701
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1702
|
+
'l2HPC3rVCNK/',
|
|
1703
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1704
|
+
'l3jLy2vPDMu',
|
|
1705
|
+
'DxrMoa',
|
|
1706
|
+
'ChvZAa',
|
|
1707
|
+
'mtG2ng9VBgXwCa',
|
|
1708
|
+
'AxngAwXL',
|
|
1709
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1710
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1711
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
2087
1712
|
'yMfZzw5HBwu',
|
|
1713
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1714
|
+
'BgLZDfrHC2TZ',
|
|
2088
1715
|
'y2HLy2TnzxnZywDLCW',
|
|
2089
|
-
'
|
|
1716
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1717
|
+
'zxHWAxjLC0f0',
|
|
1718
|
+
'pgvTChr5pG',
|
|
1719
|
+
'BNvTyMvY',
|
|
1720
|
+
'lsba',
|
|
1721
|
+
'y2fJAgveAxi',
|
|
1722
|
+
'CMvHC29U',
|
|
1723
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1724
|
+
'zMLSzv9WyxrO',
|
|
1725
|
+
'yMfZzty0',
|
|
1726
|
+
'DhjPBq',
|
|
1727
|
+
'kgXLz2fJEsK',
|
|
1728
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
1729
|
+
'l2nVBNrLBNq',
|
|
1730
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1731
|
+
'C29Tzq',
|
|
1732
|
+
'AgvHzgvYCW',
|
|
2090
1733
|
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
2091
|
-
'
|
|
2092
|
-
'
|
|
2093
|
-
'
|
|
2094
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
2095
|
-
'Dw5RBM93BG',
|
|
2096
|
-
'DgfZA051BwjLCG',
|
|
2097
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
2098
|
-
'CgfKu3rHCNq',
|
|
1734
|
+
'r0vu',
|
|
1735
|
+
'zxzLBNrtzxe',
|
|
1736
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
2099
1737
|
'zgvZDhjVEwvK',
|
|
2100
|
-
'
|
|
2101
|
-
'
|
|
2102
|
-
'
|
|
2103
|
-
'
|
|
2104
|
-
'
|
|
2105
|
-
'
|
|
2106
|
-
'
|
|
2107
|
-
'
|
|
2108
|
-
'
|
|
2109
|
-
'
|
|
2110
|
-
'
|
|
2111
|
-
'
|
|
2112
|
-
'
|
|
2113
|
-
'
|
|
1738
|
+
'Ahr0Chm6',
|
|
1739
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1740
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
1741
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
1742
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1743
|
+
'C2vYDMvY',
|
|
1744
|
+
'BgLZDf90yxnRCW',
|
|
1745
|
+
'ywz0zxi',
|
|
1746
|
+
'CMvJB3jK',
|
|
1747
|
+
'iYmJieH1BwfUCW',
|
|
1748
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
1749
|
+
'zMfPBgvK',
|
|
1750
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1751
|
+
'AgfZtw9Yzq',
|
|
1752
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1753
|
+
'ywDLBNrZ',
|
|
1754
|
+
'v29YA2vYia',
|
|
1755
|
+
'CMvXDwvZDfvYBa',
|
|
1756
|
+
'igzHAwXLzdOG',
|
|
1757
|
+
'DgfZA3m',
|
|
1758
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1759
|
+
'v29YA2vYici',
|
|
1760
|
+
'icHPzdO',
|
|
1761
|
+
'C3rHCNrZv2L0Aa',
|
|
1762
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1763
|
+
'ls1Zzxj2zxiTDxjS',
|
|
1764
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1765
|
+
'C3rHDhvZ',
|
|
1766
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
2114
1767
|
'A2LUza',
|
|
2115
|
-
'
|
|
2116
|
-
'
|
|
2117
|
-
'
|
|
2118
|
-
'
|
|
1768
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1769
|
+
'C2LNBMfS',
|
|
1770
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1771
|
+
'ywrK',
|
|
1772
|
+
'lNnSB2nR',
|
|
1773
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1774
|
+
'C2HHmJu2',
|
|
1775
|
+
'ywDNCMvNyxrLswrZ',
|
|
1776
|
+
'uefuq0G',
|
|
1777
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1778
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1779
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1780
|
+
'AgfZ',
|
|
1781
|
+
'D29YA2vY',
|
|
1782
|
+
'u2vUzcbHig1LC3nHz2uUieLUihrHC2SGDgHYzwfKCYWGDMLZAwjPBgL0EsbKzwzHDwX0CYb0BYbHC2LKzsaOBgvHDMuGDw5ZzxqGzM9YihjVDxrPBMuGDxbKyxrLCYKUieLUignOyw5UzwXZl0rnCYWGDMLZAwjPBgL0EsbKzwzHDwX0CYb0BYbWDwjSAwmGkgrVig5VDcbZzxqGzxHWBgLJAxrSEsKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1783
|
+
'zgvSzxrL',
|
|
1784
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1785
|
+
'Cgf5Bg9HzePZB24',
|
|
1786
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1787
|
+
'Ahr0CdO',
|
|
1788
|
+
'DgfZAY0',
|
|
1789
|
+
'Aw1Hz2uVz2LM',
|
|
1790
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1791
|
+
'CgfYDgLJAxbHBNrjza',
|
|
2119
1792
|
'DgvZDa',
|
|
2120
|
-
'
|
|
2121
|
-
'
|
|
2122
|
-
'
|
|
2123
|
-
'
|
|
2124
|
-
'
|
|
2125
|
-
'
|
|
1793
|
+
'lMjPBG',
|
|
1794
|
+
'z2v0vgLTzq',
|
|
1795
|
+
'CMvZDwX0',
|
|
1796
|
+
'zg9Uzq',
|
|
1797
|
+
'DgfZA0LK',
|
|
1798
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1799
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1800
|
+
'CMvZCg9UC2u',
|
|
1801
|
+
'ywjVCNrLza',
|
|
1802
|
+
'Bwf0y2Hoyw1L',
|
|
2126
1803
|
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
2127
|
-
'BM93',
|
|
2128
|
-
'iYmJienOyw5UzwXZ',
|
|
2129
|
-
'Ahr0Chm6',
|
|
2130
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
2131
|
-
'BgvUz3rO',
|
|
2132
|
-
'AxnjBNrLz2vY',
|
|
2133
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
2134
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
2135
|
-
'D29YA2vYCW',
|
|
2136
|
-
'kg5VBMuP',
|
|
2137
1804
|
'ywXS',
|
|
2138
|
-
'
|
|
2139
|
-
'
|
|
2140
|
-
'
|
|
2141
|
-
'
|
|
2142
|
-
'
|
|
2143
|
-
'
|
|
2144
|
-
'
|
|
2145
|
-
'
|
|
2146
|
-
'
|
|
2147
|
-
'
|
|
2148
|
-
'
|
|
2149
|
-
'
|
|
2150
|
-
'
|
|
2151
|
-
'
|
|
2152
|
-
'
|
|
1805
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1806
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1807
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1808
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1809
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1810
|
+
'z2v0u2vJB25KCW',
|
|
1811
|
+
'y29TCgXLDgvK',
|
|
1812
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1813
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
1814
|
+
'CxvLDwvK',
|
|
1815
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1816
|
+
'Aw5JBhvKzxm',
|
|
1817
|
+
'BwfW',
|
|
1818
|
+
'ANnVBG',
|
|
1819
|
+
'y29UDgvUDa',
|
|
1820
|
+
'z2v0sg91CNm',
|
|
1821
|
+
'l3nLBMq',
|
|
1822
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1823
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1824
|
+
'DgL0Bgu',
|
|
1825
|
+
'B3b0Aw9UywW',
|
|
1826
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1827
|
+
'C3rVCe1HAw4',
|
|
2153
1828
|
'yxjNDG',
|
|
1829
|
+
'CgfKu3rHCNq',
|
|
1830
|
+
'l3rHC2TZpW',
|
|
1831
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
2154
1832
|
'zMLSDgvY',
|
|
2155
|
-
'
|
|
2156
|
-
'
|
|
2157
|
-
'
|
|
2158
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
2159
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
2160
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
2161
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
2162
|
-
'AgvHzgvYCW',
|
|
2163
|
-
'v29YA2vYici',
|
|
2164
|
-
'BMv4Df9ZDgvWCW',
|
|
2165
|
-
'Dg9mB3DLCKnHC2u',
|
|
2166
|
-
'kgXLz2fJEsK',
|
|
1833
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1834
|
+
'ihn0yxr1CZ0',
|
|
1835
|
+
'C2vZC2LVBKLK',
|
|
2167
1836
|
'ywjVCNq',
|
|
1837
|
+
'mJyWmte4nMLlEgTZwG',
|
|
1838
|
+
'z2v0',
|
|
1839
|
+
'l3rHC2TZl2nSywLT',
|
|
1840
|
+
'AxngAw5PDgu',
|
|
1841
|
+
'DgHYzwfKswq',
|
|
1842
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
1843
|
+
'BMv4Den1CNnVCG',
|
|
1844
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1845
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1846
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1847
|
+
'zg06',
|
|
1848
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1849
|
+
'y29UDgvUDc10ExbL',
|
|
1850
|
+
'zxH0BMfTzq',
|
|
1851
|
+
'D29YA2vYsgfUzg9MzG',
|
|
1852
|
+
'DgHYzwfKtNvTyMvY',
|
|
1853
|
+
'lsaJ',
|
|
1854
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
1855
|
+
'BwvTyMvY',
|
|
1856
|
+
'yxr0ywnOBwvUDhm',
|
|
1857
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
1858
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1859
|
+
'w3rHCMDLDd0',
|
|
1860
|
+
'yMXVy2TLza',
|
|
1861
|
+
'C2vUzgvYvhLWzq',
|
|
1862
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1863
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1864
|
+
'AxnbyNnVBhv0zq',
|
|
1865
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1866
|
+
'DMfSDwvZ',
|
|
1867
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1868
|
+
'AxnbCNjHEq',
|
|
1869
|
+
'ywDLBNrjza',
|
|
1870
|
+
'yMvMB3jL',
|
|
1871
|
+
'Dg9mB3DLCKnHC2u',
|
|
1872
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1873
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1874
|
+
'DgfZA19Pza',
|
|
1875
|
+
'w3nLCt0',
|
|
1876
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1877
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1878
|
+
'lIbnzxnZywDLieLeoIa',
|
|
1879
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1880
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1881
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1882
|
+
'yxr0ywnOBwvUDeLK',
|
|
1883
|
+
'AM9PBG',
|
|
1884
|
+
'zNjVBq',
|
|
1885
|
+
'DxbSB2fKx2zPBgu',
|
|
1886
|
+
'zgvJAxnPB25Z',
|
|
1887
|
+
't25SEsbZzxqGAw4GDgfZAYb0AhjLywrZihDOzw4GDgHLihjLC3vSDcbUzwvKCYbWDwjSAwmGDMLZAwjPBgL0Es4GtgvHDMuGDw5ZzxqGzM9YihjVDxrPBMuGBwvZC2fNzxmG4OcuihrOzsbZzxj2zxiGyxbWBgLLCYbJB3jYzwn0igrLzMf1BhrZlG',
|
|
1888
|
+
'D29YA2vYCW',
|
|
1889
|
+
'l3n0yxj0',
|
|
1890
|
+
'DMLZAwjPBgL0Eq',
|
|
1891
|
+
'iYmJienOyw5UzwXZ',
|
|
1892
|
+
'BMfTzq',
|
|
1893
|
+
'Dg9KBW',
|
|
2168
1894
|
'C2L6zq',
|
|
2169
|
-
'
|
|
2170
|
-
'
|
|
2171
|
-
'
|
|
2172
|
-
'
|
|
2173
|
-
'
|
|
1895
|
+
'BgLZDf9Zzxj2zxi',
|
|
1896
|
+
'C2f2zq',
|
|
1897
|
+
'DgfYz2v0zwq',
|
|
1898
|
+
'zw50CMLLCW',
|
|
1899
|
+
'D3m6',
|
|
1900
|
+
'ig1ZzZ0',
|
|
1901
|
+
'C2vUzgvYtMfTzq',
|
|
1902
|
+
'Aw1Hz2uVCg5N',
|
|
1903
|
+
'y2HHDa',
|
|
1904
|
+
'mJCZotu4ndbls2jcwKC',
|
|
1905
|
+
'y2XPzw50',
|
|
2174
1906
|
'zgLZCg9ZAxrPB24',
|
|
2175
|
-
'Dg9gAxHLza',
|
|
2176
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
2177
1907
|
'y29UBMvJDa',
|
|
2178
|
-
'
|
|
2179
|
-
'Bwf0y2Hoyw1L',
|
|
2180
|
-
'CMvZDwX0CW',
|
|
2181
|
-
'zMfSC2u',
|
|
2182
|
-
'y2XHAw1FDgfZA3m',
|
|
2183
|
-
'Aw1Hz2uVD2vICa',
|
|
2184
|
-
'zxjYB3i',
|
|
2185
|
-
'zM9Yy2vszwzYzxnO',
|
|
2186
|
-
'C3vTBwfYEq',
|
|
2187
|
-
'Bwv0yq',
|
|
2188
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
2189
|
-
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
2190
|
-
'DgfYz2v0zwruyxnR',
|
|
2191
|
-
'Aw5FChjVz3jLC3m',
|
|
2192
|
-
'BwLU',
|
|
2193
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
2194
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
2195
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
2196
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
2197
|
-
'AhvTyw5Z',
|
|
2198
|
-
'C2vX',
|
|
1908
|
+
'Dw5RBM93BG',
|
|
2199
1909
|
'zgfLBw9Utg9JywXvCMW',
|
|
2200
|
-
'u2vUzcbHig1LC3nHz2uGDg8GysbJAgfUBMvSig9YiernlIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZoYb0AhjLywqGDgfYz2v0CYb1C2uGDgHLihnHBwuGzMLLBgqU',
|
|
2201
|
-
'Bg9JywXLq29TCgfYzq',
|
|
2202
|
-
'Dg9VBa',
|
|
2203
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
2204
|
-
'l2HPC3rVCNK/',
|
|
2205
|
-
'l3nLBMq',
|
|
2206
|
-
'DMLLD19MAwXL',
|
|
2207
|
-
'khvUA25VD24P',
|
|
2208
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
2209
|
-
'BgLZDf9Zzxj2zxi',
|
|
2210
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
2211
|
-
'Cgf5Bg9HzePZB24',
|
|
2212
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
2213
|
-
'odiWota1m3nUBxD2qq',
|
|
2214
|
-
'y3jLyxrLvgfZA3m',
|
|
2215
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
2216
|
-
'C2v0',
|
|
2217
|
-
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
2218
|
-
'DxrMoa',
|
|
2219
|
-
'DxbSB2fKx2zPBgu',
|
|
2220
|
-
'mJCXodK4oxHwvLbyqq',
|
|
2221
|
-
'zNjVBq',
|
|
2222
|
-
'BgLZDf90yxnRCW',
|
|
2223
|
-
'DMfSDwu',
|
|
2224
|
-
'EM9K',
|
|
2225
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
2226
|
-
'zxHWAxjLC0f0',
|
|
2227
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
2228
|
-
'DgfZA19Pza',
|
|
2229
|
-
'Aw5KzxHpzG',
|
|
2230
|
-
'iJOGC3rHDhvZpq',
|
|
2231
|
-
'pgvTChr5pG',
|
|
2232
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
2233
|
-
'ANnVBG',
|
|
2234
1910
|
'ls1KywvTB24TyxbPlwTLEq',
|
|
2235
|
-
'
|
|
2236
|
-
'
|
|
2237
|
-
'
|
|
2238
|
-
'
|
|
2239
|
-
'
|
|
2240
|
-
'
|
|
2241
|
-
'
|
|
2242
|
-
'
|
|
2243
|
-
'
|
|
2244
|
-
'
|
|
2245
|
-
'
|
|
2246
|
-
'
|
|
2247
|
-
'
|
|
2248
|
-
'
|
|
2249
|
-
'
|
|
2250
|
-
'
|
|
2251
|
-
'BwfW',
|
|
2252
|
-
'zxzLBNrtzxe',
|
|
1911
|
+
'Dgv4Da',
|
|
1912
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
1913
|
+
'yM9KEu1HCMTKB3DU',
|
|
1914
|
+
'C3rHCNrLza',
|
|
1915
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1916
|
+
'zxjYB3i',
|
|
1917
|
+
'iIbUB3qGzM91BMq',
|
|
1918
|
+
'ig1LC3nHz2u9',
|
|
1919
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
1920
|
+
'CMvZDwX0CW',
|
|
1921
|
+
'z2v0twLUDxrLCW',
|
|
1922
|
+
'mZK1odG0oe9VzwPbEG',
|
|
1923
|
+
'lcbWCMv2Awv3pq',
|
|
1924
|
+
'B2jQzwn0',
|
|
1925
|
+
'CMvZDwX0sNnVBG',
|
|
1926
|
+
'Aw5FChjVz3jLC3m',
|
|
2253
1927
|
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1928
|
+
'CNvUBMLUzW',
|
|
2254
1929
|
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
2255
|
-
'
|
|
2256
|
-
'
|
|
2257
|
-
'
|
|
2258
|
-
'C29Tzq',
|
|
2259
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
2260
|
-
'ihn0yxr1CZ0',
|
|
2261
|
-
'BwvZC2fNzuLK',
|
|
2262
|
-
'w3rHCMDLDd0',
|
|
2263
|
-
'BgLTAxq',
|
|
2264
|
-
'C3rHCNrZv2L0Aa',
|
|
2265
|
-
'igzHAwXLzdOG',
|
|
2266
|
-
'ChvIBgLJ',
|
|
2267
|
-
'z2v0',
|
|
2268
|
-
'AgfZtw9Yzq',
|
|
2269
|
-
'ls1Zzxj2zxiTDxjS',
|
|
2270
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
2271
|
-
'C2vYDMvYtMfTzq',
|
|
2272
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
2273
|
-
'zMLUza',
|
|
2274
|
-
'Axnoyu4',
|
|
2275
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
2276
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
2277
|
-
'y3jLyxrLx3rHC2TZ',
|
|
2278
|
-
'zMLSzxnFy2HHBMDLza',
|
|
2279
|
-
'C2vYDMvY',
|
|
2280
|
-
'igf0DgfJAg1LBNq',
|
|
1930
|
+
'C2vYDMvYvxjS',
|
|
1931
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1932
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
2281
1933
|
'ywDNCMvNyxrLswq',
|
|
2282
|
-
'
|
|
2283
|
-
'
|
|
2284
|
-
'
|
|
2285
|
-
'
|
|
2286
|
-
'
|
|
1934
|
+
'B3bLBL9PC3n1zxm',
|
|
1935
|
+
'ndq3mZm4meLorhbYuW',
|
|
1936
|
+
'BgvUz3rO',
|
|
1937
|
+
'kg5VBMuP',
|
|
1938
|
+
'ihr5Cgu9ywDLBNq',
|
|
1939
|
+
'y2XHAw0GzMfPBgvK',
|
|
1940
|
+
'CMvWBgfJzq',
|
|
1941
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
1942
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1943
|
+
'C2v0',
|
|
1944
|
+
'Bwf4',
|
|
1945
|
+
'y3vYC29Y',
|
|
1946
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1947
|
+
'sfruuca',
|
|
1948
|
+
'y2XHAw1FDgfZA3m',
|
|
1949
|
+
'khvUA25VD24P',
|
|
1950
|
+
'Dg9ju09tDhjPBMC',
|
|
1951
|
+
'y2HHBM5LBhm',
|
|
1952
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
1953
|
+
'zgvZy3jPChrPB24',
|
|
2287
1954
|
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
2288
|
-
'
|
|
2289
|
-
'
|
|
2290
|
-
'
|
|
2291
|
-
'
|
|
2292
|
-
'
|
|
2293
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
2294
|
-
'DgHYzwfKvgfYz2v0',
|
|
2295
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1955
|
+
'C3bSAxq',
|
|
1956
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
1957
|
+
'CgfYC2u',
|
|
1958
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1959
|
+
'C3rYAw5N',
|
|
2296
1960
|
'yxjYyxK',
|
|
2297
|
-
'
|
|
2298
|
-
'
|
|
2299
|
-
'
|
|
2300
|
-
'
|
|
2301
|
-
'
|
|
1961
|
+
'BgLZDfnLCNzLCG',
|
|
1962
|
+
'CMvHzf9OAxn0B3j5',
|
|
1963
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1964
|
+
'Dw5JBgfPBvrHC2S',
|
|
1965
|
+
'EM9K',
|
|
1966
|
+
'DgHYzwfKvgfYz2v0',
|
|
1967
|
+
'D3nZoG',
|
|
1968
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1969
|
+
'C2vUzf9TzxnZywDL',
|
|
1970
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1971
|
+
'ywz0zxjtzxe',
|
|
1972
|
+
'CNvUswq',
|
|
1973
|
+
'nhLqq3nHEG',
|
|
1974
|
+
'y2XHAw1uyxnRCW',
|
|
1975
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
1976
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK'
|
|
2302
1977
|
];
|
|
2303
|
-
|
|
2304
|
-
return
|
|
1978
|
+
_0x1f7c = function () {
|
|
1979
|
+
return _0x14be20;
|
|
1980
|
+
};
|
|
1981
|
+
return _0x1f7c();
|
|
1982
|
+
}
|
|
1983
|
+
async function registerChatBridgeTools(_0x4dcc2b, _0x57f03b, _0x382d49) {
|
|
1984
|
+
const _0x4cb3d6 = {
|
|
1985
|
+
_0x2eb070: 0x1f6,
|
|
1986
|
+
_0x372f81: 0x2ca,
|
|
1987
|
+
_0x20bae5: 0x1ec,
|
|
1988
|
+
_0x5d7a03: 0x1ec,
|
|
1989
|
+
_0x11bc96: 0x200,
|
|
1990
|
+
_0x5b638f: 0x277,
|
|
1991
|
+
_0x43d9df: 0x2f5,
|
|
1992
|
+
_0x316006: 0x22a,
|
|
1993
|
+
_0x643d71: 0x285,
|
|
1994
|
+
_0x35503b: 0x2f5,
|
|
1995
|
+
_0xd431f0: 0x2f5,
|
|
1996
|
+
_0x25ec58: 0x28b,
|
|
1997
|
+
_0x424cf6: 0x2a4,
|
|
1998
|
+
_0x595c89: 0x2a0,
|
|
1999
|
+
_0x316c14: 0x1aa,
|
|
2000
|
+
_0x5016cd: 0x1cb,
|
|
2001
|
+
_0x1e92f0: 0x2a1,
|
|
2002
|
+
_0x10bcba: 0x1ed,
|
|
2003
|
+
_0x433ea4: 0x1ec,
|
|
2004
|
+
_0x5b3846: 0x1ec,
|
|
2005
|
+
_0x17057e: 0x263,
|
|
2006
|
+
_0x595d93: 0x1ed,
|
|
2007
|
+
_0x28b7ee: 0x2a6,
|
|
2008
|
+
_0x24c334: 0x1c9,
|
|
2009
|
+
_0x120cab: 0x22a,
|
|
2010
|
+
_0x97a465: 0x1ec,
|
|
2011
|
+
_0x5f6d46: 0x22a,
|
|
2012
|
+
_0x3283ed: 0x1aa,
|
|
2013
|
+
_0x18fe55: 0x2d8,
|
|
2014
|
+
_0x57231d: 0x1ec,
|
|
2015
|
+
_0x5bed45: 0x1a2,
|
|
2016
|
+
_0x355ec8: 0x22a,
|
|
2017
|
+
_0x3b916f: 0x203,
|
|
2018
|
+
_0xfff952: 0x22a,
|
|
2019
|
+
_0x357801: 0x22a,
|
|
2020
|
+
_0x30f38b: 0x2eb,
|
|
2021
|
+
_0x68ff09: 0x22a,
|
|
2022
|
+
_0x115990: 0x2e7,
|
|
2023
|
+
_0x5694bf: 0x318,
|
|
2024
|
+
_0x2fc309: 0x2f5,
|
|
2025
|
+
_0x53b7c8: 0x1ec,
|
|
2026
|
+
_0x7ac517: 0x1ec,
|
|
2027
|
+
_0x491293: 0x2f5,
|
|
2028
|
+
_0x5a5dc1: 0x2aa,
|
|
2029
|
+
_0x3dc8b0: 0x226
|
|
2030
|
+
}, _0x20bfee = { _0x175e34: 0x247 }, _0x563fc7 = {
|
|
2031
|
+
_0x3129f9: 0x274,
|
|
2032
|
+
_0x3ef650: 0x1e7
|
|
2033
|
+
}, _0x612bed = {
|
|
2034
|
+
_0x46cedd: 0x274,
|
|
2035
|
+
_0x1414f4: 0x2ba
|
|
2036
|
+
}, _0x136722 = { _0x57601e: 0x312 }, _0x5c560c = { _0x54834f: 0x1bd }, _0x112435 = {
|
|
2037
|
+
_0x2bc283: 0x1a2,
|
|
2038
|
+
_0x40d854: 0x1c0
|
|
2039
|
+
}, _0x4de82f = { _0x746cb6: 0x269 }, _0x17a682 = { _0x3b6ab4: 0x1e1 }, _0x2a9e3a = { _0x56abde: 0x2a4 }, _0x4d153b = { _0x3a0fc3: 0x1ce }, _0x59171e = { _0x1e031b: 0x274 }, _0x27a093 = {
|
|
2040
|
+
_0x59ba15: 0x285,
|
|
2041
|
+
_0x3d91af: 0x274,
|
|
2042
|
+
_0x9bf03: 0x2f6
|
|
2043
|
+
}, _0x80157a = { _0x20ef09: 0x1f6 }, _0x3f08a0 = _0x5e2837, {z: _0x2498b0} = await import(_0x3f08a0(0x1f2));
|
|
2044
|
+
_0x4dcc2b[_0x3f08a0(0x22a)](_0x3f08a0(_0x4cb3d6._0x2eb070), _0x3f08a0(_0x4cb3d6._0x372f81), {
|
|
2045
|
+
'target': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x20bae5)](),
|
|
2046
|
+
'content': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x5d7a03)](),
|
|
2047
|
+
'attachment_ids': _0x2498b0[_0x3f08a0(0x1ed)](_0x2498b0[_0x3f08a0(0x1ec)]())['optional'](),
|
|
2048
|
+
'visibility': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x11bc96)]([
|
|
2049
|
+
_0x3f08a0(_0x4cb3d6._0x5b638f),
|
|
2050
|
+
_0x3f08a0(0x206)
|
|
2051
|
+
])[_0x3f08a0(_0x4cb3d6._0x43d9df)]()['describe'](_0x3f08a0(0x1a4))
|
|
2052
|
+
}, async _0x41c2ec => {
|
|
2053
|
+
const _0x4bec13 = _0x3f08a0;
|
|
2054
|
+
try {
|
|
2055
|
+
return textResult(await _0x57f03b[_0x4bec13(_0x80157a._0x20ef09)](_0x41c2ec));
|
|
2056
|
+
} catch (_0x12d023) {
|
|
2057
|
+
return textResult(_0x12d023 instanceof Error ? _0x12d023['message'] : _0x4bec13(0x276), !![]);
|
|
2058
|
+
}
|
|
2059
|
+
}), _0x4dcc2b[_0x3f08a0(_0x4cb3d6._0x316006)](_0x3f08a0(_0x4cb3d6._0x643d71), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2060
|
+
const _0x2dfee7 = _0x3f08a0;
|
|
2061
|
+
try {
|
|
2062
|
+
return textResult(await _0x57f03b[_0x2dfee7(_0x27a093._0x59ba15)]());
|
|
2063
|
+
} catch (_0x3ba56d) {
|
|
2064
|
+
return textResult(_0x3ba56d instanceof Error ? _0x3ba56d[_0x2dfee7(_0x27a093._0x3d91af)] : _0x2dfee7(_0x27a093._0x9bf03), !![]);
|
|
2065
|
+
}
|
|
2066
|
+
}), _0x4dcc2b[_0x3f08a0(0x22a)](_0x3f08a0(0x1ef), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
2067
|
+
'channel': _0x2498b0['string'](),
|
|
2068
|
+
'limit': _0x2498b0[_0x3f08a0(0x28b)]()[_0x3f08a0(_0x4cb3d6._0x35503b)](),
|
|
2069
|
+
'before': _0x2498b0[_0x3f08a0(0x28b)]()[_0x3f08a0(_0x4cb3d6._0xd431f0)](),
|
|
2070
|
+
'after': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x25ec58)]()['optional']()
|
|
2071
|
+
}, async _0xb78835 => {
|
|
2072
|
+
const _0x238caa = _0x3f08a0;
|
|
2073
|
+
try {
|
|
2074
|
+
return textResult(await _0x57f03b[_0x238caa(0x1ef)](_0xb78835));
|
|
2075
|
+
} catch (_0x4b70bf) {
|
|
2076
|
+
return textResult(_0x4b70bf instanceof Error ? _0x4b70bf[_0x238caa(_0x59171e._0x1e031b)] : _0x238caa(0x324), !![]);
|
|
2077
|
+
}
|
|
2078
|
+
}), _0x4dcc2b['tool']('list_server', 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2079
|
+
const _0x61e631 = _0x3f08a0;
|
|
2080
|
+
try {
|
|
2081
|
+
return textResult(await _0x57f03b[_0x61e631(0x1ac)]());
|
|
2082
|
+
} catch (_0x3f7a52) {
|
|
2083
|
+
return textResult(_0x3f7a52 instanceof Error ? _0x3f7a52[_0x61e631(0x274)] : _0x61e631(_0x4d153b._0x3a0fc3), !![]);
|
|
2084
|
+
}
|
|
2085
|
+
}), _0x4dcc2b['tool'](_0x3f08a0(_0x4cb3d6._0x424cf6), _0x3f08a0(_0x4cb3d6._0x595c89), {
|
|
2086
|
+
'channel': _0x2498b0[_0x3f08a0(0x1ec)](),
|
|
2087
|
+
'status': _0x2498b0[_0x3f08a0(0x200)]([
|
|
2088
|
+
_0x3f08a0(_0x4cb3d6._0x316c14),
|
|
2089
|
+
_0x3f08a0(_0x4cb3d6._0x5016cd),
|
|
2090
|
+
_0x3f08a0(0x213),
|
|
2091
|
+
_0x3f08a0(0x2d8)
|
|
2092
|
+
])[_0x3f08a0(0x2f5)]()
|
|
2093
|
+
}, async _0x372a6c => {
|
|
2094
|
+
const _0x2fa871 = _0x3f08a0;
|
|
2095
|
+
try {
|
|
2096
|
+
return textResult(await _0x57f03b[_0x2fa871(_0x2a9e3a._0x56abde)](_0x372a6c));
|
|
2097
|
+
} catch (_0x3b9f70) {
|
|
2098
|
+
return textResult(_0x3b9f70 instanceof Error ? _0x3b9f70[_0x2fa871(0x274)] : _0x2fa871(0x2ce), !![]);
|
|
2099
|
+
}
|
|
2100
|
+
}), _0x4dcc2b['tool']('create_tasks', _0x3f08a0(_0x4cb3d6._0x1e92f0), {
|
|
2101
|
+
'channel': _0x2498b0['string'](),
|
|
2102
|
+
'idempotency_key': _0x2498b0[_0x3f08a0(0x1ec)]()[_0x3f08a0(_0x4cb3d6._0xd431f0)](),
|
|
2103
|
+
'tasks': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x10bcba)](_0x2498b0['object']({
|
|
2104
|
+
'title': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x433ea4)](),
|
|
2105
|
+
'description': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x5b3846)]()[_0x3f08a0(0x2f5)](),
|
|
2106
|
+
'priority': _0x2498b0['enum']([
|
|
2107
|
+
'low',
|
|
2108
|
+
'medium',
|
|
2109
|
+
'high',
|
|
2110
|
+
_0x3f08a0(_0x4cb3d6._0x17057e)
|
|
2111
|
+
])[_0x3f08a0(0x2f5)]()
|
|
2112
|
+
}))
|
|
2113
|
+
}, async _0xf07b04 => {
|
|
2114
|
+
try {
|
|
2115
|
+
return textResult(await _0x57f03b['create_tasks'](_0xf07b04));
|
|
2116
|
+
} catch (_0x352c76) {
|
|
2117
|
+
return textResult(_0x352c76 instanceof Error ? _0x352c76['message'] : 'create_tasks\x20failed', !![]);
|
|
2118
|
+
}
|
|
2119
|
+
}), _0x4dcc2b[_0x3f08a0(0x22a)](_0x3f08a0(0x1e1), _0x3f08a0(0x26f), {
|
|
2120
|
+
'channel': _0x2498b0[_0x3f08a0(0x1ec)](),
|
|
2121
|
+
'task_numbers': _0x2498b0[_0x3f08a0(0x1ed)](_0x2498b0['number']())[_0x3f08a0(_0x4cb3d6._0x43d9df)](),
|
|
2122
|
+
'message_ids': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x595d93)](_0x2498b0[_0x3f08a0(_0x4cb3d6._0x5b3846)]())[_0x3f08a0(_0x4cb3d6._0xd431f0)](),
|
|
2123
|
+
'evidence': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x28b7ee)](_0x2498b0[_0x3f08a0(_0x4cb3d6._0x433ea4)](), _0x2498b0[_0x3f08a0(_0x4cb3d6._0x24c334)]({
|
|
2124
|
+
'create_thread': _0x2498b0['unknown']()['optional'](),
|
|
2125
|
+
'create_task': _0x2498b0[_0x3f08a0(0x1b9)]()['optional']()
|
|
2126
|
+
}))[_0x3f08a0(0x2f5)](),
|
|
2127
|
+
'idempotency_key': _0x2498b0['string']()[_0x3f08a0(0x2f5)]()
|
|
2128
|
+
}, async _0x555d5b => {
|
|
2129
|
+
const _0x5e8531 = _0x3f08a0;
|
|
2130
|
+
try {
|
|
2131
|
+
return textResult(await _0x57f03b[_0x5e8531(_0x17a682._0x3b6ab4)](_0x555d5b));
|
|
2132
|
+
} catch (_0x18a0d7) {
|
|
2133
|
+
return textResult(_0x18a0d7 instanceof Error ? _0x18a0d7[_0x5e8531(0x274)] : 'claim_tasks\x20failed', !![]);
|
|
2134
|
+
}
|
|
2135
|
+
}), _0x4dcc2b[_0x3f08a0(_0x4cb3d6._0x120cab)](_0x3f08a0(0x249), _0x3f08a0(0x1c4), {
|
|
2136
|
+
'channel': _0x2498b0['string'](),
|
|
2137
|
+
'task_number': _0x2498b0['number'](),
|
|
2138
|
+
'idempotency_key': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x97a465)]()[_0x3f08a0(_0x4cb3d6._0x43d9df)]()
|
|
2139
|
+
}, async _0x4280bf => {
|
|
2140
|
+
const _0x37280c = _0x3f08a0;
|
|
2141
|
+
try {
|
|
2142
|
+
return textResult(await _0x57f03b['unclaim_task'](_0x4280bf));
|
|
2143
|
+
} catch (_0x3d617a) {
|
|
2144
|
+
return textResult(_0x3d617a instanceof Error ? _0x3d617a[_0x37280c(0x274)] : _0x37280c(0x1e9), !![]);
|
|
2145
|
+
}
|
|
2146
|
+
}), _0x4dcc2b[_0x3f08a0(_0x4cb3d6._0x5f6d46)](_0x3f08a0(0x28f), _0x3f08a0(0x294), {
|
|
2147
|
+
'channel': _0x2498b0['string'](),
|
|
2148
|
+
'task_number': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x25ec58)](),
|
|
2149
|
+
'status': _0x2498b0[_0x3f08a0(0x200)]([
|
|
2150
|
+
_0x3f08a0(_0x4cb3d6._0x3283ed),
|
|
2151
|
+
_0x3f08a0(0x1cb),
|
|
2152
|
+
_0x3f08a0(0x213),
|
|
2153
|
+
_0x3f08a0(_0x4cb3d6._0x18fe55)
|
|
2154
|
+
]),
|
|
2155
|
+
'idempotency_key': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x57231d)]()[_0x3f08a0(_0x4cb3d6._0xd431f0)]()
|
|
2156
|
+
}, async _0x4b9d39 => {
|
|
2157
|
+
const _0x1c3dee = _0x3f08a0;
|
|
2158
|
+
try {
|
|
2159
|
+
return textResult(await _0x57f03b[_0x1c3dee(0x28f)](_0x4b9d39));
|
|
2160
|
+
} catch (_0xad763a) {
|
|
2161
|
+
return textResult(_0xad763a instanceof Error ? _0xad763a['message'] : _0x1c3dee(_0x4de82f._0x746cb6), !![]);
|
|
2162
|
+
}
|
|
2163
|
+
}), _0x4dcc2b[_0x3f08a0(0x22a)](_0x3f08a0(_0x4cb3d6._0x5bed45), 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
2164
|
+
'channel': _0x2498b0['string'](),
|
|
2165
|
+
'file_path': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x20bae5)]()
|
|
2166
|
+
}, async _0xb633b => {
|
|
2167
|
+
const _0x55cb4f = _0x3f08a0;
|
|
2168
|
+
try {
|
|
2169
|
+
return textResult(await _0x57f03b[_0x55cb4f(_0x112435._0x2bc283)](_0xb633b));
|
|
2170
|
+
} catch (_0x247e62) {
|
|
2171
|
+
return textResult(_0x247e62 instanceof Error ? _0x247e62[_0x55cb4f(0x274)] : _0x55cb4f(_0x112435._0x40d854), !![]);
|
|
2172
|
+
}
|
|
2173
|
+
}), _0x4dcc2b[_0x3f08a0(_0x4cb3d6._0x355ec8)](_0x3f08a0(_0x4cb3d6._0x3b916f), _0x3f08a0(0x2b8), { 'attachment_id': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x433ea4)]() }, async _0xbbb531 => {
|
|
2174
|
+
const _0x4814a6 = _0x3f08a0;
|
|
2175
|
+
try {
|
|
2176
|
+
return textResult(await _0x57f03b[_0x4814a6(0x203)](_0xbbb531));
|
|
2177
|
+
} catch (_0x5b4915) {
|
|
2178
|
+
return textResult(_0x5b4915 instanceof Error ? _0x5b4915[_0x4814a6(0x274)] : _0x4814a6(_0x5c560c._0x54834f), !![]);
|
|
2179
|
+
}
|
|
2180
|
+
}), _0x4dcc2b[_0x3f08a0(_0x4cb3d6._0xfff952)](_0x3f08a0(0x251), _0x3f08a0(0x316), { 'work_key': _0x2498b0['string']() }, async _0x2a1434 => {
|
|
2181
|
+
const _0x21dad7 = _0x3f08a0;
|
|
2182
|
+
try {
|
|
2183
|
+
return textResult(await _0x57f03b[_0x21dad7(0x251)](_0x2a1434));
|
|
2184
|
+
} catch (_0x1b50dd) {
|
|
2185
|
+
return textResult(_0x1b50dd instanceof Error ? _0x1b50dd['message'] : _0x21dad7(0x2e3), !![]);
|
|
2186
|
+
}
|
|
2187
|
+
}), _0x4dcc2b[_0x3f08a0(_0x4cb3d6._0x357801)](_0x3f08a0(_0x4cb3d6._0x30f38b), 'Retrieve\x20the\x20result\x20(resume\x20packet)\x20of\x20a\x20completed\x20worker.', { 'work_key': _0x2498b0[_0x3f08a0(0x1ec)]() }, async _0x1d605e => {
|
|
2188
|
+
const _0x599978 = _0x3f08a0;
|
|
2189
|
+
try {
|
|
2190
|
+
return textResult(await _0x57f03b['get_worker_result'](_0x1d605e));
|
|
2191
|
+
} catch (_0x1703f9) {
|
|
2192
|
+
return textResult(_0x1703f9 instanceof Error ? _0x1703f9['message'] : _0x599978(_0x136722._0x57601e), !![]);
|
|
2193
|
+
}
|
|
2194
|
+
}), _0x4dcc2b[_0x3f08a0(_0x4cb3d6._0x68ff09)]('finish_worker', _0x3f08a0(0x20e), {
|
|
2195
|
+
'work_key': _0x2498b0[_0x3f08a0(0x1ec)](),
|
|
2196
|
+
'result': _0x2498b0[_0x3f08a0(0x200)]([
|
|
2197
|
+
_0x3f08a0(_0x4cb3d6._0x115990),
|
|
2198
|
+
_0x3f08a0(_0x4cb3d6._0x5694bf),
|
|
2199
|
+
_0x3f08a0(0x2a9)
|
|
2200
|
+
]),
|
|
2201
|
+
'summary': _0x2498b0[_0x3f08a0(0x1ec)](),
|
|
2202
|
+
'decisions': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x10bcba)](_0x2498b0['string']())[_0x3f08a0(_0x4cb3d6._0x2fc309)](),
|
|
2203
|
+
'files_changed': _0x2498b0['array'](_0x2498b0[_0x3f08a0(_0x4cb3d6._0x53b7c8)]())[_0x3f08a0(0x2f5)](),
|
|
2204
|
+
'open_issues': _0x2498b0[_0x3f08a0(0x1ed)](_0x2498b0[_0x3f08a0(_0x4cb3d6._0x7ac517)]())[_0x3f08a0(0x2f5)](),
|
|
2205
|
+
'next_steps': _0x2498b0['array'](_0x2498b0[_0x3f08a0(_0x4cb3d6._0x433ea4)]())[_0x3f08a0(_0x4cb3d6._0x491293)]()
|
|
2206
|
+
}, async _0x3f4dac => {
|
|
2207
|
+
const _0x2a054e = _0x3f08a0;
|
|
2208
|
+
try {
|
|
2209
|
+
return textResult(await _0x57f03b['finish_worker'](_0x3f4dac));
|
|
2210
|
+
} catch (_0x43dd66) {
|
|
2211
|
+
return textResult(_0x43dd66 instanceof Error ? _0x43dd66[_0x2a054e(_0x612bed._0x46cedd)] : _0x2a054e(_0x612bed._0x1414f4), !![]);
|
|
2212
|
+
}
|
|
2213
|
+
}), _0x4dcc2b['tool'](_0x3f08a0(_0x4cb3d6._0x5a5dc1), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
2214
|
+
'work_key': _0x2498b0['string'](),
|
|
2215
|
+
'reason': _0x2498b0[_0x3f08a0(_0x4cb3d6._0x53b7c8)]()
|
|
2216
|
+
}, async _0x408579 => {
|
|
2217
|
+
const _0x40fcb1 = _0x3f08a0;
|
|
2218
|
+
try {
|
|
2219
|
+
return textResult(await _0x57f03b['escalate_to_main'](_0x408579));
|
|
2220
|
+
} catch (_0x34b6bf) {
|
|
2221
|
+
return textResult(_0x34b6bf instanceof Error ? _0x34b6bf[_0x40fcb1(_0x563fc7._0x3129f9)] : _0x40fcb1(_0x563fc7._0x3ef650), !![]);
|
|
2222
|
+
}
|
|
2223
|
+
}), _0x382d49?.[_0x3f08a0(0x23f)] && _0x4dcc2b[_0x3f08a0(0x22a)](_0x3f08a0(0x247), _0x3f08a0(_0x4cb3d6._0x3dc8b0), { 'work_key': _0x2498b0[_0x3f08a0(0x1ec)]() }, async _0x4f4b29 => {
|
|
2224
|
+
const _0x1c2c1f = _0x3f08a0;
|
|
2225
|
+
try {
|
|
2226
|
+
return textResult(await _0x57f03b[_0x1c2c1f(_0x20bfee._0x175e34)](_0x4f4b29));
|
|
2227
|
+
} catch (_0x56b4ee) {
|
|
2228
|
+
return textResult(_0x56b4ee instanceof Error ? _0x56b4ee[_0x1c2c1f(0x274)] : _0x1c2c1f(0x1ff), !![]);
|
|
2229
|
+
}
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
async function createChatBridgeServer(_0x5f2bb0) {
|
|
2233
|
+
const _0x550dd4 = {
|
|
2234
|
+
_0x275687: 0x1b4,
|
|
2235
|
+
_0x5d8bf7: 0x23f
|
|
2236
|
+
}, _0x2f60fe = _0x5e2837, {McpServer: _0xe083c1} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x2445b3 = new _0xe083c1({
|
|
2237
|
+
'name': _0x2f60fe(_0x550dd4._0x275687),
|
|
2238
|
+
'version': _0x2f60fe(0x234)
|
|
2239
|
+
}), _0x2ffd33 = createChatBridgeHandlers(_0x5f2bb0);
|
|
2240
|
+
return await registerChatBridgeTools(_0x2445b3, _0x2ffd33, { 'workerMode': _0x5f2bb0[_0x2f60fe(_0x550dd4._0x5d8bf7)] }), {
|
|
2241
|
+
'handlers': _0x2ffd33,
|
|
2242
|
+
'server': _0x2445b3
|
|
2305
2243
|
};
|
|
2306
|
-
return _0x4199();
|
|
2307
2244
|
}
|
|
2245
|
+
function readFlag(_0x579b2c, _0x484062) {
|
|
2246
|
+
const _0x29a882 = _0x579b2c['indexOf'](_0x484062);
|
|
2247
|
+
if (_0x29a882 === -0x1)
|
|
2248
|
+
return void 0x0;
|
|
2249
|
+
return _0x579b2c[_0x29a882 + 0x1];
|
|
2250
|
+
}
|
|
2251
|
+
function parseChatBridgeArgs(_0x251a0f) {
|
|
2252
|
+
const _0x41bd5e = {
|
|
2253
|
+
_0x5b0f39: 0x288,
|
|
2254
|
+
_0x2ecbe0: 0x2b7,
|
|
2255
|
+
_0x390711: 0x2e1,
|
|
2256
|
+
_0x57f8fc: 0x1eb,
|
|
2257
|
+
_0x5f3262: 0x23b,
|
|
2258
|
+
_0x410f4a: 0x2c6,
|
|
2259
|
+
_0x3fc535: 0x278
|
|
2260
|
+
}, _0x5b3bb9 = _0x5e2837, _0x4a8372 = readFlag(_0x251a0f, _0x5b3bb9(0x250)), _0x3d1c20 = readFlag(_0x251a0f, _0x5b3bb9(0x1bb)), _0x2c06b1 = readFlag(_0x251a0f, _0x5b3bb9(_0x41bd5e._0x5b0f39)), _0x4d3985 = readFlag(_0x251a0f, _0x5b3bb9(_0x41bd5e._0x2ecbe0)) ?? _0x5b3bb9(0x2b2), _0x62230d = readFlag(_0x251a0f, _0x5b3bb9(_0x41bd5e._0x390711)), _0x3b42a2 = readFlag(_0x251a0f, '--session-id'), _0x158a79 = readFlag(_0x251a0f, _0x5b3bb9(0x282)), _0x5a9603 = readFlag(_0x251a0f, _0x5b3bb9(_0x41bd5e._0x57f8fc)), _0x5ebe4e = readFlag(_0x251a0f, _0x5b3bb9(0x306)), _0x2b3047 = _0x251a0f['includes'](_0x5b3bb9(_0x41bd5e._0x5f3262)), _0x5a34e7 = _0x2c06b1 === void 0x0 ? void 0x0 : Number['parseInt'](_0x2c06b1, 0xa);
|
|
2261
|
+
if (!_0x4a8372)
|
|
2262
|
+
throw new Error(_0x5b3bb9(_0x41bd5e._0x410f4a));
|
|
2263
|
+
if (!_0x3d1c20)
|
|
2264
|
+
throw new Error(_0x5b3bb9(_0x41bd5e._0x3fc535));
|
|
2265
|
+
if (_0x2c06b1 !== void 0x0 && (_0x5a34e7 === void 0x0 || !Number[_0x5b3bb9(0x304)](_0x5a34e7) || _0x5a34e7 < 0x0))
|
|
2266
|
+
throw new Error(_0x5b3bb9(0x329));
|
|
2267
|
+
return {
|
|
2268
|
+
'agentId': _0x4a8372,
|
|
2269
|
+
'daemonApiKey': _0x3d1c20,
|
|
2270
|
+
'daemonLocalUrl': _0x62230d,
|
|
2271
|
+
'initialLastSeenSeq': _0x5a34e7,
|
|
2272
|
+
'sessionId': _0x3b42a2,
|
|
2273
|
+
'serverUrl': _0x4d3985,
|
|
2274
|
+
'workerModeEnabled': _0x158a79 === void 0x0 ? void 0x0 : _0x158a79 !== 'false',
|
|
2275
|
+
'workerSessionId': _0x5a9603,
|
|
2276
|
+
'workerThreadTarget': _0x5ebe4e,
|
|
2277
|
+
'workerMode': _0x2b3047
|
|
2278
|
+
};
|
|
2279
|
+
}
|
|
2280
|
+
async function runChatBridgeCli(_0x2863b7) {
|
|
2281
|
+
const _0x13e291 = {
|
|
2282
|
+
_0x2c758a: 0x205,
|
|
2283
|
+
_0xdd4958: 0x321,
|
|
2284
|
+
_0x1ca1b4: 0x23f,
|
|
2285
|
+
_0x138fe4: 0x1b8
|
|
2286
|
+
}, _0x5b0e76 = _0x5e2837, _0x17e94b = parseChatBridgeArgs(_0x2863b7), {StdioServerTransport: _0x12f631} = await import(_0x5b0e76(_0x13e291._0x2c758a)), _0x1fb3d4 = createInternalAgentClient(_0x17e94b), _0x20aa70 = createAttachmentCache(), _0x583e6f = await createChatBridgeServer({
|
|
2287
|
+
'agentId': _0x17e94b[_0x5b0e76(_0x13e291._0xdd4958)],
|
|
2288
|
+
'attachmentCache': _0x20aa70,
|
|
2289
|
+
'client': _0x1fb3d4,
|
|
2290
|
+
'daemonLocalUrl': _0x17e94b[_0x5b0e76(0x1ba)],
|
|
2291
|
+
'uploadPreparer': prepareUploadFile,
|
|
2292
|
+
'workerModeEnabled': _0x17e94b[_0x5b0e76(0x309)],
|
|
2293
|
+
'workerMode': _0x17e94b[_0x5b0e76(_0x13e291._0x1ca1b4)]
|
|
2294
|
+
});
|
|
2295
|
+
await _0x583e6f['server'][_0x5b0e76(_0x13e291._0x138fe4)](new _0x12f631());
|
|
2296
|
+
}
|
|
2297
|
+
var executedAsEntry = process[_0x5e2837(0x2f8)][0x1] ? import.meta.url === pathToFileURL(process[_0x5e2837(0x2f8)][0x1])[_0x5e2837(0x21d)] : ![];
|
|
2298
|
+
executedAsEntry && await runChatBridgeCli(process[_0x5e2837(0x2f8)]['slice'](0x2));
|
|
2299
|
+
export {
|
|
2300
|
+
createChatBridgeHandlers,
|
|
2301
|
+
createChatBridgeServer,
|
|
2302
|
+
getChatBridgeToolDefinitions,
|
|
2303
|
+
parseChatBridgeArgs,
|
|
2304
|
+
runChatBridgeCli
|
|
2305
|
+
};
|