@dscord/daemon 0.1.24 → 0.1.29
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 +2249 -2242
- package/dist/index.js +8265 -8310
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const _0x1bf962 = _0x3fbb;
|
|
2
|
+
(function (_0x4d86f5, _0x2fc045) {
|
|
3
|
+
const _0x1baec8 = {
|
|
4
|
+
_0x4090a3: 0x14f,
|
|
5
|
+
_0x4dfb1c: 0x106,
|
|
6
|
+
_0x319f90: 0x1d9,
|
|
7
|
+
_0x4edeb5: 0x16e,
|
|
8
|
+
_0x41e34c: 0x164
|
|
9
|
+
}, _0x237cc9 = _0x3fbb, _0x2d03d4 = _0x4d86f5();
|
|
9
10
|
while (!![]) {
|
|
10
11
|
try {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
12
|
+
const _0x55cf80 = -parseInt(_0x237cc9(0x118)) / 0x1 + -parseInt(_0x237cc9(0x1e8)) / 0x2 + parseInt(_0x237cc9(_0x1baec8._0x4090a3)) / 0x3 * (-parseInt(_0x237cc9(_0x1baec8._0x4dfb1c)) / 0x4) + -parseInt(_0x237cc9(_0x1baec8._0x319f90)) / 0x5 + -parseInt(_0x237cc9(_0x1baec8._0x4edeb5)) / 0x6 * (-parseInt(_0x237cc9(_0x1baec8._0x41e34c)) / 0x7) + -parseInt(_0x237cc9(0x22f)) / 0x8 + parseInt(_0x237cc9(0x239)) / 0x9 * (parseInt(_0x237cc9(0x17a)) / 0xa);
|
|
13
|
+
if (_0x55cf80 === _0x2fc045)
|
|
13
14
|
break;
|
|
14
15
|
else
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
|
|
16
|
+
_0x2d03d4['push'](_0x2d03d4['shift']());
|
|
17
|
+
} catch (_0x470365) {
|
|
18
|
+
_0x2d03d4['push'](_0x2d03d4['shift']());
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
}(
|
|
21
|
+
}(_0x19b3, 0xe91a2));
|
|
21
22
|
import { pathToFileURL } from 'node:url';
|
|
22
23
|
import {
|
|
23
24
|
mkdir,
|
|
@@ -27,82 +28,78 @@ import {
|
|
|
27
28
|
writeFile
|
|
28
29
|
} from 'node:fs/promises';
|
|
29
30
|
import { homedir } from 'node:os';
|
|
30
|
-
import
|
|
31
|
+
import _0x1ca7bc from 'node:path';
|
|
31
32
|
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':
|
|
33
|
+
'.csv': _0x1bf962(0x109),
|
|
34
|
+
'.gif': _0x1bf962(0x13a),
|
|
35
|
+
'.jpeg': _0x1bf962(0x1a7),
|
|
36
|
+
'.jpg': _0x1bf962(0x1a7),
|
|
37
|
+
'.json': 'application/json',
|
|
38
|
+
'.md': _0x1bf962(0x181),
|
|
39
|
+
'.pdf': 'application/pdf',
|
|
40
|
+
'.png': _0x1bf962(0xd3),
|
|
41
|
+
'.svg': _0x1bf962(0xd7),
|
|
42
|
+
'.txt': _0x1bf962(0x187),
|
|
43
|
+
'.webp': _0x1bf962(0x226),
|
|
43
44
|
'.xml': 'application/xml',
|
|
44
|
-
'.zip':
|
|
45
|
+
'.zip': _0x1bf962(0x159)
|
|
45
46
|
};
|
|
46
|
-
function guessContentType(
|
|
47
|
-
const
|
|
48
|
-
return MIME_BY_EXTENSION[
|
|
47
|
+
function guessContentType(_0x1e3ab2) {
|
|
48
|
+
const _0x371583 = { _0x315b18: 0x18e }, _0x3e8a63 = _0x1bf962;
|
|
49
|
+
return MIME_BY_EXTENSION[_0x1ca7bc[_0x3e8a63(_0x371583._0x315b18)](_0x1e3ab2)[_0x3e8a63(0x11a)]()] ?? _0x3e8a63(0x1f9);
|
|
49
50
|
}
|
|
50
|
-
function safeFilename(
|
|
51
|
-
const
|
|
52
|
-
return
|
|
51
|
+
function safeFilename(_0x2db4e0) {
|
|
52
|
+
const _0xd368ff = { _0x1f702f: 0x1cf }, _0x17ba83 = _0x1bf962;
|
|
53
|
+
return _0x2db4e0[_0x17ba83(_0xd368ff._0x1f702f)](/[\\/]/g, '-');
|
|
53
54
|
}
|
|
54
|
-
function extensionFor(
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
return
|
|
55
|
+
function extensionFor(_0x191e5b) {
|
|
56
|
+
const _0x142182 = {
|
|
57
|
+
_0x13a7ba: 0x170,
|
|
58
|
+
_0x3bff95: 0xdb
|
|
59
|
+
}, _0x42e208 = _0x1bf962, _0x114aea = Object['entries'](MIME_BY_EXTENSION)[_0x42e208(_0x142182._0x13a7ba)](([, _0x4e2ba1]) => _0x4e2ba1 === _0x191e5b);
|
|
60
|
+
return _0x114aea?.[0x0] ?? _0x42e208(_0x142182._0x3bff95);
|
|
60
61
|
}
|
|
61
|
-
async function prepareUploadFile(
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
62
|
+
async function prepareUploadFile(_0x230282, _0x101a1d = {}) {
|
|
63
|
+
const _0x426bd8 = {
|
|
64
|
+
_0x5427e7: 0x131,
|
|
65
|
+
_0x422b3a: 0x156,
|
|
66
|
+
_0x2ea4d2: 0x174,
|
|
67
|
+
_0x1e9674: 0x173
|
|
68
|
+
}, _0x16bbd6 = _0x1bf962;
|
|
69
|
+
if (!_0x1ca7bc['isAbsolute'](_0x230282))
|
|
70
|
+
throw new Error(_0x16bbd6(_0x426bd8._0x5427e7));
|
|
71
|
+
const _0xb7c14 = await stat(_0x230282)[_0x16bbd6(0x1ef)](() => null);
|
|
72
|
+
if (!_0xb7c14 || !_0xb7c14[_0x16bbd6(0x1d0)]())
|
|
73
|
+
throw new Error('File\x20not\x20found:\x20' + _0x230282);
|
|
74
|
+
const _0x44f326 = _0x101a1d[_0x16bbd6(0x182)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
75
|
+
if (_0xb7c14[_0x16bbd6(_0x426bd8._0x422b3a)] > _0x44f326)
|
|
76
|
+
throw new Error(_0x16bbd6(_0x426bd8._0x2ea4d2) + _0xb7c14['size']);
|
|
77
|
+
const _0x5cd327 = await readFile(_0x230282), _0x1bfe8d = _0x1ca7bc[_0x16bbd6(0x23f)](_0x230282);
|
|
76
78
|
return {
|
|
77
|
-
'contentBase64':
|
|
78
|
-
'contentType': guessContentType(
|
|
79
|
-
'filename':
|
|
80
|
-
'sizeBytes':
|
|
79
|
+
'contentBase64': _0x5cd327[_0x16bbd6(_0x426bd8._0x1e9674)](_0x16bbd6(0x1b7)),
|
|
80
|
+
'contentType': guessContentType(_0x1bfe8d),
|
|
81
|
+
'filename': _0x1bfe8d,
|
|
82
|
+
'sizeBytes': _0xb7c14['size']
|
|
81
83
|
};
|
|
82
84
|
}
|
|
83
|
-
function createAttachmentCache(
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}, _0x3b0a9d = {
|
|
89
|
-
_0x17ef56: 0x13e,
|
|
90
|
-
_0x257c97: 0x13e,
|
|
91
|
-
_0x21220b: 0x153
|
|
92
|
-
}, _0xcab1c0 = _0x15d6d8, _0x218ee6 = _0x3e7efd[_0xcab1c0(_0x52bb2c._0x234a16)] ?? _0x5e67bd[_0xcab1c0(0x15d)](homedir(), _0xcab1c0(_0x52bb2c._0x4e3861), _0xcab1c0(_0x52bb2c._0x5cb0d8));
|
|
85
|
+
function createAttachmentCache(_0x215899 = {}) {
|
|
86
|
+
const _0x564095 = {
|
|
87
|
+
_0x3dc4a4: 0xdd,
|
|
88
|
+
_0x326e25: 0x17e
|
|
89
|
+
}, _0xca0a74 = _0x1bf962, _0x6e1948 = _0x215899['cacheDir'] ?? _0x1ca7bc['join'](homedir(), '.slock', _0xca0a74(0x23d));
|
|
93
90
|
return {
|
|
94
|
-
'cacheDir':
|
|
95
|
-
async 'findCachedPath'(
|
|
96
|
-
const
|
|
97
|
-
await mkdir(
|
|
98
|
-
const
|
|
99
|
-
return
|
|
91
|
+
'cacheDir': _0x6e1948,
|
|
92
|
+
async 'findCachedPath'(_0x6f8e35) {
|
|
93
|
+
const _0x2c3f94 = _0xca0a74;
|
|
94
|
+
await mkdir(_0x6e1948, { 'recursive': !![] });
|
|
95
|
+
const _0x5af836 = await readdir(_0x6e1948), _0x346dd4 = _0x5af836[_0x2c3f94(0x170)](_0x2ffb8e => _0x2ffb8e[_0x2c3f94(0x1a0)](_0x6f8e35 + '-') || _0x2ffb8e['startsWith'](_0x6f8e35));
|
|
96
|
+
return _0x346dd4 ? _0x1ca7bc['join'](_0x6e1948, _0x346dd4) : null;
|
|
100
97
|
},
|
|
101
|
-
async 'save'(
|
|
102
|
-
const
|
|
103
|
-
await mkdir(
|
|
104
|
-
const
|
|
105
|
-
return await writeFile(
|
|
98
|
+
async 'save'(_0x44cbc2) {
|
|
99
|
+
const _0xa8ab48 = _0xca0a74;
|
|
100
|
+
await mkdir(_0x6e1948, { 'recursive': !![] });
|
|
101
|
+
const _0x5469a0 = _0x44cbc2[_0xa8ab48(0x1e9)]?.[_0xa8ab48(_0x564095._0x3dc4a4)]() ? safeFilename(_0x44cbc2[_0xa8ab48(0x1e9)]) : '' + _0x44cbc2[_0xa8ab48(0x233)] + extensionFor(_0x44cbc2[_0xa8ab48(0x158)]), _0x4e3583 = _0x1ca7bc['join'](_0x6e1948, _0x44cbc2[_0xa8ab48(0x233)] + '-' + _0x5469a0);
|
|
102
|
+
return await writeFile(_0x4e3583, _0x44cbc2[_0xa8ab48(_0x564095._0x326e25)]), _0x4e3583;
|
|
106
103
|
}
|
|
107
104
|
};
|
|
108
105
|
}
|
|
@@ -110,2198 +107,2208 @@ import {
|
|
|
110
107
|
createHash,
|
|
111
108
|
randomUUID
|
|
112
109
|
} 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)](':'))
|
|
110
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x1bf962(0x1eb);
|
|
111
|
+
function ensureSegment(_0x38ef84) {
|
|
112
|
+
const _0x373402 = _0x1bf962, _0x1b6642 = _0x38ef84[_0x373402(0xdd)]();
|
|
113
|
+
if (!_0x1b6642 || _0x1b6642['includes'](':'))
|
|
120
114
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
121
|
-
return
|
|
115
|
+
return _0x1b6642;
|
|
122
116
|
}
|
|
123
|
-
function
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
'channelName': ensureSegment(_0x2ff131[0x0] ?? ''),
|
|
132
|
-
'threadShortId': _0x2ff131[0x1] ? ensureSegment(_0x2ff131[0x1]) : null
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
function parseTarget(_0x64f36f) {
|
|
136
|
-
const _0x5528fe = {
|
|
137
|
-
_0x5f2b23: 0x263,
|
|
138
|
-
_0x3978e2: 0x13b,
|
|
139
|
-
_0x39a982: 0x13b,
|
|
140
|
-
_0x449732: 0x215,
|
|
141
|
-
_0x4ab642: 0x259,
|
|
142
|
-
_0x222380: 0x1f8,
|
|
143
|
-
_0x5ec508: 0x268
|
|
144
|
-
}, _0x4b9271 = _0x15d6d8, _0x48cebd = _0x64f36f[_0x4b9271(0x269)]();
|
|
145
|
-
if (!_0x48cebd)
|
|
146
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
147
|
-
if (_0x48cebd[_0x4b9271(0x215)]('#')) {
|
|
148
|
-
const _0x4bc6ab = parseThreadParts(_0x48cebd[_0x4b9271(_0x5528fe._0x5f2b23)](0x1)), _0x489a6c = '#' + _0x4bc6ab['channelName'];
|
|
149
|
-
if (!_0x4bc6ab[_0x4b9271(0x13b)])
|
|
150
|
-
return {
|
|
151
|
-
'channelName': _0x4bc6ab['channelName'],
|
|
152
|
-
'channelTarget': _0x489a6c,
|
|
153
|
-
'kind': _0x4b9271(0x268),
|
|
154
|
-
'target': _0x489a6c
|
|
155
|
-
};
|
|
156
|
-
return {
|
|
157
|
-
'channelName': _0x4bc6ab[_0x4b9271(0x1f8)],
|
|
158
|
-
'channelTarget': _0x489a6c,
|
|
159
|
-
'kind': 'thread',
|
|
160
|
-
'target': _0x489a6c + ':' + _0x4bc6ab[_0x4b9271(_0x5528fe._0x3978e2)],
|
|
161
|
-
'threadShortId': _0x4bc6ab[_0x4b9271(_0x5528fe._0x39a982)]
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
if (_0x48cebd[_0x4b9271(_0x5528fe._0x449732)](_0x4b9271(0x258))) {
|
|
165
|
-
const _0x1395fa = parseThreadParts(_0x48cebd['slice'](0x3));
|
|
166
|
-
if (!_0x1395fa[_0x4b9271(0x1f8)]['startsWith'](_0x4b9271(_0x5528fe._0x4ab642)))
|
|
167
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
168
|
-
const _0x290cbe = _0x4b9271(0x258) + _0x1395fa[_0x4b9271(0x1f8)];
|
|
169
|
-
if (!_0x1395fa[_0x4b9271(0x13b)])
|
|
170
|
-
return {
|
|
171
|
-
'channelName': _0x1395fa[_0x4b9271(_0x5528fe._0x222380)],
|
|
172
|
-
'channelTarget': _0x290cbe,
|
|
173
|
-
'kind': _0x4b9271(_0x5528fe._0x5ec508),
|
|
174
|
-
'target': _0x290cbe
|
|
175
|
-
};
|
|
176
|
-
return {
|
|
177
|
-
'channelName': _0x1395fa['channelName'],
|
|
178
|
-
'channelTarget': _0x290cbe,
|
|
179
|
-
'kind': 'thread',
|
|
180
|
-
'target': _0x290cbe + ':' + _0x1395fa[_0x4b9271(0x13b)],
|
|
181
|
-
'threadShortId': _0x1395fa[_0x4b9271(_0x5528fe._0x3978e2)]
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
185
|
-
}
|
|
186
|
-
function _0x3844(_0x383972, _0x284cad) {
|
|
187
|
-
_0x383972 = _0x383972 - 0x11e;
|
|
188
|
-
const _0x419973 = _0x4199();
|
|
189
|
-
let _0x38441b = _0x419973[_0x383972];
|
|
190
|
-
if (_0x3844['HFsmfV'] === undefined) {
|
|
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;
|
|
212
|
-
}
|
|
213
|
-
function asRecord(_0x1bde71) {
|
|
214
|
-
const _0x213c74 = _0x15d6d8;
|
|
215
|
-
return typeof _0x1bde71 === _0x213c74(0x20e) && _0x1bde71 !== null ? _0x1bde71 : {};
|
|
216
|
-
}
|
|
217
|
-
function stableStringify(_0x10b8da) {
|
|
218
|
-
const _0xb37a88 = {
|
|
219
|
-
_0x2675bd: 0x20e,
|
|
220
|
-
_0x5f2117: 0x15d,
|
|
221
|
-
_0xe361: 0x1a7,
|
|
222
|
-
_0x28707b: 0x15d
|
|
223
|
-
}, _0x39e887 = _0x15d6d8;
|
|
224
|
-
if (_0x10b8da === null || typeof _0x10b8da !== _0x39e887(_0xb37a88._0x2675bd))
|
|
225
|
-
return JSON[_0x39e887(0x14b)](_0x10b8da);
|
|
226
|
-
if (Array['isArray'](_0x10b8da))
|
|
227
|
-
return '[' + _0x10b8da[_0x39e887(0x208)](_0x47d4a9 => stableStringify(_0x47d4a9))[_0x39e887(_0xb37a88._0x5f2117)](',') + ']';
|
|
228
|
-
const _0x5bbeb1 = Object[_0x39e887(0x23a)](_0x10b8da)[_0x39e887(_0xb37a88._0xe361)](([, _0x1f9422]) => _0x1f9422 !== void 0x0)['sort'](([_0xfdd987], [_0x3f50ac]) => _0xfdd987[_0x39e887(0x1d6)](_0x3f50ac))[_0x39e887(0x208)](([_0x117e51, _0x266b49]) => JSON[_0x39e887(0x14b)](_0x117e51) + ':' + stableStringify(_0x266b49));
|
|
229
|
-
return '{' + _0x5bbeb1[_0x39e887(_0xb37a88._0x28707b)](',') + '}';
|
|
230
|
-
}
|
|
231
|
-
function createHeaders(_0x1e2b64) {
|
|
232
|
-
const _0x2832a5 = { _0x5f04bf: 0x12a }, _0x48a60c = _0x15d6d8;
|
|
233
|
-
return {
|
|
234
|
-
'Content-Type': _0x48a60c(_0x2832a5._0x5f04bf),
|
|
235
|
-
'x-daemon-api-key': _0x1e2b64
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
function toHttpBaseUrl(_0x72e409) {
|
|
239
|
-
const _0x39e7c4 = {
|
|
240
|
-
_0x2054e0: 0x1a2,
|
|
241
|
-
_0x4a3748: 0x22e,
|
|
242
|
-
_0x5d2516: 0x27a
|
|
243
|
-
}, _0x21508e = _0x15d6d8, _0x1f1ae0 = new URL(_0x72e409);
|
|
244
|
-
if (_0x1f1ae0[_0x21508e(0x22e)] === 'ws:')
|
|
245
|
-
_0x1f1ae0[_0x21508e(0x22e)] = _0x21508e(0x29a);
|
|
246
|
-
else
|
|
247
|
-
_0x1f1ae0[_0x21508e(0x22e)] === _0x21508e(_0x39e7c4._0x2054e0) && (_0x1f1ae0[_0x21508e(_0x39e7c4._0x4a3748)] = _0x21508e(0x18e));
|
|
248
|
-
return _0x1f1ae0[_0x21508e(0x1f9)]()[_0x21508e(_0x39e7c4._0x5d2516)](/\/$/, '');
|
|
249
|
-
}
|
|
250
|
-
function isMentionBoundary(_0x22a2ff) {
|
|
251
|
-
const _0x25eda3 = { _0x2f3b09: 0x184 }, _0x93cce6 = _0x15d6d8;
|
|
252
|
-
return !_0x22a2ff || /\s|[([{'",。!?、:;]/[_0x93cce6(_0x25eda3._0x2f3b09)](_0x22a2ff);
|
|
253
|
-
}
|
|
254
|
-
function isMentionTerminal(_0x5b2761) {
|
|
255
|
-
return !_0x5b2761 || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x5b2761);
|
|
256
|
-
}
|
|
257
|
-
function buildMatchableEntries(_0x1dcec4) {
|
|
258
|
-
const _0x5af7f6 = {
|
|
259
|
-
_0x44bb5b: 0x14d,
|
|
260
|
-
_0x47758d: 0x12e,
|
|
261
|
-
_0x350624: 0x130
|
|
262
|
-
}, _0x38dcd9 = _0x15d6d8, _0x2290ac = [];
|
|
263
|
-
for (const _0x2601d7 of [
|
|
264
|
-
..._0x1dcec4[_0x38dcd9(_0x5af7f6._0x44bb5b)],
|
|
265
|
-
..._0x1dcec4['humans']
|
|
266
|
-
]) {
|
|
267
|
-
_0x2290ac[_0x38dcd9(_0x5af7f6._0x47758d)]({
|
|
268
|
-
'matchName': _0x2601d7[_0x38dcd9(0x130)],
|
|
269
|
-
'matchNameLower': _0x2601d7['name'][_0x38dcd9(0x1ee)](),
|
|
270
|
-
'participantId': _0x2601d7['id']
|
|
271
|
-
}), _0x2601d7['id'] !== _0x2601d7[_0x38dcd9(_0x5af7f6._0x350624)] && _0x2290ac[_0x38dcd9(0x12e)]({
|
|
272
|
-
'matchName': _0x2601d7['id'],
|
|
273
|
-
'matchNameLower': _0x2601d7['id']['toLocaleLowerCase'](),
|
|
274
|
-
'participantId': _0x2601d7['id']
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
return _0x2290ac;
|
|
278
|
-
}
|
|
279
|
-
function extractMentionedParticipantIds(_0x158b70, _0x486a7c) {
|
|
280
|
-
const _0x2913e5 = {
|
|
281
|
-
_0x5cdc8b: 0x21e,
|
|
282
|
-
_0x335b7e: 0x248,
|
|
283
|
-
_0x4d8cc0: 0x159,
|
|
284
|
-
_0x286d47: 0x12e
|
|
285
|
-
}, _0x236341 = {
|
|
286
|
-
_0x372c7a: 0x215,
|
|
287
|
-
_0x5e9884: 0x1c0
|
|
288
|
-
}, _0x360e4e = _0x15d6d8, _0x54a4c1 = buildMatchableEntries(_0x486a7c)[_0x360e4e(0x136)]((_0x3f5e9b, _0x2f4ec1) => _0x2f4ec1[_0x360e4e(0x1c0)][_0x360e4e(0x190)] - _0x3f5e9b[_0x360e4e(0x1c0)][_0x360e4e(0x190)]), _0x3a6315 = [], _0x47378b = new Set();
|
|
289
|
-
for (let _0x4f4e56 = 0x0; _0x4f4e56 < _0x158b70['length']; _0x4f4e56 += 0x1) {
|
|
290
|
-
if (_0x158b70[_0x4f4e56] !== '@' || !isMentionBoundary(_0x158b70[_0x4f4e56 - 0x1]))
|
|
291
|
-
continue;
|
|
292
|
-
const _0x19da58 = _0x158b70['slice'](_0x4f4e56 + 0x1), _0x2c8a19 = _0x19da58[_0x360e4e(0x1ee)](), _0x15455e = _0x54a4c1[_0x360e4e(_0x2913e5._0x5cdc8b)](_0x35cbe9 => {
|
|
293
|
-
const _0x11e551 = _0x360e4e;
|
|
294
|
-
if (!_0x2c8a19[_0x11e551(_0x236341._0x372c7a)](_0x35cbe9[_0x11e551(0x188)]))
|
|
295
|
-
return ![];
|
|
296
|
-
return isMentionTerminal(_0x19da58[_0x35cbe9[_0x11e551(_0x236341._0x5e9884)]['length']]);
|
|
297
|
-
});
|
|
298
|
-
if (!_0x15455e || _0x47378b[_0x360e4e(_0x2913e5._0x335b7e)](_0x15455e[_0x360e4e(0x159)]))
|
|
299
|
-
continue;
|
|
300
|
-
_0x47378b['add'](_0x15455e[_0x360e4e(_0x2913e5._0x4d8cc0)]), _0x3a6315[_0x360e4e(_0x2913e5._0x286d47)](_0x15455e[_0x360e4e(0x159)]), _0x4f4e56 += _0x15455e['matchName']['length'];
|
|
301
|
-
}
|
|
302
|
-
return _0x3a6315;
|
|
303
|
-
}
|
|
304
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
305
|
-
function anySignal(..._0x4a2234) {
|
|
306
|
-
const _0x4e33a3 = { _0x4b3ece: 0x156 }, _0x84c8e6 = _0x15d6d8, _0x19bf04 = new AbortController();
|
|
307
|
-
for (const _0x1ceaf2 of _0x4a2234) {
|
|
308
|
-
if (_0x1ceaf2['aborted'])
|
|
309
|
-
return _0x19bf04[_0x84c8e6(0x1b4)](_0x1ceaf2[_0x84c8e6(0x127)]), _0x19bf04['signal'];
|
|
310
|
-
_0x1ceaf2[_0x84c8e6(0x221)]('abort', () => _0x19bf04[_0x84c8e6(0x1b4)](_0x1ceaf2[_0x84c8e6(0x127)]), {
|
|
311
|
-
'once': !![],
|
|
312
|
-
'signal': _0x19bf04[_0x84c8e6(_0x4e33a3._0x4b3ece)]
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
return _0x19bf04[_0x84c8e6(0x156)];
|
|
316
|
-
}
|
|
317
|
-
function createInternalAgentClient(_0x13d36f) {
|
|
318
|
-
const _0x43e8f8 = {
|
|
319
|
-
_0x139ca8: 0x11e,
|
|
320
|
-
_0x537ee3: 0x269,
|
|
321
|
-
_0x118f56: 0x28d,
|
|
322
|
-
_0x3eb146: 0x1ba,
|
|
323
|
-
_0x532984: 0x20a,
|
|
324
|
-
_0x29017e: 0x17a
|
|
325
|
-
}, _0x3728a0 = {
|
|
326
|
-
_0x2e7a91: 0x149,
|
|
327
|
-
_0x16b3f4: 0x1f9,
|
|
328
|
-
_0xd9f26a: 0x1cf,
|
|
329
|
-
_0x5bfccf: 0x15b,
|
|
330
|
-
_0x3b5cdd: 0x1c8,
|
|
331
|
-
_0x48f231: 0x289,
|
|
332
|
-
_0x3c9109: 0x12d,
|
|
333
|
-
_0xb985d1: 0x12d,
|
|
334
|
-
_0x55fe5c: 0x190,
|
|
335
|
-
_0xb77e4d: 0x1a7,
|
|
336
|
-
_0x43bc7e: 0x163,
|
|
337
|
-
_0x331fd8: 0x208,
|
|
338
|
-
_0x17f0d7: 0x20f,
|
|
339
|
-
_0x1e18a8: 0x140,
|
|
340
|
-
_0x26e0c3: 0x28b,
|
|
341
|
-
_0x7fa418: 0x24b,
|
|
342
|
-
_0x4c9f7f: 0x18a,
|
|
343
|
-
_0x46d0f6: 0x18a,
|
|
344
|
-
_0x35f363: 0x12e,
|
|
345
|
-
_0x554284: 0x1e5,
|
|
346
|
-
_0x4f0a12: 0x130,
|
|
347
|
-
_0x44f2b7: 0x12d,
|
|
348
|
-
_0x487be4: 0x218,
|
|
349
|
-
_0x58237b: 0x245,
|
|
350
|
-
_0x15eaf0: 0x2a1,
|
|
351
|
-
_0x3ec5cf: 0x13c,
|
|
352
|
-
_0x42d982: 0x1ff,
|
|
353
|
-
_0x2cb224: 0x228,
|
|
354
|
-
_0x367c52: 0x12e,
|
|
355
|
-
_0x1a2d54: 0x25e,
|
|
356
|
-
_0x6e0d76: 0x1a7
|
|
357
|
-
}, _0x103a32 = {
|
|
358
|
-
_0x533010: 0x26b,
|
|
359
|
-
_0xc1267e: 0x1fd
|
|
360
|
-
}, _0x3ba4af = {
|
|
361
|
-
_0x288724: 0x25a,
|
|
362
|
-
_0x279eb3: 0x153,
|
|
363
|
-
_0x6b8881: 0x151,
|
|
364
|
-
_0x1d84b3: 0x1ea,
|
|
365
|
-
_0x3a4013: 0x141
|
|
366
|
-
}, _0x3ea8a0 = {
|
|
367
|
-
_0x5499db: 0x28b,
|
|
368
|
-
_0x45cdc7: 0x241,
|
|
369
|
-
_0x592796: 0x14b,
|
|
370
|
-
_0x502405: 0x1fe,
|
|
371
|
-
_0x35fedc: 0x1b6,
|
|
372
|
-
_0x545740: 0x199,
|
|
373
|
-
_0x254a57: 0x153
|
|
374
|
-
}, _0x3ffdc5 = {
|
|
375
|
-
_0x5771f2: 0x203,
|
|
376
|
-
_0x3fe330: 0x14b
|
|
377
|
-
}, _0x29cc52 = {
|
|
378
|
-
_0x4c7ac1: 0x1cf,
|
|
379
|
-
_0x5ad920: 0x16a
|
|
380
|
-
}, _0x2598d4 = { _0x482643: 0x199 }, _0x2337a0 = {
|
|
381
|
-
_0x1c7347: 0x242,
|
|
382
|
-
_0x5c8a09: 0x14b,
|
|
383
|
-
_0x693190: 0x199
|
|
384
|
-
}, _0x2c7e73 = { _0x3a1d80: 0x15b }, _0x13e5e5 = {
|
|
385
|
-
_0x5b047b: 0x26d,
|
|
386
|
-
_0x312946: 0x14b,
|
|
387
|
-
_0x3d0059: 0x153,
|
|
388
|
-
_0x206a25: 0x250,
|
|
389
|
-
_0x207b94: 0x27f
|
|
390
|
-
}, _0x28060a = {
|
|
391
|
-
_0x22aec3: 0x250,
|
|
392
|
-
_0x32a397: 0x14b,
|
|
393
|
-
_0x57e62f: 0x153
|
|
394
|
-
}, _0x3fb387 = {
|
|
395
|
-
_0x2390cf: 0x22d,
|
|
396
|
-
_0x15ede1: 0x153
|
|
397
|
-
}, _0x4cc4ed = {
|
|
398
|
-
_0x28f41d: 0x24e,
|
|
399
|
-
_0x2ab48a: 0x153
|
|
400
|
-
}, _0x3e364b = {
|
|
401
|
-
_0x2c5a00: 0x23f,
|
|
402
|
-
_0x43864d: 0x1cf,
|
|
403
|
-
_0x2c55fe: 0x15b,
|
|
404
|
-
_0x36776d: 0x28b,
|
|
405
|
-
_0x48a3fe: 0x24a
|
|
406
|
-
}, _0x1f8d88 = {
|
|
407
|
-
_0x3819e7: 0x214,
|
|
408
|
-
_0x1b89fa: 0x28b,
|
|
409
|
-
_0x55d8c1: 0x1fd,
|
|
410
|
-
_0x1a689c: 0x1fd,
|
|
411
|
-
_0x488bea: 0x1e5,
|
|
412
|
-
_0x391dee: 0x289,
|
|
413
|
-
_0x11873e: 0x26b,
|
|
414
|
-
_0x4de3c9: 0x1e5,
|
|
415
|
-
_0x83960d: 0x26b,
|
|
416
|
-
_0x2ba919: 0x1cf,
|
|
417
|
-
_0x256cce: 0x1d9,
|
|
418
|
-
_0x22f7b4: 0x153,
|
|
419
|
-
_0x398e5f: 0x208,
|
|
420
|
-
_0x2d235c: 0x1c8
|
|
421
|
-
}, _0x33b904 = { _0x5d384b: 0x159 }, _0x538919 = {
|
|
422
|
-
_0x34cd4a: 0x24b,
|
|
423
|
-
_0x1096b6: 0x18a
|
|
424
|
-
}, _0x3ae324 = {
|
|
425
|
-
_0x1ced37: 0x24b,
|
|
426
|
-
_0xe33fdc: 0x185,
|
|
427
|
-
_0x163088: 0x185,
|
|
428
|
-
_0x3fb75d: 0x18a,
|
|
429
|
-
_0x38a87c: 0x263,
|
|
430
|
-
_0x16cafa: 0x185
|
|
431
|
-
}, _0x2b9292 = {
|
|
432
|
-
_0x4f62f6: 0x14d,
|
|
433
|
-
_0x2d8c75: 0x20f,
|
|
434
|
-
_0x3feaa6: 0x171
|
|
435
|
-
}, _0x3367ee = { _0x24d387: 0x1c6 }, _0x5032ff = {
|
|
436
|
-
_0x25e293: 0x15b,
|
|
437
|
-
_0x114812: 0x1d1,
|
|
438
|
-
_0x44c811: 0x14b,
|
|
439
|
-
_0x312f1f: 0x1fe,
|
|
440
|
-
_0x89fa65: 0x199,
|
|
441
|
-
_0x3dbc01: 0x153,
|
|
442
|
-
_0x4a980a: 0x1fd,
|
|
443
|
-
_0xad8d80: 0x2a5,
|
|
444
|
-
_0xfc4e5f: 0x28b,
|
|
445
|
-
_0x3d662b: 0x153,
|
|
446
|
-
_0x1f1382: 0x24b
|
|
447
|
-
}, _0x52aba0 = {
|
|
448
|
-
_0x2ddeb1: 0x1a8,
|
|
449
|
-
_0x152833: 0x12a,
|
|
450
|
-
_0x107674: 0x27f
|
|
451
|
-
}, _0x84a6a9 = {
|
|
452
|
-
_0x16d9c2: 0x14b,
|
|
453
|
-
_0x3c425a: 0x279
|
|
454
|
-
}, _0x3d3b94 = {
|
|
455
|
-
_0x4d1d06: 0x156,
|
|
456
|
-
_0x27d405: 0x156,
|
|
457
|
-
_0x3fb042: 0x283
|
|
458
|
-
}, _0x1e3afb = {
|
|
459
|
-
_0x394742: 0x156,
|
|
460
|
-
_0xb0050a: 0x227,
|
|
461
|
-
_0x7c0fb5: 0x1c5
|
|
462
|
-
}, _0x1d94eb = {
|
|
463
|
-
_0x1c38a9: 0x140,
|
|
464
|
-
_0x4a728a: 0x269,
|
|
465
|
-
_0x442ffc: 0x161,
|
|
466
|
-
_0x1fb6ed: 0x275,
|
|
467
|
-
_0x12557c: 0x145,
|
|
468
|
-
_0x480223: 0x218
|
|
469
|
-
}, _0x2acac8 = {
|
|
470
|
-
_0x5ba471: 0x1ea,
|
|
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);
|
|
485
|
-
}
|
|
486
|
-
async function _0x3d15cc(_0x2cde0d, _0x4cf454) {
|
|
487
|
-
const _0x5f1c22 = _0x48cdc4, _0x19fff2 = Buffer[_0x5f1c22(_0x2acac8._0x5ba471)](await _0x4cf454['arrayBuffer']())[_0x5f1c22(0x1f9)](_0x5f1c22(_0x2acac8._0x419384));
|
|
488
|
-
if (!_0x19fff2[_0x5f1c22(_0x2acac8._0x4a2051)]())
|
|
489
|
-
return {};
|
|
490
|
-
try {
|
|
491
|
-
return JSON[_0x5f1c22(0x25f)](_0x19fff2);
|
|
492
|
-
} catch {
|
|
493
|
-
throw new Error(_0x3d2826({
|
|
494
|
-
'bodyText': _0x19fff2,
|
|
495
|
-
'requestUrl': _0x2cde0d,
|
|
496
|
-
'response': _0x4cf454
|
|
497
|
-
}));
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
function _0x12772a(_0x47b996, _0x4e58b2) {
|
|
501
|
-
const _0x13b74c = _0x48cdc4, _0x447aee = typeof _0x4e58b2[_0x13b74c(0x286)] === _0x13b74c(_0x1d94eb._0x1c38a9) ? _0x4e58b2[_0x13b74c(0x286)][_0x13b74c(_0x1d94eb._0x4a728a)]() : '';
|
|
502
|
-
if (_0x447aee)
|
|
503
|
-
return _0x447aee;
|
|
504
|
-
const _0x5c286e = Date[_0x13b74c(0x18c)]();
|
|
505
|
-
for (const [_0x3f3211, _0x195dd8] of _0x4d25d3) {
|
|
506
|
-
_0x195dd8[_0x13b74c(0x1ef)] <= _0x5c286e && _0x4d25d3['delete'](_0x3f3211);
|
|
507
|
-
}
|
|
508
|
-
const _0x3b54d1 = {
|
|
509
|
-
..._0x4e58b2,
|
|
510
|
-
'idempotency_key': void 0x0
|
|
511
|
-
}, _0xb161a7 = createHash(_0x13b74c(_0x1d94eb._0x442ffc))[_0x13b74c(_0x1d94eb._0x1fb6ed)](_0x47b996 + ':' + stableStringify(_0x3b54d1))['digest'](_0x13b74c(_0x1d94eb._0x12557c)), _0x11ee55 = _0x47b996 + ':' + _0xb161a7, _0x4e5fa2 = _0x4d25d3[_0x13b74c(_0x1d94eb._0x480223)](_0x11ee55);
|
|
512
|
-
if (_0x4e5fa2)
|
|
513
|
-
return _0x4e5fa2[_0x13b74c(0x1ec)];
|
|
514
|
-
const _0x35216d = _0x13b74c(0x26e) + _0x47b996 + ':' + randomUUID();
|
|
515
|
-
return _0x4d25d3[_0x13b74c(0x1e5)](_0x11ee55, {
|
|
516
|
-
'expiresAt': _0x5c286e + 0x5 * 0x3c * 0x3e8,
|
|
517
|
-
'value': _0x35216d
|
|
518
|
-
}), _0x35216d;
|
|
519
|
-
}
|
|
520
|
-
async function _0x1d8040(_0xea6379, _0x2d9e45) {
|
|
521
|
-
const _0x35b8f3 = _0x48cdc4, _0x3c6be1 = new AbortController(), _0x15bb94 = setTimeout(() => _0x3c6be1['abort'](), _0x5dad0a), _0x4988a4 = _0x2d9e45?.[_0x35b8f3(_0x1e3afb._0x394742)] ? anySignal(_0x2d9e45['signal'], _0x3c6be1['signal']) : _0x3c6be1[_0x35b8f3(0x156)], _0x21f228 = '' + _0x558658 + _0xea6379;
|
|
522
|
-
try {
|
|
523
|
-
const _0x26d60a = await _0x489cf6(_0x21f228, {
|
|
524
|
-
..._0x2d9e45,
|
|
525
|
-
'signal': _0x4988a4
|
|
526
|
-
}), _0x2d7c08 = await _0x3d15cc(_0x21f228, _0x26d60a);
|
|
527
|
-
if (!_0x26d60a['ok'] || _0x2d7c08[_0x35b8f3(_0x1e3afb._0xb0050a)] === ![])
|
|
528
|
-
throw new Error(asErrorMessage(_0x2d7c08[_0x35b8f3(_0x1e3afb._0x7c0fb5)], 'HTTP\x20' + _0x26d60a['status']));
|
|
529
|
-
return _0x2d7c08;
|
|
530
|
-
} finally {
|
|
531
|
-
clearTimeout(_0x15bb94);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
async function _0x270d3b(_0x659414, _0x570fd5) {
|
|
535
|
-
const _0x359047 = _0x48cdc4, _0x32a2d3 = new AbortController(), _0x3309c3 = setTimeout(() => _0x32a2d3['abort'](), _0x5dad0a), _0x1ccb99 = _0x570fd5?.[_0x359047(_0x3d3b94._0x4d1d06)] ? anySignal(_0x570fd5[_0x359047(_0x3d3b94._0x27d405)], _0x32a2d3[_0x359047(0x156)]) : _0x32a2d3['signal'], _0x338c99 = '' + _0x558658 + _0x659414;
|
|
536
|
-
try {
|
|
537
|
-
const _0x547631 = await _0x489cf6(_0x338c99, {
|
|
538
|
-
..._0x570fd5,
|
|
539
|
-
'signal': _0x1ccb99
|
|
540
|
-
}), _0x17b816 = await _0x3d15cc(_0x338c99, _0x547631);
|
|
541
|
-
if (!_0x547631['ok'])
|
|
542
|
-
throw new Error(asErrorMessage(_0x17b816[_0x359047(0x1c5)], _0x359047(_0x3d3b94._0x3fb042) + _0x547631['status']));
|
|
543
|
-
return _0x17b816;
|
|
544
|
-
} finally {
|
|
545
|
-
clearTimeout(_0x3309c3);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
async function _0x3e053b(_0x1e8a46) {
|
|
549
|
-
const _0x5ac911 = _0x48cdc4;
|
|
550
|
-
if (!_0x299cbf || _0x1e8a46 <= _0x27a6f4)
|
|
551
|
-
return;
|
|
552
|
-
await _0x1d8040(_0x5ac911(0x143) + encodeURIComponent(_0x299cbf) + _0x5ac911(0x123), {
|
|
553
|
-
'body': JSON[_0x5ac911(_0x84a6a9._0x16d9c2)]({ 'lastSeenSeq': _0x1e8a46 }),
|
|
554
|
-
'headers': _0x260a25,
|
|
555
|
-
'method': _0x5ac911(_0x84a6a9._0x3c425a)
|
|
556
|
-
}), _0x27a6f4 = _0x1e8a46;
|
|
557
|
-
}
|
|
558
|
-
async function _0x1b8e6a(_0x835acd) {
|
|
559
|
-
const _0x583bfa = _0x48cdc4;
|
|
560
|
-
if (!_0x5979b7 || !_0x50f71f || _0x835acd <= _0x27a6f4)
|
|
561
|
-
return;
|
|
562
|
-
const _0x58302d = await _0x489cf6(_0x5979b7 + _0x583bfa(_0x52aba0._0x2ddeb1), {
|
|
563
|
-
'body': JSON[_0x583bfa(0x14b)]({
|
|
564
|
-
'last_seen_seq': _0x835acd,
|
|
565
|
-
'worker_session_id': _0x50f71f
|
|
566
|
-
}),
|
|
567
|
-
'headers': { 'Content-Type': _0x583bfa(_0x52aba0._0x152833) },
|
|
568
|
-
'method': 'POST'
|
|
569
|
-
});
|
|
570
|
-
if (!_0x58302d['ok'])
|
|
571
|
-
throw new Error('HTTP\x20' + _0x58302d[_0x583bfa(_0x52aba0._0x107674)]);
|
|
572
|
-
_0x27a6f4 = _0x835acd;
|
|
573
|
-
}
|
|
574
|
-
async function _0x459e2f(_0x307d22) {
|
|
575
|
-
const _0x2093d1 = _0x48cdc4, _0x12b5f4 = parseTarget(_0x307d22), _0x8aea97 = await _0x1d8040(_0x2093d1(0x1cf) + _0x13d36f[_0x2093d1(_0x5032ff._0x25e293)] + _0x2093d1(_0x5032ff._0x114812), {
|
|
576
|
-
'body': JSON[_0x2093d1(_0x5032ff._0x44c811)]({ 'target': _0x12b5f4[_0x2093d1(_0x5032ff._0x312f1f)] }),
|
|
577
|
-
'headers': _0x260a25,
|
|
578
|
-
'method': _0x2093d1(_0x5032ff._0x89fa65)
|
|
579
|
-
});
|
|
580
|
-
return {
|
|
581
|
-
'channelId': _0x8aea97[_0x2093d1(_0x5032ff._0x3dbc01)]?.[_0x2093d1(_0x5032ff._0x4a980a)] ?? '',
|
|
582
|
-
'target': _0x12b5f4[_0x2093d1(0x185)],
|
|
583
|
-
'task': _0x8aea97[_0x2093d1(_0x5032ff._0x3dbc01)]?.[_0x2093d1(_0x5032ff._0xad8d80)],
|
|
584
|
-
'threadId': _0x8aea97[_0x2093d1(_0x5032ff._0x3dbc01)]?.[_0x2093d1(_0x5032ff._0xfc4e5f)],
|
|
585
|
-
'threadNumber': _0x8aea97[_0x2093d1(_0x5032ff._0x3d662b)]?.[_0x2093d1(_0x5032ff._0x1f1382)]
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
async function _0x1c8519(_0x1df72a = {}) {
|
|
589
|
-
const _0x36ae33 = {
|
|
590
|
-
_0xf9cd50: 0x1cf,
|
|
591
|
-
_0x177c4f: 0x15b,
|
|
592
|
-
_0x294f77: 0x17c,
|
|
593
|
-
_0x4e8218: 0x153,
|
|
594
|
-
_0x1ad01f: 0x1a7,
|
|
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,
|
|
605
|
-
'method': 'GET'
|
|
606
|
-
}), _0x2ccd51 = _0x5085f0[_0x53f05d(_0x36ae33._0x4e8218)]?.[_0x53f05d(0x206)] ?? [], _0x436d9e = _0x2ccd51[_0x53f05d(_0x36ae33._0x1ad01f)](_0x14164f => _0x14164f[_0x53f05d(0x29e)]?.['type'] === 'agent')['map'](_0x1d7c2a => ({
|
|
607
|
-
'id': _0x3974b5(_0x1d7c2a),
|
|
608
|
-
'name': _0xe4f041(_0x1d7c2a)
|
|
609
|
-
}))['filter'](_0x58ed01 => _0x58ed01['id']), _0x1e16c7 = _0x2ccd51[_0x53f05d(_0x36ae33._0x1ad01f)](_0x50aced => _0x50aced[_0x53f05d(0x29e)]?.['type'] !== _0x53f05d(0x171))[_0x53f05d(_0x36ae33._0x26413e)](_0x4e28f9 => ({
|
|
610
|
-
'id': _0x3974b5(_0x4e28f9),
|
|
611
|
-
'name': _0xe4f041(_0x4e28f9)
|
|
612
|
-
}))[_0x53f05d(_0x36ae33._0xb61623)](_0x24c410 => _0x24c410['id']), _0x286c67 = _0x5085f0['data']?.[_0x53f05d(_0x36ae33._0x583af6)]['id'] ?? '';
|
|
613
|
-
return {
|
|
614
|
-
'agents': _0x436d9e,
|
|
615
|
-
'channels': _0x5085f0[_0x53f05d(0x153)]?.[_0x53f05d(_0x36ae33._0xab712e)] ?? [],
|
|
616
|
-
'humans': _0x1e16c7,
|
|
617
|
-
'serverId': _0x286c67,
|
|
618
|
-
'serverName': _0x5085f0['data']?.[_0x53f05d(0x224)]['name'] ?? _0x286c67
|
|
619
|
-
};
|
|
620
|
-
})()['catch'](_0x4e7aa3 => {
|
|
621
|
-
_0x4627c1 = null;
|
|
622
|
-
throw _0x4e7aa3;
|
|
623
|
-
}), _0x4627c1;
|
|
624
|
-
}
|
|
625
|
-
function _0x2db2d6(_0x1589d2, _0x248ac8) {
|
|
626
|
-
const _0x1641f4 = _0x48cdc4;
|
|
627
|
-
return _0x248ac8[_0x1641f4(_0x2b9292._0x4f62f6)][_0x1641f4(_0x2b9292._0x2d8c75)](_0x40b1b4 => _0x40b1b4['id'] === _0x1589d2 || _0x40b1b4[_0x1641f4(0x130)] === _0x1589d2) ? _0x1641f4(_0x2b9292._0x3feaa6) : _0x1641f4(0x294);
|
|
628
|
-
}
|
|
629
|
-
function _0x442be0(_0xdbf355) {
|
|
630
|
-
const _0x3ace90 = _0x48cdc4;
|
|
631
|
-
if (_0xdbf355[_0x3ace90(_0x3ae324._0x1ced37)] != null)
|
|
632
|
-
return _0xdbf355[_0x3ace90(_0x3ae324._0xe33fdc)] + ':t' + _0xdbf355[_0x3ace90(_0x3ae324._0x1ced37)];
|
|
633
|
-
if (_0xdbf355['rootMessageId'])
|
|
634
|
-
return _0xdbf355[_0x3ace90(_0x3ae324._0x163088)] + ':' + _0xdbf355[_0x3ace90(_0x3ae324._0x3fb75d)];
|
|
635
|
-
if (_0xdbf355[_0x3ace90(0x28b)])
|
|
636
|
-
return _0xdbf355['channelTarget'] + ':' + _0xdbf355[_0x3ace90(0x28b)][_0x3ace90(_0x3ae324._0x38a87c)](0x0, 0x8);
|
|
637
|
-
return _0xdbf355[_0x3ace90(_0x3ae324._0x16cafa)];
|
|
638
|
-
}
|
|
639
|
-
function _0x59142d(_0x1de55c, _0x564973) {
|
|
640
|
-
const _0x574d85 = _0x48cdc4;
|
|
641
|
-
try {
|
|
642
|
-
const _0x3475a5 = parseTarget(_0x1de55c);
|
|
643
|
-
if (_0x3475a5['kind'] !== _0x574d85(0x148) || _0x3475a5['channelTarget'] !== _0x564973[_0x574d85(0x185)])
|
|
644
|
-
return ![];
|
|
645
|
-
if (_0x564973[_0x574d85(_0x538919._0x34cd4a)] != null && _0x3475a5[_0x574d85(0x13b)] === 't' + _0x564973['threadNumber'])
|
|
646
|
-
return !![];
|
|
647
|
-
if (_0x564973['rootMessageId'])
|
|
648
|
-
return _0x3475a5[_0x574d85(0x13b)] === _0x564973[_0x574d85(_0x538919._0x1096b6)] || _0x564973[_0x574d85(_0x538919._0x1096b6)]['startsWith'](_0x3475a5[_0x574d85(0x13b)]);
|
|
649
|
-
if (_0x564973[_0x574d85(0x28b)])
|
|
650
|
-
return _0x3475a5[_0x574d85(0x13b)] === _0x564973['threadId'] || _0x564973['threadId'][_0x574d85(0x215)](_0x3475a5[_0x574d85(0x13b)]);
|
|
651
|
-
return ![];
|
|
652
|
-
} catch {
|
|
653
|
-
return ![];
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
function _0x3974b5(_0x508374) {
|
|
657
|
-
const _0x3d0d5d = _0x48cdc4;
|
|
658
|
-
return _0x508374['member']?.['participantId'] ?? _0x508374['participant']?.['id'] ?? _0x508374[_0x3d0d5d(_0x33b904._0x5d384b)] ?? '';
|
|
659
|
-
}
|
|
660
|
-
function _0xe4f041(_0x4390af) {
|
|
661
|
-
const _0x32e3e7 = _0x48cdc4;
|
|
662
|
-
return _0x4390af[_0x32e3e7(0x29e)]?.['name'] ?? _0x3974b5(_0x4390af);
|
|
663
|
-
}
|
|
664
|
-
async function _0x5a8c6e(_0x3beeb5) {
|
|
665
|
-
const _0x2a78dd = _0x48cdc4, _0x26fbcb = Math[_0x2a78dd(0x1cd)](_0x3beeb5[_0x2a78dd(0x214)] ?? 0x32, 0x64), _0x4cccfd = await _0x1c8519(), _0x1a55d6 = new URLSearchParams();
|
|
666
|
-
_0x1a55d6[_0x2a78dd(0x1e5)](_0x2a78dd(_0x1f8d88._0x3819e7), String(_0x26fbcb));
|
|
667
|
-
_0x3beeb5[_0x2a78dd(0x28b)] ? (_0x1a55d6[_0x2a78dd(0x1e5)](_0x2a78dd(_0x1f8d88._0x1b89fa), _0x3beeb5[_0x2a78dd(0x28b)]), _0x1a55d6[_0x2a78dd(0x1e5)](_0x2a78dd(_0x1f8d88._0x55d8c1), _0x3beeb5[_0x2a78dd(_0x1f8d88._0x1a689c)])) : _0x1a55d6[_0x2a78dd(_0x1f8d88._0x488bea)]('channelId', _0x3beeb5[_0x2a78dd(_0x1f8d88._0x55d8c1)]);
|
|
668
|
-
_0x3beeb5['before'] && _0x1a55d6['set'](_0x2a78dd(_0x1f8d88._0x391dee), String(_0x3beeb5['before']));
|
|
669
|
-
_0x3beeb5[_0x2a78dd(_0x1f8d88._0x11873e)] !== void 0x0 && _0x1a55d6[_0x2a78dd(_0x1f8d88._0x4de3c9)](_0x2a78dd(_0x1f8d88._0x83960d), String(_0x3beeb5[_0x2a78dd(0x26b)]));
|
|
670
|
-
const _0x131704 = await _0x1d8040(_0x2a78dd(_0x1f8d88._0x2ba919) + _0x13d36f['agentId'] + _0x2a78dd(_0x1f8d88._0x256cce) + _0x1a55d6[_0x2a78dd(0x1f9)](), {
|
|
671
|
-
'headers': _0x260a25,
|
|
672
|
-
'method': _0x2a78dd(0x24e)
|
|
673
|
-
}), _0xb9599d = (_0x131704[_0x2a78dd(_0x1f8d88._0x22f7b4)] ?? [])[_0x2a78dd(_0x1f8d88._0x398e5f)](_0x28fd52 => ({
|
|
674
|
-
'attachments': (_0x28fd52['attachments'] ?? [])[_0x2a78dd(0x208)](_0x4a9bc2 => ({
|
|
675
|
-
'filename': _0x4a9bc2[_0x2a78dd(0x1b6)] ?? _0x4a9bc2['id'],
|
|
676
|
-
'id': _0x4a9bc2['id']
|
|
677
|
-
})),
|
|
678
|
-
'content': _0x28fd52['bodyMarkdown'] ?? '',
|
|
679
|
-
'createdAt': _0x28fd52[_0x2a78dd(0x13c)],
|
|
680
|
-
'messageId': _0x28fd52['id'],
|
|
681
|
-
'senderName': _0x28fd52[_0x2a78dd(0x228)],
|
|
682
|
-
'senderType': _0x2db2d6(_0x28fd52[_0x2a78dd(0x228)], _0x4cccfd),
|
|
683
|
-
'seq': _0x28fd52[_0x2a78dd(0x209)] ?? 0x0
|
|
684
|
-
}));
|
|
685
|
-
return {
|
|
686
|
-
'channel': _0x3beeb5[_0x2a78dd(0x185)],
|
|
687
|
-
'hasMore': _0x131704[_0x2a78dd(0x1c8)]?.['hasMore'] ?? ![],
|
|
688
|
-
'messages': _0xb9599d,
|
|
689
|
-
'nextCursor': _0x131704[_0x2a78dd(_0x1f8d88._0x2d235c)]?.[_0x2a78dd(0x289)]
|
|
690
|
-
};
|
|
691
|
-
}
|
|
692
|
-
return {
|
|
693
|
-
async 'sendMessage'(_0xa2f20d) {
|
|
694
|
-
const _0xb7de02 = _0x48cdc4, _0x182b41 = await _0x459e2f(_0xa2f20d[_0xb7de02(0x1fe)]), _0x42831e = _0xa2f20d[_0xb7de02(_0x3e364b._0x2c5a00)][_0xb7de02(0x135)]('@') ? extractMentionedParticipantIds(_0xa2f20d[_0xb7de02(0x23f)], await _0x1c8519()) : [], _0x3dca04 = await _0x1d8040(_0xb7de02(_0x3e364b._0x43864d) + _0x13d36f[_0xb7de02(_0x3e364b._0x2c55fe)] + _0xb7de02(0x1da), {
|
|
695
|
-
'body': JSON['stringify']({
|
|
696
|
-
'attachment_ids': _0xa2f20d[_0xb7de02(0x1ab)],
|
|
697
|
-
'bodyMarkdown': _0xa2f20d[_0xb7de02(0x23f)],
|
|
698
|
-
'channelId': _0x182b41['channelId'],
|
|
699
|
-
..._0x42831e[_0xb7de02(0x190)] > 0x0 ? { 'mentionedParticipantIds': _0x42831e } : {},
|
|
700
|
-
'threadId': _0x182b41[_0xb7de02(_0x3e364b._0x36776d)],
|
|
701
|
-
..._0xa2f20d[_0xb7de02(_0x3e364b._0x48a3fe)] ? { 'visibility': _0xa2f20d[_0xb7de02(0x24a)] } : {}
|
|
702
|
-
}),
|
|
703
|
-
'headers': _0x260a25,
|
|
704
|
-
'method': _0xb7de02(0x199)
|
|
705
|
-
});
|
|
706
|
-
return { 'messageId': _0x3dca04[_0xb7de02(0x153)]?.['id'] ?? '' };
|
|
707
|
-
},
|
|
708
|
-
async 'listSchedules'() {
|
|
709
|
-
const _0x152da3 = _0x48cdc4, _0x116ff5 = await _0x1d8040(_0x152da3(0x158), {
|
|
710
|
-
'headers': _0x260a25,
|
|
711
|
-
'method': _0x152da3(_0x4cc4ed._0x28f41d)
|
|
712
|
-
});
|
|
713
|
-
return _0x116ff5[_0x152da3(_0x4cc4ed._0x2ab48a)] ?? [];
|
|
714
|
-
},
|
|
715
|
-
async 'claimScheduleRun'(_0xab9d7a) {
|
|
716
|
-
const _0x1cbccb = _0x48cdc4, _0x1241df = await _0x1d8040(_0x1cbccb(_0x3fb387._0x2390cf), {
|
|
717
|
-
'body': JSON[_0x1cbccb(0x14b)](_0xab9d7a),
|
|
718
|
-
'headers': _0x260a25,
|
|
719
|
-
'method': 'POST'
|
|
720
|
-
});
|
|
721
|
-
return _0x1241df[_0x1cbccb(_0x3fb387._0x15ede1)] ?? {
|
|
722
|
-
'granted': ![],
|
|
723
|
-
'runId': null,
|
|
724
|
-
'schedule': null,
|
|
725
|
-
'scheduledFor': _0xab9d7a[_0x1cbccb(0x29f)]
|
|
726
|
-
};
|
|
727
|
-
},
|
|
728
|
-
async 'startScheduleRun'(_0x344c5b) {
|
|
729
|
-
const _0x2c4b25 = _0x48cdc4, _0x5dfbce = await _0x1d8040(_0x2c4b25(0x26d) + encodeURIComponent(_0x344c5b[_0x2c4b25(_0x28060a._0x22aec3)]) + '/start', {
|
|
730
|
-
'body': JSON[_0x2c4b25(_0x28060a._0x32a397)]({}),
|
|
731
|
-
'headers': _0x260a25,
|
|
732
|
-
'method': 'POST'
|
|
733
|
-
});
|
|
734
|
-
return _0x5dfbce[_0x2c4b25(_0x28060a._0x57e62f)] ?? {
|
|
735
|
-
'claimedByDaemonId': '',
|
|
736
|
-
'id': _0x344c5b[_0x2c4b25(_0x28060a._0x22aec3)],
|
|
737
|
-
'scheduleId': '',
|
|
738
|
-
'status': _0x2c4b25(0x28a)
|
|
739
|
-
};
|
|
740
|
-
},
|
|
741
|
-
async 'finishScheduleRun'(_0x197bf9) {
|
|
742
|
-
const _0x8b1159 = _0x48cdc4, _0x5d5358 = await _0x1d8040(_0x8b1159(_0x13e5e5._0x5b047b) + encodeURIComponent(_0x197bf9[_0x8b1159(0x250)]) + _0x8b1159(0x121), {
|
|
743
|
-
'body': JSON[_0x8b1159(_0x13e5e5._0x312946)]({
|
|
744
|
-
'error': _0x197bf9['error'],
|
|
745
|
-
'resultJson': _0x197bf9[_0x8b1159(0x252)],
|
|
746
|
-
'status': _0x197bf9['status']
|
|
747
|
-
}),
|
|
748
|
-
'headers': _0x260a25,
|
|
749
|
-
'method': 'POST'
|
|
750
|
-
});
|
|
751
|
-
return _0x5d5358[_0x8b1159(_0x13e5e5._0x3d0059)] ?? {
|
|
752
|
-
'nextRunAt': null,
|
|
753
|
-
'run': {
|
|
754
|
-
'claimedByDaemonId': '',
|
|
755
|
-
'id': _0x197bf9[_0x8b1159(_0x13e5e5._0x206a25)],
|
|
756
|
-
'scheduleId': '',
|
|
757
|
-
'status': _0x197bf9[_0x8b1159(_0x13e5e5._0x207b94)]
|
|
758
|
-
}
|
|
759
|
-
};
|
|
760
|
-
},
|
|
761
|
-
async 'listTasks'(_0x322069) {
|
|
762
|
-
const _0x4ec7d4 = _0x48cdc4, _0x47ccd7 = new URLSearchParams();
|
|
763
|
-
return _0x47ccd7[_0x4ec7d4(0x1e5)](_0x4ec7d4(0x268), _0x322069[_0x4ec7d4(0x268)]), _0x322069[_0x4ec7d4(0x27f)] && _0x47ccd7[_0x4ec7d4(0x1e5)](_0x4ec7d4(0x27f), _0x322069[_0x4ec7d4(0x27f)]), _0x270d3b('/internal/agent/' + _0x13d36f[_0x4ec7d4(_0x2c7e73._0x3a1d80)] + _0x4ec7d4(0x271) + _0x47ccd7[_0x4ec7d4(0x1f9)](), {
|
|
764
|
-
'headers': _0x260a25,
|
|
765
|
-
'method': _0x4ec7d4(0x24e)
|
|
766
|
-
});
|
|
767
|
-
},
|
|
768
|
-
async 'createTasks'(_0x14e6fc) {
|
|
769
|
-
const _0x50a3de = _0x48cdc4;
|
|
770
|
-
return _0x270d3b(_0x50a3de(0x1cf) + _0x13d36f['agentId'] + _0x50a3de(_0x2337a0._0x1c7347), {
|
|
771
|
-
'body': JSON[_0x50a3de(_0x2337a0._0x5c8a09)]({
|
|
772
|
-
..._0x14e6fc,
|
|
773
|
-
'idempotency_key': _0x12772a(_0x50a3de(0x222), _0x14e6fc)
|
|
774
|
-
}),
|
|
775
|
-
'headers': _0x260a25,
|
|
776
|
-
'method': _0x50a3de(_0x2337a0._0x693190)
|
|
777
|
-
});
|
|
778
|
-
},
|
|
779
|
-
async 'claimTasks'(_0xd8c161) {
|
|
780
|
-
const _0x39d41b = _0x48cdc4;
|
|
781
|
-
return _0x270d3b(_0x39d41b(0x1cf) + _0x13d36f[_0x39d41b(0x15b)] + _0x39d41b(0x277), {
|
|
782
|
-
'body': JSON[_0x39d41b(0x14b)]({
|
|
783
|
-
..._0xd8c161,
|
|
784
|
-
'idempotency_key': _0x12772a(_0x39d41b(0x1c3), _0xd8c161)
|
|
785
|
-
}),
|
|
786
|
-
'headers': _0x260a25,
|
|
787
|
-
'method': _0x39d41b(_0x2598d4._0x482643)
|
|
788
|
-
});
|
|
789
|
-
},
|
|
790
|
-
async 'unclaimTask'(_0x42b4b8) {
|
|
791
|
-
const _0x201902 = _0x48cdc4;
|
|
792
|
-
return _0x270d3b(_0x201902(_0x29cc52._0x4c7ac1) + _0x13d36f['agentId'] + '/tasks/unclaim', {
|
|
793
|
-
'body': JSON[_0x201902(0x14b)]({
|
|
794
|
-
..._0x42b4b8,
|
|
795
|
-
'idempotency_key': _0x12772a(_0x201902(_0x29cc52._0x5ad920), _0x42b4b8)
|
|
796
|
-
}),
|
|
797
|
-
'headers': _0x260a25,
|
|
798
|
-
'method': _0x201902(0x199)
|
|
799
|
-
});
|
|
800
|
-
},
|
|
801
|
-
async 'updateTaskStatus'(_0x5044b4) {
|
|
802
|
-
const _0x49c7a6 = _0x48cdc4;
|
|
803
|
-
return _0x270d3b(_0x49c7a6(0x1cf) + _0x13d36f[_0x49c7a6(0x15b)] + _0x49c7a6(_0x3ffdc5._0x5771f2), {
|
|
804
|
-
'body': JSON[_0x49c7a6(_0x3ffdc5._0x3fe330)]({
|
|
805
|
-
..._0x5044b4,
|
|
806
|
-
'idempotency_key': _0x12772a(_0x49c7a6(0x1c9), _0x5044b4)
|
|
807
|
-
}),
|
|
808
|
-
'headers': _0x260a25,
|
|
809
|
-
'method': 'POST'
|
|
810
|
-
});
|
|
811
|
-
},
|
|
812
|
-
async 'uploadFile'(_0x30bbbc) {
|
|
813
|
-
const _0x3b300f = _0x48cdc4, _0x57510a = await _0x459e2f(_0x30bbbc[_0x3b300f(0x268)]);
|
|
814
|
-
if (_0x57510a[_0x3b300f(_0x3ea8a0._0x5499db)])
|
|
815
|
-
throw new Error(_0x3b300f(_0x3ea8a0._0x45cdc7));
|
|
816
|
-
const _0x4c1ad6 = await _0x1d8040(_0x3b300f(0x1cf) + _0x13d36f['agentId'] + _0x3b300f(0x12c), {
|
|
817
|
-
'body': JSON[_0x3b300f(_0x3ea8a0._0x592796)]({
|
|
818
|
-
'channel': _0x57510a[_0x3b300f(_0x3ea8a0._0x502405)],
|
|
819
|
-
'contentBase64': _0x30bbbc['contentBase64'],
|
|
820
|
-
'contentType': _0x30bbbc['contentType'],
|
|
821
|
-
'originalFilename': _0x30bbbc[_0x3b300f(_0x3ea8a0._0x35fedc)]
|
|
822
|
-
}),
|
|
823
|
-
'headers': _0x260a25,
|
|
824
|
-
'method': _0x3b300f(_0x3ea8a0._0x545740)
|
|
825
|
-
});
|
|
826
|
-
return {
|
|
827
|
-
'attachmentId': _0x4c1ad6[_0x3b300f(_0x3ea8a0._0x254a57)]?.['id'] ?? '',
|
|
828
|
-
'filename': _0x4c1ad6[_0x3b300f(0x153)]?.[_0x3b300f(0x141)] ?? _0x30bbbc[_0x3b300f(_0x3ea8a0._0x35fedc)],
|
|
829
|
-
'sizeBytes': _0x4c1ad6['data']?.[_0x3b300f(0x267)] ?? 0x0
|
|
830
|
-
};
|
|
831
|
-
},
|
|
832
|
-
async 'downloadAttachment'(_0x9e0588) {
|
|
833
|
-
const _0x3ac7d0 = _0x48cdc4, _0x5eddaf = await _0x1d8040(_0x3ac7d0(0x193) + _0x9e0588, {
|
|
834
|
-
'headers': _0x260a25,
|
|
835
|
-
'method': 'GET'
|
|
836
|
-
}), _0x1fd0e2 = new AbortController(), _0x4731a6 = setTimeout(() => _0x1fd0e2[_0x3ac7d0(0x1b4)](), _0x5dad0a);
|
|
837
|
-
try {
|
|
838
|
-
const _0x52486d = await _0x489cf6(_0x558658 + '/api/attachments/' + _0x9e0588 + _0x3ac7d0(_0x3ba4af._0x288724), {
|
|
839
|
-
'headers': _0x260a25,
|
|
840
|
-
'method': 'GET',
|
|
841
|
-
'signal': _0x1fd0e2[_0x3ac7d0(0x156)]
|
|
842
|
-
});
|
|
843
|
-
if (!_0x52486d['ok'])
|
|
844
|
-
throw new Error(_0x3ac7d0(0x283) + _0x52486d[_0x3ac7d0(0x27f)]);
|
|
845
|
-
return {
|
|
846
|
-
'contentType': _0x5eddaf[_0x3ac7d0(_0x3ba4af._0x279eb3)]?.[_0x3ac7d0(_0x3ba4af._0x6b8881)] ?? _0x52486d['headers'][_0x3ac7d0(0x218)]('content-type') ?? _0x3ac7d0(0x1a4),
|
|
847
|
-
'data': Buffer[_0x3ac7d0(_0x3ba4af._0x1d84b3)](await _0x52486d[_0x3ac7d0(0x247)]()),
|
|
848
|
-
'originalFilename': _0x5eddaf['data']?.[_0x3ac7d0(_0x3ba4af._0x3a4013)]
|
|
849
|
-
};
|
|
850
|
-
} finally {
|
|
851
|
-
clearTimeout(_0x4731a6);
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
async 'listServer'() {
|
|
855
|
-
return _0x1c8519({ 'forceRefresh': !![] });
|
|
856
|
-
},
|
|
857
|
-
async 'readHistory'(_0x15719b) {
|
|
858
|
-
const _0x20ea48 = _0x48cdc4, _0x1f6faf = await _0x459e2f(_0x15719b['channel']);
|
|
859
|
-
return _0x5a8c6e({
|
|
860
|
-
'after': _0x15719b[_0x20ea48(_0x103a32._0x533010)],
|
|
861
|
-
'before': _0x15719b[_0x20ea48(0x25d)],
|
|
862
|
-
'channelId': _0x1f6faf[_0x20ea48(_0x103a32._0xc1267e)],
|
|
863
|
-
'channelTarget': _0x1f6faf[_0x20ea48(0x1fe)],
|
|
864
|
-
'limit': _0x15719b['limit'],
|
|
865
|
-
'threadId': _0x1f6faf['threadId']
|
|
866
|
-
});
|
|
867
|
-
},
|
|
868
|
-
'resolveTarget': _0x459e2f,
|
|
869
|
-
async 'checkMessages'() {
|
|
870
|
-
const _0x5cab76 = { _0x38b32d: 0x140 }, _0xce13b5 = _0x48cdc4, _0xe35dab = new URLSearchParams();
|
|
871
|
-
_0xe35dab[_0xce13b5(0x1e5)](_0xce13b5(_0x3728a0._0x2e7a91), String(_0x16e3b1));
|
|
872
|
-
const _0x5f075b = _0xe35dab[_0xce13b5(_0x3728a0._0x16b3f4)](), _0x9a779c = await _0x1d8040(_0xce13b5(_0x3728a0._0xd9f26a) + _0x13d36f[_0xce13b5(_0x3728a0._0x5bfccf)] + '/receive' + (_0x5f075b ? '?' + _0x5f075b : ''), {
|
|
873
|
-
'headers': _0x260a25,
|
|
874
|
-
'method': 'GET'
|
|
875
|
-
}), _0x907ad7 = _0x9a779c[_0xce13b5(0x153)] ?? [], _0x48a36f = _0x9a779c[_0xce13b5(_0x3728a0._0x3b5cdd)]?.[_0xce13b5(_0x3728a0._0x48f231)], _0x531496 = _0x48a36f !== void 0x0 ? Math[_0xce13b5(_0x3728a0._0x3c9109)](_0x16e3b1, _0x48a36f) : _0x907ad7[_0xce13b5(0x190)] > 0x0 ? Math[_0xce13b5(_0x3728a0._0xb985d1)](_0x16e3b1, _0x907ad7[_0x907ad7[_0xce13b5(_0x3728a0._0x55fe5c)] - 0x1]['seq']) : _0x16e3b1, _0x3e960d = _0x907ad7[_0xce13b5(_0x3728a0._0xb77e4d)](_0xc42a06 => _0xc42a06[_0xce13b5(0x232)] === 'message'), _0x207d0f = _0x2255dd === void 0x0 && _0x31c393;
|
|
876
|
-
let _0x3bdb1f = await _0x1c8519(), _0x5c7de7 = new Map(_0x3bdb1f[_0xce13b5(_0x3728a0._0x43bc7e)][_0xce13b5(_0x3728a0._0x331fd8)](_0x1d9dd3 => [
|
|
877
|
-
_0x1d9dd3['id'],
|
|
878
|
-
_0x1d9dd3
|
|
879
|
-
]));
|
|
880
|
-
const _0x14ea6b = _0x3e960d[_0xce13b5(_0x3728a0._0x17f0d7)](_0x4e3e36 => {
|
|
881
|
-
const _0x5641de = _0xce13b5, _0x2b3097 = asRecord(_0x4e3e36[_0x5641de(0x1e0)]), _0x32408c = typeof _0x2b3097?.['channelId'] === _0x5641de(_0x5cab76._0x38b32d) ? _0x2b3097[_0x5641de(0x1fd)] : '';
|
|
882
|
-
return Boolean(_0x32408c) && !_0x5c7de7[_0x5641de(0x248)](_0x32408c);
|
|
883
|
-
});
|
|
884
|
-
_0x14ea6b && (_0x3bdb1f = await _0x1c8519({ 'forceRefresh': !![] }), _0x5c7de7 = new Map(_0x3bdb1f['channels'][_0xce13b5(0x208)](_0x5e9682 => [
|
|
885
|
-
_0x5e9682['id'],
|
|
886
|
-
_0x5e9682
|
|
887
|
-
])));
|
|
888
|
-
const _0x440dd6 = new Map();
|
|
889
|
-
for (const _0x3102f6 of _0x3e960d) {
|
|
890
|
-
const _0x1682bb = asRecord(_0x3102f6[_0xce13b5(0x1e0)]), _0x4349b8 = typeof _0x1682bb['channelId'] === _0xce13b5(_0x3728a0._0x1e18a8) ? _0x1682bb[_0xce13b5(0x1fd)] : '';
|
|
891
|
-
if (!_0x4349b8)
|
|
892
|
-
continue;
|
|
893
|
-
const _0x37775c = typeof _0x1682bb['threadId'] === _0xce13b5(0x140) ? _0x1682bb[_0xce13b5(_0x3728a0._0x26e0c3)] : void 0x0, _0x50520f = typeof _0x1682bb[_0xce13b5(0x18a)] === 'string' ? _0x1682bb[_0xce13b5(0x18a)] : void 0x0, _0x2c8e52 = typeof _0x1682bb['threadNumber'] === _0xce13b5(0x2a4) && Number[_0xce13b5(0x191)](_0x1682bb[_0xce13b5(0x24b)]) ? _0x1682bb[_0xce13b5(0x24b)] : void 0x0, _0x2a0adc = Boolean(_0x37775c && (!_0x50520f || _0x3102f6['aggregateId'] !== _0x50520f)), _0x2c5a81 = _0x2a0adc ? _0x4349b8 + ':' + _0x37775c : _0x4349b8, _0x1db3e4 = _0x440dd6['get'](_0x2c5a81) ?? {
|
|
894
|
-
'aggregateIds': [],
|
|
895
|
-
'channelId': _0x4349b8,
|
|
896
|
-
'entries': new Map(),
|
|
897
|
-
'isThreadReply': _0x2a0adc,
|
|
898
|
-
'rootMessageId': _0x50520f,
|
|
899
|
-
'threadNumber': _0x2c8e52,
|
|
900
|
-
'threadId': _0x2a0adc ? _0x37775c : void 0x0
|
|
901
|
-
};
|
|
902
|
-
_0x1db3e4[_0xce13b5(0x24b)] == null && _0x2c8e52 != null && (_0x1db3e4[_0xce13b5(_0x3728a0._0x7fa418)] = _0x2c8e52), !_0x1db3e4[_0xce13b5(_0x3728a0._0x4c9f7f)] && _0x50520f && (_0x1db3e4[_0xce13b5(_0x3728a0._0x46d0f6)] = _0x50520f), _0x1db3e4['aggregateIds'][_0xce13b5(_0x3728a0._0x35f363)](_0x3102f6['aggregateId']), _0x1db3e4[_0xce13b5(0x23a)][_0xce13b5(_0x3728a0._0x554284)](_0x3102f6[_0xce13b5(0x226)], {
|
|
903
|
-
'payloadJson': _0x3102f6[_0xce13b5(0x1e0)],
|
|
904
|
-
'seq': _0x3102f6[_0xce13b5(0x1d3)]
|
|
905
|
-
}), _0x440dd6[_0xce13b5(0x1e5)](_0x2c5a81, _0x1db3e4);
|
|
906
|
-
}
|
|
907
|
-
const _0xa7b6a3 = [];
|
|
908
|
-
for (const _0x57a4f5 of _0x440dd6['values']()) {
|
|
909
|
-
const {
|
|
910
|
-
channelId: _0x4287a9,
|
|
911
|
-
threadId: _0x3345b1,
|
|
912
|
-
rootMessageId: _0x18ea10,
|
|
913
|
-
threadNumber: _0x511bb0,
|
|
914
|
-
aggregateIds: _0x3d01a0,
|
|
915
|
-
isThreadReply: _0x31adbc,
|
|
916
|
-
entries: _0x26b7ef
|
|
917
|
-
} = _0x57a4f5, _0x14b4ff = _0x5c7de7[_0xce13b5(0x218)](_0x4287a9), _0x5d1a37 = _0x14b4ff?.[_0xce13b5(_0x3728a0._0x4f0a12)] ?? _0x4287a9, _0x45b195 = _0x14b4ff?.['kind'] === 'dm' ? 'dm:' + _0x5d1a37 : '#' + _0x5d1a37, _0x4f5b00 = {
|
|
918
|
-
'channelTarget': _0x45b195,
|
|
919
|
-
'rootMessageId': _0x18ea10,
|
|
920
|
-
'threadId': _0x3345b1,
|
|
921
|
-
'threadNumber': _0x511bb0
|
|
922
|
-
}, _0x4aee6a = await _0x5a8c6e({
|
|
923
|
-
'channelId': _0x4287a9,
|
|
924
|
-
'channelTarget': _0x45b195,
|
|
925
|
-
'limit': Math[_0xce13b5(_0x3728a0._0x44f2b7)](_0x3d01a0[_0xce13b5(_0x3728a0._0x55fe5c)], 0x32),
|
|
926
|
-
'threadId': _0x3345b1
|
|
927
|
-
}), _0x9b38f = new Map(_0x4aee6a[_0xce13b5(0x20d)][_0xce13b5(_0x3728a0._0x331fd8)](_0x36330c => [
|
|
928
|
-
_0x36330c[_0xce13b5(0x212)],
|
|
929
|
-
_0x36330c
|
|
930
|
-
])), _0x39530b = _0x3345b1 ? _0x442be0(_0x4f5b00) : _0x45b195, _0x4c1370 = _0x2255dd ? _0x31adbc && _0x59142d(_0x2255dd, _0x4f5b00) : !![], _0xfb84e6 = _0x31adbc ? _0x4c1370 && _0x2255dd ? _0x2255dd : _0x39530b : _0x45b195;
|
|
931
|
-
for (const _0xef93f0 of _0x3d01a0) {
|
|
932
|
-
if (!_0x4c1370)
|
|
933
|
-
continue;
|
|
934
|
-
const _0x50ff0c = _0x26b7ef[_0xce13b5(_0x3728a0._0x487be4)](_0xef93f0), _0x41716c = _0x50ff0c ? asRecord(_0x50ff0c[_0xce13b5(0x1e0)]) : void 0x0, _0x13721e = _0x41716c?.[_0xce13b5(_0x3728a0._0x58237b)] === _0xce13b5(0x174);
|
|
935
|
-
if (_0x207d0f && _0x13721e)
|
|
936
|
-
continue;
|
|
937
|
-
const _0x21dd7e = _0x9b38f['get'](_0xef93f0);
|
|
938
|
-
if (_0x21dd7e) {
|
|
939
|
-
_0xa7b6a3[_0xce13b5(_0x3728a0._0x35f363)]({
|
|
940
|
-
'attachments': _0x21dd7e[_0xce13b5(_0x3728a0._0x15eaf0)],
|
|
941
|
-
'content': _0x21dd7e[_0xce13b5(0x23f)],
|
|
942
|
-
'createdAt': _0x21dd7e[_0xce13b5(_0x3728a0._0x3ec5cf)],
|
|
943
|
-
'messageId': _0x21dd7e['messageId'],
|
|
944
|
-
'senderName': _0x21dd7e[_0xce13b5(0x24f)],
|
|
945
|
-
'senderType': _0x21dd7e[_0xce13b5(_0x3728a0._0x42d982)],
|
|
946
|
-
'target': _0xfb84e6,
|
|
947
|
-
..._0x13721e ? { 'targetedTask': !![] } : {}
|
|
948
|
-
});
|
|
949
|
-
continue;
|
|
950
|
-
}
|
|
951
|
-
if (_0x50ff0c) {
|
|
952
|
-
const _0x330f56 = typeof _0x41716c?.[_0xce13b5(0x228)] === _0xce13b5(0x140) ? _0x41716c[_0xce13b5(_0x3728a0._0x2cb224)] : '', _0x5be27a = typeof _0x41716c?.[_0xce13b5(0x243)] === _0xce13b5(_0x3728a0._0x1e18a8) ? _0x41716c[_0xce13b5(0x243)] : '';
|
|
953
|
-
_0x330f56 && _0x5be27a && _0xa7b6a3[_0xce13b5(_0x3728a0._0x367c52)]({
|
|
954
|
-
'attachments': [],
|
|
955
|
-
'content': _0x5be27a,
|
|
956
|
-
'createdAt': new Date()[_0xce13b5(_0x3728a0._0x1a2d54)](),
|
|
957
|
-
'messageId': _0xef93f0,
|
|
958
|
-
'senderName': _0x330f56,
|
|
959
|
-
'senderType': _0x2db2d6(_0x330f56, _0x3bdb1f),
|
|
960
|
-
'target': _0xfb84e6,
|
|
961
|
-
..._0x13721e ? { 'targetedTask': !![] } : {}
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
if (_0x531496 > 0x0) {
|
|
967
|
-
if (_0x299cbf)
|
|
968
|
-
await _0x3e053b(_0x531496);
|
|
969
|
-
else
|
|
970
|
-
_0x50f71f && await _0x1b8e6a(_0x531496);
|
|
971
|
-
}
|
|
972
|
-
return _0x531496 > _0x16e3b1 && (_0x16e3b1 = _0x531496), { 'messages': _0x2255dd ? _0xa7b6a3 : _0x207d0f ? _0xa7b6a3[_0xce13b5(_0x3728a0._0x6e0d76)](_0x3100fb => _0x3100fb[_0xce13b5(0x1cb)] !== !![]) : _0xa7b6a3 };
|
|
973
|
-
}
|
|
974
|
-
};
|
|
975
|
-
}
|
|
976
|
-
function toLocalTime(_0x2c27ec) {
|
|
977
|
-
const _0x7c7b15 = { _0x4e7f38: 0x21f }, _0x12455a = _0x15d6d8, _0xfdfb2f = new Date(_0x2c27ec);
|
|
978
|
-
if (Number[_0x12455a(_0x7c7b15._0x4e7f38)](_0xfdfb2f[_0x12455a(0x1b7)]()))
|
|
979
|
-
return _0x2c27ec;
|
|
980
|
-
const _0x38e79d = _0x4b4ea2 => String(_0x4b4ea2)[_0x12455a(0x16f)](0x2, '0');
|
|
981
|
-
return _0xfdfb2f[_0x12455a(0x287)]() + '-' + _0x38e79d(_0xfdfb2f['getMonth']() + 0x1) + '-' + _0x38e79d(_0xfdfb2f['getDate']()) + '\x20' + _0x38e79d(_0xfdfb2f[_0x12455a(0x180)]()) + ':' + _0x38e79d(_0xfdfb2f[_0x12455a(0x179)]()) + ':' + _0x38e79d(_0xfdfb2f[_0x12455a(0x128)]());
|
|
982
|
-
}
|
|
983
|
-
function formatAttachmentSuffix(_0x105ebf) {
|
|
984
|
-
const _0x43ec7f = {
|
|
985
|
-
_0x380d70: 0x190,
|
|
986
|
-
_0x4bea1a: 0x16e
|
|
987
|
-
}, _0x4a3b38 = _0x15d6d8;
|
|
988
|
-
if (!_0x105ebf || _0x105ebf[_0x4a3b38(_0x43ec7f._0x380d70)] === 0x0)
|
|
989
|
-
return '';
|
|
990
|
-
return '\x20[' + _0x105ebf[_0x4a3b38(0x190)] + _0x4a3b38(0x225) + (_0x105ebf[_0x4a3b38(_0x43ec7f._0x380d70)] > 0x1 ? 's' : '') + ':\x20' + _0x105ebf['map'](_0x5f8828 => _0x5f8828[_0x4a3b38(0x1b6)] + _0x4a3b38(0x137) + _0x5f8828['id'] + ')')[_0x4a3b38(0x15d)](',\x20') + _0x4a3b38(_0x43ec7f._0x4bea1a);
|
|
991
|
-
}
|
|
992
|
-
function formatCheckMessages(_0x4dd1a4) {
|
|
993
|
-
const _0x8029e0 = {
|
|
994
|
-
_0x1ce265: 0x190,
|
|
995
|
-
_0x49d51b: 0x15d
|
|
996
|
-
}, _0xe15d74 = {
|
|
997
|
-
_0xe7cc73: 0x292,
|
|
998
|
-
_0x12fe02: 0x201,
|
|
999
|
-
_0x15e034: 0x212,
|
|
1000
|
-
_0xf36a10: 0x24f,
|
|
1001
|
-
_0x586dab: 0x2a1
|
|
1002
|
-
}, _0x5af5a3 = _0x15d6d8;
|
|
1003
|
-
if (_0x4dd1a4[_0x5af5a3(_0x8029e0._0x1ce265)] === 0x0)
|
|
1004
|
-
return 'No\x20new\x20messages.';
|
|
1005
|
-
return _0x4dd1a4[_0x5af5a3(0x208)](_0x31ee44 => {
|
|
1006
|
-
const _0x209e31 = _0x5af5a3, _0x45c81d = _0x31ee44[_0x209e31(0x1ff)] === _0x209e31(0x171) ? _0x209e31(_0xe15d74._0xe7cc73) : '';
|
|
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');
|
|
1009
|
-
}
|
|
1010
|
-
function formatHistory(_0x370cc7) {
|
|
1011
|
-
const _0x483f21 = {
|
|
1012
|
-
_0x32e7f5: 0x20d,
|
|
1013
|
-
_0xd4266d: 0x190,
|
|
1014
|
-
_0xa7d70b: 0x21d,
|
|
1015
|
-
_0x2e173f: 0x219,
|
|
1016
|
-
_0x261fb1: 0x12b,
|
|
1017
|
-
_0xbb3cb3: 0x190
|
|
1018
|
-
}, _0x2edde9 = {
|
|
1019
|
-
_0x1cdcbc: 0x1ff,
|
|
1020
|
-
_0x376b72: 0x171,
|
|
1021
|
-
_0x2486b6: 0x1d3,
|
|
1022
|
-
_0x48a18f: 0x201,
|
|
1023
|
-
_0x371e9c: 0x229
|
|
1024
|
-
}, _0x4a8ea9 = _0x15d6d8;
|
|
1025
|
-
if (_0x370cc7[_0x4a8ea9(_0x483f21._0x32e7f5)][_0x4a8ea9(_0x483f21._0xd4266d)] === 0x0)
|
|
1026
|
-
return _0x4a8ea9(_0x483f21._0xa7d70b) + _0x370cc7['channel'] + _0x4a8ea9(0x27c);
|
|
1027
|
-
const _0x281c12 = _0x370cc7['messages']['map'](_0x2ff3a => {
|
|
1028
|
-
const _0x2c007e = _0x4a8ea9, _0x2a7c1d = _0x2ff3a[_0x2c007e(_0x2edde9._0x1cdcbc)] === _0x2c007e(_0x2edde9._0x376b72) ? _0x2c007e(0x292) : '';
|
|
1029
|
-
return '[seq=' + _0x2ff3a[_0x2c007e(_0x2edde9._0x2486b6)] + _0x2c007e(_0x2edde9._0x48a18f) + _0x2ff3a[_0x2c007e(0x212)] + _0x2c007e(0x120) + toLocalTime(_0x2ff3a['createdAt']) + _0x2a7c1d + _0x2c007e(_0x2edde9._0x371e9c) + _0x2ff3a[_0x2c007e(0x24f)] + ':\x20' + _0x2ff3a[_0x2c007e(0x23f)] + formatAttachmentSuffix(_0x2ff3a[_0x2c007e(0x2a1)]);
|
|
1030
|
-
})['join']('\x0a'), _0x2b3e17 = _0x370cc7[_0x4a8ea9(_0x483f21._0x2e173f)] && _0x370cc7[_0x4a8ea9(0x12b)] ? '\x0a\x0a---\x20' + _0x370cc7[_0x4a8ea9(0x20d)]['length'] + _0x4a8ea9(0x144) + _0x370cc7[_0x4a8ea9(_0x483f21._0x261fb1)] + _0x4a8ea9(0x1bf) : '';
|
|
1031
|
-
return '##\x20Message\x20History\x20for\x20' + _0x370cc7['channel'] + '\x20(' + _0x370cc7[_0x4a8ea9(_0x483f21._0x32e7f5)][_0x4a8ea9(_0x483f21._0xbb3cb3)] + _0x4a8ea9(0x15f) + _0x281c12 + _0x2b3e17;
|
|
1032
|
-
}
|
|
1033
|
-
function formatServerDirectory(_0x32bdf4) {
|
|
1034
|
-
const _0x518eac = {
|
|
1035
|
-
_0x29649e: 0x163,
|
|
1036
|
-
_0x357b79: 0x190,
|
|
1037
|
-
_0x8b1180: 0x208,
|
|
1038
|
-
_0x469548: 0x15d,
|
|
1039
|
-
_0x2a446d: 0x190,
|
|
1040
|
-
_0x3377df: 0x14d,
|
|
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);
|
|
1048
|
-
return [
|
|
1049
|
-
'##\x20Server:\x20' + _0x32bdf4[_0x569ec0(_0x518eac._0x285418)],
|
|
1050
|
-
'',
|
|
1051
|
-
_0x569ec0(_0x518eac._0x4f2f2b),
|
|
1052
|
-
_0x41ec80,
|
|
1053
|
-
'',
|
|
1054
|
-
_0x569ec0(_0x518eac._0x4d2945),
|
|
1055
|
-
_0x159029,
|
|
1056
|
-
'',
|
|
1057
|
-
'###\x20Humans',
|
|
1058
|
-
_0x5dbd32
|
|
1059
|
-
][_0x569ec0(0x15d)]('\x0a');
|
|
1060
|
-
}
|
|
1061
|
-
function formatUploadResult(_0x11c05b) {
|
|
1062
|
-
const _0x1297e9 = {
|
|
1063
|
-
_0x40413a: 0x1b6,
|
|
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);
|
|
1067
|
-
}
|
|
1068
|
-
function formatViewFileResult(_0x2da695, _0x247d5c) {
|
|
1069
|
-
const _0x5611bc = _0x15d6d8;
|
|
1070
|
-
return _0x247d5c ? 'File\x20already\x20cached\x20at:\x20' + _0x2da695 : _0x5611bc(0x125) + _0x2da695;
|
|
1071
|
-
}
|
|
1072
|
-
function formatTaskList(_0x36ce51, _0x1b9da5) {
|
|
1073
|
-
const _0x2cb346 = {
|
|
1074
|
-
_0x1f7e6c: 0x190,
|
|
1075
|
-
_0x2096ca: 0x1ad,
|
|
1076
|
-
_0x28fdcb: 0x208,
|
|
1077
|
-
_0xb1781e: 0x15d
|
|
1078
|
-
}, _0x3b16f7 = {
|
|
1079
|
-
_0x266e12: 0x1b3,
|
|
1080
|
-
_0x17151a: 0x16d,
|
|
1081
|
-
_0x10a099: 0x16d,
|
|
1082
|
-
_0x538105: 0x23e,
|
|
1083
|
-
_0x4e3123: 0x132
|
|
1084
|
-
}, _0x206037 = _0x15d6d8;
|
|
1085
|
-
if (_0x36ce51[_0x206037(_0x2cb346._0x1f7e6c)] === 0x0)
|
|
1086
|
-
return _0x206037(_0x2cb346._0x2096ca);
|
|
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');
|
|
1091
|
-
}
|
|
1092
|
-
function formatCreatedTasks(_0x54b07b) {
|
|
1093
|
-
const _0x410cb9 = { _0x5a9306: 0x15d }, _0x2fc4c6 = {
|
|
1094
|
-
_0x3da679: 0x16d,
|
|
1095
|
-
_0x408a84: 0x1b3
|
|
1096
|
-
}, _0x7eb530 = _0x15d6d8;
|
|
1097
|
-
if (_0x54b07b[_0x7eb530(0x190)] === 0x0)
|
|
1098
|
-
return _0x7eb530(0x187);
|
|
1099
|
-
return _0x54b07b[_0x7eb530(0x208)](_0x32a854 => {
|
|
1100
|
-
const _0x2d75d3 = _0x7eb530, _0x448e52 = _0x32a854[_0x2d75d3(_0x2fc4c6._0x3da679)] == null ? _0x2d75d3(_0x2fc4c6._0x408a84) : '#' + _0x32a854[_0x2d75d3(_0x2fc4c6._0x3da679)];
|
|
1101
|
-
return _0x448e52 + '\x20' + _0x32a854['title'] + _0x2d75d3(0x272) + _0x32a854[_0x2d75d3(0x212)];
|
|
1102
|
-
})[_0x7eb530(_0x410cb9._0x5a9306)]('\x0a');
|
|
1103
|
-
}
|
|
1104
|
-
function formatClaimTaskResults(_0xa86bf4) {
|
|
1105
|
-
const _0x22f664 = { _0xd67b0e: 0x131 }, _0x76e3a6 = {
|
|
1106
|
-
_0x236951: 0x227,
|
|
1107
|
-
_0x58b40c: 0x16d,
|
|
1108
|
-
_0x3d690d: 0x212,
|
|
1109
|
-
_0x1c5747: 0x272,
|
|
1110
|
-
_0x34e229: 0x26c,
|
|
1111
|
-
_0x93bdb2: 0x261,
|
|
1112
|
-
_0x38b9ee: 0x233,
|
|
1113
|
-
_0x538c38: 0x19e,
|
|
1114
|
-
_0x2c7d22: 0x202,
|
|
1115
|
-
_0x184988: 0x1a7,
|
|
1116
|
-
_0x203554: 0x1ca,
|
|
1117
|
-
_0x136b04: 0x142,
|
|
1118
|
-
_0x2fe657: 0x1dc
|
|
1119
|
-
}, _0x4088f4 = _0x15d6d8;
|
|
1120
|
-
if (_0xa86bf4[_0x4088f4(0x190)] === 0x0)
|
|
1121
|
-
return _0x4088f4(_0x22f664._0xd67b0e);
|
|
1122
|
-
return _0xa86bf4['map'](_0x5e3ad0 => {
|
|
1123
|
-
const _0x133b23 = _0x4088f4;
|
|
1124
|
-
if (_0x5e3ad0[_0x133b23(_0x76e3a6._0x236951)]) {
|
|
1125
|
-
const _0x8134fd = _0x5e3ad0[_0x133b23(0x16d)] == null ? '(legacy)' : '#' + _0x5e3ad0[_0x133b23(_0x76e3a6._0x58b40c)], _0x40b7de = _0x5e3ad0[_0x133b23(_0x76e3a6._0x3d690d)] ? _0x133b23(_0x76e3a6._0x1c5747) + _0x5e3ad0[_0x133b23(0x212)] : '', _0x30a599 = _0x5e3ad0[_0x133b23(0x284)] ? [
|
|
1126
|
-
_0x133b23(0x293),
|
|
1127
|
-
_0x5e3ad0[_0x133b23(0x26f)] ? _0x133b23(_0x76e3a6._0x34e229) : null,
|
|
1128
|
-
_0x5e3ad0[_0x133b23(0x1f0)] ? _0x133b23(_0x76e3a6._0x93bdb2) + _0x5e3ad0[_0x133b23(0x1f0)] : null,
|
|
1129
|
-
_0x5e3ad0[_0x133b23(_0x76e3a6._0x38b9ee)] ? _0x133b23(0x1a5) + _0x5e3ad0[_0x133b23(0x233)] : null,
|
|
1130
|
-
_0x5e3ad0[_0x133b23(_0x76e3a6._0x538c38)] ? _0x133b23(_0x76e3a6._0x2c7d22) + _0x5e3ad0[_0x133b23(_0x76e3a6._0x538c38)] : null
|
|
1131
|
-
][_0x133b23(_0x76e3a6._0x184988)](Boolean)[_0x133b23(0x15d)]('\x20') : _0x5e3ad0['workerHandoffError'] ? _0x133b23(_0x76e3a6._0x203554) + _0x5e3ad0[_0x133b23(_0x76e3a6._0x136b04)] : '';
|
|
1132
|
-
return [
|
|
1133
|
-
_0x8134fd + _0x133b23(0x278) + _0x40b7de,
|
|
1134
|
-
_0x30a599
|
|
1135
|
-
]['filter'](Boolean)[_0x133b23(0x15d)]('\x20');
|
|
1136
|
-
}
|
|
1137
|
-
const _0x50b51c = _0x5e3ad0['taskNumber'] == null ? _0x5e3ad0[_0x133b23(_0x76e3a6._0x3d690d)] ?? _0x133b23(_0x76e3a6._0x2fe657) : '#' + _0x5e3ad0[_0x133b23(_0x76e3a6._0x58b40c)];
|
|
1138
|
-
return _0x50b51c + _0x133b23(0x216) + (_0x5e3ad0['reason'] ?? 'claim\x20failed');
|
|
1139
|
-
})['join']('\x0a');
|
|
1140
|
-
}
|
|
1141
|
-
function formatUnclaimTaskResult(_0x27ba99) {
|
|
1142
|
-
const _0x2ea1c2 = {
|
|
1143
|
-
_0x4bf6ef: 0x16d,
|
|
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)];
|
|
1147
|
-
}
|
|
1148
|
-
function formatUpdateTaskStatusResult(_0x303632) {
|
|
1149
|
-
const _0x227591 = {
|
|
1150
|
-
_0x783ee: 0x1b3,
|
|
1151
|
-
_0x572afd: 0x211
|
|
1152
|
-
}, _0x20541f = _0x15d6d8, _0x4dc1e5 = _0x303632['taskNumber'] == null ? _0x20541f(_0x227591._0x783ee) : '#' + _0x303632[_0x20541f(0x16d)];
|
|
1153
|
-
return _0x4dc1e5 + _0x20541f(_0x227591._0x572afd) + _0x303632[_0x20541f(0x27f)];
|
|
1154
|
-
}
|
|
1155
|
-
function getChatBridgeToolDefinitions() {
|
|
1156
|
-
const _0x4ff73e = {
|
|
1157
|
-
_0x5b7d5a: 0x251,
|
|
1158
|
-
_0x10b9b0: 0x254,
|
|
1159
|
-
_0x1407b7: 0x266,
|
|
1160
|
-
_0x41cba4: 0x1de,
|
|
1161
|
-
_0x36af71: 0x1db,
|
|
1162
|
-
_0x2dd22b: 0x1eb,
|
|
1163
|
-
_0x5397b5: 0x222,
|
|
1164
|
-
_0x2b2480: 0x1c9,
|
|
1165
|
-
_0x5471a2: 0x173,
|
|
1166
|
-
_0x429f70: 0x27e
|
|
1167
|
-
}, _0x4ba0ad = _0x15d6d8;
|
|
1168
|
-
return [
|
|
1169
|
-
{ 'name': _0x4ba0ad(_0x4ff73e._0x5b7d5a) },
|
|
1170
|
-
{ 'name': _0x4ba0ad(_0x4ff73e._0x10b9b0) },
|
|
1171
|
-
{ 'name': _0x4ba0ad(_0x4ff73e._0x1407b7) },
|
|
1172
|
-
{ 'name': _0x4ba0ad(_0x4ff73e._0x41cba4) },
|
|
1173
|
-
{ 'name': _0x4ba0ad(0x1e8) },
|
|
1174
|
-
{ 'name': _0x4ba0ad(_0x4ff73e._0x36af71) },
|
|
1175
|
-
{ 'name': _0x4ba0ad(_0x4ff73e._0x2dd22b) },
|
|
1176
|
-
{ 'name': _0x4ba0ad(_0x4ff73e._0x5397b5) },
|
|
1177
|
-
{ 'name': 'claim_tasks' },
|
|
1178
|
-
{ 'name': _0x4ba0ad(0x16a) },
|
|
1179
|
-
{ 'name': _0x4ba0ad(_0x4ff73e._0x2b2480) },
|
|
1180
|
-
{ 'name': 'get_worker_status' },
|
|
1181
|
-
{ 'name': 'get_worker_result' },
|
|
1182
|
-
{ 'name': _0x4ba0ad(_0x4ff73e._0x5471a2) },
|
|
1183
|
-
{ 'name': _0x4ba0ad(_0x4ff73e._0x429f70) },
|
|
1184
|
-
{ 'name': 'mark_waiting_input' }
|
|
1185
|
-
];
|
|
1186
|
-
}
|
|
1187
|
-
function createChatBridgeHandlers(_0x783ce3) {
|
|
1188
|
-
const _0xdd6200 = {
|
|
1189
|
-
_0x561c26: 0x17b,
|
|
1190
|
-
_0x4d57d5: 0x14b,
|
|
1191
|
-
_0x56c091: 0x24d,
|
|
1192
|
-
_0x480e89: 0x1f6,
|
|
1193
|
-
_0x5ae416: 0x1c5,
|
|
1194
|
-
_0xb2b391: 0x276
|
|
1195
|
-
}, _0x1d15da = {
|
|
1196
|
-
_0x432cbc: 0x1d4,
|
|
1197
|
-
_0x5220cd: 0x15b,
|
|
1198
|
-
_0xf857d2: 0x18b,
|
|
1199
|
-
_0x245ccf: 0x12a,
|
|
1200
|
-
_0x52d8af: 0x15b,
|
|
1201
|
-
_0x5597ef: 0x1c5,
|
|
1202
|
-
_0x36967c: 0x122,
|
|
1203
|
-
_0x1d0814: 0x1b0
|
|
1204
|
-
}, _0x2b29a9 = {
|
|
1205
|
-
_0x297571: 0x17b,
|
|
1206
|
-
_0x2b506d: 0x1d4,
|
|
1207
|
-
_0x37ca03: 0x14b,
|
|
1208
|
-
_0xce1a12: 0x253,
|
|
1209
|
-
_0x11bb22: 0x1c7,
|
|
1210
|
-
_0x19a7d1: 0x1b0
|
|
1211
|
-
}, _0x554245 = {
|
|
1212
|
-
_0x7d9090: 0x1d4,
|
|
1213
|
-
_0x46f1d9: 0x1f6
|
|
1214
|
-
}, _0x5eda22 = {
|
|
1215
|
-
_0x33f96c: 0x1f6,
|
|
1216
|
-
_0x45fc75: 0x1b0,
|
|
1217
|
-
_0x1019ef: 0x1b0
|
|
1218
|
-
}, _0x4364de = {
|
|
1219
|
-
_0x3e905e: 0x126,
|
|
1220
|
-
_0x331f81: 0x177,
|
|
1221
|
-
_0xdcbc6a: 0x153,
|
|
1222
|
-
_0x32eb45: 0x141
|
|
1223
|
-
}, _0x354a35 = {
|
|
1224
|
-
_0x714231: 0x196,
|
|
1225
|
-
_0xe55152: 0x1c1,
|
|
1226
|
-
_0x625f2a: 0x208
|
|
1227
|
-
}, _0x371f1c = { _0x5876b3: 0x236 }, _0x2be618 = {
|
|
1228
|
-
_0x59c6af: 0x288,
|
|
1229
|
-
_0x46fd55: 0x15b,
|
|
1230
|
-
_0x150a09: 0x194,
|
|
1231
|
-
_0x21c227: 0x181,
|
|
1232
|
-
_0x443ead: 0x190,
|
|
1233
|
-
_0x157249: 0x16d,
|
|
1234
|
-
_0x246e9b: 0x155,
|
|
1235
|
-
_0x53770c: 0x1f1,
|
|
1236
|
-
_0x3a701c: 0x16d
|
|
1237
|
-
}, _0x29cc42 = { _0x33961c: 0x288 }, _0x109f69 = { _0x549000: 0x189 }, _0x1c712d = {
|
|
1238
|
-
_0x48e42c: 0x288,
|
|
1239
|
-
_0x3c460c: 0x19a,
|
|
1240
|
-
_0x20d1d3: 0x20d
|
|
1241
|
-
}, _0x2ec10b = {
|
|
1242
|
-
_0x2eaa8a: 0x19a,
|
|
1243
|
-
_0x138f0e: 0x15b,
|
|
1244
|
-
_0x4b3345: 0x28b,
|
|
1245
|
-
_0x132a87: 0x16d,
|
|
1246
|
-
_0x5a6c97: 0x1b3,
|
|
1247
|
-
_0x1b0f86: 0x24b,
|
|
1248
|
-
_0x201b72: 0x25e,
|
|
1249
|
-
_0x2d1fe7: 0x24c,
|
|
1250
|
-
_0x573f5b: 0x1d4,
|
|
1251
|
-
_0x6d1101: 0x199,
|
|
1252
|
-
_0x17bc27: 0x14b,
|
|
1253
|
-
_0x30402b: 0x255,
|
|
1254
|
-
_0x26725c: 0x19c,
|
|
1255
|
-
_0x43ec72: 0x14a,
|
|
1256
|
-
_0x3b6b67: 0x2a0,
|
|
1257
|
-
_0xd874f1: 0x1fe,
|
|
1258
|
-
_0x4e7cf2: 0x29b
|
|
1259
|
-
}, _0x48769b = {
|
|
1260
|
-
_0x318c93: 0x1d4,
|
|
1261
|
-
_0x4f1b19: 0x1f6,
|
|
1262
|
-
_0x23c946: 0x155
|
|
1263
|
-
}, _0x2186e0 = {
|
|
1264
|
-
_0x2c64ab: 0x28d,
|
|
1265
|
-
_0x398104: 0x17f,
|
|
1266
|
-
_0x2ee000: 0x268,
|
|
1267
|
-
_0x17c4db: 0x20d,
|
|
1268
|
-
_0x339e27: 0x1b3,
|
|
1269
|
-
_0x229c18: 0x213,
|
|
1270
|
-
_0x1d66ac: 0x212,
|
|
1271
|
-
_0x11bf9d: 0x263,
|
|
1272
|
-
_0x22a602: 0x1a9,
|
|
1273
|
-
_0x1822d3: 0x176,
|
|
1274
|
-
_0x3e045d: 0x14b,
|
|
1275
|
-
_0x5f3d48: 0x15b,
|
|
1276
|
-
_0xdf7408: 0x2a2,
|
|
1277
|
-
_0x49b5f6: 0x1c5,
|
|
1278
|
-
_0x4b1db1: 0x1bb,
|
|
1279
|
-
_0x3df26f: 0x17e,
|
|
1280
|
-
_0x4d58df: 0x257
|
|
1281
|
-
};
|
|
1282
|
-
async function _0x23bc3f(_0x5418da) {
|
|
1283
|
-
const _0x1524c2 = _0x3844;
|
|
1284
|
-
if (!_0x783ce3['daemonLocalUrl'] || !_0x783ce3['agentId'] || _0x783ce3[_0x1524c2(0x19a)] || _0x783ce3[_0x1524c2(_0x2186e0._0x2c64ab)] !== !![])
|
|
1285
|
-
return null;
|
|
1286
|
-
const _0x4f38cf = parseTarget(_0x5418da[_0x1524c2(0x268)]);
|
|
1287
|
-
if (_0x4f38cf[_0x1524c2(_0x2186e0._0x398104)] !== _0x1524c2(_0x2186e0._0x2ee000))
|
|
1288
|
-
return null;
|
|
1289
|
-
const _0x3017e0 = _0x5418da['threadNumber'] != null ? _0x4f38cf[_0x1524c2(0x185)] + ':t' + _0x5418da['threadNumber'] : _0x4f38cf[_0x1524c2(0x185)] + ':' + _0x5418da[_0x1524c2(0x212)];
|
|
1290
|
-
let _0x5ef5b6;
|
|
1291
|
-
try {
|
|
1292
|
-
const _0xd52fa7 = await _0x783ce3['client'][_0x1524c2(0x189)]({
|
|
1293
|
-
'channel': _0x3017e0,
|
|
1294
|
-
'limit': 0x14
|
|
1295
|
-
});
|
|
1296
|
-
_0x5ef5b6 = _0xd52fa7[_0x1524c2(_0x2186e0._0x17c4db)]['find'](_0x48c7ae => _0x48c7ae[_0x1524c2(0x212)] === _0x5418da['messageId']);
|
|
1297
|
-
} catch {
|
|
1298
|
-
_0x5ef5b6 = void 0x0;
|
|
1299
|
-
}
|
|
1300
|
-
const _0x60533c = _0x5418da[_0x1524c2(0x16d)] == null ? _0x1524c2(_0x2186e0._0x339e27) : '#' + _0x5418da['taskNumber'], _0x57fb3d = [
|
|
1301
|
-
_0x1524c2(_0x2186e0._0x229c18) + _0x3017e0 + '\x20msg=' + _0x5418da[_0x1524c2(_0x2186e0._0x1d66ac)][_0x1524c2(_0x2186e0._0x11bf9d)](0x0, 0x8) + _0x1524c2(0x120) + new Date()[_0x1524c2(0x25e)]() + _0x1524c2(0x264) + _0x60533c + '\x20已切换到\x20worker\x20执行',
|
|
1302
|
-
'',
|
|
1303
|
-
_0x5ef5b6 ? _0x1524c2(0x172) + _0x5ef5b6[_0x1524c2(0x23f)] : _0x1524c2(0x25c) + _0x5418da[_0x1524c2(0x212)],
|
|
1304
|
-
'',
|
|
1305
|
-
_0x1524c2(_0x2186e0._0x22a602) + _0x3017e0,
|
|
1306
|
-
_0x1524c2(0x238)
|
|
1307
|
-
][_0x1524c2(0x15d)]('\x0a'), _0x19141e = await fetch(_0x783ce3[_0x1524c2(0x1d4)] + _0x1524c2(_0x2186e0._0x1822d3), {
|
|
1308
|
-
'method': _0x1524c2(0x199),
|
|
1309
|
-
'headers': { 'Content-Type': _0x1524c2(0x12a) },
|
|
1310
|
-
'body': JSON[_0x1524c2(_0x2186e0._0x3e045d)]({
|
|
1311
|
-
'agent_id': _0x783ce3[_0x1524c2(_0x2186e0._0x5f3d48)],
|
|
1312
|
-
'thread_target': _0x3017e0,
|
|
1313
|
-
'spawn_packet': {
|
|
1314
|
-
'replyTarget': _0x3017e0,
|
|
1315
|
-
..._0x5418da['taskId'] ? { 'taskId': _0x5418da[_0x1524c2(0x133)] } : _0x5418da['taskNumber'] != null ? { 'taskId': _0x1524c2(_0x2186e0._0xdf7408) + _0x5418da[_0x1524c2(0x16d)] } : {}
|
|
1316
|
-
},
|
|
1317
|
-
'payload': {
|
|
1318
|
-
'mode': _0x1524c2(0x265),
|
|
1319
|
-
'text': _0x57fb3d
|
|
1320
|
-
}
|
|
1321
|
-
})
|
|
1322
|
-
}), _0x1a5a0c = await _0x19141e['json']();
|
|
1323
|
-
if (!_0x1a5a0c['ok'])
|
|
1324
|
-
throw new Error(_0x1a5a0c[_0x1524c2(_0x2186e0._0x49b5f6)] ?? 'worker\x20handoff\x20failed');
|
|
1325
|
-
return {
|
|
1326
|
-
'stopMain': !![],
|
|
1327
|
-
'threadTarget': _0x3017e0,
|
|
1328
|
-
'workerDisposition': _0x1a5a0c[_0x1524c2(_0x2186e0._0x4b1db1)] === _0x1524c2(0x138) ? 'queued' : 'started',
|
|
1329
|
-
'workerHandoff': !![],
|
|
1330
|
-
'workerSessionId': _0x1a5a0c[_0x1524c2(_0x2186e0._0x3df26f)] ?? '',
|
|
1331
|
-
'executionMode': _0x1524c2(_0x2186e0._0x4d58df)
|
|
1332
|
-
};
|
|
1333
|
-
}
|
|
1334
|
-
async function _0x3b6e28() {
|
|
1335
|
-
const _0x331ee0 = _0x3844;
|
|
1336
|
-
if (!_0x783ce3[_0x331ee0(_0x48769b._0x318c93)] || !_0x783ce3[_0x331ee0(0x15b)] || _0x783ce3[_0x331ee0(0x19a)])
|
|
1337
|
-
return null;
|
|
1338
|
-
try {
|
|
1339
|
-
const _0x266594 = await fetch(_0x783ce3[_0x331ee0(0x1d4)] + _0x331ee0(0x290) + encodeURIComponent(_0x783ce3[_0x331ee0(0x15b)])), _0x545529 = await _0x266594[_0x331ee0(_0x48769b._0x4f1b19)]();
|
|
1340
|
-
if (!_0x545529['ok'])
|
|
1341
|
-
return null;
|
|
1342
|
-
const _0x1bcdbf = new Set();
|
|
1343
|
-
for (const _0x21c695 of _0x545529[_0x331ee0(0x194)]) {
|
|
1344
|
-
_0x21c695[_0x331ee0(0x27f)] !== 'destroyed' && _0x21c695[_0x331ee0(0x181)] && _0x1bcdbf[_0x331ee0(_0x48769b._0x23c946)](_0x21c695['thread_target']);
|
|
1345
|
-
}
|
|
1346
|
-
return _0x1bcdbf[_0x331ee0(0x1b5)] > 0x0 ? _0x1bcdbf : null;
|
|
1347
|
-
} catch {
|
|
1348
|
-
return null;
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
return {
|
|
1352
|
-
async 'send_message'(_0x255485) {
|
|
1353
|
-
const _0x32c2a0 = _0x3844;
|
|
1354
|
-
if (!_0x783ce3[_0x32c2a0(_0x2ec10b._0x2eaa8a)] && _0x783ce3[_0x32c2a0(0x28d)] && _0x783ce3['daemonLocalUrl'] && _0x783ce3[_0x32c2a0(_0x2ec10b._0x138f0e)]) {
|
|
1355
|
-
const _0x13c297 = await _0x783ce3['client']['resolveTarget'](_0x255485[_0x32c2a0(0x1fe)]);
|
|
1356
|
-
if (_0x13c297[_0x32c2a0(0x2a5)] && _0x13c297[_0x32c2a0(_0x2ec10b._0x4b3345)]) {
|
|
1357
|
-
const _0xdf26a4 = _0x13c297[_0x32c2a0(0x2a5)][_0x32c2a0(_0x2ec10b._0x132a87)] != null ? '#' + _0x13c297[_0x32c2a0(0x2a5)][_0x32c2a0(_0x2ec10b._0x132a87)] : _0x32c2a0(_0x2ec10b._0x5a6c97), _0x52f36d = _0x13c297[_0x32c2a0(_0x2ec10b._0x1b0f86)] != null ? _0x13c297[_0x32c2a0(0x1fe)] + ':t' + _0x13c297[_0x32c2a0(0x24b)] : _0x13c297[_0x32c2a0(0x1fe)] + ':' + _0x13c297[_0x32c2a0(_0x2ec10b._0x4b3345)]['slice'](0x0, 0x8), _0x565c4e = [
|
|
1358
|
-
'[target=' + _0x52f36d + _0x32c2a0(0x178) + new Date()[_0x32c2a0(_0x2ec10b._0x201b72)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1359
|
-
'',
|
|
1360
|
-
_0x32c2a0(_0x2ec10b._0x2d1fe7) + _0x255485[_0x32c2a0(0x23f)],
|
|
1361
|
-
_0x32c2a0(0x239) + _0xdf26a4 + '\x20(' + _0x13c297['task'][_0x32c2a0(0x133)] + ')',
|
|
1362
|
-
_0x32c2a0(0x1a9) + _0x52f36d,
|
|
1363
|
-
_0x32c2a0(0x154)
|
|
1364
|
-
][_0x32c2a0(0x15d)]('\x0a'), _0x18f7ea = await fetch(_0x783ce3[_0x32c2a0(_0x2ec10b._0x573f5b)] + '/workers/deliver', {
|
|
1365
|
-
'method': _0x32c2a0(_0x2ec10b._0x6d1101),
|
|
1366
|
-
'headers': { 'Content-Type': 'application/json' },
|
|
1367
|
-
'body': JSON[_0x32c2a0(_0x2ec10b._0x17bc27)]({
|
|
1368
|
-
'agent_id': _0x783ce3[_0x32c2a0(0x15b)],
|
|
1369
|
-
'thread_target': _0x52f36d,
|
|
1370
|
-
'spawn_packet': {
|
|
1371
|
-
'replyTarget': _0x52f36d,
|
|
1372
|
-
'taskId': _0x13c297['task']['taskId']
|
|
1373
|
-
},
|
|
1374
|
-
'payload': {
|
|
1375
|
-
'mode': 'user',
|
|
1376
|
-
'text': _0x565c4e
|
|
1377
|
-
}
|
|
1378
|
-
})
|
|
1379
|
-
}), _0x37137b = await _0x18f7ea['json']();
|
|
1380
|
-
if (!_0x37137b['ok'])
|
|
1381
|
-
throw new Error(_0x37137b[_0x32c2a0(0x1c5)] ?? _0x32c2a0(_0x2ec10b._0x30402b));
|
|
1382
|
-
return [
|
|
1383
|
-
'Handoff\x20to\x20worker\x20for\x20task\x20' + _0xdf26a4 + '\x20in\x20' + _0x52f36d + '.',
|
|
1384
|
-
'stopMain=true\x20executionMode=worker',
|
|
1385
|
-
_0x32c2a0(_0x2ec10b._0x26725c) + (_0x37137b[_0x32c2a0(0x1bb)] === _0x32c2a0(0x138) ? 'queued' : _0x32c2a0(_0x2ec10b._0x43ec72)) + '.',
|
|
1386
|
-
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
|
|
1387
|
-
]['join']('\x20');
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
const _0x236043 = await _0x783ce3['client']['sendMessage']({
|
|
1391
|
-
'attachmentIds': _0x255485[_0x32c2a0(_0x2ec10b._0x3b6b67)],
|
|
1392
|
-
'content': _0x255485['content'],
|
|
1393
|
-
'target': _0x255485[_0x32c2a0(0x1fe)],
|
|
1394
|
-
'visibility': _0x255485[_0x32c2a0(0x24a)]
|
|
1395
|
-
});
|
|
1396
|
-
return _0x32c2a0(0x12f) + _0x255485[_0x32c2a0(_0x2ec10b._0xd874f1)] + _0x32c2a0(_0x2ec10b._0x4e7cf2) + _0x236043[_0x32c2a0(0x212)];
|
|
1397
|
-
},
|
|
1398
|
-
async 'check_messages'() {
|
|
1399
|
-
const _0x30684a = _0x3844, _0x3f2d23 = await _0x783ce3[_0x30684a(_0x1c712d._0x48e42c)][_0x30684a(0x165)]();
|
|
1400
|
-
if (!_0x783ce3[_0x30684a(_0x1c712d._0x3c460c)]) {
|
|
1401
|
-
const _0x1b9dc3 = await _0x3b6e28();
|
|
1402
|
-
if (_0x1b9dc3)
|
|
1403
|
-
return formatCheckMessages(_0x3f2d23[_0x30684a(_0x1c712d._0x20d1d3)]['filter'](_0x2f30a8 => !_0x1b9dc3[_0x30684a(0x248)](_0x2f30a8['target'])));
|
|
1404
|
-
}
|
|
1405
|
-
return formatCheckMessages(_0x3f2d23[_0x30684a(0x20d)]);
|
|
1406
|
-
},
|
|
1407
|
-
async 'read_history'(_0x445ea1) {
|
|
1408
|
-
const _0x286d4b = _0x3844, _0x17af99 = await _0x783ce3[_0x286d4b(0x288)][_0x286d4b(_0x109f69._0x549000)](_0x445ea1);
|
|
1409
|
-
return formatHistory(_0x17af99);
|
|
1410
|
-
},
|
|
1411
|
-
async 'list_server'() {
|
|
1412
|
-
const _0x5325f2 = _0x3844, _0x21b2f9 = await _0x783ce3[_0x5325f2(_0x29cc42._0x33961c)][_0x5325f2(0x11f)]();
|
|
1413
|
-
return formatServerDirectory(_0x21b2f9);
|
|
1414
|
-
},
|
|
1415
|
-
async 'list_tasks'(_0x52254d) {
|
|
1416
|
-
const _0x200762 = _0x3844, _0x392033 = await _0x783ce3[_0x200762(_0x2be618._0x59c6af)]['listTasks'](_0x52254d);
|
|
1417
|
-
let _0x55f818;
|
|
1418
|
-
if (_0x783ce3['daemonLocalUrl'] && _0x783ce3[_0x200762(_0x2be618._0x46fd55)])
|
|
1419
|
-
try {
|
|
1420
|
-
const _0x5c2cda = await fetch(_0x783ce3[_0x200762(0x1d4)] + '/workers/list?agent_id=' + encodeURIComponent(_0x783ce3[_0x200762(0x15b)])), _0x30c668 = await _0x5c2cda[_0x200762(0x1f6)]();
|
|
1421
|
-
if (_0x30c668['ok']) {
|
|
1422
|
-
const _0xec47d0 = _0x52254d[_0x200762(0x268)] + ':';
|
|
1423
|
-
_0x55f818 = new Set();
|
|
1424
|
-
for (const _0x592a7b of _0x30c668[_0x200762(_0x2be618._0x150a09)]) {
|
|
1425
|
-
if (_0x592a7b['status'] === _0x200762(0x170))
|
|
1426
|
-
continue;
|
|
1427
|
-
if (_0x592a7b[_0x200762(_0x2be618._0x21c227)]?.['startsWith'](_0xec47d0)) {
|
|
1428
|
-
const _0x178e73 = _0x592a7b[_0x200762(0x181)]['slice'](_0xec47d0[_0x200762(_0x2be618._0x443ead)]), _0x93e99 = _0x392033['tasks']['find'](_0x952db0 => _0x952db0[_0x200762(0x212)]?.['startsWith'](_0x178e73) === !![]);
|
|
1429
|
-
if (_0x93e99?.[_0x200762(_0x2be618._0x157249)] != null) {
|
|
1430
|
-
_0x55f818[_0x200762(_0x2be618._0x246e9b)](_0x93e99[_0x200762(0x16d)]);
|
|
1431
|
-
continue;
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
if (_0x592a7b[_0x200762(_0x2be618._0x53770c)]) {
|
|
1435
|
-
const _0x552645 = _0x392033['tasks'][_0x200762(0x21e)](_0xe5ded5 => _0xe5ded5['taskId'] === _0x592a7b[_0x200762(0x1f1)]);
|
|
1436
|
-
_0x552645?.[_0x200762(0x16d)] != null && _0x55f818[_0x200762(0x155)](_0x552645[_0x200762(_0x2be618._0x3a701c)]);
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
} catch {
|
|
1441
|
-
}
|
|
1442
|
-
return formatTaskList(_0x392033[_0x200762(0x236)], _0x55f818);
|
|
1443
|
-
},
|
|
1444
|
-
async 'create_tasks'(_0x297034) {
|
|
1445
|
-
const _0x32becd = _0x3844, _0x4a17e3 = await _0x783ce3['client'][_0x32becd(0x1e3)](_0x297034);
|
|
1446
|
-
return formatCreatedTasks(_0x4a17e3[_0x32becd(_0x371f1c._0x5876b3)]);
|
|
1447
|
-
},
|
|
1448
|
-
async 'claim_tasks'(_0x1c0836) {
|
|
1449
|
-
const _0x547130 = { _0x598e9f: 0x212 }, _0x5498f3 = _0x3844, _0x37a157 = await _0x783ce3['client']['claimTasks'](_0x1c0836), _0x39451d = await Promise[_0x5498f3(_0x354a35._0x714231)](_0x37a157[_0x5498f3(_0x354a35._0xe55152)][_0x5498f3(_0x354a35._0x625f2a)](async _0x2fcb9e => {
|
|
1450
|
-
const _0x33cab4 = _0x5498f3;
|
|
1451
|
-
if (!_0x2fcb9e['success'] || !_0x2fcb9e['messageId'])
|
|
1452
|
-
return _0x2fcb9e;
|
|
1453
|
-
try {
|
|
1454
|
-
const _0x4d669b = await _0x23bc3f({
|
|
1455
|
-
'channel': _0x1c0836[_0x33cab4(0x268)],
|
|
1456
|
-
'messageId': _0x2fcb9e[_0x33cab4(_0x547130._0x598e9f)],
|
|
1457
|
-
'taskId': _0x2fcb9e[_0x33cab4(0x133)],
|
|
1458
|
-
'taskNumber': _0x2fcb9e[_0x33cab4(0x16d)],
|
|
1459
|
-
'threadNumber': _0x2fcb9e['threadNumber']
|
|
1460
|
-
});
|
|
1461
|
-
return _0x4d669b ? {
|
|
1462
|
-
..._0x2fcb9e,
|
|
1463
|
-
..._0x4d669b
|
|
1464
|
-
} : _0x2fcb9e;
|
|
1465
|
-
} catch (_0x270ec2) {
|
|
1466
|
-
return {
|
|
1467
|
-
..._0x2fcb9e,
|
|
1468
|
-
'workerHandoffError': _0x270ec2 instanceof Error ? _0x270ec2['message'] : 'worker\x20handoff\x20failed'
|
|
1469
|
-
};
|
|
1470
|
-
}
|
|
1471
|
-
}));
|
|
1472
|
-
return formatClaimTaskResults(_0x39451d);
|
|
1473
|
-
},
|
|
1474
|
-
async 'unclaim_task'(_0x28d6cd) {
|
|
1475
|
-
const _0x9ff59d = _0x3844, _0x85d53c = await _0x783ce3[_0x9ff59d(0x288)]['unclaimTask'](_0x28d6cd);
|
|
1476
|
-
return formatUnclaimTaskResult(_0x85d53c);
|
|
1477
|
-
},
|
|
1478
|
-
async 'update_task_status'(_0x55d930) {
|
|
1479
|
-
const _0x285828 = _0x3844, _0x57a4bb = await _0x783ce3[_0x285828(0x288)]['updateTaskStatus'](_0x55d930);
|
|
1480
|
-
return formatUpdateTaskStatusResult(_0x57a4bb);
|
|
1481
|
-
},
|
|
1482
|
-
async 'upload_file'(_0x13a80b) {
|
|
1483
|
-
const _0x155e67 = _0x3844, _0x21b4da = await _0x783ce3[_0x155e67(0x220)](_0x13a80b['file_path']), {
|
|
1484
|
-
sizeBytes: _0x10d744,
|
|
1485
|
-
..._0x5efd0a
|
|
1486
|
-
} = _0x21b4da, _0x384d74 = await _0x783ce3[_0x155e67(0x288)]['uploadFile']({
|
|
1487
|
-
'channel': _0x13a80b[_0x155e67(0x268)],
|
|
1488
|
-
..._0x5efd0a
|
|
1489
|
-
});
|
|
1490
|
-
return formatUploadResult(_0x384d74);
|
|
1491
|
-
},
|
|
1492
|
-
async 'view_file'(_0x51f82c) {
|
|
1493
|
-
const _0x2d3825 = _0x3844, _0x4e6bd5 = await _0x783ce3[_0x2d3825(0x177)][_0x2d3825(_0x4364de._0x3e905e)](_0x51f82c[_0x2d3825(0x13f)]);
|
|
1494
|
-
if (_0x4e6bd5)
|
|
1495
|
-
return formatViewFileResult(_0x4e6bd5, !![]);
|
|
1496
|
-
const _0x338e64 = await _0x783ce3['client'][_0x2d3825(0x146)](_0x51f82c[_0x2d3825(0x13f)]), _0x2a27bf = await _0x783ce3[_0x2d3825(_0x4364de._0x331f81)]['save']({
|
|
1497
|
-
'attachmentId': _0x51f82c['attachment_id'],
|
|
1498
|
-
'contentType': _0x338e64['contentType'],
|
|
1499
|
-
'data': _0x338e64[_0x2d3825(_0x4364de._0xdcbc6a)],
|
|
1500
|
-
'originalFilename': _0x338e64[_0x2d3825(_0x4364de._0x32eb45)]
|
|
1501
|
-
});
|
|
1502
|
-
return formatViewFileResult(_0x2a27bf, ![]);
|
|
1503
|
-
},
|
|
1504
|
-
async 'get_worker_status'(_0x118603) {
|
|
1505
|
-
const _0x57dfa9 = _0x3844;
|
|
1506
|
-
if (!_0x783ce3[_0x57dfa9(0x1d4)])
|
|
1507
|
-
return 'Worker\x20features\x20not\x20available';
|
|
1508
|
-
const _0x48829d = await fetch(_0x783ce3['daemonLocalUrl'] + _0x57dfa9(0x139) + encodeURIComponent(_0x118603['work_key'])), _0x5c6d59 = await _0x48829d[_0x57dfa9(_0x5eda22._0x33f96c)]();
|
|
1509
|
-
if (!_0x5c6d59['ok'])
|
|
1510
|
-
return _0x57dfa9(_0x5eda22._0x45fc75) + _0x118603['work_key'] + '\x22\x20not\x20found';
|
|
1511
|
-
return _0x57dfa9(_0x5eda22._0x1019ef) + _0x118603['work_key'] + _0x57dfa9(0x1f3) + _0x5c6d59[_0x57dfa9(0x27f)];
|
|
1512
|
-
},
|
|
1513
|
-
async 'get_worker_result'(_0x102906) {
|
|
1514
|
-
const _0x369d45 = _0x3844;
|
|
1515
|
-
if (!_0x783ce3[_0x369d45(_0x554245._0x7d9090)])
|
|
1516
|
-
return 'Worker\x20features\x20not\x20available';
|
|
1517
|
-
const _0x4b9352 = await fetch(_0x783ce3[_0x369d45(_0x554245._0x7d9090)] + _0x369d45(0x210) + encodeURIComponent(_0x102906['work_key'])), _0x1bead1 = await _0x4b9352[_0x369d45(_0x554245._0x46f1d9)]();
|
|
1518
|
-
if (!_0x1bead1[_0x369d45(0x28f)])
|
|
1519
|
-
return _0x369d45(0x274) + _0x102906[_0x369d45(0x24d)] + '\x22';
|
|
1520
|
-
return JSON['stringify'](_0x1bead1[_0x369d45(0x28f)], null, 0x2);
|
|
1521
|
-
},
|
|
1522
|
-
async 'finish_worker'(_0x51de75) {
|
|
1523
|
-
const _0x588bdd = _0x3844;
|
|
1524
|
-
if (!_0x783ce3[_0x588bdd(0x1d4)])
|
|
1525
|
-
return _0x588bdd(_0x2b29a9._0x297571);
|
|
1526
|
-
const _0x68bb35 = await fetch(_0x783ce3[_0x588bdd(_0x2b29a9._0x2b506d)] + _0x588bdd(0x270), {
|
|
1527
|
-
'method': _0x588bdd(0x199),
|
|
1528
|
-
'headers': { 'Content-Type': _0x588bdd(0x12a) },
|
|
1529
|
-
'body': JSON[_0x588bdd(_0x2b29a9._0x37ca03)]({
|
|
1530
|
-
'work_key': _0x51de75[_0x588bdd(0x24d)],
|
|
1531
|
-
'resume_packet': {
|
|
1532
|
-
'objective': '',
|
|
1533
|
-
'result': _0x51de75[_0x588bdd(_0x2b29a9._0xce1a12)],
|
|
1534
|
-
'summary': _0x51de75[_0x588bdd(_0x2b29a9._0x11bb22)],
|
|
1535
|
-
'decisions': _0x51de75[_0x588bdd(0x183)] ?? [],
|
|
1536
|
-
'filesChanged': _0x51de75[_0x588bdd(0x223)] ?? [],
|
|
1537
|
-
'openIssues': _0x51de75[_0x588bdd(0x129)] ?? [],
|
|
1538
|
-
'nextSteps': _0x51de75[_0x588bdd(0x1b1)] ?? []
|
|
1539
|
-
}
|
|
1540
|
-
})
|
|
1541
|
-
}), _0x7871c6 = await _0x68bb35['json']();
|
|
1542
|
-
if (!_0x7871c6['ok'])
|
|
1543
|
-
throw new Error(_0x7871c6['error'] ?? _0x588bdd(0x134));
|
|
1544
|
-
return _0x588bdd(_0x2b29a9._0x19a7d1) + _0x51de75['work_key'] + _0x588bdd(0x25b) + _0x51de75['result'];
|
|
1545
|
-
},
|
|
1546
|
-
async 'mark_waiting_input'(_0x5a10aa) {
|
|
1547
|
-
const _0x476c66 = _0x3844;
|
|
1548
|
-
if (!_0x783ce3[_0x476c66(_0x1d15da._0x432cbc)] || !_0x783ce3[_0x476c66(_0x1d15da._0x5220cd)])
|
|
1549
|
-
return _0x476c66(_0x1d15da._0xf857d2);
|
|
1550
|
-
const _0x120919 = await fetch(_0x783ce3[_0x476c66(0x1d4)] + '/workers/waiting_input', {
|
|
1551
|
-
'method': 'POST',
|
|
1552
|
-
'headers': { 'Content-Type': _0x476c66(_0x1d15da._0x245ccf) },
|
|
1553
|
-
'body': JSON['stringify']({
|
|
1554
|
-
'work_key': _0x5a10aa['work_key'],
|
|
1555
|
-
'agent_id': _0x783ce3[_0x476c66(_0x1d15da._0x52d8af)]
|
|
1556
|
-
})
|
|
1557
|
-
}), _0x18fbbf = await _0x120919[_0x476c66(0x1f6)]();
|
|
1558
|
-
if (!_0x18fbbf['ok'])
|
|
1559
|
-
throw new Error(_0x18fbbf[_0x476c66(_0x1d15da._0x5597ef)] ?? _0x476c66(_0x1d15da._0x36967c));
|
|
1560
|
-
return _0x476c66(_0x1d15da._0x1d0814) + _0x5a10aa[_0x476c66(0x24d)] + _0x476c66(0x1bd);
|
|
1561
|
-
},
|
|
1562
|
-
async 'escalate_to_main'(_0x2626ba) {
|
|
1563
|
-
const _0x5a1297 = _0x3844;
|
|
1564
|
-
if (!_0x783ce3[_0x5a1297(0x1d4)])
|
|
1565
|
-
return _0x5a1297(_0xdd6200._0x561c26);
|
|
1566
|
-
const _0x3b3c86 = await fetch(_0x783ce3['daemonLocalUrl'] + _0x5a1297(0x23c), {
|
|
1567
|
-
'method': _0x5a1297(0x199),
|
|
1568
|
-
'headers': { 'Content-Type': _0x5a1297(0x12a) },
|
|
1569
|
-
'body': JSON[_0x5a1297(_0xdd6200._0x4d57d5)]({
|
|
1570
|
-
'work_key': _0x2626ba[_0x5a1297(_0xdd6200._0x56c091)],
|
|
1571
|
-
'reason': _0x2626ba[_0x5a1297(0x127)]
|
|
1572
|
-
})
|
|
1573
|
-
}), _0x30b472 = await _0x3b3c86[_0x5a1297(_0xdd6200._0x480e89)]();
|
|
1574
|
-
if (!_0x30b472['ok'])
|
|
1575
|
-
throw new Error(_0x30b472[_0x5a1297(_0xdd6200._0x5ae416)] ?? _0x5a1297(0x22c));
|
|
1576
|
-
return _0x5a1297(_0xdd6200._0xb2b391) + _0x2626ba[_0x5a1297(0x127)];
|
|
1577
|
-
}
|
|
1578
|
-
};
|
|
1579
|
-
}
|
|
1580
|
-
function textResult(_0x102a12, _0x378451 = ![]) {
|
|
1581
|
-
const _0x2d91f9 = { _0x1d5bb8: 0x1aa }, _0x460d3c = _0x15d6d8;
|
|
1582
|
-
return {
|
|
1583
|
-
'content': [{
|
|
1584
|
-
'type': _0x460d3c(_0x2d91f9._0x1d5bb8),
|
|
1585
|
-
'text': _0x102a12
|
|
1586
|
-
}],
|
|
1587
|
-
..._0x378451 ? { 'isError': !![] } : {}
|
|
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
|
|
1884
|
-
};
|
|
1885
|
-
}
|
|
1886
|
-
async function runChatBridgeCli(_0x2b9b0a) {
|
|
1887
|
-
const _0x36dca9 = { _0x1c145e: 0x17d }, _0x3d3a98 = _0x15d6d8, _0x20fccd = parseChatBridgeArgs(_0x2b9b0a), {StdioServerTransport: _0x3569e9} = await import(_0x3d3a98(_0x36dca9._0x1c145e)), _0x26264e = createInternalAgentClient(_0x20fccd), _0x555850 = createAttachmentCache(), _0x229ddb = await createChatBridgeServer({
|
|
1888
|
-
'agentId': _0x20fccd['agentId'],
|
|
1889
|
-
'attachmentCache': _0x555850,
|
|
1890
|
-
'client': _0x26264e,
|
|
1891
|
-
'daemonLocalUrl': _0x20fccd[_0x3d3a98(0x1d4)],
|
|
1892
|
-
'uploadPreparer': prepareUploadFile,
|
|
1893
|
-
'workerModeEnabled': _0x20fccd['workerModeEnabled'],
|
|
1894
|
-
'workerMode': _0x20fccd['workerMode']
|
|
1895
|
-
});
|
|
1896
|
-
await _0x229ddb['server'][_0x3d3a98(0x1be)](new _0x3569e9());
|
|
1897
|
-
}
|
|
1898
|
-
var executedAsEntry = process[_0x15d6d8(0x1a6)][0x1] ? import.meta.url === pathToFileURL(process[_0x15d6d8(0x1a6)][0x1])[_0x15d6d8(0x280)] : ![];
|
|
1899
|
-
executedAsEntry && await runChatBridgeCli(process[_0x15d6d8(0x1a6)][_0x15d6d8(0x263)](0x2));
|
|
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',
|
|
117
|
+
function _0x19b3() {
|
|
118
|
+
const _0x1ce982 = [
|
|
119
|
+
'y2HHBM5LBe5HBwu',
|
|
120
|
+
'zxHWAxjLC0f0',
|
|
121
|
+
'mJCYnJm0tvzWC21i',
|
|
122
|
+
'y29UBMvJDa',
|
|
123
|
+
'ANnVBG',
|
|
124
|
+
'zg9Uzq',
|
|
1920
125
|
'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',
|
|
1941
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1942
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1943
|
-
'yMvMB3jL',
|
|
1944
|
-
'Dg9ju09tDhjPBMC',
|
|
1945
126
|
'CgfYC2u',
|
|
1946
|
-
'
|
|
1947
|
-
'
|
|
1948
|
-
'
|
|
1949
|
-
'
|
|
1950
|
-
'
|
|
1951
|
-
'
|
|
1952
|
-
'
|
|
1953
|
-
'
|
|
1954
|
-
'
|
|
1955
|
-
'
|
|
1956
|
-
'
|
|
1957
|
-
'
|
|
1958
|
-
'
|
|
1959
|
-
'
|
|
1960
|
-
'
|
|
1961
|
-
'
|
|
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',
|
|
1985
|
-
'z2v0rNvSBfLLyxi',
|
|
1986
|
-
'y2XPzw50',
|
|
1987
|
-
'y3vYC29Y',
|
|
1988
|
-
'CNvUBMLUzW',
|
|
1989
|
-
'DgHYzwfKswq',
|
|
1990
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1991
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
127
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
128
|
+
'C2L6zq',
|
|
129
|
+
'ywDNCMvNyxrLswq',
|
|
130
|
+
'y29UDgvUDfr5Cgu',
|
|
131
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
132
|
+
'C29YDa',
|
|
133
|
+
'Bwf4',
|
|
134
|
+
'zgvZDhjVEwvK',
|
|
135
|
+
'C2vZC2LVBKLK',
|
|
136
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
137
|
+
'Aw5KzxHpzG',
|
|
138
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
139
|
+
'DMLLD19MAwXL',
|
|
140
|
+
'y2HLy2TnzxnZywDLCW',
|
|
141
|
+
'ig1LC3nHz2vZkqOk',
|
|
142
|
+
'mtaZndzbCgjWrha',
|
|
1992
143
|
'ls1Hz2vUDc1Pza',
|
|
1993
|
-
'
|
|
1994
|
-
'
|
|
1995
|
-
'
|
|
1996
|
-
'ihr5Cgu9ywDLBNq',
|
|
1997
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1998
|
-
'AhvTyw4',
|
|
1999
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
2000
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
2001
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
2002
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
2003
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
2004
|
-
'Ahr0CdO',
|
|
2005
|
-
'lIbnzxnZywDLieLeoIa',
|
|
2006
|
-
'BwvKAxvT',
|
|
2007
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
2008
|
-
'CgfYDgLJAxbHBNq',
|
|
2009
|
-
'C2nOzwr1BgvKrM9Y',
|
|
2010
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
2011
|
-
'yxr0ywnOBwvUDhm',
|
|
2012
|
-
'DgfZAY0',
|
|
2013
|
-
'mtfMyNz4q1y',
|
|
2014
|
-
'BNvTyMvY',
|
|
2015
|
-
'DgfZAW',
|
|
2016
|
-
'lsba',
|
|
2017
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
2018
|
-
'BgLZDfnLCNzLCG',
|
|
2019
|
-
'ihrPBwu9',
|
|
2020
|
-
'l2zPBMLZAa',
|
|
2021
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
2022
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
2023
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
2024
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
2025
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
2026
|
-
'CMvHC29U',
|
|
144
|
+
'AxngAw5PDgu',
|
|
145
|
+
'r0vu',
|
|
146
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
2027
147
|
'z2v0u2vJB25KCW',
|
|
2028
|
-
'
|
|
2029
|
-
'
|
|
2030
|
-
'
|
|
2031
|
-
'
|
|
2032
|
-
'
|
|
2033
|
-
'
|
|
2034
|
-
'
|
|
2035
|
-
'BMfTzq',
|
|
2036
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
2037
|
-
'DgL0Bgu',
|
|
2038
|
-
'DgfZA0LK',
|
|
2039
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
2040
|
-
'Aw5JBhvKzxm',
|
|
2041
|
-
'C29YDa',
|
|
2042
|
-
'icHPzdO',
|
|
2043
|
-
'CxvLDwvK',
|
|
2044
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
2045
|
-
'Dgv4Dc9JC3y',
|
|
2046
|
-
'DgHYzwfKu2HVCNrjza',
|
|
2047
|
-
'y3jLyxrLzef0',
|
|
2048
|
-
'zgvZy3jPChrPB24',
|
|
2049
|
-
'yxr0ywnOBwvUDeLK',
|
|
2050
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
2051
|
-
'C3rYAw5N',
|
|
2052
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
2053
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
2054
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
2055
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
2056
|
-
'Agv4',
|
|
2057
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
2058
|
-
'zMfPBgvK',
|
|
2059
|
-
'DgHYzwfK',
|
|
2060
|
-
'ywz0zxjtzxe',
|
|
2061
|
-
'C3rHCNrLza',
|
|
2062
|
-
'C3rYAw5NAwz5',
|
|
2063
|
-
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
2064
|
-
'ywDLBNrZ',
|
|
2065
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
2066
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
2067
|
-
'ntjwtNjHyxm',
|
|
2068
|
-
'y29UDgvUDfr5Cgu',
|
|
2069
|
-
'CMvZCg9UC2u',
|
|
2070
|
-
'zgf0yq',
|
|
2071
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
2072
|
-
'ywrK',
|
|
2073
|
-
'C2LNBMfS',
|
|
2074
|
-
'y2HHDa',
|
|
2075
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
2076
|
-
'CgfYDgLJAxbHBNrjza',
|
|
2077
|
-
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
2078
|
-
'ywDLBNrjza',
|
|
2079
|
-
'y29TCgXLDgvK',
|
|
2080
|
-
'AM9PBG',
|
|
148
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
149
|
+
'ignSywLTzwq',
|
|
150
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
151
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
152
|
+
'odu4r1rwyNrK',
|
|
153
|
+
'ihn0yxr1CZ0',
|
|
154
|
+
'zMLUza',
|
|
2081
155
|
'B3b0Aw9UywW',
|
|
2082
|
-
'
|
|
2083
|
-
'
|
|
2084
|
-
'
|
|
156
|
+
'C3rVCe1HAw4',
|
|
157
|
+
'Dg9tDhjPBMC',
|
|
158
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
159
|
+
'lsba',
|
|
160
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
2085
161
|
'yMXVy2TLza',
|
|
2086
|
-
'
|
|
2087
|
-
'
|
|
2088
|
-
'
|
|
2089
|
-
'
|
|
2090
|
-
'
|
|
2091
|
-
'
|
|
2092
|
-
'
|
|
2093
|
-
'
|
|
2094
|
-
'
|
|
162
|
+
'v29YA2vYia',
|
|
163
|
+
'DxrMoa',
|
|
164
|
+
'ndb2v1LutMq',
|
|
165
|
+
'DgfZA3m',
|
|
166
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
167
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
168
|
+
'zgf0yq',
|
|
169
|
+
'y3jLyxrLx3rHC2TZ',
|
|
170
|
+
'D29YA2vYtw9Kzq',
|
|
171
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
172
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
173
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
174
|
+
'Aw5FChjVz3jLC3m',
|
|
175
|
+
'iYmJienOyw5UzwXZ',
|
|
176
|
+
'BNvTyMvY',
|
|
177
|
+
'Dgv4Dc9WBgfPBG',
|
|
2095
178
|
'Dw5RBM93BG',
|
|
2096
|
-
'
|
|
2097
|
-
'
|
|
2098
|
-
'
|
|
2099
|
-
'
|
|
179
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
180
|
+
'zgvSzxrL',
|
|
181
|
+
'C3rYAw5NAwz5',
|
|
182
|
+
'C2vYDMvY',
|
|
183
|
+
'C3bSAxq',
|
|
184
|
+
'zxH0BMfTzq',
|
|
185
|
+
'y2HHDa',
|
|
186
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
187
|
+
'C29Tzq',
|
|
188
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
189
|
+
'y2XHAw1FDgfZA3m',
|
|
190
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
191
|
+
'C2vYDMvYvxjS',
|
|
192
|
+
'CMvHC29U',
|
|
193
|
+
'AxnbCNjHEq',
|
|
194
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
195
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
196
|
+
'Dw5JBgfPBv90yxnR',
|
|
2100
197
|
'ywDLBNq',
|
|
2101
|
-
'
|
|
2102
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
2103
|
-
'DgfYz2v0zwq',
|
|
198
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
2104
199
|
'Aw5FCMv2Awv3',
|
|
2105
|
-
'
|
|
2106
|
-
'
|
|
2107
|
-
'
|
|
2108
|
-
'
|
|
2109
|
-
'
|
|
200
|
+
'C2LNBMfS',
|
|
201
|
+
'CMvZDwX0CW',
|
|
202
|
+
'C3rHCNrZv2L0Aa',
|
|
203
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
204
|
+
'yM9KEu1HCMTKB3DU',
|
|
205
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
206
|
+
'l3rHC2TZl2nSywLT',
|
|
207
|
+
'BwvKAxvT',
|
|
208
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
209
|
+
'Aw1Hz2uVANbLzW',
|
|
210
|
+
'AhvTyw5Z',
|
|
211
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
212
|
+
'zgLNzxn0',
|
|
213
|
+
'ywz0zxi',
|
|
214
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
215
|
+
'DgL0Bgu',
|
|
216
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
217
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
218
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
219
|
+
'yxv0BZO',
|
|
220
|
+
'BwvZC2fNzq',
|
|
221
|
+
'BMv4Df9ZDgvWCW',
|
|
222
|
+
'ywz0zxjtzxe',
|
|
223
|
+
'BgLZDf90yxnRCW',
|
|
224
|
+
'ihr5Cgu9ywDLBNq',
|
|
225
|
+
'yMfZzty0',
|
|
226
|
+
'AgfZ',
|
|
227
|
+
'C2vYDMvYtMfTzq',
|
|
228
|
+
'y2XHAw1uyxnRCW',
|
|
229
|
+
'B3bLBL9PC3n1zxm',
|
|
2110
230
|
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
2111
|
-
'
|
|
2112
|
-
'
|
|
2113
|
-
'
|
|
2114
|
-
'
|
|
2115
|
-
'
|
|
2116
|
-
'
|
|
2117
|
-
'
|
|
2118
|
-
'
|
|
2119
|
-
'
|
|
2120
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
2121
|
-
'nJHUBwHHCgC',
|
|
2122
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
2123
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
2124
|
-
'CMvHzeHPC3rVCNK',
|
|
2125
|
-
'CM9VDe1LC3nHz2vjza',
|
|
2126
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
2127
|
-
'BM93',
|
|
2128
|
-
'iYmJienOyw5UzwXZ',
|
|
2129
|
-
'Ahr0Chm6',
|
|
2130
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
2131
|
-
'BgvUz3rO',
|
|
2132
|
-
'AxnjBNrLz2vY',
|
|
231
|
+
'C3vJy2vZCW',
|
|
232
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
233
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
234
|
+
'D29YA19RzxK',
|
|
235
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
236
|
+
'z2v0',
|
|
237
|
+
'zg0T',
|
|
238
|
+
'mc4WlJa',
|
|
239
|
+
'y2HHBM5LBeLK',
|
|
2133
240
|
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
241
|
+
'z2v0twLUDxrLCW',
|
|
242
|
+
'y29TCgXLDgvK',
|
|
243
|
+
'z2v0rgf0zq',
|
|
244
|
+
'DgfYz2v0',
|
|
245
|
+
'C3rHCNrLza',
|
|
246
|
+
'C3vTBwfYEq',
|
|
247
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
248
|
+
'Bg9JywXLq29TCgfYzq',
|
|
249
|
+
'CMvWBgfJzq',
|
|
250
|
+
'AxngAwXL',
|
|
251
|
+
'ig1ZzZ0',
|
|
252
|
+
'D3nZoG',
|
|
253
|
+
'Bwf0y2Hoyw1L',
|
|
254
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
255
|
+
'ChjVDg9JB2W',
|
|
256
|
+
'l2HPC3rVCNK/',
|
|
257
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
258
|
+
'z2v0tw9UDgG',
|
|
259
|
+
'ndC2nZe3nwDWBKzjtW',
|
|
260
|
+
'BgvUz3rO',
|
|
261
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
262
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
263
|
+
'DMLZAwjPBgL0Eq',
|
|
264
|
+
'DgHYzwfKu2HVCNrjza',
|
|
265
|
+
'iIbUB3qGzM91BMq',
|
|
266
|
+
'yxjYyxLcDwzMzxi',
|
|
267
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
268
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
2134
269
|
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
2135
|
-
'
|
|
2136
|
-
'
|
|
2137
|
-
'
|
|
2138
|
-
'
|
|
270
|
+
'Dg9VBa',
|
|
271
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
272
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
273
|
+
'C3rYAw5N',
|
|
274
|
+
'mZGXodC1nKHirw12va',
|
|
275
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
276
|
+
'zgvZy3jPChrPB24',
|
|
277
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
278
|
+
'DgHYzwfKtNvTyMvY',
|
|
279
|
+
'l2zPBMLZAa',
|
|
280
|
+
'yM9KEvrLEhq',
|
|
2139
281
|
'y2f0y2G',
|
|
2140
|
-
'
|
|
2141
|
-
'D29YA2vYtw9Kzq',
|
|
282
|
+
'igf0DgfJAg1LBNq',
|
|
2142
283
|
'y29UDgvUDc10ExbL',
|
|
2143
|
-
'
|
|
2144
|
-
'
|
|
284
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
285
|
+
'C2vUze1LC3nHz2u',
|
|
286
|
+
'ywrK',
|
|
287
|
+
'DgfYz2v0zwruyxnR',
|
|
288
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
2145
289
|
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
2146
|
-
'
|
|
2147
|
-
'mte1me5owNPTtG',
|
|
2148
|
-
'zw51Bq',
|
|
2149
|
-
'D3nZoG',
|
|
2150
|
-
'Aw1Hz2uVANbLzW',
|
|
290
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
2151
291
|
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
2152
|
-
'
|
|
2153
|
-
'
|
|
2154
|
-
'
|
|
292
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
293
|
+
'DMfSDwvZ',
|
|
294
|
+
'l3nLCNzLCG',
|
|
295
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
296
|
+
'BgLZDfrHC2TZ',
|
|
297
|
+
'y2XHAw0GzMfPBgvK',
|
|
298
|
+
'DgfZA051BwjLCG',
|
|
299
|
+
'sfruuca',
|
|
300
|
+
'CgfYDgLJAxbHBNq',
|
|
301
|
+
'C2f2zq',
|
|
302
|
+
'DxbSB2fKx2zPBgu',
|
|
303
|
+
'y29UDgvUDejHC2u2na',
|
|
304
|
+
'w3rHCMDLDd0',
|
|
305
|
+
'CgfYDgLJAxbHBNrjza',
|
|
306
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
307
|
+
'C2vX',
|
|
308
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
309
|
+
'ywjVCNrLza',
|
|
310
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
311
|
+
'BwvZC2fNzuLK',
|
|
312
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
313
|
+
'y29UDgvUDa',
|
|
314
|
+
'Ahr0Chm6',
|
|
315
|
+
'zNjVBq',
|
|
316
|
+
'zxjYB3i',
|
|
317
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
318
|
+
'icHPzdO',
|
|
2155
319
|
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
2156
|
-
'
|
|
2157
|
-
'
|
|
2158
|
-
'
|
|
2159
|
-
'
|
|
2160
|
-
'
|
|
2161
|
-
'
|
|
2162
|
-
'
|
|
2163
|
-
'
|
|
2164
|
-
'
|
|
2165
|
-
'
|
|
2166
|
-
'
|
|
2167
|
-
'
|
|
2168
|
-
'
|
|
2169
|
-
'
|
|
2170
|
-
'z2v0vgLTzq',
|
|
2171
|
-
'ndi5nZG1nK5oCeTPvW',
|
|
2172
|
-
'y2fJAgveAxi',
|
|
2173
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
320
|
+
'EM9K',
|
|
321
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
322
|
+
'yxjNDG',
|
|
323
|
+
'uefuq0G',
|
|
324
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
325
|
+
'CMvHzf9OAxn0B3j5',
|
|
326
|
+
'lcbWCMv2Awv3pq',
|
|
327
|
+
'yxnPzgu',
|
|
328
|
+
'BgLTAxq',
|
|
329
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
330
|
+
'zxzLBNrtzxe',
|
|
331
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
332
|
+
'CMvZDwX0',
|
|
333
|
+
'BwvTyMvYCW',
|
|
2174
334
|
'zgLZCg9ZAxrPB24',
|
|
2175
|
-
'
|
|
2176
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
2177
|
-
'y29UBMvJDa',
|
|
2178
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
2179
|
-
'Bwf0y2Hoyw1L',
|
|
2180
|
-
'CMvZDwX0CW',
|
|
2181
|
-
'zMfSC2u',
|
|
2182
|
-
'y2XHAw1FDgfZA3m',
|
|
335
|
+
'CMvJB3jK',
|
|
2183
336
|
'Aw1Hz2uVD2vICa',
|
|
2184
|
-
'
|
|
2185
|
-
'
|
|
2186
|
-
'
|
|
2187
|
-
'
|
|
2188
|
-
'
|
|
2189
|
-
'
|
|
2190
|
-
'
|
|
2191
|
-
'
|
|
2192
|
-
'
|
|
2193
|
-
'
|
|
2194
|
-
'
|
|
2195
|
-
'
|
|
2196
|
-
'
|
|
2197
|
-
'
|
|
2198
|
-
'
|
|
2199
|
-
'
|
|
2200
|
-
'
|
|
2201
|
-
'
|
|
2202
|
-
'
|
|
337
|
+
'l3rHC2TZpW',
|
|
338
|
+
'C2L6zuj5DgvZ',
|
|
339
|
+
'CxvLDwvK',
|
|
340
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
341
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
342
|
+
'6k+35Rgcia',
|
|
343
|
+
'y2HHBM5LBhm',
|
|
344
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
345
|
+
'mtKWntq0mgDtqwzoAq',
|
|
346
|
+
'BMfTzq',
|
|
347
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
348
|
+
'Aw5JBhvKzxm',
|
|
349
|
+
'yxr0ywnOBwvUDeLK',
|
|
350
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
351
|
+
'CMvZCg9UC2u',
|
|
352
|
+
'zg06',
|
|
353
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
354
|
+
'kg5VBMuP',
|
|
355
|
+
'mtq4mduYmJvYENHhrva',
|
|
356
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
357
|
+
'cGOTls0G',
|
|
358
|
+
'DgfZA0LK',
|
|
359
|
+
'yxr0ywnOBwvUDhm',
|
|
360
|
+
'C2v0',
|
|
361
|
+
'yMfZzw5HBwu',
|
|
362
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
363
|
+
'DgHYzwfKswq',
|
|
364
|
+
'Bg93',
|
|
365
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
366
|
+
'yMvMB3jL',
|
|
367
|
+
'Dg9KBW',
|
|
368
|
+
'yxjYyxK',
|
|
369
|
+
'ig1LC3nHz2u9',
|
|
370
|
+
'DgfZA19Pza',
|
|
371
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
372
|
+
'DgHYzwfK',
|
|
373
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
374
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
375
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
376
|
+
'C2HHmJu2',
|
|
377
|
+
'D29YA2vYCW',
|
|
378
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
379
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
380
|
+
'AgLNAa',
|
|
381
|
+
'lsaJ',
|
|
382
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
383
|
+
'z2v0vgLTzq',
|
|
384
|
+
'iJOGC3rHDhvZpq',
|
|
385
|
+
'C3rHDhvZ',
|
|
386
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
387
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
388
|
+
'zMLSDgvY',
|
|
389
|
+
'C2vUzgvYvhLWzq',
|
|
390
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
391
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
392
|
+
'Ahr0CdO',
|
|
393
|
+
'igLUia',
|
|
394
|
+
'zgvJAxnPB25Z',
|
|
395
|
+
'Aw1Hz2uVCg5N',
|
|
396
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
397
|
+
'pgvTChr5pG',
|
|
398
|
+
'ywDLBNrjza',
|
|
399
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
400
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
2203
401
|
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
2204
|
-
'
|
|
2205
|
-
'
|
|
2206
|
-
'
|
|
2207
|
-
'
|
|
2208
|
-
'
|
|
2209
|
-
'
|
|
2210
|
-
'
|
|
402
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
403
|
+
'lMjPBG',
|
|
404
|
+
'DxbSB2fKrMLSzq',
|
|
405
|
+
'DhjPBq',
|
|
406
|
+
'l3n0yxj0',
|
|
407
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
408
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
409
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
410
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
411
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
412
|
+
'y3jLyxrLzef0',
|
|
413
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
414
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
415
|
+
'C2vUzgvYtMfTzq',
|
|
416
|
+
'DhLWzq',
|
|
417
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
418
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
419
|
+
'zMv0y2HjBxbS',
|
|
420
|
+
'iokaLca',
|
|
421
|
+
'BwvTyMvY',
|
|
422
|
+
'Agv4',
|
|
423
|
+
'zw51Bq',
|
|
424
|
+
'l2nVBNrLBNq',
|
|
2211
425
|
'Cgf5Bg9HzePZB24',
|
|
2212
|
-
'
|
|
2213
|
-
'
|
|
2214
|
-
'
|
|
2215
|
-
'
|
|
2216
|
-
'
|
|
426
|
+
'zM9Yy2vszwzYzxnO',
|
|
427
|
+
'z2v0rNvSBfLLyxi',
|
|
428
|
+
'ywDLBNrZ',
|
|
429
|
+
'CMvHzeHPC3rVCNK',
|
|
430
|
+
'zMLSzv9WyxrO',
|
|
431
|
+
'zMfPBgvK',
|
|
432
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
433
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
434
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
435
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
436
|
+
'BwvZC2fNzxm',
|
|
437
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
438
|
+
'CM9VDe1LC3nHz2vjza',
|
|
2217
439
|
'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
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
2235
|
-
'y2HHBM5LBe5HBwu',
|
|
2236
|
-
'Dg9tDhjPBMC',
|
|
2237
|
-
'lsaJ',
|
|
2238
|
-
'mtuXmtbYwhj3B0O',
|
|
2239
|
-
'Dg9KBW',
|
|
2240
|
-
'y2HHBM5LBeLK',
|
|
2241
|
-
'DgfYz2v0',
|
|
2242
|
-
'C2vUzgvYvhLWzq',
|
|
2243
|
-
'BwvZC2fNzq',
|
|
2244
|
-
'ig1ZzZ0',
|
|
2245
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
2246
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
2247
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
2248
|
-
'odC3mNHSDuP1ta',
|
|
2249
|
-
'BwvTyMvYCW',
|
|
2250
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
2251
440
|
'BwfW',
|
|
2252
|
-
'
|
|
441
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
442
|
+
'zMLSzw5HBwu',
|
|
443
|
+
'l3rHC2TZ',
|
|
444
|
+
'ls1ZzxnZAw9UlwLK',
|
|
445
|
+
'C2vUzf9TzxnZywDL',
|
|
446
|
+
'nJrWA2nnBuu',
|
|
447
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
2253
448
|
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
2254
|
-
'
|
|
2255
|
-
'
|
|
2256
|
-
'
|
|
2257
|
-
'
|
|
2258
|
-
'
|
|
2259
|
-
'
|
|
2260
|
-
'
|
|
2261
|
-
'
|
|
2262
|
-
'
|
|
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',
|
|
2281
|
-
'ywDNCMvNyxrLswq',
|
|
2282
|
-
'C3vJy2vZCW',
|
|
449
|
+
'Dgv4Dc9JC3y',
|
|
450
|
+
'v29YA2vYici',
|
|
451
|
+
'kgXLz2fJEsK',
|
|
452
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
453
|
+
'BM93',
|
|
454
|
+
'Dg9gAxHLza',
|
|
455
|
+
'ChvZAa',
|
|
456
|
+
'Dw5JBgfPBvrHC2S',
|
|
457
|
+
'Bwv0yq',
|
|
2283
458
|
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
459
|
+
'BgLZDfnLCNzLCG',
|
|
460
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
461
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
462
|
+
'ywjVCNq',
|
|
463
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
464
|
+
'mti4mtyYn1fktxrLwa',
|
|
465
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
466
|
+
'Dg9mB3DLCKnHC2u',
|
|
467
|
+
'A2LUza',
|
|
468
|
+
'CNvUswq',
|
|
469
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
470
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
471
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
472
|
+
'C2XPy2u',
|
|
473
|
+
'Dg9ju09tDhjPBMC',
|
|
474
|
+
'y3vYC29Y',
|
|
475
|
+
'DgfYz2v0zwq',
|
|
476
|
+
'DgvZDa',
|
|
477
|
+
'DgfZAW',
|
|
478
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
479
|
+
'DxnLCG',
|
|
480
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
481
|
+
'l3vWBg9Hza',
|
|
482
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
483
|
+
'AgvHzgvYCW',
|
|
2284
484
|
'xsba',
|
|
2285
|
-
'
|
|
2286
|
-
'
|
|
2287
|
-
'
|
|
2288
|
-
'
|
|
2289
|
-
'
|
|
2290
|
-
'
|
|
2291
|
-
'
|
|
2292
|
-
'
|
|
2293
|
-
'
|
|
485
|
+
'Dgv4Da',
|
|
486
|
+
'y2XPzw50',
|
|
487
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
488
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
489
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
490
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
491
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
492
|
+
'DxjNzw50',
|
|
493
|
+
'D3m6',
|
|
494
|
+
'ue9tva',
|
|
2294
495
|
'DgHYzwfKvgfYz2v0',
|
|
2295
|
-
'
|
|
2296
|
-
'
|
|
2297
|
-
'
|
|
2298
|
-
'
|
|
2299
|
-
'
|
|
2300
|
-
'
|
|
2301
|
-
'
|
|
496
|
+
'D29YA2vYsgfUzg9MzG',
|
|
497
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
498
|
+
'Aw1Hz2uVz2LM',
|
|
499
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
500
|
+
'y2HHBM5LBa',
|
|
501
|
+
'w3nLCt0',
|
|
502
|
+
'iYmJiefNzw50CW',
|
|
503
|
+
'iYmJieH1BwfUCW',
|
|
504
|
+
'BgLZDf9Zzxj2zxi',
|
|
505
|
+
'ihrPBwu9',
|
|
506
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
507
|
+
'lIbnzxnZywDLieLeoIa',
|
|
508
|
+
'ChvIBgLJ',
|
|
509
|
+
'ywDNCMvNyxrLswrZ',
|
|
510
|
+
'y3jLyxrLvgfZA3m',
|
|
511
|
+
'Axnoyu4',
|
|
512
|
+
'AM9PBG',
|
|
513
|
+
'AxnjBNrLz2vY',
|
|
514
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
515
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
516
|
+
'B2jQzwn0'
|
|
517
|
+
];
|
|
518
|
+
_0x19b3 = function () {
|
|
519
|
+
return _0x1ce982;
|
|
520
|
+
};
|
|
521
|
+
return _0x19b3();
|
|
522
|
+
}
|
|
523
|
+
function parseThreadParts(_0x1749b2) {
|
|
524
|
+
const _0x5d43b8 = { _0x8ef39: 0x18d }, _0x2134c3 = _0x1bf962, _0x1fc120 = _0x1749b2[_0x2134c3(_0x5d43b8._0x8ef39)](':');
|
|
525
|
+
if (_0x1fc120['length'] < 0x1 || _0x1fc120[_0x2134c3(0x1da)] > 0x2)
|
|
526
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
527
|
+
return {
|
|
528
|
+
'channelName': ensureSegment(_0x1fc120[0x0] ?? ''),
|
|
529
|
+
'threadShortId': _0x1fc120[0x1] ? ensureSegment(_0x1fc120[0x1]) : null
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
function parseTarget(_0x3125ad) {
|
|
533
|
+
const _0x325887 = {
|
|
534
|
+
_0x51fe2a: 0x1de,
|
|
535
|
+
_0xdeb717: 0x14d,
|
|
536
|
+
_0x1a9b20: 0x13c,
|
|
537
|
+
_0x177f41: 0x14d,
|
|
538
|
+
_0xa128df: 0x1a0,
|
|
539
|
+
_0x53b050: 0x236,
|
|
540
|
+
_0x31d3d3: 0x1c3,
|
|
541
|
+
_0x28f91b: 0x14d,
|
|
542
|
+
_0x2f33b5: 0x1de,
|
|
543
|
+
_0x565939: 0x24a,
|
|
544
|
+
_0x238bdd: 0x1de
|
|
545
|
+
}, _0xb0cdc2 = _0x1bf962, _0x1379a4 = _0x3125ad['trim']();
|
|
546
|
+
if (!_0x1379a4)
|
|
547
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
548
|
+
if (_0x1379a4['startsWith']('#')) {
|
|
549
|
+
const _0x13d418 = parseThreadParts(_0x1379a4[_0xb0cdc2(0x120)](0x1)), _0x315ce2 = '#' + _0x13d418['channelName'];
|
|
550
|
+
if (!_0x13d418[_0xb0cdc2(_0x325887._0x51fe2a)])
|
|
551
|
+
return {
|
|
552
|
+
'channelName': _0x13d418[_0xb0cdc2(_0x325887._0xdeb717)],
|
|
553
|
+
'channelTarget': _0x315ce2,
|
|
554
|
+
'kind': _0xb0cdc2(_0x325887._0x1a9b20),
|
|
555
|
+
'target': _0x315ce2
|
|
556
|
+
};
|
|
557
|
+
return {
|
|
558
|
+
'channelName': _0x13d418[_0xb0cdc2(_0x325887._0x177f41)],
|
|
559
|
+
'channelTarget': _0x315ce2,
|
|
560
|
+
'kind': 'thread',
|
|
561
|
+
'target': _0x315ce2 + ':' + _0x13d418[_0xb0cdc2(0x1de)],
|
|
562
|
+
'threadShortId': _0x13d418[_0xb0cdc2(0x1de)]
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
if (_0x1379a4[_0xb0cdc2(_0x325887._0xa128df)](_0xb0cdc2(_0x325887._0x53b050))) {
|
|
566
|
+
const _0x5e910d = parseThreadParts(_0x1379a4['slice'](0x3));
|
|
567
|
+
if (!_0x5e910d['channelName'][_0xb0cdc2(0x1a0)](_0xb0cdc2(_0x325887._0x31d3d3)))
|
|
568
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
569
|
+
const _0x1e96e3 = _0xb0cdc2(_0x325887._0x53b050) + _0x5e910d[_0xb0cdc2(_0x325887._0x28f91b)];
|
|
570
|
+
if (!_0x5e910d[_0xb0cdc2(_0x325887._0x2f33b5)])
|
|
571
|
+
return {
|
|
572
|
+
'channelName': _0x5e910d[_0xb0cdc2(_0x325887._0x28f91b)],
|
|
573
|
+
'channelTarget': _0x1e96e3,
|
|
574
|
+
'kind': 'channel',
|
|
575
|
+
'target': _0x1e96e3
|
|
576
|
+
};
|
|
577
|
+
return {
|
|
578
|
+
'channelName': _0x5e910d[_0xb0cdc2(0x14d)],
|
|
579
|
+
'channelTarget': _0x1e96e3,
|
|
580
|
+
'kind': _0xb0cdc2(_0x325887._0x565939),
|
|
581
|
+
'target': _0x1e96e3 + ':' + _0x5e910d[_0xb0cdc2(_0x325887._0x238bdd)],
|
|
582
|
+
'threadShortId': _0x5e910d['threadShortId']
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
586
|
+
}
|
|
587
|
+
function asErrorMessage(_0x43395f, _0x3d5a21) {
|
|
588
|
+
const _0x33b1fd = { _0x3932f5: 0xdd }, _0xde7551 = _0x1bf962;
|
|
589
|
+
if (typeof _0x43395f === _0xde7551(0x1e7) && _0x43395f[_0xde7551(_0x33b1fd._0x3932f5)]())
|
|
590
|
+
return _0x43395f;
|
|
591
|
+
return _0x3d5a21;
|
|
592
|
+
}
|
|
593
|
+
function asRecord(_0x5a085e) {
|
|
594
|
+
return typeof _0x5a085e === 'object' && _0x5a085e !== null ? _0x5a085e : {};
|
|
595
|
+
}
|
|
596
|
+
function stableStringify(_0x58fd31) {
|
|
597
|
+
const _0x3e5a4e = {
|
|
598
|
+
_0x518474: 0x18b,
|
|
599
|
+
_0x59f225: 0x197,
|
|
600
|
+
_0x4e1ed6: 0x148,
|
|
601
|
+
_0x382375: 0x15a
|
|
602
|
+
}, _0x48a42d = _0x1bf962;
|
|
603
|
+
if (_0x58fd31 === null || typeof _0x58fd31 !== 'object')
|
|
604
|
+
return JSON[_0x48a42d(_0x3e5a4e._0x518474)](_0x58fd31);
|
|
605
|
+
if (Array[_0x48a42d(_0x3e5a4e._0x59f225)](_0x58fd31))
|
|
606
|
+
return '[' + _0x58fd31['map'](_0x9d82bb => stableStringify(_0x9d82bb))[_0x48a42d(_0x3e5a4e._0x4e1ed6)](',') + ']';
|
|
607
|
+
const _0x4783a8 = Object['entries'](_0x58fd31)[_0x48a42d(0xcc)](([, _0x31c1d4]) => _0x31c1d4 !== void 0x0)[_0x48a42d(_0x3e5a4e._0x382375)](([_0x4bc661], [_0x288f50]) => _0x4bc661[_0x48a42d(0x1ce)](_0x288f50))[_0x48a42d(0x100)](([_0x4ed8c4, _0x3867d4]) => JSON[_0x48a42d(0x18b)](_0x4ed8c4) + ':' + stableStringify(_0x3867d4));
|
|
608
|
+
return '{' + _0x4783a8[_0x48a42d(0x148)](',') + '}';
|
|
609
|
+
}
|
|
610
|
+
function createHeaders(_0x90f9d) {
|
|
611
|
+
const _0x3450ea = _0x1bf962;
|
|
612
|
+
return {
|
|
613
|
+
'Content-Type': _0x3450ea(0x24b),
|
|
614
|
+
'x-daemon-api-key': _0x90f9d
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
function toHttpBaseUrl(_0x416a06) {
|
|
618
|
+
const _0x2429a2 = {
|
|
619
|
+
_0x32666d: 0xd0,
|
|
620
|
+
_0x962988: 0x1d2,
|
|
621
|
+
_0x5be59a: 0x210
|
|
622
|
+
}, _0x183799 = _0x1bf962, _0x7238cc = new URL(_0x416a06);
|
|
623
|
+
if (_0x7238cc[_0x183799(0x1d5)] === _0x183799(0x135))
|
|
624
|
+
_0x7238cc[_0x183799(0x1d5)] = _0x183799(_0x2429a2._0x32666d);
|
|
625
|
+
else
|
|
626
|
+
_0x7238cc[_0x183799(0x1d5)] === _0x183799(_0x2429a2._0x962988) && (_0x7238cc['protocol'] = _0x183799(_0x2429a2._0x5be59a));
|
|
627
|
+
return _0x7238cc['toString']()[_0x183799(0x1cf)](/\/$/, '');
|
|
628
|
+
}
|
|
629
|
+
function isMentionBoundary(_0x3705b7) {
|
|
630
|
+
return !_0x3705b7 || /\s|[([{'",。!?、:;]/['test'](_0x3705b7);
|
|
631
|
+
}
|
|
632
|
+
function isMentionTerminal(_0x42af9d) {
|
|
633
|
+
const _0x46ed1e = _0x1bf962;
|
|
634
|
+
return !_0x42af9d || /\s|[)\]}'",。!?、:;,.!?]/[_0x46ed1e(0x124)](_0x42af9d);
|
|
635
|
+
}
|
|
636
|
+
function buildMatchableEntries(_0x43d4be) {
|
|
637
|
+
const _0x57a619 = {
|
|
638
|
+
_0x45c61d: 0x1a8,
|
|
639
|
+
_0x30a4a9: 0x10f,
|
|
640
|
+
_0x2ed8ce: 0x230,
|
|
641
|
+
_0x495ce8: 0xce,
|
|
642
|
+
_0x53fdab: 0x10f
|
|
643
|
+
}, _0x426c6c = _0x1bf962, _0x36a97b = [];
|
|
644
|
+
for (const _0x45f2ed of [
|
|
645
|
+
..._0x43d4be['agents'],
|
|
646
|
+
..._0x43d4be[_0x426c6c(_0x57a619._0x45c61d)]
|
|
647
|
+
]) {
|
|
648
|
+
_0x36a97b[_0x426c6c(_0x57a619._0x30a4a9)]({
|
|
649
|
+
'matchName': _0x45f2ed[_0x426c6c(_0x57a619._0x2ed8ce)],
|
|
650
|
+
'matchNameLower': _0x45f2ed[_0x426c6c(0x230)][_0x426c6c(_0x57a619._0x495ce8)](),
|
|
651
|
+
'participantId': _0x45f2ed['id']
|
|
652
|
+
}), _0x45f2ed['id'] !== _0x45f2ed[_0x426c6c(0x230)] && _0x36a97b[_0x426c6c(_0x57a619._0x53fdab)]({
|
|
653
|
+
'matchName': _0x45f2ed['id'],
|
|
654
|
+
'matchNameLower': _0x45f2ed['id']['toLocaleLowerCase'](),
|
|
655
|
+
'participantId': _0x45f2ed['id']
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
return _0x36a97b;
|
|
659
|
+
}
|
|
660
|
+
function extractMentionedParticipantIds(_0x3bd0d9, _0x2cf5d) {
|
|
661
|
+
const _0xfbc42e = {
|
|
662
|
+
_0xf4249c: 0x1da,
|
|
663
|
+
_0x5aab39: 0x120,
|
|
664
|
+
_0x57cef7: 0x170,
|
|
665
|
+
_0x1cbcfb: 0x1b8,
|
|
666
|
+
_0x48728b: 0x207,
|
|
667
|
+
_0x5b0afa: 0x1f4
|
|
668
|
+
}, _0x3322e1 = {
|
|
669
|
+
_0x5a876b: 0x1a0,
|
|
670
|
+
_0x2533d5: 0x234,
|
|
671
|
+
_0x49b9ee: 0x1d3
|
|
672
|
+
}, _0x4c55f6 = _0x1bf962, _0x3bf9ed = buildMatchableEntries(_0x2cf5d)[_0x4c55f6(0x15a)]((_0xe21bf, _0x41dc5a) => _0x41dc5a['matchName'][_0x4c55f6(0x1da)] - _0xe21bf[_0x4c55f6(0x1d3)]['length']), _0x3c7c69 = [], _0x2b886b = new Set();
|
|
673
|
+
for (let _0x5960ca = 0x0; _0x5960ca < _0x3bd0d9[_0x4c55f6(_0xfbc42e._0xf4249c)]; _0x5960ca += 0x1) {
|
|
674
|
+
if (_0x3bd0d9[_0x5960ca] !== '@' || !isMentionBoundary(_0x3bd0d9[_0x5960ca - 0x1]))
|
|
675
|
+
continue;
|
|
676
|
+
const _0x137174 = _0x3bd0d9[_0x4c55f6(_0xfbc42e._0x5aab39)](_0x5960ca + 0x1), _0x281ad6 = _0x137174[_0x4c55f6(0xce)](), _0x249bbf = _0x3bf9ed[_0x4c55f6(_0xfbc42e._0x57cef7)](_0x3324fe => {
|
|
677
|
+
const _0x4939b6 = _0x4c55f6;
|
|
678
|
+
if (!_0x281ad6[_0x4939b6(_0x3322e1._0x5a876b)](_0x3324fe[_0x4939b6(_0x3322e1._0x2533d5)]))
|
|
679
|
+
return ![];
|
|
680
|
+
return isMentionTerminal(_0x137174[_0x3324fe[_0x4939b6(_0x3322e1._0x49b9ee)]['length']]);
|
|
681
|
+
});
|
|
682
|
+
if (!_0x249bbf || _0x2b886b[_0x4c55f6(_0xfbc42e._0x1cbcfb)](_0x249bbf[_0x4c55f6(_0xfbc42e._0x48728b)]))
|
|
683
|
+
continue;
|
|
684
|
+
_0x2b886b[_0x4c55f6(_0xfbc42e._0x5b0afa)](_0x249bbf[_0x4c55f6(_0xfbc42e._0x48728b)]), _0x3c7c69[_0x4c55f6(0x10f)](_0x249bbf[_0x4c55f6(_0xfbc42e._0x48728b)]), _0x5960ca += _0x249bbf[_0x4c55f6(0x1d3)][_0x4c55f6(0x1da)];
|
|
685
|
+
}
|
|
686
|
+
return _0x3c7c69;
|
|
687
|
+
}
|
|
688
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
689
|
+
function _0x3fbb(_0x26e684, _0x5030a9) {
|
|
690
|
+
_0x26e684 = _0x26e684 - 0xbf;
|
|
691
|
+
const _0x19b383 = _0x19b3();
|
|
692
|
+
let _0x3fbb8b = _0x19b383[_0x26e684];
|
|
693
|
+
if (_0x3fbb['HbFSVU'] === undefined) {
|
|
694
|
+
var _0xcce733 = function (_0x1bcccd) {
|
|
695
|
+
const _0x488d63 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
696
|
+
let _0x1ca7bc = '', _0x1e3ab2 = '';
|
|
697
|
+
for (let _0x2db4e0 = 0x0, _0x191e5b, _0x114aea, _0x4e2ba1 = 0x0; _0x114aea = _0x1bcccd['charAt'](_0x4e2ba1++); ~_0x114aea && (_0x191e5b = _0x2db4e0 % 0x4 ? _0x191e5b * 0x40 + _0x114aea : _0x114aea, _0x2db4e0++ % 0x4) ? _0x1ca7bc += String['fromCharCode'](0xff & _0x191e5b >> (-0x2 * _0x2db4e0 & 0x6)) : 0x0) {
|
|
698
|
+
_0x114aea = _0x488d63['indexOf'](_0x114aea);
|
|
699
|
+
}
|
|
700
|
+
for (let _0x230282 = 0x0, _0x101a1d = _0x1ca7bc['length']; _0x230282 < _0x101a1d; _0x230282++) {
|
|
701
|
+
_0x1e3ab2 += '%' + ('00' + _0x1ca7bc['charCodeAt'](_0x230282)['toString'](0x10))['slice'](-0x2);
|
|
702
|
+
}
|
|
703
|
+
return decodeURIComponent(_0x1e3ab2);
|
|
704
|
+
};
|
|
705
|
+
_0x3fbb['IRBoLt'] = _0xcce733, _0x3fbb['xnyfgj'] = {}, _0x3fbb['HbFSVU'] = !![];
|
|
706
|
+
}
|
|
707
|
+
const _0xf72c8a = _0x19b383[0x0], _0x324f4f = _0x26e684 + _0xf72c8a, _0x407199 = _0x3fbb['xnyfgj'][_0x324f4f];
|
|
708
|
+
return !_0x407199 ? (_0x3fbb8b = _0x3fbb['IRBoLt'](_0x3fbb8b), _0x3fbb['xnyfgj'][_0x324f4f] = _0x3fbb8b) : _0x3fbb8b = _0x407199, _0x3fbb8b;
|
|
709
|
+
}
|
|
710
|
+
function anySignal(..._0x591d82) {
|
|
711
|
+
const _0x3fb346 = { _0x257419: 0x116 }, _0x40499c = _0x1bf962, _0x4c06ce = new AbortController();
|
|
712
|
+
for (const _0x2044a5 of _0x591d82) {
|
|
713
|
+
if (_0x2044a5[_0x40499c(0x20b)])
|
|
714
|
+
return _0x4c06ce[_0x40499c(_0x3fb346._0x257419)](_0x2044a5[_0x40499c(0x196)]), _0x4c06ce[_0x40499c(0x19e)];
|
|
715
|
+
_0x2044a5[_0x40499c(0x139)](_0x40499c(_0x3fb346._0x257419), () => _0x4c06ce[_0x40499c(0x116)](_0x2044a5[_0x40499c(0x196)]), {
|
|
716
|
+
'once': !![],
|
|
717
|
+
'signal': _0x4c06ce['signal']
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
return _0x4c06ce[_0x40499c(0x19e)];
|
|
721
|
+
}
|
|
722
|
+
function createInternalAgentClient(_0x44dccf) {
|
|
723
|
+
const _0x42f7bf = {
|
|
724
|
+
_0x31a65e: 0x130,
|
|
725
|
+
_0x72d532: 0xf9,
|
|
726
|
+
_0x339ac8: 0xdd,
|
|
727
|
+
_0x4fa33b: 0x16a
|
|
728
|
+
}, _0x26ac23 = {
|
|
729
|
+
_0x4f43c6: 0x23e,
|
|
730
|
+
_0x347ddf: 0x173,
|
|
731
|
+
_0xd3f0fd: 0x167,
|
|
732
|
+
_0x37261e: 0x209,
|
|
733
|
+
_0x528318: 0x191,
|
|
734
|
+
_0x4bb46f: 0xf1,
|
|
735
|
+
_0x340ab1: 0x1c5,
|
|
736
|
+
_0x4ba328: 0x1e7,
|
|
737
|
+
_0x151897: 0xfe,
|
|
738
|
+
_0x4d390a: 0x1ec,
|
|
739
|
+
_0x520d40: 0x149,
|
|
740
|
+
_0x235da3: 0x1ec,
|
|
741
|
+
_0x12aa21: 0x145,
|
|
742
|
+
_0x36b191: 0x1fb,
|
|
743
|
+
_0x7eb4f2: 0x11b,
|
|
744
|
+
_0x5eeb9e: 0x236,
|
|
745
|
+
_0x382398: 0x15b,
|
|
746
|
+
_0x392641: 0x1da,
|
|
747
|
+
_0x4d84f7: 0xfc,
|
|
748
|
+
_0x208101: 0x1c2,
|
|
749
|
+
_0x56d743: 0xe4,
|
|
750
|
+
_0x4d125e: 0x112,
|
|
751
|
+
_0x30b317: 0x121,
|
|
752
|
+
_0x37c689: 0xcc
|
|
753
|
+
}, _0x5197d5 = {
|
|
754
|
+
_0x2ea6f0: 0x1ab,
|
|
755
|
+
_0x4905b0: 0x244
|
|
756
|
+
}, _0x1d337a = {
|
|
757
|
+
_0x14e19e: 0x1e3,
|
|
758
|
+
_0x2cdf93: 0xf0,
|
|
759
|
+
_0x14db2e: 0x167,
|
|
760
|
+
_0x44a05e: 0x19e,
|
|
761
|
+
_0x3925eb: 0xc9,
|
|
762
|
+
_0x4ce0ff: 0x1e0
|
|
763
|
+
}, _0xb16b97 = {
|
|
764
|
+
_0x207e63: 0x241,
|
|
765
|
+
_0x26ac72: 0x1f6,
|
|
766
|
+
_0x439233: 0x205,
|
|
767
|
+
_0x5f3900: 0x102,
|
|
768
|
+
_0x2179fa: 0x136,
|
|
769
|
+
_0x299a7c: 0x1e9
|
|
770
|
+
}, _0x56466f = {
|
|
771
|
+
_0x5bbe9d: 0x1f6,
|
|
772
|
+
_0x4ca894: 0x18b,
|
|
773
|
+
_0x38d5be: 0x136
|
|
774
|
+
}, _0x536dd3 = { _0x9fa46c: 0x19a }, _0x484538 = {
|
|
775
|
+
_0x5adf45: 0x1a4,
|
|
776
|
+
_0x246d8f: 0x18b,
|
|
777
|
+
_0x3e4a84: 0x136
|
|
778
|
+
}, _0x446692 = {
|
|
779
|
+
_0x5abe4f: 0x23e,
|
|
780
|
+
_0x333570: 0x13c,
|
|
781
|
+
_0x1039d5: 0xc9,
|
|
782
|
+
_0x2a7374: 0x1f6,
|
|
783
|
+
_0x480495: 0x227
|
|
784
|
+
}, _0xec4537 = {
|
|
785
|
+
_0xd294a6: 0xc9,
|
|
786
|
+
_0xc365f: 0x136
|
|
787
|
+
}, _0x283a68 = {
|
|
788
|
+
_0x165c84: 0x18b,
|
|
789
|
+
_0x2e8811: 0x11c
|
|
790
|
+
}, _0xb4c1b9 = {
|
|
791
|
+
_0x46a919: 0x142,
|
|
792
|
+
_0x20a4c4: 0x18b,
|
|
793
|
+
_0x148656: 0x136
|
|
794
|
+
}, _0x59e08d = { _0x2846b0: 0x17e }, _0x551915 = {
|
|
795
|
+
_0x3fc97c: 0x20f,
|
|
796
|
+
_0x5717e6: 0x1f6,
|
|
797
|
+
_0x25aa35: 0x1da,
|
|
798
|
+
_0xc2aaca: 0x241,
|
|
799
|
+
_0x1fcb76: 0x1dd,
|
|
800
|
+
_0x4196cd: 0x17e
|
|
801
|
+
}, _0x381726 = {
|
|
802
|
+
_0x53310e: 0x21e,
|
|
803
|
+
_0x2a61f4: 0x241,
|
|
804
|
+
_0x2017fd: 0x23e,
|
|
805
|
+
_0x5ebb44: 0x244,
|
|
806
|
+
_0x29e93f: 0x1ab,
|
|
807
|
+
_0x1b459c: 0x1ab,
|
|
808
|
+
_0x1bf176: 0xd6,
|
|
809
|
+
_0x177d7f: 0x213,
|
|
810
|
+
_0x35c5dc: 0x111,
|
|
811
|
+
_0x50c39a: 0x111
|
|
812
|
+
}, _0x3eac0a = { _0x40cae9: 0x207 }, _0x112c72 = {
|
|
813
|
+
_0x3f019b: 0x24a,
|
|
814
|
+
_0x18dee0: 0x213,
|
|
815
|
+
_0x2438f3: 0xfe,
|
|
816
|
+
_0x59dc70: 0x1de,
|
|
817
|
+
_0x103a51: 0x241,
|
|
818
|
+
_0x3f8e45: 0x1de
|
|
819
|
+
}, _0x2d1d6b = {
|
|
820
|
+
_0x46c518: 0x1ec,
|
|
821
|
+
_0x1c4ece: 0xfe,
|
|
822
|
+
_0x304329: 0x213,
|
|
823
|
+
_0x382cdc: 0x241,
|
|
824
|
+
_0x2d8a5d: 0x120
|
|
825
|
+
}, _0x31bb53 = { _0x196403: 0xf2 }, _0x2ee169 = {
|
|
826
|
+
_0xddcc7f: 0xd6,
|
|
827
|
+
_0x339fc2: 0x18b,
|
|
828
|
+
_0x4fed3e: 0x136,
|
|
829
|
+
_0x29c7ba: 0x17e,
|
|
830
|
+
_0xf80f5f: 0x213,
|
|
831
|
+
_0x1e9a65: 0x125
|
|
832
|
+
}, _0x497d11 = {
|
|
833
|
+
_0x2364db: 0x215,
|
|
834
|
+
_0x1020e1: 0x18b,
|
|
835
|
+
_0x412edb: 0x24b,
|
|
836
|
+
_0x3bbe1f: 0x136,
|
|
837
|
+
_0x1ce408: 0xc9
|
|
838
|
+
}, _0x3889cf = {
|
|
839
|
+
_0x3486a3: 0xcf,
|
|
840
|
+
_0x578086: 0x18b,
|
|
841
|
+
_0x350a1f: 0x219
|
|
842
|
+
}, _0x4bcc63 = {
|
|
843
|
+
_0x2ca1dd: 0x19e,
|
|
844
|
+
_0x4ec5d5: 0x212,
|
|
845
|
+
_0x32c084: 0x201
|
|
846
|
+
}, _0x5eecf3 = {
|
|
847
|
+
_0x5b7f87: 0x19e,
|
|
848
|
+
_0x2e02c9: 0x1bd,
|
|
849
|
+
_0xc90234: 0x212
|
|
850
|
+
}, _0x8ec77 = {
|
|
851
|
+
_0x5acf22: 0x221,
|
|
852
|
+
_0x328a9d: 0x221,
|
|
853
|
+
_0x2223e6: 0xdd,
|
|
854
|
+
_0x772e26: 0x10d,
|
|
855
|
+
_0x4ecb34: 0xc0,
|
|
856
|
+
_0x59ea5b: 0xee,
|
|
857
|
+
_0x531046: 0x1c2
|
|
858
|
+
}, _0x1f9cbb = {
|
|
859
|
+
_0x3204c5: 0x1e0,
|
|
860
|
+
_0x55bc8a: 0x173,
|
|
861
|
+
_0xbc0105: 0x179
|
|
862
|
+
}, _0xbe2db = {
|
|
863
|
+
_0x1a236d: 0x188,
|
|
864
|
+
_0x10149c: 0x1ee,
|
|
865
|
+
_0x5ecfe7: 0x235,
|
|
866
|
+
_0x142c22: 0xc9,
|
|
867
|
+
_0xd2b329: 0x1d7,
|
|
868
|
+
_0x18ef2a: 0x21c
|
|
869
|
+
}, _0x39a66d = _0x1bf962, _0x32b2c2 = _0x44dccf[_0x39a66d(0xeb)] ?? fetch, _0x252e4f = _0x44dccf[_0x39a66d(0x119)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x48e06e = typeof _0x44dccf[_0x39a66d(_0x42f7bf._0x31a65e)] === _0x39a66d(0x186) && _0x44dccf[_0x39a66d(0x130)] > 0x0 ? _0x44dccf[_0x39a66d(0x130)] : 0x0, _0xe3bd7b = _0x44dccf[_0x39a66d(_0x42f7bf._0x72d532)]?.[_0x39a66d(_0x42f7bf._0x339ac8)]() || void 0x0, _0xb89eae = _0x44dccf[_0x39a66d(0x15d)]?.[_0x39a66d(0xdd)]() || void 0x0, _0x28e560 = _0x44dccf[_0x39a66d(0x1dc)] === !![], _0x155fb9 = _0x44dccf[_0x39a66d(_0x42f7bf._0x4fa33b)]?.[_0x39a66d(0xdd)]() || void 0x0, _0x594eb8 = _0x44dccf[_0x39a66d(0x108)]?.['trim']() || void 0x0, _0x543907 = createHeaders(_0x44dccf['daemonApiKey']), _0x475c24 = toHttpBaseUrl(_0x44dccf[_0x39a66d(0x195)]);
|
|
870
|
+
let _0x26a8ae = null;
|
|
871
|
+
const _0x159a1a = new Map();
|
|
872
|
+
let _0x1adced = _0x48e06e, _0x53f57e = _0x48e06e;
|
|
873
|
+
function _0x3faaef(_0x365386) {
|
|
874
|
+
const _0x52c173 = _0x39a66d, _0x97ab55 = _0x365386[_0x52c173(0x235)][_0x52c173(0x12b)]['get'](_0x52c173(0x1f1)) ?? _0x52c173(_0xbe2db._0x1a236d), _0x36407b = _0x365386[_0x52c173(_0xbe2db._0x10149c)]['trim']()[_0x52c173(0x1cf)](/\s+/g, '\x20')[_0x52c173(0x120)](0x0, 0x78) || _0x52c173(0xd5);
|
|
875
|
+
return _0x52c173(0x22c) + _0x365386['requestUrl'] + _0x52c173(0x1cd) + _0x365386[_0x52c173(_0xbe2db._0x5ecfe7)][_0x52c173(_0xbe2db._0x142c22)] + _0x52c173(_0xbe2db._0xd2b329) + _0x97ab55 + _0x52c173(_0xbe2db._0x18ef2a) + _0x36407b + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
876
|
+
}
|
|
877
|
+
async function _0x10b13b(_0x4c7b54, _0x206673) {
|
|
878
|
+
const _0x2d21cd = _0x39a66d, _0x5bb2b2 = Buffer['from'](await _0x206673[_0x2d21cd(_0x1f9cbb._0x3204c5)]())[_0x2d21cd(_0x1f9cbb._0x55bc8a)](_0x2d21cd(_0x1f9cbb._0xbc0105));
|
|
879
|
+
if (!_0x5bb2b2[_0x2d21cd(0xdd)]())
|
|
880
|
+
return {};
|
|
881
|
+
try {
|
|
882
|
+
return JSON[_0x2d21cd(0x154)](_0x5bb2b2);
|
|
883
|
+
} catch {
|
|
884
|
+
throw new Error(_0x3faaef({
|
|
885
|
+
'bodyText': _0x5bb2b2,
|
|
886
|
+
'requestUrl': _0x4c7b54,
|
|
887
|
+
'response': _0x206673
|
|
888
|
+
}));
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
function _0x2b2f55(_0x440861, _0x4961a0) {
|
|
892
|
+
const _0x6db9f1 = _0x39a66d, _0x22fbb6 = typeof _0x4961a0[_0x6db9f1(_0x8ec77._0x5acf22)] === 'string' ? _0x4961a0[_0x6db9f1(_0x8ec77._0x328a9d)][_0x6db9f1(_0x8ec77._0x2223e6)]() : '';
|
|
893
|
+
if (_0x22fbb6)
|
|
894
|
+
return _0x22fbb6;
|
|
895
|
+
const _0x3cb5a3 = Date[_0x6db9f1(_0x8ec77._0x772e26)]();
|
|
896
|
+
for (const [_0x330cf4, _0x5a9590] of _0x159a1a) {
|
|
897
|
+
_0x5a9590[_0x6db9f1(0x14e)] <= _0x3cb5a3 && _0x159a1a[_0x6db9f1(0x18a)](_0x330cf4);
|
|
898
|
+
}
|
|
899
|
+
const _0x29fe9c = {
|
|
900
|
+
..._0x4961a0,
|
|
901
|
+
'idempotency_key': void 0x0
|
|
902
|
+
}, _0x4a400a = createHash(_0x6db9f1(_0x8ec77._0x4ecb34))['update'](_0x440861 + ':' + stableStringify(_0x29fe9c))[_0x6db9f1(0x1aa)](_0x6db9f1(_0x8ec77._0x59ea5b)), _0x1aa18e = _0x440861 + ':' + _0x4a400a, _0x489d5b = _0x159a1a[_0x6db9f1(_0x8ec77._0x531046)](_0x1aa18e);
|
|
903
|
+
if (_0x489d5b)
|
|
904
|
+
return _0x489d5b['value'];
|
|
905
|
+
const _0x1b2dec = _0x6db9f1(0x1b1) + _0x440861 + ':' + randomUUID();
|
|
906
|
+
return _0x159a1a[_0x6db9f1(0x23e)](_0x1aa18e, {
|
|
907
|
+
'expiresAt': _0x3cb5a3 + 0x5 * 0x3c * 0x3e8,
|
|
908
|
+
'value': _0x1b2dec
|
|
909
|
+
}), _0x1b2dec;
|
|
910
|
+
}
|
|
911
|
+
async function _0x558446(_0x5dec4f, _0x50c71a) {
|
|
912
|
+
const _0x9466ac = _0x39a66d, _0x2710ad = new AbortController(), _0x5088b1 = setTimeout(() => _0x2710ad[_0x9466ac(0x116)](), _0x252e4f), _0x4a1ea4 = _0x50c71a?.[_0x9466ac(_0x5eecf3._0x5b7f87)] ? anySignal(_0x50c71a['signal'], _0x2710ad[_0x9466ac(0x19e)]) : _0x2710ad['signal'], _0x33ce7c = '' + _0x475c24 + _0x5dec4f;
|
|
913
|
+
try {
|
|
914
|
+
const _0x253fb8 = await _0x32b2c2(_0x33ce7c, {
|
|
915
|
+
..._0x50c71a,
|
|
916
|
+
'signal': _0x4a1ea4
|
|
917
|
+
}), _0x446718 = await _0x10b13b(_0x33ce7c, _0x253fb8);
|
|
918
|
+
if (!_0x253fb8['ok'] || _0x446718[_0x9466ac(_0x5eecf3._0x2e02c9)] === ![])
|
|
919
|
+
throw new Error(asErrorMessage(_0x446718[_0x9466ac(_0x5eecf3._0xc90234)], 'HTTP\x20' + _0x253fb8['status']));
|
|
920
|
+
return _0x446718;
|
|
921
|
+
} finally {
|
|
922
|
+
clearTimeout(_0x5088b1);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
async function _0x40ff10(_0x43059e, _0x48114e) {
|
|
926
|
+
const _0x4d5cb6 = _0x39a66d, _0x48df56 = new AbortController(), _0x47d2b7 = setTimeout(() => _0x48df56[_0x4d5cb6(0x116)](), _0x252e4f), _0x2285b5 = _0x48114e?.['signal'] ? anySignal(_0x48114e[_0x4d5cb6(_0x4bcc63._0x2ca1dd)], _0x48df56['signal']) : _0x48df56[_0x4d5cb6(0x19e)], _0x254554 = '' + _0x475c24 + _0x43059e;
|
|
927
|
+
try {
|
|
928
|
+
const _0x41a04a = await _0x32b2c2(_0x254554, {
|
|
929
|
+
..._0x48114e,
|
|
930
|
+
'signal': _0x2285b5
|
|
931
|
+
}), _0x3ff6f7 = await _0x10b13b(_0x254554, _0x41a04a);
|
|
932
|
+
if (!_0x41a04a['ok'])
|
|
933
|
+
throw new Error(asErrorMessage(_0x3ff6f7[_0x4d5cb6(_0x4bcc63._0x4ec5d5)], _0x4d5cb6(_0x4bcc63._0x32c084) + _0x41a04a[_0x4d5cb6(0xc9)]));
|
|
934
|
+
return _0x3ff6f7;
|
|
935
|
+
} finally {
|
|
936
|
+
clearTimeout(_0x47d2b7);
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
async function _0x70aa9f(_0x53167b) {
|
|
940
|
+
const _0x1fb772 = _0x39a66d;
|
|
941
|
+
if (!_0xb89eae || _0x53167b <= _0x53f57e)
|
|
942
|
+
return;
|
|
943
|
+
await _0x558446(_0x1fb772(0x1be) + encodeURIComponent(_0xb89eae) + _0x1fb772(_0x3889cf._0x3486a3), {
|
|
944
|
+
'body': JSON[_0x1fb772(_0x3889cf._0x578086)]({ 'lastSeenSeq': _0x53167b }),
|
|
945
|
+
'headers': _0x543907,
|
|
946
|
+
'method': _0x1fb772(_0x3889cf._0x350a1f)
|
|
947
|
+
}), _0x53f57e = _0x53167b;
|
|
948
|
+
}
|
|
949
|
+
async function _0x49db2d(_0x9b7759) {
|
|
950
|
+
const _0x9f0daf = _0x39a66d;
|
|
951
|
+
if (!_0xe3bd7b || !_0x155fb9 || _0x9b7759 <= _0x53f57e)
|
|
952
|
+
return;
|
|
953
|
+
const _0x143aa3 = await _0x32b2c2(_0xe3bd7b + _0x9f0daf(_0x497d11._0x2364db), {
|
|
954
|
+
'body': JSON[_0x9f0daf(_0x497d11._0x1020e1)]({
|
|
955
|
+
'last_seen_seq': _0x9b7759,
|
|
956
|
+
'worker_session_id': _0x155fb9
|
|
957
|
+
}),
|
|
958
|
+
'headers': { 'Content-Type': _0x9f0daf(_0x497d11._0x412edb) },
|
|
959
|
+
'method': _0x9f0daf(_0x497d11._0x3bbe1f)
|
|
960
|
+
});
|
|
961
|
+
if (!_0x143aa3['ok'])
|
|
962
|
+
throw new Error(_0x9f0daf(0x201) + _0x143aa3[_0x9f0daf(_0x497d11._0x1ce408)]);
|
|
963
|
+
_0x53f57e = _0x9b7759;
|
|
964
|
+
}
|
|
965
|
+
async function _0xae6c49(_0x1081a2) {
|
|
966
|
+
const _0xea78be = _0x39a66d, _0x467f0 = parseTarget(_0x1081a2), _0x1bd256 = await _0x558446(_0xea78be(0x1f6) + _0x44dccf[_0xea78be(_0x2ee169._0xddcc7f)] + '/resolve-channel', {
|
|
967
|
+
'body': JSON[_0xea78be(_0x2ee169._0x339fc2)]({ 'target': _0x467f0[_0xea78be(0x1ca)] }),
|
|
968
|
+
'headers': _0x543907,
|
|
969
|
+
'method': _0xea78be(_0x2ee169._0x4fed3e)
|
|
970
|
+
});
|
|
971
|
+
return {
|
|
972
|
+
'channelId': _0x1bd256[_0xea78be(_0x2ee169._0x29c7ba)]?.[_0xea78be(0x1c5)] ?? '',
|
|
973
|
+
'target': _0x467f0[_0xea78be(_0x2ee169._0xf80f5f)],
|
|
974
|
+
'task': _0x1bd256[_0xea78be(0x17e)]?.[_0xea78be(_0x2ee169._0x1e9a65)],
|
|
975
|
+
'threadId': _0x1bd256[_0xea78be(0x17e)]?.[_0xea78be(0x241)],
|
|
976
|
+
'threadNumber': _0x1bd256['data']?.['threadNumber']
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
async function _0x3d0214(_0x2ac276 = {}) {
|
|
980
|
+
const _0x5e36fd = {
|
|
981
|
+
_0x24c713: 0xd6,
|
|
982
|
+
_0x38d701: 0x1fc,
|
|
983
|
+
_0x14ca34: 0x100,
|
|
984
|
+
_0x49d5bd: 0x22d,
|
|
985
|
+
_0xd50715: 0x18c
|
|
986
|
+
}, _0x3b07eb = _0x39a66d;
|
|
987
|
+
if (!_0x2ac276[_0x3b07eb(_0x31bb53._0x196403)] && _0x26a8ae)
|
|
988
|
+
return _0x26a8ae;
|
|
989
|
+
return _0x26a8ae = (async () => {
|
|
990
|
+
const _0x1a020d = _0x3b07eb, _0x412046 = await _0x558446(_0x1a020d(0x1f6) + _0x44dccf[_0x1a020d(_0x5e36fd._0x24c713)] + _0x1a020d(_0x5e36fd._0x38d701), {
|
|
991
|
+
'headers': _0x543907,
|
|
992
|
+
'method': 'GET'
|
|
993
|
+
}), _0x3bde47 = _0x412046['data']?.[_0x1a020d(0x223)] ?? [], _0x382d7f = _0x3bde47[_0x1a020d(0xcc)](_0x1bb914 => _0x1bb914[_0x1a020d(0x202)]?.[_0x1a020d(0xe8)] === _0x1a020d(0x19b))[_0x1a020d(_0x5e36fd._0x14ca34)](_0x18e6d8 => ({
|
|
994
|
+
'id': _0x34f1c8(_0x18e6d8),
|
|
995
|
+
'name': _0x3fa775(_0x18e6d8)
|
|
996
|
+
}))['filter'](_0x277cdb => _0x277cdb['id']), _0x3e586d = _0x3bde47[_0x1a020d(0xcc)](_0x261cd9 => _0x261cd9[_0x1a020d(0x202)]?.[_0x1a020d(0xe8)] !== 'agent')['map'](_0x1e3c8f => ({
|
|
997
|
+
'id': _0x34f1c8(_0x1e3c8f),
|
|
998
|
+
'name': _0x3fa775(_0x1e3c8f)
|
|
999
|
+
}))[_0x1a020d(0xcc)](_0x178fc7 => _0x178fc7['id']), _0x170b97 = _0x412046[_0x1a020d(0x17e)]?.[_0x1a020d(0x18c)]['id'] ?? '';
|
|
1000
|
+
return {
|
|
1001
|
+
'agents': _0x382d7f,
|
|
1002
|
+
'channels': _0x412046[_0x1a020d(0x17e)]?.[_0x1a020d(_0x5e36fd._0x49d5bd)] ?? [],
|
|
1003
|
+
'humans': _0x3e586d,
|
|
1004
|
+
'serverId': _0x170b97,
|
|
1005
|
+
'serverName': _0x412046['data']?.[_0x1a020d(_0x5e36fd._0xd50715)][_0x1a020d(0x230)] ?? _0x170b97
|
|
1006
|
+
};
|
|
1007
|
+
})()[_0x3b07eb(0x1ef)](_0x2c50a6 => {
|
|
1008
|
+
_0x26a8ae = null;
|
|
1009
|
+
throw _0x2c50a6;
|
|
1010
|
+
}), _0x26a8ae;
|
|
1011
|
+
}
|
|
1012
|
+
function _0x11b458(_0x241920, _0x376075) {
|
|
1013
|
+
const _0x3d4ca6 = _0x39a66d;
|
|
1014
|
+
return _0x376075[_0x3d4ca6(0xf4)][_0x3d4ca6(0x191)](_0x214e1c => _0x214e1c['id'] === _0x241920 || _0x214e1c['name'] === _0x241920) ? _0x3d4ca6(0x19b) : 'human';
|
|
1015
|
+
}
|
|
1016
|
+
function _0x1f0f41(_0x65e3cf) {
|
|
1017
|
+
const _0x2ca231 = _0x39a66d;
|
|
1018
|
+
if (_0x65e3cf['threadNumber'] != null)
|
|
1019
|
+
return _0x65e3cf['channelTarget'] + ':t' + _0x65e3cf[_0x2ca231(_0x2d1d6b._0x46c518)];
|
|
1020
|
+
if (_0x65e3cf[_0x2ca231(_0x2d1d6b._0x1c4ece)])
|
|
1021
|
+
return _0x65e3cf['channelTarget'] + ':' + _0x65e3cf[_0x2ca231(0xfe)];
|
|
1022
|
+
if (_0x65e3cf[_0x2ca231(0x241)])
|
|
1023
|
+
return _0x65e3cf[_0x2ca231(_0x2d1d6b._0x304329)] + ':' + _0x65e3cf[_0x2ca231(_0x2d1d6b._0x382cdc)][_0x2ca231(_0x2d1d6b._0x2d8a5d)](0x0, 0x8);
|
|
1024
|
+
return _0x65e3cf[_0x2ca231(0x213)];
|
|
1025
|
+
}
|
|
1026
|
+
function _0xccc5d9(_0x18d5f6, _0x113ecd) {
|
|
1027
|
+
const _0x2e0902 = _0x39a66d;
|
|
1028
|
+
try {
|
|
1029
|
+
const _0x8f5015 = parseTarget(_0x18d5f6);
|
|
1030
|
+
if (_0x8f5015[_0x2e0902(0x11b)] !== _0x2e0902(_0x112c72._0x3f019b) || _0x8f5015['channelTarget'] !== _0x113ecd[_0x2e0902(_0x112c72._0x18dee0)])
|
|
1031
|
+
return ![];
|
|
1032
|
+
if (_0x113ecd['threadNumber'] != null && _0x8f5015[_0x2e0902(0x1de)] === 't' + _0x113ecd[_0x2e0902(0x1ec)])
|
|
1033
|
+
return !![];
|
|
1034
|
+
if (_0x113ecd[_0x2e0902(_0x112c72._0x2438f3)])
|
|
1035
|
+
return _0x8f5015[_0x2e0902(_0x112c72._0x59dc70)] === _0x113ecd[_0x2e0902(0xfe)] || _0x113ecd[_0x2e0902(0xfe)]['startsWith'](_0x8f5015['threadShortId']);
|
|
1036
|
+
if (_0x113ecd[_0x2e0902(_0x112c72._0x103a51)])
|
|
1037
|
+
return _0x8f5015[_0x2e0902(_0x112c72._0x3f8e45)] === _0x113ecd[_0x2e0902(0x241)] || _0x113ecd[_0x2e0902(0x241)]['startsWith'](_0x8f5015[_0x2e0902(_0x112c72._0x3f8e45)]);
|
|
1038
|
+
return ![];
|
|
1039
|
+
} catch {
|
|
1040
|
+
return ![];
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
function _0x34f1c8(_0xe8c6f9) {
|
|
1044
|
+
const _0x4312ac = _0x39a66d;
|
|
1045
|
+
return _0xe8c6f9[_0x4312ac(0xed)]?.[_0x4312ac(_0x3eac0a._0x40cae9)] ?? _0xe8c6f9[_0x4312ac(0x202)]?.['id'] ?? _0xe8c6f9['participantId'] ?? '';
|
|
1046
|
+
}
|
|
1047
|
+
function _0x3fa775(_0x5d65cb) {
|
|
1048
|
+
const _0x4ae90b = _0x39a66d;
|
|
1049
|
+
return _0x5d65cb['participant']?.[_0x4ae90b(0x230)] ?? _0x34f1c8(_0x5d65cb);
|
|
1050
|
+
}
|
|
1051
|
+
async function _0x11b374(_0x3c1026) {
|
|
1052
|
+
const _0x3ab8ea = _0x39a66d, _0x9b29f8 = Math['min'](_0x3c1026[_0x3ab8ea(_0x381726._0x53310e)] ?? 0x32, 0x64), _0x2991a7 = await _0x3d0214(), _0x5811cd = new URLSearchParams();
|
|
1053
|
+
_0x5811cd['set'](_0x3ab8ea(_0x381726._0x53310e), String(_0x9b29f8));
|
|
1054
|
+
_0x3c1026['threadId'] ? (_0x5811cd['set'](_0x3ab8ea(_0x381726._0x2a61f4), _0x3c1026[_0x3ab8ea(0x241)]), _0x5811cd[_0x3ab8ea(0x23e)](_0x3ab8ea(0x1c5), _0x3c1026[_0x3ab8ea(0x1c5)])) : _0x5811cd['set'](_0x3ab8ea(0x1c5), _0x3c1026[_0x3ab8ea(0x1c5)]);
|
|
1055
|
+
_0x3c1026['before'] && _0x5811cd[_0x3ab8ea(_0x381726._0x2017fd)]('cursor', String(_0x3c1026[_0x3ab8ea(_0x381726._0x5ebb44)]));
|
|
1056
|
+
_0x3c1026[_0x3ab8ea(0x1ab)] !== void 0x0 && _0x5811cd[_0x3ab8ea(0x23e)](_0x3ab8ea(_0x381726._0x29e93f), String(_0x3c1026[_0x3ab8ea(_0x381726._0x1b459c)]));
|
|
1057
|
+
const _0x283c02 = await _0x558446(_0x3ab8ea(0x1f6) + _0x44dccf[_0x3ab8ea(_0x381726._0x1bf176)] + _0x3ab8ea(0x1d6) + _0x5811cd['toString'](), {
|
|
1058
|
+
'headers': _0x543907,
|
|
1059
|
+
'method': 'GET'
|
|
1060
|
+
}), _0x5a0752 = (_0x283c02[_0x3ab8ea(0x17e)] ?? [])[_0x3ab8ea(0x100)](_0xedb63f => ({
|
|
1061
|
+
'attachments': (_0xedb63f['attachments'] ?? [])[_0x3ab8ea(0x100)](_0x664a66 => ({
|
|
1062
|
+
'filename': _0x664a66[_0x3ab8ea(0x102)] ?? _0x664a66['id'],
|
|
1063
|
+
'id': _0x664a66['id']
|
|
1064
|
+
})),
|
|
1065
|
+
'content': _0xedb63f[_0x3ab8ea(0x1a2)] ?? '',
|
|
1066
|
+
'createdAt': _0xedb63f[_0x3ab8ea(0xe4)],
|
|
1067
|
+
'messageId': _0xedb63f['id'],
|
|
1068
|
+
'senderName': _0xedb63f[_0x3ab8ea(0x112)],
|
|
1069
|
+
'senderType': _0x11b458(_0xedb63f[_0x3ab8ea(0x112)], _0x2991a7),
|
|
1070
|
+
'seq': _0xedb63f[_0x3ab8ea(0x220)] ?? 0x0
|
|
1071
|
+
}));
|
|
1072
|
+
return {
|
|
1073
|
+
'channel': _0x3c1026[_0x3ab8ea(_0x381726._0x177d7f)],
|
|
1074
|
+
'hasMore': _0x283c02[_0x3ab8ea(_0x381726._0x35c5dc)]?.['hasMore'] ?? ![],
|
|
1075
|
+
'messages': _0x5a0752,
|
|
1076
|
+
'nextCursor': _0x283c02[_0x3ab8ea(_0x381726._0x50c39a)]?.['cursor']
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
return {
|
|
1080
|
+
async 'sendMessage'(_0x1a7145) {
|
|
1081
|
+
const _0x6a3b9f = _0x39a66d, _0x1bec54 = await _0xae6c49(_0x1a7145['target']), _0x2d63c1 = _0x1a7145[_0x6a3b9f(_0x551915._0x3fc97c)]['includes']('@') ? extractMentionedParticipantIds(_0x1a7145[_0x6a3b9f(_0x551915._0x3fc97c)], await _0x3d0214()) : [], _0x5d194a = await _0x558446(_0x6a3b9f(_0x551915._0x5717e6) + _0x44dccf[_0x6a3b9f(0xd6)] + '/send', {
|
|
1082
|
+
'body': JSON[_0x6a3b9f(0x18b)]({
|
|
1083
|
+
'attachment_ids': _0x1a7145[_0x6a3b9f(0x132)],
|
|
1084
|
+
'bodyMarkdown': _0x1a7145['content'],
|
|
1085
|
+
'channelId': _0x1bec54['channelId'],
|
|
1086
|
+
..._0x2d63c1[_0x6a3b9f(_0x551915._0x25aa35)] > 0x0 ? { 'mentionedParticipantIds': _0x2d63c1 } : {},
|
|
1087
|
+
'threadId': _0x1bec54[_0x6a3b9f(_0x551915._0xc2aaca)],
|
|
1088
|
+
..._0x1a7145['visibility'] ? { 'visibility': _0x1a7145[_0x6a3b9f(_0x551915._0x1fcb76)] } : {}
|
|
1089
|
+
}),
|
|
1090
|
+
'headers': _0x543907,
|
|
1091
|
+
'method': _0x6a3b9f(0x136)
|
|
1092
|
+
});
|
|
1093
|
+
return { 'messageId': _0x5d194a[_0x6a3b9f(_0x551915._0x4196cd)]?.['id'] ?? '' };
|
|
1094
|
+
},
|
|
1095
|
+
async 'listSchedules'() {
|
|
1096
|
+
const _0x59e454 = _0x39a66d, _0x13839a = await _0x558446(_0x59e454(0x237), {
|
|
1097
|
+
'headers': _0x543907,
|
|
1098
|
+
'method': _0x59e454(0x167)
|
|
1099
|
+
});
|
|
1100
|
+
return _0x13839a[_0x59e454(_0x59e08d._0x2846b0)] ?? [];
|
|
1101
|
+
},
|
|
1102
|
+
async 'claimScheduleRun'(_0x5866d2) {
|
|
1103
|
+
const _0x33e978 = _0x39a66d, _0x29a9c2 = await _0x558446(_0x33e978(_0xb4c1b9._0x46a919), {
|
|
1104
|
+
'body': JSON[_0x33e978(_0xb4c1b9._0x20a4c4)](_0x5866d2),
|
|
1105
|
+
'headers': _0x543907,
|
|
1106
|
+
'method': _0x33e978(_0xb4c1b9._0x148656)
|
|
1107
|
+
});
|
|
1108
|
+
return _0x29a9c2[_0x33e978(0x17e)] ?? {
|
|
1109
|
+
'granted': ![],
|
|
1110
|
+
'runId': null,
|
|
1111
|
+
'schedule': null,
|
|
1112
|
+
'scheduledFor': _0x5866d2['scheduledFor']
|
|
1113
|
+
};
|
|
1114
|
+
},
|
|
1115
|
+
async 'startScheduleRun'(_0x3f4edf) {
|
|
1116
|
+
const _0x2e3e23 = _0x39a66d, _0x2e4d73 = await _0x558446(_0x2e3e23(0x194) + encodeURIComponent(_0x3f4edf['runId']) + _0x2e3e23(0xde), {
|
|
1117
|
+
'body': JSON[_0x2e3e23(_0x283a68._0x165c84)]({}),
|
|
1118
|
+
'headers': _0x543907,
|
|
1119
|
+
'method': _0x2e3e23(0x136)
|
|
1120
|
+
});
|
|
1121
|
+
return _0x2e4d73[_0x2e3e23(0x17e)] ?? {
|
|
1122
|
+
'claimedByDaemonId': '',
|
|
1123
|
+
'id': _0x3f4edf[_0x2e3e23(_0x283a68._0x2e8811)],
|
|
1124
|
+
'scheduleId': '',
|
|
1125
|
+
'status': 'running'
|
|
1126
|
+
};
|
|
1127
|
+
},
|
|
1128
|
+
async 'finishScheduleRun'(_0x44b3ae) {
|
|
1129
|
+
const _0x1288b9 = _0x39a66d, _0x5d6735 = await _0x558446('/api/internal/schedules/' + encodeURIComponent(_0x44b3ae[_0x1288b9(0x11c)]) + _0x1288b9(0x1ed), {
|
|
1130
|
+
'body': JSON['stringify']({
|
|
1131
|
+
'error': _0x44b3ae[_0x1288b9(0x212)],
|
|
1132
|
+
'resultJson': _0x44b3ae['resultJson'],
|
|
1133
|
+
'status': _0x44b3ae[_0x1288b9(_0xec4537._0xd294a6)]
|
|
1134
|
+
}),
|
|
1135
|
+
'headers': _0x543907,
|
|
1136
|
+
'method': _0x1288b9(_0xec4537._0xc365f)
|
|
1137
|
+
});
|
|
1138
|
+
return _0x5d6735[_0x1288b9(0x17e)] ?? {
|
|
1139
|
+
'nextRunAt': null,
|
|
1140
|
+
'run': {
|
|
1141
|
+
'claimedByDaemonId': '',
|
|
1142
|
+
'id': _0x44b3ae[_0x1288b9(0x11c)],
|
|
1143
|
+
'scheduleId': '',
|
|
1144
|
+
'status': _0x44b3ae[_0x1288b9(_0xec4537._0xd294a6)]
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
},
|
|
1148
|
+
async 'listTasks'(_0x5b9b77) {
|
|
1149
|
+
const _0xa9a6d0 = _0x39a66d, _0x4396dc = new URLSearchParams();
|
|
1150
|
+
return _0x4396dc[_0xa9a6d0(_0x446692._0x5abe4f)](_0xa9a6d0(_0x446692._0x333570), _0x5b9b77['channel']), _0x5b9b77[_0xa9a6d0(_0x446692._0x1039d5)] && _0x4396dc[_0xa9a6d0(0x23e)](_0xa9a6d0(_0x446692._0x1039d5), _0x5b9b77[_0xa9a6d0(0xc9)]), _0x40ff10(_0xa9a6d0(_0x446692._0x2a7374) + _0x44dccf['agentId'] + _0xa9a6d0(_0x446692._0x480495) + _0x4396dc[_0xa9a6d0(0x173)](), {
|
|
1151
|
+
'headers': _0x543907,
|
|
1152
|
+
'method': _0xa9a6d0(0x167)
|
|
1153
|
+
});
|
|
1154
|
+
},
|
|
1155
|
+
async 'createTasks'(_0x3546bd) {
|
|
1156
|
+
const _0x11fe7f = _0x39a66d;
|
|
1157
|
+
return _0x40ff10(_0x11fe7f(0x1f6) + _0x44dccf[_0x11fe7f(0xd6)] + _0x11fe7f(0x103), {
|
|
1158
|
+
'body': JSON[_0x11fe7f(0x18b)]({
|
|
1159
|
+
..._0x3546bd,
|
|
1160
|
+
'idempotency_key': _0x2b2f55('create_tasks', _0x3546bd)
|
|
1161
|
+
}),
|
|
1162
|
+
'headers': _0x543907,
|
|
1163
|
+
'method': _0x11fe7f(0x136)
|
|
1164
|
+
});
|
|
1165
|
+
},
|
|
1166
|
+
async 'claimTasks'(_0x1bc7f3) {
|
|
1167
|
+
const _0x5bcb20 = _0x39a66d;
|
|
1168
|
+
return _0x40ff10('/internal/agent/' + _0x44dccf[_0x5bcb20(0xd6)] + _0x5bcb20(_0x484538._0x5adf45), {
|
|
1169
|
+
'body': JSON[_0x5bcb20(_0x484538._0x246d8f)]({
|
|
1170
|
+
..._0x1bc7f3,
|
|
1171
|
+
'idempotency_key': _0x2b2f55(_0x5bcb20(0x193), _0x1bc7f3)
|
|
1172
|
+
}),
|
|
1173
|
+
'headers': _0x543907,
|
|
1174
|
+
'method': _0x5bcb20(_0x484538._0x3e4a84)
|
|
1175
|
+
});
|
|
1176
|
+
},
|
|
1177
|
+
async 'unclaimTask'(_0x1ae8ef) {
|
|
1178
|
+
const _0x541a77 = _0x39a66d;
|
|
1179
|
+
return _0x40ff10('/internal/agent/' + _0x44dccf['agentId'] + _0x541a77(0xe2), {
|
|
1180
|
+
'body': JSON['stringify']({
|
|
1181
|
+
..._0x1ae8ef,
|
|
1182
|
+
'idempotency_key': _0x2b2f55(_0x541a77(_0x536dd3._0x9fa46c), _0x1ae8ef)
|
|
1183
|
+
}),
|
|
1184
|
+
'headers': _0x543907,
|
|
1185
|
+
'method': 'POST'
|
|
1186
|
+
});
|
|
1187
|
+
},
|
|
1188
|
+
async 'updateTaskStatus'(_0x5c1b5e) {
|
|
1189
|
+
const _0x5434ed = _0x39a66d;
|
|
1190
|
+
return _0x40ff10(_0x5434ed(_0x56466f._0x5bbe9d) + _0x44dccf[_0x5434ed(0xd6)] + _0x5434ed(0x114), {
|
|
1191
|
+
'body': JSON[_0x5434ed(_0x56466f._0x4ca894)]({
|
|
1192
|
+
..._0x5c1b5e,
|
|
1193
|
+
'idempotency_key': _0x2b2f55('update_task_status', _0x5c1b5e)
|
|
1194
|
+
}),
|
|
1195
|
+
'headers': _0x543907,
|
|
1196
|
+
'method': _0x5434ed(_0x56466f._0x38d5be)
|
|
1197
|
+
});
|
|
1198
|
+
},
|
|
1199
|
+
async 'uploadFile'(_0x35a0bc) {
|
|
1200
|
+
const _0xb6b667 = _0x39a66d, _0x34c17a = await _0xae6c49(_0x35a0bc[_0xb6b667(0x13c)]);
|
|
1201
|
+
if (_0x34c17a[_0xb6b667(_0xb16b97._0x207e63)])
|
|
1202
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1203
|
+
const _0x3a46a0 = await _0x558446(_0xb6b667(_0xb16b97._0x26ac72) + _0x44dccf[_0xb6b667(0xd6)] + _0xb6b667(0x129), {
|
|
1204
|
+
'body': JSON[_0xb6b667(0x18b)]({
|
|
1205
|
+
'channel': _0x34c17a[_0xb6b667(0x1ca)],
|
|
1206
|
+
'contentBase64': _0x35a0bc[_0xb6b667(_0xb16b97._0x439233)],
|
|
1207
|
+
'contentType': _0x35a0bc['contentType'],
|
|
1208
|
+
'originalFilename': _0x35a0bc[_0xb6b667(_0xb16b97._0x5f3900)]
|
|
1209
|
+
}),
|
|
1210
|
+
'headers': _0x543907,
|
|
1211
|
+
'method': _0xb6b667(_0xb16b97._0x2179fa)
|
|
1212
|
+
});
|
|
1213
|
+
return {
|
|
1214
|
+
'attachmentId': _0x3a46a0['data']?.['id'] ?? '',
|
|
1215
|
+
'filename': _0x3a46a0['data']?.[_0xb6b667(_0xb16b97._0x299a7c)] ?? _0x35a0bc['filename'],
|
|
1216
|
+
'sizeBytes': _0x3a46a0[_0xb6b667(0x17e)]?.['sizeBytes'] ?? 0x0
|
|
1217
|
+
};
|
|
1218
|
+
},
|
|
1219
|
+
async 'downloadAttachment'(_0xf1d67a) {
|
|
1220
|
+
const _0x11a779 = _0x39a66d, _0x16e10b = await _0x558446(_0x11a779(0x1e3) + _0xf1d67a, {
|
|
1221
|
+
'headers': _0x543907,
|
|
1222
|
+
'method': _0x11a779(0x167)
|
|
1223
|
+
}), _0x493638 = new AbortController(), _0x3d6c4d = setTimeout(() => _0x493638[_0x11a779(0x116)](), _0x252e4f);
|
|
1224
|
+
try {
|
|
1225
|
+
const _0x3b7ccc = await _0x32b2c2(_0x475c24 + _0x11a779(_0x1d337a._0x14e19e) + _0xf1d67a + _0x11a779(_0x1d337a._0x2cdf93), {
|
|
1226
|
+
'headers': _0x543907,
|
|
1227
|
+
'method': _0x11a779(_0x1d337a._0x14db2e),
|
|
1228
|
+
'signal': _0x493638[_0x11a779(_0x1d337a._0x44a05e)]
|
|
1229
|
+
});
|
|
1230
|
+
if (!_0x3b7ccc['ok'])
|
|
1231
|
+
throw new Error(_0x11a779(0x201) + _0x3b7ccc[_0x11a779(_0x1d337a._0x3925eb)]);
|
|
1232
|
+
return {
|
|
1233
|
+
'contentType': _0x16e10b[_0x11a779(0x17e)]?.['contentType'] ?? _0x3b7ccc[_0x11a779(0x12b)][_0x11a779(0x1c2)]('content-type') ?? _0x11a779(0x1f9),
|
|
1234
|
+
'data': Buffer[_0x11a779(0x211)](await _0x3b7ccc[_0x11a779(_0x1d337a._0x4ce0ff)]()),
|
|
1235
|
+
'originalFilename': _0x16e10b['data']?.['originalFilename']
|
|
1236
|
+
};
|
|
1237
|
+
} finally {
|
|
1238
|
+
clearTimeout(_0x3d6c4d);
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
async 'listServer'() {
|
|
1242
|
+
return _0x3d0214({ 'forceRefresh': !![] });
|
|
1243
|
+
},
|
|
1244
|
+
async 'readHistory'(_0x38837f) {
|
|
1245
|
+
const _0x250f83 = _0x39a66d, _0x2d0df3 = await _0xae6c49(_0x38837f[_0x250f83(0x13c)]);
|
|
1246
|
+
return _0x11b374({
|
|
1247
|
+
'after': _0x38837f[_0x250f83(_0x5197d5._0x2ea6f0)],
|
|
1248
|
+
'before': _0x38837f[_0x250f83(_0x5197d5._0x4905b0)],
|
|
1249
|
+
'channelId': _0x2d0df3[_0x250f83(0x1c5)],
|
|
1250
|
+
'channelTarget': _0x2d0df3[_0x250f83(0x1ca)],
|
|
1251
|
+
'limit': _0x38837f['limit'],
|
|
1252
|
+
'threadId': _0x2d0df3[_0x250f83(0x241)]
|
|
1253
|
+
});
|
|
1254
|
+
},
|
|
1255
|
+
'resolveTarget': _0xae6c49,
|
|
1256
|
+
async 'checkMessages'() {
|
|
1257
|
+
const _0x566d76 = {
|
|
1258
|
+
_0x41f76a: 0xf1,
|
|
1259
|
+
_0x50a331: 0x1e7,
|
|
1260
|
+
_0x5aaffe: 0x1c5
|
|
1261
|
+
}, _0x53d3bb = _0x39a66d, _0x147bc6 = new URLSearchParams();
|
|
1262
|
+
_0x147bc6[_0x53d3bb(_0x26ac23._0x4f43c6)](_0x53d3bb(0x1b4), String(_0x1adced));
|
|
1263
|
+
const _0x2e442e = _0x147bc6[_0x53d3bb(_0x26ac23._0x347ddf)](), _0x563ec3 = await _0x558446(_0x53d3bb(0x1f6) + _0x44dccf[_0x53d3bb(0xd6)] + '/receive' + (_0x2e442e ? '?' + _0x2e442e : ''), {
|
|
1264
|
+
'headers': _0x543907,
|
|
1265
|
+
'method': _0x53d3bb(_0x26ac23._0xd3f0fd)
|
|
1266
|
+
}), _0x2a896f = _0x563ec3[_0x53d3bb(0x17e)] ?? [], _0x257887 = _0x563ec3['meta']?.[_0x53d3bb(0x122)], _0x3b4e53 = _0x257887 !== void 0x0 ? Math[_0x53d3bb(0x15b)](_0x1adced, _0x257887) : _0x2a896f[_0x53d3bb(0x1da)] > 0x0 ? Math[_0x53d3bb(0x15b)](_0x1adced, _0x2a896f[_0x2a896f['length'] - 0x1][_0x53d3bb(_0x26ac23._0x37261e)]) : _0x1adced, _0x1012dc = _0x2a896f['filter'](_0x38d5ff => _0x38d5ff[_0x53d3bb(0x160)] === 'message'), _0x3c1da4 = _0x594eb8 === void 0x0 && _0x28e560;
|
|
1267
|
+
let _0x88755b = await _0x3d0214(), _0x2fac11 = new Map(_0x88755b[_0x53d3bb(0x22d)][_0x53d3bb(0x100)](_0x12be10 => [
|
|
1268
|
+
_0x12be10['id'],
|
|
1269
|
+
_0x12be10
|
|
1270
|
+
]));
|
|
1271
|
+
const _0x5a86f9 = _0x1012dc[_0x53d3bb(_0x26ac23._0x528318)](_0x34a8ed => {
|
|
1272
|
+
const _0xd56e48 = _0x53d3bb, _0x19d897 = asRecord(_0x34a8ed[_0xd56e48(_0x566d76._0x41f76a)]), _0x204570 = typeof _0x19d897?.[_0xd56e48(0x1c5)] === _0xd56e48(_0x566d76._0x50a331) ? _0x19d897[_0xd56e48(_0x566d76._0x5aaffe)] : '';
|
|
1273
|
+
return Boolean(_0x204570) && !_0x2fac11[_0xd56e48(0x1b8)](_0x204570);
|
|
1274
|
+
});
|
|
1275
|
+
_0x5a86f9 && (_0x88755b = await _0x3d0214({ 'forceRefresh': !![] }), _0x2fac11 = new Map(_0x88755b[_0x53d3bb(0x22d)][_0x53d3bb(0x100)](_0x4e8e6b => [
|
|
1276
|
+
_0x4e8e6b['id'],
|
|
1277
|
+
_0x4e8e6b
|
|
1278
|
+
])));
|
|
1279
|
+
const _0x39e2fe = new Map();
|
|
1280
|
+
for (const _0x2ed97e of _0x1012dc) {
|
|
1281
|
+
const _0x239bde = asRecord(_0x2ed97e[_0x53d3bb(_0x26ac23._0x4bb46f)]), _0x436830 = typeof _0x239bde[_0x53d3bb(_0x26ac23._0x340ab1)] === _0x53d3bb(0x1e7) ? _0x239bde['channelId'] : '';
|
|
1282
|
+
if (!_0x436830)
|
|
1283
|
+
continue;
|
|
1284
|
+
const _0x20fc0f = typeof _0x239bde[_0x53d3bb(0x241)] === _0x53d3bb(_0x26ac23._0x4ba328) ? _0x239bde['threadId'] : void 0x0, _0x2173c7 = typeof _0x239bde[_0x53d3bb(0xfe)] === _0x53d3bb(0x1e7) ? _0x239bde[_0x53d3bb(_0x26ac23._0x151897)] : void 0x0, _0x1d18bc = typeof _0x239bde[_0x53d3bb(_0x26ac23._0x4d390a)] === _0x53d3bb(0x186) && Number[_0x53d3bb(_0x26ac23._0x520d40)](_0x239bde[_0x53d3bb(_0x26ac23._0x235da3)]) ? _0x239bde[_0x53d3bb(_0x26ac23._0x235da3)] : void 0x0, _0x207eb4 = Boolean(_0x20fc0f && (!_0x2173c7 || _0x2ed97e[_0x53d3bb(0x157)] !== _0x2173c7)), _0x59d183 = _0x207eb4 ? _0x436830 + ':' + _0x20fc0f : _0x436830, _0x2c569e = _0x39e2fe['get'](_0x59d183) ?? {
|
|
1285
|
+
'aggregateIds': [],
|
|
1286
|
+
'channelId': _0x436830,
|
|
1287
|
+
'entries': new Map(),
|
|
1288
|
+
'isThreadReply': _0x207eb4,
|
|
1289
|
+
'rootMessageId': _0x2173c7,
|
|
1290
|
+
'threadNumber': _0x1d18bc,
|
|
1291
|
+
'threadId': _0x207eb4 ? _0x20fc0f : void 0x0
|
|
1292
|
+
};
|
|
1293
|
+
_0x2c569e[_0x53d3bb(_0x26ac23._0x235da3)] == null && _0x1d18bc != null && (_0x2c569e['threadNumber'] = _0x1d18bc), !_0x2c569e['rootMessageId'] && _0x2173c7 && (_0x2c569e[_0x53d3bb(_0x26ac23._0x151897)] = _0x2173c7), _0x2c569e[_0x53d3bb(_0x26ac23._0x12aa21)][_0x53d3bb(0x10f)](_0x2ed97e[_0x53d3bb(0x157)]), _0x2c569e['entries'][_0x53d3bb(0x23e)](_0x2ed97e[_0x53d3bb(0x157)], {
|
|
1294
|
+
'payloadJson': _0x2ed97e['payloadJson'],
|
|
1295
|
+
'seq': _0x2ed97e[_0x53d3bb(0x209)]
|
|
1296
|
+
}), _0x39e2fe[_0x53d3bb(_0x26ac23._0x4f43c6)](_0x59d183, _0x2c569e);
|
|
1297
|
+
}
|
|
1298
|
+
const _0x419725 = [];
|
|
1299
|
+
for (const _0x446986 of _0x39e2fe[_0x53d3bb(_0x26ac23._0x36b191)]()) {
|
|
1300
|
+
const {
|
|
1301
|
+
channelId: _0x13020b,
|
|
1302
|
+
threadId: _0x1446d8,
|
|
1303
|
+
rootMessageId: _0x528109,
|
|
1304
|
+
threadNumber: _0x5c024f,
|
|
1305
|
+
aggregateIds: _0x14dd30,
|
|
1306
|
+
isThreadReply: _0x550ae5,
|
|
1307
|
+
entries: _0x22a485
|
|
1308
|
+
} = _0x446986, _0xc71447 = _0x2fac11[_0x53d3bb(0x1c2)](_0x13020b), _0x473ada = _0xc71447?.['name'] ?? _0x13020b, _0x27b754 = _0xc71447?.[_0x53d3bb(_0x26ac23._0x7eb4f2)] === 'dm' ? _0x53d3bb(_0x26ac23._0x5eeb9e) + _0x473ada : '#' + _0x473ada, _0x4be46 = {
|
|
1309
|
+
'channelTarget': _0x27b754,
|
|
1310
|
+
'rootMessageId': _0x528109,
|
|
1311
|
+
'threadId': _0x1446d8,
|
|
1312
|
+
'threadNumber': _0x5c024f
|
|
1313
|
+
}, _0x4c184c = await _0x11b374({
|
|
1314
|
+
'channelId': _0x13020b,
|
|
1315
|
+
'channelTarget': _0x27b754,
|
|
1316
|
+
'limit': Math[_0x53d3bb(_0x26ac23._0x382398)](_0x14dd30[_0x53d3bb(_0x26ac23._0x392641)], 0x32),
|
|
1317
|
+
'threadId': _0x1446d8
|
|
1318
|
+
}), _0x241212 = new Map(_0x4c184c[_0x53d3bb(_0x26ac23._0x4d84f7)][_0x53d3bb(0x100)](_0x4b0a77 => [
|
|
1319
|
+
_0x4b0a77[_0x53d3bb(0x20d)],
|
|
1320
|
+
_0x4b0a77
|
|
1321
|
+
])), _0x3373e0 = _0x1446d8 ? _0x1f0f41(_0x4be46) : _0x27b754, _0xc74e83 = _0x594eb8 ? _0x550ae5 && _0xccc5d9(_0x594eb8, _0x4be46) : !![], _0xc5c3e8 = _0x550ae5 ? _0xc74e83 && _0x594eb8 ? _0x594eb8 : _0x3373e0 : _0x27b754;
|
|
1322
|
+
for (const _0x1a605b of _0x14dd30) {
|
|
1323
|
+
if (!_0xc74e83)
|
|
1324
|
+
continue;
|
|
1325
|
+
const _0x4dc7ff = _0x22a485[_0x53d3bb(_0x26ac23._0x208101)](_0x1a605b), _0xc9d6fe = _0x4dc7ff ? asRecord(_0x4dc7ff['payloadJson']) : void 0x0, _0x2bea89 = _0xc9d6fe?.[_0x53d3bb(0x12a)] === _0x53d3bb(0x123);
|
|
1326
|
+
if (_0x3c1da4 && _0x2bea89)
|
|
1327
|
+
continue;
|
|
1328
|
+
const _0x2c9060 = _0x241212['get'](_0x1a605b);
|
|
1329
|
+
if (_0x2c9060) {
|
|
1330
|
+
_0x419725['push']({
|
|
1331
|
+
'attachments': _0x2c9060[_0x53d3bb(0x23d)],
|
|
1332
|
+
'content': _0x2c9060[_0x53d3bb(0x20f)],
|
|
1333
|
+
'createdAt': _0x2c9060[_0x53d3bb(_0x26ac23._0x56d743)],
|
|
1334
|
+
'messageId': _0x2c9060[_0x53d3bb(0x20d)],
|
|
1335
|
+
'senderName': _0x2c9060['senderName'],
|
|
1336
|
+
'senderType': _0x2c9060[_0x53d3bb(0xcd)],
|
|
1337
|
+
'target': _0xc5c3e8,
|
|
1338
|
+
..._0x2bea89 ? { 'targetedTask': !![] } : {}
|
|
1339
|
+
});
|
|
1340
|
+
continue;
|
|
1341
|
+
}
|
|
1342
|
+
if (_0x4dc7ff) {
|
|
1343
|
+
const _0x484bd9 = typeof _0xc9d6fe?.['senderParticipantId'] === _0x53d3bb(_0x26ac23._0x4ba328) ? _0xc9d6fe[_0x53d3bb(_0x26ac23._0x4d125e)] : '', _0x1e572c = typeof _0xc9d6fe?.[_0x53d3bb(0x1a2)] === 'string' ? _0xc9d6fe[_0x53d3bb(0x1a2)] : '';
|
|
1344
|
+
_0x484bd9 && _0x1e572c && _0x419725[_0x53d3bb(0x10f)]({
|
|
1345
|
+
'attachments': [],
|
|
1346
|
+
'content': _0x1e572c,
|
|
1347
|
+
'createdAt': new Date()[_0x53d3bb(_0x26ac23._0x30b317)](),
|
|
1348
|
+
'messageId': _0x1a605b,
|
|
1349
|
+
'senderName': _0x484bd9,
|
|
1350
|
+
'senderType': _0x11b458(_0x484bd9, _0x88755b),
|
|
1351
|
+
'target': _0xc5c3e8,
|
|
1352
|
+
..._0x2bea89 ? { 'targetedTask': !![] } : {}
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
if (_0x3b4e53 > 0x0) {
|
|
1358
|
+
if (_0xb89eae)
|
|
1359
|
+
await _0x70aa9f(_0x3b4e53);
|
|
1360
|
+
else
|
|
1361
|
+
_0x155fb9 && await _0x49db2d(_0x3b4e53);
|
|
1362
|
+
}
|
|
1363
|
+
return _0x3b4e53 > _0x1adced && (_0x1adced = _0x3b4e53), { 'messages': _0x594eb8 ? _0x419725 : _0x3c1da4 ? _0x419725[_0x53d3bb(_0x26ac23._0x37c689)](_0x169619 => _0x169619[_0x53d3bb(0x1f5)] !== !![]) : _0x419725 };
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
}
|
|
1367
|
+
function toLocalTime(_0x450a1c) {
|
|
1368
|
+
const _0x567620 = {
|
|
1369
|
+
_0x27603a: 0xc7,
|
|
1370
|
+
_0x179032: 0x1c9,
|
|
1371
|
+
_0x1f2827: 0x1c7,
|
|
1372
|
+
_0x256415: 0x169
|
|
1373
|
+
}, _0x5b7249 = _0x1bf962, _0x51f00f = new Date(_0x450a1c);
|
|
1374
|
+
if (Number[_0x5b7249(0x147)](_0x51f00f[_0x5b7249(_0x567620._0x27603a)]()))
|
|
1375
|
+
return _0x450a1c;
|
|
1376
|
+
const _0x467090 = _0x26621f => String(_0x26621f)['padStart'](0x2, '0');
|
|
1377
|
+
return _0x51f00f[_0x5b7249(0xf3)]() + '-' + _0x467090(_0x51f00f[_0x5b7249(0x1d8)]() + 0x1) + '-' + _0x467090(_0x51f00f[_0x5b7249(_0x567620._0x179032)]()) + '\x20' + _0x467090(_0x51f00f['getHours']()) + ':' + _0x467090(_0x51f00f[_0x5b7249(_0x567620._0x1f2827)]()) + ':' + _0x467090(_0x51f00f[_0x5b7249(_0x567620._0x256415)]());
|
|
1378
|
+
}
|
|
1379
|
+
function formatAttachmentSuffix(_0x58745b) {
|
|
1380
|
+
const _0xe720c1 = {
|
|
1381
|
+
_0x3cf397: 0x1da,
|
|
1382
|
+
_0x4cb96a: 0x1da,
|
|
1383
|
+
_0x580f53: 0x1f0,
|
|
1384
|
+
_0x7909e3: 0x128
|
|
1385
|
+
}, _0x4076ba = _0x1bf962;
|
|
1386
|
+
if (!_0x58745b || _0x58745b[_0x4076ba(_0xe720c1._0x3cf397)] === 0x0)
|
|
1387
|
+
return '';
|
|
1388
|
+
return '\x20[' + _0x58745b[_0x4076ba(_0xe720c1._0x4cb96a)] + _0x4076ba(_0xe720c1._0x580f53) + (_0x58745b[_0x4076ba(_0xe720c1._0x4cb96a)] > 0x1 ? 's' : '') + ':\x20' + _0x58745b['map'](_0x977920 => _0x977920['filename'] + _0x4076ba(0x214) + _0x977920['id'] + ')')['join'](',\x20') + _0x4076ba(_0xe720c1._0x7909e3);
|
|
1389
|
+
}
|
|
1390
|
+
function formatCheckMessages(_0x1701c9) {
|
|
1391
|
+
const _0x47d762 = { _0x572803: 0xe0 }, _0x8fab1d = {
|
|
1392
|
+
_0x2f36cb: 0x1ca,
|
|
1393
|
+
_0x2ba0cb: 0x20d,
|
|
1394
|
+
_0x3a3731: 0x120,
|
|
1395
|
+
_0x3260a9: 0x12c,
|
|
1396
|
+
_0x52625e: 0xe7,
|
|
1397
|
+
_0x40192f: 0x20f
|
|
1398
|
+
}, _0x4f7322 = _0x1bf962;
|
|
1399
|
+
if (_0x1701c9[_0x4f7322(0x1da)] === 0x0)
|
|
1400
|
+
return _0x4f7322(_0x47d762._0x572803);
|
|
1401
|
+
return _0x1701c9[_0x4f7322(0x100)](_0x2345a5 => {
|
|
1402
|
+
const _0x332579 = _0x4f7322, _0x198b7f = _0x2345a5[_0x332579(0xcd)] === _0x332579(0x19b) ? _0x332579(0x1b6) : '';
|
|
1403
|
+
return _0x332579(0x206) + _0x2345a5[_0x332579(_0x8fab1d._0x2f36cb)] + _0x332579(0x1d1) + _0x2345a5[_0x332579(_0x8fab1d._0x2ba0cb)][_0x332579(_0x8fab1d._0x3a3731)](0x0, 0x8) + _0x332579(0x141) + toLocalTime(_0x2345a5[_0x332579(0xe4)]) + _0x198b7f + _0x332579(_0x8fab1d._0x3260a9) + _0x2345a5[_0x332579(_0x8fab1d._0x52625e)] + ':\x20' + _0x2345a5[_0x332579(_0x8fab1d._0x40192f)] + formatAttachmentSuffix(_0x2345a5['attachments']);
|
|
1404
|
+
})['join']('\x0a');
|
|
1405
|
+
}
|
|
1406
|
+
function formatHistory(_0x2e973c) {
|
|
1407
|
+
const _0x5a38f3 = {
|
|
1408
|
+
_0x34b6db: 0xfc,
|
|
1409
|
+
_0x4b04fb: 0x1da,
|
|
1410
|
+
_0x517f27: 0x1db,
|
|
1411
|
+
_0xa758bf: 0x100,
|
|
1412
|
+
_0x3d2e0b: 0x148
|
|
1413
|
+
}, _0x5359fc = {
|
|
1414
|
+
_0x517d0d: 0x1b6,
|
|
1415
|
+
_0x49f539: 0x13d,
|
|
1416
|
+
_0x379574: 0x20d,
|
|
1417
|
+
_0x51f877: 0xe7,
|
|
1418
|
+
_0x565933: 0x20f
|
|
1419
|
+
}, _0x17203d = _0x1bf962;
|
|
1420
|
+
if (_0x2e973c[_0x17203d(_0x5a38f3._0x34b6db)][_0x17203d(_0x5a38f3._0x4b04fb)] === 0x0)
|
|
1421
|
+
return '##\x20Message\x20History\x20for\x20' + _0x2e973c[_0x17203d(0x13c)] + _0x17203d(_0x5a38f3._0x517f27);
|
|
1422
|
+
const _0x3a9fd3 = _0x2e973c[_0x17203d(0xfc)][_0x17203d(_0x5a38f3._0xa758bf)](_0x5de62b => {
|
|
1423
|
+
const _0x30f120 = _0x17203d, _0x12195d = _0x5de62b['senderType'] === _0x30f120(0x19b) ? _0x30f120(_0x5359fc._0x517d0d) : '';
|
|
1424
|
+
return _0x30f120(_0x5359fc._0x49f539) + _0x5de62b[_0x30f120(0x209)] + _0x30f120(0x1d1) + _0x5de62b[_0x30f120(_0x5359fc._0x379574)] + _0x30f120(0x141) + toLocalTime(_0x5de62b[_0x30f120(0xe4)]) + _0x12195d + _0x30f120(0x12c) + _0x5de62b[_0x30f120(_0x5359fc._0x51f877)] + ':\x20' + _0x5de62b[_0x30f120(_0x5359fc._0x565933)] + formatAttachmentSuffix(_0x5de62b[_0x30f120(0x23d)]);
|
|
1425
|
+
})[_0x17203d(_0x5a38f3._0x3d2e0b)]('\x0a'), _0x32b506 = _0x2e973c['hasMore'] && _0x2e973c['nextCursor'] ? _0x17203d(0x23b) + _0x2e973c['messages'][_0x17203d(_0x5a38f3._0x4b04fb)] + _0x17203d(0x17d) + _0x2e973c['nextCursor'] + _0x17203d(0x231) : '';
|
|
1426
|
+
return '##\x20Message\x20History\x20for\x20' + _0x2e973c[_0x17203d(0x13c)] + '\x20(' + _0x2e973c['messages'][_0x17203d(_0x5a38f3._0x4b04fb)] + _0x17203d(0x163) + _0x3a9fd3 + _0x32b506;
|
|
1427
|
+
}
|
|
1428
|
+
function formatServerDirectory(_0x505afe) {
|
|
1429
|
+
const _0x60c8e3 = {
|
|
1430
|
+
_0x47b6eb: 0x1da,
|
|
1431
|
+
_0x32182f: 0x22d,
|
|
1432
|
+
_0x4e5c69: 0x238,
|
|
1433
|
+
_0x27b9c1: 0xf4,
|
|
1434
|
+
_0x4da44b: 0x1da,
|
|
1435
|
+
_0x2cba80: 0x1a8,
|
|
1436
|
+
_0x21cfd8: 0x148,
|
|
1437
|
+
_0x5506eb: 0x185
|
|
1438
|
+
}, _0x72cb8f = _0x1bf962, _0x1947f1 = _0x505afe[_0x72cb8f(0x22d)][_0x72cb8f(_0x60c8e3._0x47b6eb)] > 0x0 ? _0x505afe[_0x72cb8f(_0x60c8e3._0x32182f)][_0x72cb8f(0x100)](_0x5db43a => _0x5db43a[_0x72cb8f(0x1ea)] ? '-\x20#' + _0x5db43a[_0x72cb8f(0x230)] + _0x72cb8f(0xec) + _0x5db43a[_0x72cb8f(0x1ea)] : _0x72cb8f(0xc5) + _0x5db43a['name'])['join']('\x0a') : _0x72cb8f(_0x60c8e3._0x4e5c69), _0x3106fe = _0x505afe[_0x72cb8f(_0x60c8e3._0x27b9c1)]['length'] > 0x0 ? _0x505afe[_0x72cb8f(0xf4)]['map'](_0x3a9ff0 => _0x72cb8f(0x175) + _0x3a9ff0[_0x72cb8f(0x230)])['join']('\x0a') : _0x72cb8f(_0x60c8e3._0x4e5c69), _0x30c10e = _0x505afe[_0x72cb8f(0x1a8)][_0x72cb8f(_0x60c8e3._0x4da44b)] > 0x0 ? _0x505afe[_0x72cb8f(_0x60c8e3._0x2cba80)][_0x72cb8f(0x100)](_0x3b81af => _0x72cb8f(0x175) + _0x3b81af['name'])[_0x72cb8f(_0x60c8e3._0x21cfd8)]('\x0a') : '(none)';
|
|
1439
|
+
return [
|
|
1440
|
+
'##\x20Server:\x20' + _0x505afe[_0x72cb8f(0x1b9)],
|
|
1441
|
+
'',
|
|
1442
|
+
_0x72cb8f(_0x60c8e3._0x5506eb),
|
|
1443
|
+
_0x1947f1,
|
|
1444
|
+
'',
|
|
1445
|
+
_0x72cb8f(0x13e),
|
|
1446
|
+
_0x3106fe,
|
|
1447
|
+
'',
|
|
1448
|
+
_0x72cb8f(0x13f),
|
|
1449
|
+
_0x30c10e
|
|
1450
|
+
][_0x72cb8f(0x148)]('\x0a');
|
|
1451
|
+
}
|
|
1452
|
+
function formatUploadResult(_0x20c57b) {
|
|
1453
|
+
const _0x447f21 = {
|
|
1454
|
+
_0x5b50ca: 0x228,
|
|
1455
|
+
_0x5e4d89: 0x10e,
|
|
1456
|
+
_0x182d84: 0xbf
|
|
1457
|
+
}, _0x3104f7 = _0x1bf962;
|
|
1458
|
+
return _0x3104f7(0x1bf) + _0x20c57b[_0x3104f7(0x102)] + '\x20(' + (_0x20c57b[_0x3104f7(_0x447f21._0x5b50ca)] / 0x400)[_0x3104f7(_0x447f21._0x5e4d89)](0x1) + _0x3104f7(0x168) + _0x20c57b[_0x3104f7(0x233)] + _0x3104f7(_0x447f21._0x182d84);
|
|
1459
|
+
}
|
|
1460
|
+
function formatViewFileResult(_0x2576bc, _0x32c0a1) {
|
|
1461
|
+
const _0x9454a1 = _0x1bf962;
|
|
1462
|
+
return _0x32c0a1 ? 'File\x20already\x20cached\x20at:\x20' + _0x2576bc : _0x9454a1(0xe3) + _0x2576bc;
|
|
1463
|
+
}
|
|
1464
|
+
function formatTaskList(_0x1079ff, _0x9c3b37) {
|
|
1465
|
+
const _0x457c6e = {
|
|
1466
|
+
_0x1ee1b6: 0x1da,
|
|
1467
|
+
_0x5c8028: 0x100,
|
|
1468
|
+
_0x36cc48: 0x148
|
|
1469
|
+
}, _0x4f16b3 = {
|
|
1470
|
+
_0x1d8fa7: 0x20d,
|
|
1471
|
+
_0xf6c29: 0x247,
|
|
1472
|
+
_0x401d0b: 0x200,
|
|
1473
|
+
_0x2c1244: 0x1e6
|
|
1474
|
+
}, _0xc93138 = _0x1bf962;
|
|
1475
|
+
if (_0x1079ff[_0xc93138(_0x457c6e._0x1ee1b6)] === 0x0)
|
|
1476
|
+
return _0xc93138(0x1e5);
|
|
1477
|
+
return _0x1079ff[_0xc93138(_0x457c6e._0x5c8028)](_0x1d355e => {
|
|
1478
|
+
const _0x5c692b = _0xc93138, _0x17dd31 = _0x1d355e['taskNumber'] == null ? _0x5c692b(0x10b) : '#' + _0x1d355e[_0x5c692b(0x200)], _0x50a043 = _0x1d355e[_0x5c692b(_0x4f16b3._0x1d8fa7)] ? _0x5c692b(_0x4f16b3._0xf6c29) + _0x1d355e[_0x5c692b(0x20d)] : '', _0x4ec0b4 = _0x9c3b37 && _0x1d355e[_0x5c692b(_0x4f16b3._0x401d0b)] != null && _0x9c3b37[_0x5c692b(0x1b8)](_0x1d355e[_0x5c692b(_0x4f16b3._0x401d0b)]) ? _0x5c692b(_0x4f16b3._0x2c1244) : '';
|
|
1479
|
+
return _0x17dd31 + '\x20[' + _0x1d355e[_0x5c692b(0xc9)] + ']\x20' + _0x1d355e[_0x5c692b(0x1ad)] + _0x50a043 + _0x4ec0b4;
|
|
1480
|
+
})[_0xc93138(_0x457c6e._0x36cc48)]('\x0a');
|
|
1481
|
+
}
|
|
1482
|
+
function formatCreatedTasks(_0x1c005e) {
|
|
1483
|
+
const _0xd68224 = {
|
|
1484
|
+
_0x4ea769: 0x1da,
|
|
1485
|
+
_0x8620dd: 0x240,
|
|
1486
|
+
_0x4aca84: 0x100,
|
|
1487
|
+
_0x2097f3: 0x148
|
|
1488
|
+
}, _0x2825be = _0x1bf962;
|
|
1489
|
+
if (_0x1c005e[_0x2825be(_0xd68224._0x4ea769)] === 0x0)
|
|
1490
|
+
return _0x2825be(_0xd68224._0x8620dd);
|
|
1491
|
+
return _0x1c005e[_0x2825be(_0xd68224._0x4aca84)](_0x44bb81 => {
|
|
1492
|
+
const _0x3d7053 = _0x2825be, _0x53ffc2 = _0x44bb81[_0x3d7053(0x200)] == null ? _0x3d7053(0x10b) : '#' + _0x44bb81[_0x3d7053(0x200)];
|
|
1493
|
+
return _0x53ffc2 + '\x20' + _0x44bb81[_0x3d7053(0x1ad)] + _0x3d7053(0x247) + _0x44bb81[_0x3d7053(0x20d)];
|
|
1494
|
+
})[_0x2825be(_0xd68224._0x2097f3)]('\x0a');
|
|
1495
|
+
}
|
|
1496
|
+
function formatClaimTaskResults(_0x3c0472) {
|
|
1497
|
+
const _0x5740f8 = { _0x559371: 0x1da }, _0x1dfb73 = {
|
|
1498
|
+
_0x1d3f9f: 0x1bd,
|
|
1499
|
+
_0x508c16: 0x200,
|
|
1500
|
+
_0x1ffaec: 0x20d,
|
|
1501
|
+
_0x29b0f4: 0x1ac,
|
|
1502
|
+
_0x4a4e72: 0x137,
|
|
1503
|
+
_0x298b7a: 0x155,
|
|
1504
|
+
_0xbeaa7f: 0x16b,
|
|
1505
|
+
_0x2ea2e5: 0x16c,
|
|
1506
|
+
_0x2c8d34: 0x189,
|
|
1507
|
+
_0x1561cf: 0x1fa,
|
|
1508
|
+
_0x422ff6: 0x200,
|
|
1509
|
+
_0x3934fe: 0x196,
|
|
1510
|
+
_0x412a65: 0x1ff
|
|
1511
|
+
}, _0x42b07d = _0x1bf962;
|
|
1512
|
+
if (_0x3c0472[_0x42b07d(_0x5740f8._0x559371)] === 0x0)
|
|
1513
|
+
return _0x42b07d(0x117);
|
|
1514
|
+
return _0x3c0472[_0x42b07d(0x100)](_0x34f38e => {
|
|
1515
|
+
const _0x3c6903 = _0x42b07d;
|
|
1516
|
+
if (_0x34f38e[_0x3c6903(_0x1dfb73._0x1d3f9f)]) {
|
|
1517
|
+
const _0x109535 = _0x34f38e[_0x3c6903(_0x1dfb73._0x508c16)] == null ? _0x3c6903(0x10b) : '#' + _0x34f38e[_0x3c6903(0x200)], _0x5679f6 = _0x34f38e[_0x3c6903(_0x1dfb73._0x1ffaec)] ? '\x20message=' + _0x34f38e['messageId'] : '';
|
|
1518
|
+
if (_0x34f38e[_0x3c6903(0x138)]) {
|
|
1519
|
+
const _0x308dc1 = [
|
|
1520
|
+
_0x3c6903(0xda),
|
|
1521
|
+
_0x34f38e[_0x3c6903(0x172)] ? _0x3c6903(0xea) : null,
|
|
1522
|
+
_0x34f38e['executionMode'] ? _0x3c6903(_0x1dfb73._0x29b0f4) + _0x34f38e['executionMode'] : null,
|
|
1523
|
+
_0x34f38e[_0x3c6903(_0x1dfb73._0x4a4e72)] ? _0x3c6903(0xfd) + _0x34f38e['threadTarget'] : null,
|
|
1524
|
+
_0x34f38e[_0x3c6903(0x1f7)] ? _0x3c6903(_0x1dfb73._0x298b7a) + _0x34f38e[_0x3c6903(0x1f7)] : null
|
|
1525
|
+
]['filter'](Boolean)[_0x3c6903(0x148)]('\x20');
|
|
1526
|
+
return _0x109535 + _0x3c6903(_0x1dfb73._0xbeaa7f) + _0x5679f6 + '\x20' + _0x308dc1 + _0x3c6903(_0x1dfb73._0x2ea2e5);
|
|
1527
|
+
}
|
|
1528
|
+
const _0x5934fd = _0x34f38e[_0x3c6903(_0x1dfb73._0x2c8d34)] ? _0x3c6903(_0x1dfb73._0x1561cf) + _0x34f38e['workerHandoffError'] : '';
|
|
1529
|
+
return _0x109535 + _0x3c6903(_0x1dfb73._0xbeaa7f) + _0x5679f6 + _0x5934fd;
|
|
1530
|
+
}
|
|
1531
|
+
const _0x44ed11 = _0x34f38e[_0x3c6903(_0x1dfb73._0x422ff6)] == null ? _0x34f38e['messageId'] ?? '(unknown)' : '#' + _0x34f38e[_0x3c6903(0x200)];
|
|
1532
|
+
return _0x44ed11 + '\x20failed:\x20' + (_0x34f38e[_0x3c6903(_0x1dfb73._0x3934fe)] ?? _0x3c6903(_0x1dfb73._0x412a65));
|
|
1533
|
+
})[_0x42b07d(0x148)]('\x0a');
|
|
1534
|
+
}
|
|
1535
|
+
function formatUnclaimTaskResult(_0x3d1e0d) {
|
|
1536
|
+
const _0x233e3c = { _0x1d928a: 0x200 }, _0xd662b5 = _0x1bf962, _0x42c4e5 = _0x3d1e0d['taskNumber'] == null ? '(legacy)' : '#' + _0x3d1e0d[_0xd662b5(_0x233e3c._0x1d928a)];
|
|
1537
|
+
return _0x42c4e5 + '\x20status=' + _0x3d1e0d['status'];
|
|
1538
|
+
}
|
|
1539
|
+
function formatUpdateTaskStatusResult(_0x1a12d9) {
|
|
1540
|
+
const _0x1d7ed1 = {
|
|
1541
|
+
_0x15aa4b: 0x16f,
|
|
1542
|
+
_0x332a35: 0xc9
|
|
1543
|
+
}, _0xb8c8e7 = _0x1bf962, _0x23b57a = _0x1a12d9[_0xb8c8e7(0x200)] == null ? '(legacy)' : '#' + _0x1a12d9[_0xb8c8e7(0x200)];
|
|
1544
|
+
return _0x23b57a + _0xb8c8e7(_0x1d7ed1._0x15aa4b) + _0x1a12d9[_0xb8c8e7(_0x1d7ed1._0x332a35)];
|
|
1545
|
+
}
|
|
1546
|
+
function getChatBridgeToolDefinitions() {
|
|
1547
|
+
const _0x3da37d = {
|
|
1548
|
+
_0x5b849e: 0x13b,
|
|
1549
|
+
_0x323204: 0x140,
|
|
1550
|
+
_0x4e9e2f: 0x204,
|
|
1551
|
+
_0xc0a1d4: 0x1b5,
|
|
1552
|
+
_0x22a765: 0x17f,
|
|
1553
|
+
_0xaf93fb: 0x193,
|
|
1554
|
+
_0x245354: 0xd8,
|
|
1555
|
+
_0x3b8a73: 0x198,
|
|
1556
|
+
_0x12777c: 0x199
|
|
1557
|
+
}, _0x4d86ec = _0x1bf962;
|
|
1558
|
+
return [
|
|
1559
|
+
{ 'name': _0x4d86ec(0x105) },
|
|
1560
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x5b849e) },
|
|
1561
|
+
{ 'name': 'read_history' },
|
|
1562
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x323204) },
|
|
1563
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x4e9e2f) },
|
|
1564
|
+
{ 'name': _0x4d86ec(0x161) },
|
|
1565
|
+
{ 'name': _0x4d86ec(_0x3da37d._0xc0a1d4) },
|
|
1566
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x22a765) },
|
|
1567
|
+
{ 'name': _0x4d86ec(_0x3da37d._0xaf93fb) },
|
|
1568
|
+
{ 'name': _0x4d86ec(0x19a) },
|
|
1569
|
+
{ 'name': 'update_task_status' },
|
|
1570
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x245354) },
|
|
1571
|
+
{ 'name': 'get_worker_result' },
|
|
1572
|
+
{ 'name': 'finish_worker' },
|
|
1573
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x3b8a73) },
|
|
1574
|
+
{ 'name': _0x4d86ec(_0x3da37d._0x12777c) }
|
|
2302
1575
|
];
|
|
2303
|
-
|
|
2304
|
-
|
|
1576
|
+
}
|
|
1577
|
+
function createChatBridgeHandlers(_0x4d244e) {
|
|
1578
|
+
const _0x41f72a = {
|
|
1579
|
+
_0x363edf: 0xf9,
|
|
1580
|
+
_0x53dde: 0xcb,
|
|
1581
|
+
_0x4a6a09: 0x1c0,
|
|
1582
|
+
_0x18312d: 0x196,
|
|
1583
|
+
_0x5c9258: 0x151,
|
|
1584
|
+
_0x3fb0cd: 0x20c,
|
|
1585
|
+
_0x1a09e8: 0xfa
|
|
1586
|
+
}, _0x52d414 = {
|
|
1587
|
+
_0x4fd404: 0xd6,
|
|
1588
|
+
_0x452b22: 0x136,
|
|
1589
|
+
_0x498070: 0x24b,
|
|
1590
|
+
_0x1a893b: 0xd6,
|
|
1591
|
+
_0x4b3f57: 0x212,
|
|
1592
|
+
_0x594e9d: 0x11e,
|
|
1593
|
+
_0xa1e948: 0x10a
|
|
1594
|
+
}, _0x3a7e38 = {
|
|
1595
|
+
_0x37dd15: 0x1cc,
|
|
1596
|
+
_0xfe9c7a: 0x1c1,
|
|
1597
|
+
_0x272a37: 0x1c0
|
|
1598
|
+
}, _0x5094f7 = {
|
|
1599
|
+
_0x3caa2e: 0xf9,
|
|
1600
|
+
_0x588635: 0x1bc,
|
|
1601
|
+
_0x4bd154: 0xf9,
|
|
1602
|
+
_0x36cdd6: 0x183,
|
|
1603
|
+
_0x170c86: 0xdf,
|
|
1604
|
+
_0x31c702: 0x1e1,
|
|
1605
|
+
_0x68075f: 0xdf
|
|
1606
|
+
}, _0x33b6cc = {
|
|
1607
|
+
_0x5b0dde: 0xf9,
|
|
1608
|
+
_0x1a028d: 0x1bc,
|
|
1609
|
+
_0x2cb227: 0x1c0,
|
|
1610
|
+
_0x31988a: 0x10a,
|
|
1611
|
+
_0x5985f0: 0x1df,
|
|
1612
|
+
_0x592035: 0xc8
|
|
1613
|
+
}, _0xa9506 = {
|
|
1614
|
+
_0x78b693: 0x1a9,
|
|
1615
|
+
_0x5a2635: 0x21f,
|
|
1616
|
+
_0x4b6d0b: 0x1e9
|
|
1617
|
+
}, _0x4facf1 = {
|
|
1618
|
+
_0x1adc48: 0xf6,
|
|
1619
|
+
_0xeb3f4c: 0xdc
|
|
1620
|
+
}, _0x4b8670 = {
|
|
1621
|
+
_0xc2e12a: 0x12e,
|
|
1622
|
+
_0x4c83dd: 0x110
|
|
1623
|
+
}, _0x240b82 = {
|
|
1624
|
+
_0x1bde77: 0x1ba,
|
|
1625
|
+
_0x1c7664: 0x19f
|
|
1626
|
+
}, _0x5ea031 = {
|
|
1627
|
+
_0x183f5d: 0x13c,
|
|
1628
|
+
_0x4af131: 0x20d,
|
|
1629
|
+
_0x2e5de6: 0x23c,
|
|
1630
|
+
_0x54cffc: 0x200,
|
|
1631
|
+
_0x194b2c: 0x22a
|
|
1632
|
+
}, _0x81a27b = {
|
|
1633
|
+
_0x1c940f: 0x12e,
|
|
1634
|
+
_0x4dc5e6: 0x17b
|
|
1635
|
+
}, _0x158e8e = {
|
|
1636
|
+
_0x3fb862: 0x1fe,
|
|
1637
|
+
_0x5afd00: 0xf9,
|
|
1638
|
+
_0x3d7e02: 0x19c,
|
|
1639
|
+
_0x9f2907: 0xd6,
|
|
1640
|
+
_0x3f893e: 0xc9,
|
|
1641
|
+
_0x23a644: 0x15c,
|
|
1642
|
+
_0x2919df: 0x1a0,
|
|
1643
|
+
_0x220d64: 0x1da,
|
|
1644
|
+
_0x439770: 0x17b,
|
|
1645
|
+
_0x2abb44: 0x200,
|
|
1646
|
+
_0x43ff60: 0x200
|
|
1647
|
+
}, _0x34fd8a = { _0x1a8948: 0x113 }, _0x1b982d = { _0x547f74: 0x12e }, _0x3ec197 = {
|
|
1648
|
+
_0x2db87e: 0x12e,
|
|
1649
|
+
_0xf0eb73: 0x162,
|
|
1650
|
+
_0x32274e: 0x180
|
|
1651
|
+
}, _0xef17a2 = {
|
|
1652
|
+
_0x597cd8: 0x12e,
|
|
1653
|
+
_0x48a04f: 0x14b,
|
|
1654
|
+
_0x3abacd: 0x125,
|
|
1655
|
+
_0x59adad: 0x200,
|
|
1656
|
+
_0x3cda7b: 0x1ec,
|
|
1657
|
+
_0x4632d9: 0x1ca,
|
|
1658
|
+
_0x26b62c: 0x120,
|
|
1659
|
+
_0x16a0e4: 0x23a,
|
|
1660
|
+
_0x2f7077: 0x107,
|
|
1661
|
+
_0xf16fb4: 0x18b,
|
|
1662
|
+
_0x27bd90: 0x23c,
|
|
1663
|
+
_0x26302d: 0x208,
|
|
1664
|
+
_0x29da4b: 0x14a,
|
|
1665
|
+
_0x22fab3: 0x178,
|
|
1666
|
+
_0x2768c8: 0x1f3,
|
|
1667
|
+
_0x3f538d: 0x1dd,
|
|
1668
|
+
_0x16218a: 0x143,
|
|
1669
|
+
_0x115eca: 0x20d
|
|
1670
|
+
}, _0x3ec9b7 = {
|
|
1671
|
+
_0x41d768: 0x180,
|
|
1672
|
+
_0x4fef3f: 0xf9,
|
|
1673
|
+
_0x396e48: 0x19c,
|
|
1674
|
+
_0x56268d: 0xd6,
|
|
1675
|
+
_0x55bd4d: 0x151,
|
|
1676
|
+
_0x55889e: 0xc9,
|
|
1677
|
+
_0x403527: 0x1f4,
|
|
1678
|
+
_0x735447: 0x156
|
|
1679
|
+
}, _0x5dd4db = {
|
|
1680
|
+
_0x558ce4: 0x13c,
|
|
1681
|
+
_0x19529a: 0x1ec,
|
|
1682
|
+
_0x12829f: 0x20d,
|
|
1683
|
+
_0x3d756f: 0x1d1,
|
|
1684
|
+
_0x5556be: 0x101,
|
|
1685
|
+
_0x32288a: 0x11f,
|
|
1686
|
+
_0x49e6e7: 0x20f,
|
|
1687
|
+
_0x405f3b: 0xe6,
|
|
1688
|
+
_0x14e56d: 0xf9,
|
|
1689
|
+
_0x2bc3fd: 0x24b,
|
|
1690
|
+
_0x530a4a: 0xd6,
|
|
1691
|
+
_0x4abcb9: 0x212,
|
|
1692
|
+
_0x42cae9: 0x22a,
|
|
1693
|
+
_0x506cac: 0x1cb,
|
|
1694
|
+
_0x40770e: 0xc6
|
|
1695
|
+
};
|
|
1696
|
+
async function _0x4f96f1(_0x5a8f47) {
|
|
1697
|
+
const _0x47ecfe = _0x3fbb;
|
|
1698
|
+
if (!_0x4d244e['daemonLocalUrl'] || !_0x4d244e['agentId'] || _0x4d244e['workerMode'] || _0x4d244e[_0x47ecfe(0x1dc)] !== !![])
|
|
1699
|
+
return null;
|
|
1700
|
+
const _0x4f6e61 = parseTarget(_0x5a8f47[_0x47ecfe(_0x5dd4db._0x558ce4)]);
|
|
1701
|
+
if (_0x4f6e61[_0x47ecfe(0x11b)] !== 'channel')
|
|
1702
|
+
return null;
|
|
1703
|
+
const _0xea128b = _0x5a8f47[_0x47ecfe(0x1ec)] != null ? _0x4f6e61['channelTarget'] + ':t' + _0x5a8f47[_0x47ecfe(_0x5dd4db._0x19529a)] : _0x4f6e61[_0x47ecfe(0x213)] + ':' + _0x5a8f47[_0x47ecfe(_0x5dd4db._0x12829f)];
|
|
1704
|
+
let _0x155f4c;
|
|
1705
|
+
try {
|
|
1706
|
+
const _0x1c7e7b = await _0x4d244e['client'][_0x47ecfe(0xf5)]({
|
|
1707
|
+
'channel': _0xea128b,
|
|
1708
|
+
'limit': 0x14
|
|
1709
|
+
});
|
|
1710
|
+
_0x155f4c = _0x1c7e7b[_0x47ecfe(0xfc)][_0x47ecfe(0x170)](_0x1bf910 => _0x1bf910['messageId'] === _0x5a8f47[_0x47ecfe(0x20d)]);
|
|
1711
|
+
} catch {
|
|
1712
|
+
_0x155f4c = void 0x0;
|
|
1713
|
+
}
|
|
1714
|
+
const _0x54302c = _0x5a8f47['taskNumber'] == null ? _0x47ecfe(0x10b) : '#' + _0x5a8f47[_0x47ecfe(0x200)], _0x156b8d = [
|
|
1715
|
+
_0x47ecfe(0x206) + _0xea128b + _0x47ecfe(_0x5dd4db._0x3d756f) + _0x5a8f47['messageId']['slice'](0x0, 0x8) + _0x47ecfe(0x141) + new Date()[_0x47ecfe(0x121)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x54302c + _0x47ecfe(_0x5dd4db._0x5556be),
|
|
1716
|
+
'',
|
|
1717
|
+
_0x155f4c ? _0x47ecfe(_0x5dd4db._0x32288a) + _0x155f4c[_0x47ecfe(_0x5dd4db._0x49e6e7)] : _0x47ecfe(0x15e) + _0x5a8f47['messageId'],
|
|
1718
|
+
'',
|
|
1719
|
+
_0x47ecfe(0x22e) + _0xea128b,
|
|
1720
|
+
_0x47ecfe(_0x5dd4db._0x405f3b)
|
|
1721
|
+
]['join']('\x0a'), _0x506e98 = await fetch(_0x4d244e[_0x47ecfe(_0x5dd4db._0x14e56d)] + '/workers/deliver', {
|
|
1722
|
+
'method': 'POST',
|
|
1723
|
+
'headers': { 'Content-Type': _0x47ecfe(_0x5dd4db._0x2bc3fd) },
|
|
1724
|
+
'body': JSON['stringify']({
|
|
1725
|
+
'agent_id': _0x4d244e[_0x47ecfe(_0x5dd4db._0x530a4a)],
|
|
1726
|
+
'thread_target': _0xea128b,
|
|
1727
|
+
'spawn_packet': {
|
|
1728
|
+
'replyTarget': _0xea128b,
|
|
1729
|
+
..._0x5a8f47['taskId'] ? { 'taskId': _0x5a8f47[_0x47ecfe(0x23c)] } : _0x5a8f47[_0x47ecfe(0x200)] != null ? { 'taskId': 'task-' + _0x5a8f47['taskNumber'] } : {}
|
|
1730
|
+
},
|
|
1731
|
+
'payload': {
|
|
1732
|
+
'mode': _0x47ecfe(0x127),
|
|
1733
|
+
'text': _0x156b8d
|
|
1734
|
+
}
|
|
1735
|
+
})
|
|
1736
|
+
}), _0x5b1a57 = await _0x506e98[_0x47ecfe(0x151)]();
|
|
1737
|
+
if (!_0x5b1a57['ok'])
|
|
1738
|
+
throw new Error(_0x5b1a57[_0x47ecfe(_0x5dd4db._0x4abcb9)] ?? _0x47ecfe(_0x5dd4db._0x42cae9));
|
|
1739
|
+
return {
|
|
1740
|
+
'stopMain': !![],
|
|
1741
|
+
'threadTarget': _0xea128b,
|
|
1742
|
+
'workerDisposition': _0x5b1a57[_0x47ecfe(0x224)] === _0x47ecfe(0x229) ? _0x47ecfe(0x229) : _0x47ecfe(_0x5dd4db._0x506cac),
|
|
1743
|
+
'workerHandoff': !![],
|
|
1744
|
+
'workerSessionId': _0x5b1a57[_0x47ecfe(_0x5dd4db._0x40770e)] ?? '',
|
|
1745
|
+
'executionMode': 'worker'
|
|
1746
|
+
};
|
|
1747
|
+
}
|
|
1748
|
+
async function _0x2e49eb() {
|
|
1749
|
+
const _0x6fae36 = _0x3fbb;
|
|
1750
|
+
if (!_0x4d244e['daemonLocalUrl'] || !_0x4d244e['agentId'] || _0x4d244e[_0x6fae36(_0x3ec9b7._0x41d768)])
|
|
1751
|
+
return null;
|
|
1752
|
+
try {
|
|
1753
|
+
const _0x665824 = await fetch(_0x4d244e[_0x6fae36(_0x3ec9b7._0x4fef3f)] + _0x6fae36(_0x3ec9b7._0x396e48) + encodeURIComponent(_0x4d244e[_0x6fae36(_0x3ec9b7._0x56268d)])), _0x2ece26 = await _0x665824[_0x6fae36(_0x3ec9b7._0x55bd4d)]();
|
|
1754
|
+
if (!_0x2ece26['ok'])
|
|
1755
|
+
return null;
|
|
1756
|
+
const _0x51361c = new Set();
|
|
1757
|
+
for (const _0x229650 of _0x2ece26[_0x6fae36(0xc1)]) {
|
|
1758
|
+
_0x229650[_0x6fae36(_0x3ec9b7._0x55889e)] !== _0x6fae36(0x15c) && _0x229650['thread_target'] && _0x51361c[_0x6fae36(_0x3ec9b7._0x403527)](_0x229650[_0x6fae36(0x20a)]);
|
|
1759
|
+
}
|
|
1760
|
+
return _0x51361c[_0x6fae36(_0x3ec9b7._0x735447)] > 0x0 ? _0x51361c : null;
|
|
1761
|
+
} catch {
|
|
1762
|
+
return null;
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
return {
|
|
1766
|
+
async 'send_message'(_0x122b45) {
|
|
1767
|
+
const _0x351cf5 = _0x3fbb;
|
|
1768
|
+
if (!_0x4d244e[_0x351cf5(0x180)] && _0x4d244e['workerModeEnabled'] && _0x4d244e[_0x351cf5(0xf9)] && _0x4d244e['agentId']) {
|
|
1769
|
+
const _0x4041ad = await _0x4d244e[_0x351cf5(_0xef17a2._0x597cd8)][_0x351cf5(_0xef17a2._0x48a04f)](_0x122b45['target']);
|
|
1770
|
+
if (_0x4041ad[_0x351cf5(_0xef17a2._0x3abacd)] && _0x4041ad['threadId']) {
|
|
1771
|
+
const _0x24d737 = _0x4041ad[_0x351cf5(0x125)][_0x351cf5(0x200)] != null ? '#' + _0x4041ad[_0x351cf5(0x125)][_0x351cf5(_0xef17a2._0x59adad)] : '(legacy)', _0x2786c2 = _0x4041ad[_0x351cf5(0x1ec)] != null ? _0x4041ad['target'] + ':t' + _0x4041ad[_0x351cf5(_0xef17a2._0x3cda7b)] : _0x4041ad[_0x351cf5(_0xef17a2._0x4632d9)] + ':' + _0x4041ad['threadId'][_0x351cf5(_0xef17a2._0x26b62c)](0x0, 0x8), _0x22ce82 = [
|
|
1772
|
+
_0x351cf5(0x206) + _0x2786c2 + _0x351cf5(0x217) + new Date()[_0x351cf5(0x121)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1773
|
+
'',
|
|
1774
|
+
_0x351cf5(_0xef17a2._0x16a0e4) + _0x122b45[_0x351cf5(0x20f)],
|
|
1775
|
+
'Task:\x20' + _0x24d737 + '\x20(' + _0x4041ad[_0x351cf5(0x125)][_0x351cf5(0x23c)] + ')',
|
|
1776
|
+
'Thread\x20target:\x20' + _0x2786c2,
|
|
1777
|
+
'Read\x20thread\x20history\x20before\x20taking\x20action.\x20Do\x20not\x20echo\x20this\x20message\x20to\x20the\x20thread.'
|
|
1778
|
+
][_0x351cf5(0x148)]('\x0a'), _0x872fe2 = await fetch(_0x4d244e[_0x351cf5(0xf9)] + _0x351cf5(_0xef17a2._0x2f7077), {
|
|
1779
|
+
'method': _0x351cf5(0x136),
|
|
1780
|
+
'headers': { 'Content-Type': _0x351cf5(0x24b) },
|
|
1781
|
+
'body': JSON[_0x351cf5(_0xef17a2._0xf16fb4)]({
|
|
1782
|
+
'agent_id': _0x4d244e[_0x351cf5(0xd6)],
|
|
1783
|
+
'thread_target': _0x2786c2,
|
|
1784
|
+
'spawn_packet': {
|
|
1785
|
+
'replyTarget': _0x2786c2,
|
|
1786
|
+
'taskId': _0x4041ad['task'][_0x351cf5(_0xef17a2._0x27bd90)]
|
|
1787
|
+
},
|
|
1788
|
+
'payload': {
|
|
1789
|
+
'mode': _0x351cf5(0x127),
|
|
1790
|
+
'text': _0x22ce82
|
|
1791
|
+
}
|
|
1792
|
+
})
|
|
1793
|
+
}), _0x4df5ad = await _0x872fe2['json']();
|
|
1794
|
+
if (!_0x4df5ad['ok'])
|
|
1795
|
+
throw new Error(_0x4df5ad['error'] ?? _0x351cf5(0xd4));
|
|
1796
|
+
return [
|
|
1797
|
+
_0x351cf5(_0xef17a2._0x26302d) + _0x24d737 + _0x351cf5(0xd1) + _0x2786c2 + _0x351cf5(_0xef17a2._0x29da4b),
|
|
1798
|
+
_0x351cf5(_0xef17a2._0x22fab3) + (_0x4df5ad[_0x351cf5(0x224)] === _0x351cf5(0x229) ? 'queued' : 'started') + '.',
|
|
1799
|
+
'⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
|
|
1800
|
+
]['join']('\x0a');
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
const _0x313d3e = await _0x4d244e['client'][_0x351cf5(_0xef17a2._0x2768c8)]({
|
|
1804
|
+
'attachmentIds': _0x122b45['attachment_ids'],
|
|
1805
|
+
'content': _0x122b45[_0x351cf5(0x20f)],
|
|
1806
|
+
'target': _0x122b45[_0x351cf5(_0xef17a2._0x4632d9)],
|
|
1807
|
+
'visibility': _0x122b45[_0x351cf5(_0xef17a2._0x3f538d)]
|
|
1808
|
+
});
|
|
1809
|
+
return _0x351cf5(0xe9) + _0x122b45['target'] + _0x351cf5(_0xef17a2._0x16218a) + _0x313d3e[_0x351cf5(_0xef17a2._0x115eca)];
|
|
1810
|
+
},
|
|
1811
|
+
async 'check_messages'() {
|
|
1812
|
+
const _0x38c043 = _0x3fbb, _0x39efb5 = await _0x4d244e[_0x38c043(_0x3ec197._0x2db87e)][_0x38c043(_0x3ec197._0xf0eb73)]();
|
|
1813
|
+
if (!_0x4d244e[_0x38c043(_0x3ec197._0x32274e)]) {
|
|
1814
|
+
const _0x270af0 = await _0x2e49eb();
|
|
1815
|
+
if (_0x270af0)
|
|
1816
|
+
return formatCheckMessages(_0x39efb5[_0x38c043(0xfc)][_0x38c043(0xcc)](_0x167591 => !_0x270af0[_0x38c043(0x1b8)](_0x167591[_0x38c043(0x1ca)])));
|
|
1817
|
+
}
|
|
1818
|
+
return formatCheckMessages(_0x39efb5[_0x38c043(0xfc)]);
|
|
1819
|
+
},
|
|
1820
|
+
async 'read_history'(_0x4ebfcc) {
|
|
1821
|
+
const _0x3a1d91 = _0x3fbb, _0x3b8a03 = await _0x4d244e[_0x3a1d91(_0x1b982d._0x547f74)]['readHistory'](_0x4ebfcc);
|
|
1822
|
+
return formatHistory(_0x3b8a03);
|
|
1823
|
+
},
|
|
1824
|
+
async 'list_server'() {
|
|
1825
|
+
const _0x6baf24 = _0x3fbb, _0x3c2aa2 = await _0x4d244e[_0x6baf24(0x12e)][_0x6baf24(_0x34fd8a._0x1a8948)]();
|
|
1826
|
+
return formatServerDirectory(_0x3c2aa2);
|
|
1827
|
+
},
|
|
1828
|
+
async 'list_tasks'(_0xafa1c5) {
|
|
1829
|
+
const _0x256908 = _0x3fbb, _0x253bc5 = await _0x4d244e['client'][_0x256908(_0x158e8e._0x3fb862)](_0xafa1c5);
|
|
1830
|
+
let _0x51d7e7;
|
|
1831
|
+
if (_0x4d244e[_0x256908(_0x158e8e._0x5afd00)] && _0x4d244e['agentId'])
|
|
1832
|
+
try {
|
|
1833
|
+
const _0x501f2b = await fetch(_0x4d244e['daemonLocalUrl'] + _0x256908(_0x158e8e._0x3d7e02) + encodeURIComponent(_0x4d244e[_0x256908(_0x158e8e._0x9f2907)])), _0x122abe = await _0x501f2b[_0x256908(0x151)]();
|
|
1834
|
+
if (_0x122abe['ok']) {
|
|
1835
|
+
const _0x2918e1 = _0xafa1c5['channel'] + ':';
|
|
1836
|
+
_0x51d7e7 = new Set();
|
|
1837
|
+
for (const _0x31881d of _0x122abe['workers']) {
|
|
1838
|
+
if (_0x31881d[_0x256908(_0x158e8e._0x3f893e)] === _0x256908(_0x158e8e._0x23a644))
|
|
1839
|
+
continue;
|
|
1840
|
+
if (_0x31881d['thread_target']?.[_0x256908(_0x158e8e._0x2919df)](_0x2918e1)) {
|
|
1841
|
+
const _0x53ab1d = _0x31881d['thread_target']['slice'](_0x2918e1[_0x256908(_0x158e8e._0x220d64)]), _0x134f43 = _0x253bc5[_0x256908(_0x158e8e._0x439770)][_0x256908(0x170)](_0x46654a => _0x46654a[_0x256908(0x20d)]?.[_0x256908(0x1a0)](_0x53ab1d) === !![]);
|
|
1842
|
+
if (_0x134f43?.[_0x256908(_0x158e8e._0x2abb44)] != null) {
|
|
1843
|
+
_0x51d7e7['add'](_0x134f43[_0x256908(0x200)]);
|
|
1844
|
+
continue;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
if (_0x31881d[_0x256908(0x248)]) {
|
|
1848
|
+
const _0xf9af1f = _0x253bc5[_0x256908(0x17b)][_0x256908(0x170)](_0x5709b9 => _0x5709b9[_0x256908(0x23c)] === _0x31881d[_0x256908(0x248)]);
|
|
1849
|
+
_0xf9af1f?.['taskNumber'] != null && _0x51d7e7['add'](_0xf9af1f[_0x256908(_0x158e8e._0x43ff60)]);
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
} catch {
|
|
1854
|
+
}
|
|
1855
|
+
return formatTaskList(_0x253bc5['tasks'], _0x51d7e7);
|
|
1856
|
+
},
|
|
1857
|
+
async 'create_tasks'(_0x18e836) {
|
|
1858
|
+
const _0x1b6562 = _0x3fbb, _0x160dc6 = await _0x4d244e[_0x1b6562(_0x81a27b._0x1c940f)][_0x1b6562(0x146)](_0x18e836);
|
|
1859
|
+
return formatCreatedTasks(_0x160dc6[_0x1b6562(_0x81a27b._0x4dc5e6)]);
|
|
1860
|
+
},
|
|
1861
|
+
async 'claim_tasks'(_0x1fdf63) {
|
|
1862
|
+
const _0x3bcb7c = _0x3fbb, _0x21eec6 = await _0x4d244e[_0x3bcb7c(0x12e)][_0x3bcb7c(_0x240b82._0x1bde77)](_0x1fdf63), _0x44b488 = await Promise['all'](_0x21eec6[_0x3bcb7c(_0x240b82._0x1c7664)][_0x3bcb7c(0x100)](async _0x1c6c4d => {
|
|
1863
|
+
const _0x2e2a45 = _0x3bcb7c;
|
|
1864
|
+
if (!_0x1c6c4d['success'] || !_0x1c6c4d[_0x2e2a45(0x20d)])
|
|
1865
|
+
return _0x1c6c4d;
|
|
1866
|
+
try {
|
|
1867
|
+
const _0x49065f = await _0x4f96f1({
|
|
1868
|
+
'channel': _0x1fdf63[_0x2e2a45(_0x5ea031._0x183f5d)],
|
|
1869
|
+
'messageId': _0x1c6c4d[_0x2e2a45(_0x5ea031._0x4af131)],
|
|
1870
|
+
'taskId': _0x1c6c4d[_0x2e2a45(_0x5ea031._0x2e5de6)],
|
|
1871
|
+
'taskNumber': _0x1c6c4d[_0x2e2a45(_0x5ea031._0x54cffc)],
|
|
1872
|
+
'threadNumber': _0x1c6c4d['threadNumber']
|
|
1873
|
+
});
|
|
1874
|
+
return _0x49065f ? {
|
|
1875
|
+
..._0x1c6c4d,
|
|
1876
|
+
..._0x49065f
|
|
1877
|
+
} : _0x1c6c4d;
|
|
1878
|
+
} catch (_0x185d33) {
|
|
1879
|
+
return {
|
|
1880
|
+
..._0x1c6c4d,
|
|
1881
|
+
'workerHandoffError': _0x185d33 instanceof Error ? _0x185d33['message'] : _0x2e2a45(_0x5ea031._0x194b2c)
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
}));
|
|
1885
|
+
return formatClaimTaskResults(_0x44b488);
|
|
1886
|
+
},
|
|
1887
|
+
async 'unclaim_task'(_0x568007) {
|
|
1888
|
+
const _0x5c3258 = _0x3fbb, _0x802b01 = await _0x4d244e[_0x5c3258(_0x4b8670._0xc2e12a)][_0x5c3258(_0x4b8670._0x4c83dd)](_0x568007);
|
|
1889
|
+
return formatUnclaimTaskResult(_0x802b01);
|
|
1890
|
+
},
|
|
1891
|
+
async 'update_task_status'(_0x205e98) {
|
|
1892
|
+
const _0x104d46 = _0x3fbb, _0x19d9bc = await _0x4d244e[_0x104d46(0x12e)]['updateTaskStatus'](_0x205e98);
|
|
1893
|
+
return formatUpdateTaskStatusResult(_0x19d9bc);
|
|
1894
|
+
},
|
|
1895
|
+
async 'upload_file'(_0x3244eb) {
|
|
1896
|
+
const _0x7c4bd1 = _0x3fbb, _0x4451e9 = await _0x4d244e[_0x7c4bd1(0x12f)](_0x3244eb[_0x7c4bd1(_0x4facf1._0x1adc48)]), {
|
|
1897
|
+
sizeBytes: _0x34b7c7,
|
|
1898
|
+
..._0x4bae67
|
|
1899
|
+
} = _0x4451e9, _0x18e9cc = await _0x4d244e[_0x7c4bd1(0x12e)][_0x7c4bd1(_0x4facf1._0xeb3f4c)]({
|
|
1900
|
+
'channel': _0x3244eb['channel'],
|
|
1901
|
+
..._0x4bae67
|
|
1902
|
+
});
|
|
1903
|
+
return formatUploadResult(_0x18e9cc);
|
|
1904
|
+
},
|
|
1905
|
+
async 'view_file'(_0x224c57) {
|
|
1906
|
+
const _0x6a735e = _0x3fbb, _0x338f65 = await _0x4d244e['attachmentCache'][_0x6a735e(_0xa9506._0x78b693)](_0x224c57['attachment_id']);
|
|
1907
|
+
if (_0x338f65)
|
|
1908
|
+
return formatViewFileResult(_0x338f65, !![]);
|
|
1909
|
+
const _0x176a70 = await _0x4d244e[_0x6a735e(0x12e)][_0x6a735e(0x17c)](_0x224c57[_0x6a735e(0x1f2)]), _0x1ebe3a = await _0x4d244e[_0x6a735e(_0xa9506._0x5a2635)][_0x6a735e(0x203)]({
|
|
1910
|
+
'attachmentId': _0x224c57['attachment_id'],
|
|
1911
|
+
'contentType': _0x176a70[_0x6a735e(0x158)],
|
|
1912
|
+
'data': _0x176a70['data'],
|
|
1913
|
+
'originalFilename': _0x176a70[_0x6a735e(_0xa9506._0x4b6d0b)]
|
|
1914
|
+
});
|
|
1915
|
+
return formatViewFileResult(_0x1ebe3a, ![]);
|
|
1916
|
+
},
|
|
1917
|
+
async 'get_worker_status'(_0x58ead8) {
|
|
1918
|
+
const _0x751fe5 = _0x3fbb;
|
|
1919
|
+
if (!_0x4d244e[_0x751fe5(_0x33b6cc._0x5b0dde)])
|
|
1920
|
+
return _0x751fe5(_0x33b6cc._0x1a028d);
|
|
1921
|
+
const _0x325c37 = await fetch(_0x4d244e[_0x751fe5(0xf9)] + '/workers/status?work_key=' + encodeURIComponent(_0x58ead8[_0x751fe5(_0x33b6cc._0x2cb227)])), _0x23a5c8 = await _0x325c37['json']();
|
|
1922
|
+
if (!_0x23a5c8['ok'])
|
|
1923
|
+
return _0x751fe5(_0x33b6cc._0x31988a) + _0x58ead8[_0x751fe5(0x1c0)] + _0x751fe5(_0x33b6cc._0x5985f0);
|
|
1924
|
+
return _0x751fe5(_0x33b6cc._0x31988a) + _0x58ead8[_0x751fe5(0x1c0)] + _0x751fe5(_0x33b6cc._0x592035) + _0x23a5c8[_0x751fe5(0xc9)];
|
|
1925
|
+
},
|
|
1926
|
+
async 'get_worker_result'(_0x123c63) {
|
|
1927
|
+
const _0xb20563 = _0x3fbb;
|
|
1928
|
+
if (!_0x4d244e[_0xb20563(_0x5094f7._0x3caa2e)])
|
|
1929
|
+
return _0xb20563(_0x5094f7._0x588635);
|
|
1930
|
+
const _0x2e6672 = await fetch(_0x4d244e[_0xb20563(_0x5094f7._0x4bd154)] + _0xb20563(_0x5094f7._0x36cdd6) + encodeURIComponent(_0x123c63['work_key'])), _0x4cd21e = await _0x2e6672[_0xb20563(0x151)]();
|
|
1931
|
+
if (!_0x4cd21e[_0xb20563(_0x5094f7._0x170c86)])
|
|
1932
|
+
return _0xb20563(_0x5094f7._0x31c702) + _0x123c63[_0xb20563(0x1c0)] + '\x22';
|
|
1933
|
+
return JSON[_0xb20563(0x18b)](_0x4cd21e[_0xb20563(_0x5094f7._0x68075f)], null, 0x2);
|
|
1934
|
+
},
|
|
1935
|
+
async 'finish_worker'(_0x15823b) {
|
|
1936
|
+
const _0x231065 = _0x3fbb;
|
|
1937
|
+
if (!_0x4d244e[_0x231065(0xf9)])
|
|
1938
|
+
return _0x231065(0x1bc);
|
|
1939
|
+
const _0x485900 = await fetch(_0x4d244e['daemonLocalUrl'] + '/workers/finish', {
|
|
1940
|
+
'method': _0x231065(0x136),
|
|
1941
|
+
'headers': { 'Content-Type': _0x231065(0x24b) },
|
|
1942
|
+
'body': JSON['stringify']({
|
|
1943
|
+
'work_key': _0x15823b[_0x231065(0x1c0)],
|
|
1944
|
+
'resume_packet': {
|
|
1945
|
+
'objective': '',
|
|
1946
|
+
'result': _0x15823b['result'],
|
|
1947
|
+
'summary': _0x15823b[_0x231065(_0x3a7e38._0x37dd15)],
|
|
1948
|
+
'decisions': _0x15823b[_0x231065(0xd2)] ?? [],
|
|
1949
|
+
'filesChanged': _0x15823b['files_changed'] ?? [],
|
|
1950
|
+
'openIssues': _0x15823b[_0x231065(0x1bb)] ?? [],
|
|
1951
|
+
'nextSteps': _0x15823b[_0x231065(0x1b3)] ?? []
|
|
1952
|
+
}
|
|
1953
|
+
})
|
|
1954
|
+
}), _0x103aa3 = await _0x485900[_0x231065(0x151)]();
|
|
1955
|
+
if (!_0x103aa3['ok'])
|
|
1956
|
+
throw new Error(_0x103aa3[_0x231065(0x212)] ?? _0x231065(_0x3a7e38._0xfe9c7a));
|
|
1957
|
+
return _0x231065(0x10a) + _0x15823b[_0x231065(_0x3a7e38._0x272a37)] + '\x22\x20finished\x20with\x20result:\x20' + _0x15823b[_0x231065(0x222)];
|
|
1958
|
+
},
|
|
1959
|
+
async 'mark_waiting_input'(_0x328be9) {
|
|
1960
|
+
const _0x287456 = _0x3fbb;
|
|
1961
|
+
if (!_0x4d244e[_0x287456(0xf9)] || !_0x4d244e[_0x287456(_0x52d414._0x4fd404)])
|
|
1962
|
+
return _0x287456(0xf8);
|
|
1963
|
+
const _0x1cf348 = await fetch(_0x4d244e[_0x287456(0xf9)] + _0x287456(0x1ae), {
|
|
1964
|
+
'method': _0x287456(_0x52d414._0x452b22),
|
|
1965
|
+
'headers': { 'Content-Type': _0x287456(_0x52d414._0x498070) },
|
|
1966
|
+
'body': JSON[_0x287456(0x18b)]({
|
|
1967
|
+
'work_key': _0x328be9[_0x287456(0x1c0)],
|
|
1968
|
+
'agent_id': _0x4d244e[_0x287456(_0x52d414._0x1a893b)]
|
|
1969
|
+
})
|
|
1970
|
+
}), _0x3849fc = await _0x1cf348[_0x287456(0x151)]();
|
|
1971
|
+
if (!_0x3849fc['ok'])
|
|
1972
|
+
throw new Error(_0x3849fc[_0x287456(_0x52d414._0x4b3f57)] ?? _0x287456(_0x52d414._0x594e9d));
|
|
1973
|
+
return _0x287456(_0x52d414._0xa1e948) + _0x328be9['work_key'] + _0x287456(0x133);
|
|
1974
|
+
},
|
|
1975
|
+
async 'escalate_to_main'(_0x41f586) {
|
|
1976
|
+
const _0x2e5042 = _0x3fbb;
|
|
1977
|
+
if (!_0x4d244e['daemonLocalUrl'])
|
|
1978
|
+
return _0x2e5042(0x1bc);
|
|
1979
|
+
const _0x306b0d = await fetch(_0x4d244e[_0x2e5042(_0x41f72a._0x363edf)] + _0x2e5042(_0x41f72a._0x53dde), {
|
|
1980
|
+
'method': 'POST',
|
|
1981
|
+
'headers': { 'Content-Type': _0x2e5042(0x24b) },
|
|
1982
|
+
'body': JSON['stringify']({
|
|
1983
|
+
'work_key': _0x41f586[_0x2e5042(_0x41f72a._0x4a6a09)],
|
|
1984
|
+
'reason': _0x41f586[_0x2e5042(_0x41f72a._0x18312d)]
|
|
1985
|
+
})
|
|
1986
|
+
}), _0x22d60f = await _0x306b0d[_0x2e5042(_0x41f72a._0x5c9258)]();
|
|
1987
|
+
if (!_0x22d60f['ok'])
|
|
1988
|
+
throw new Error(_0x22d60f['error'] ?? _0x2e5042(_0x41f72a._0x3fb0cd));
|
|
1989
|
+
return _0x2e5042(_0x41f72a._0x1a09e8) + _0x41f586['reason'];
|
|
1990
|
+
}
|
|
1991
|
+
};
|
|
1992
|
+
}
|
|
1993
|
+
function textResult(_0x551864, _0xc3784c = ![]) {
|
|
1994
|
+
const _0x2233d1 = { _0x42a19f: 0x12d }, _0x31b8ea = _0x1bf962;
|
|
1995
|
+
return {
|
|
1996
|
+
'content': [{
|
|
1997
|
+
'type': _0x31b8ea(_0x2233d1._0x42a19f),
|
|
1998
|
+
'text': _0x551864
|
|
1999
|
+
}],
|
|
2000
|
+
..._0xc3784c ? { 'isError': !![] } : {}
|
|
2001
|
+
};
|
|
2002
|
+
}
|
|
2003
|
+
async function registerChatBridgeTools(_0x405754, _0x400cab, _0x494f9a) {
|
|
2004
|
+
const _0x46d75c = {
|
|
2005
|
+
_0x43baa7: 0x105,
|
|
2006
|
+
_0x14901f: 0x1e7,
|
|
2007
|
+
_0x2c1b57: 0x246,
|
|
2008
|
+
_0x199d9d: 0x21d,
|
|
2009
|
+
_0x39bc6f: 0x1e4,
|
|
2010
|
+
_0x5655bd: 0x126,
|
|
2011
|
+
_0x2c457c: 0x1e4,
|
|
2012
|
+
_0x2522aa: 0x10c,
|
|
2013
|
+
_0x23791b: 0x186,
|
|
2014
|
+
_0x2dfaa1: 0x140,
|
|
2015
|
+
_0x47a531: 0x24c,
|
|
2016
|
+
_0x4a99db: 0x1e4,
|
|
2017
|
+
_0x5ccab3: 0x1e7,
|
|
2018
|
+
_0x25e2d3: 0x184,
|
|
2019
|
+
_0x3a4610: 0x1e4,
|
|
2020
|
+
_0x4ec372: 0x1a5,
|
|
2021
|
+
_0xc72345: 0x134,
|
|
2022
|
+
_0xe943c0: 0x171,
|
|
2023
|
+
_0x526d5f: 0x193,
|
|
2024
|
+
_0x282c21: 0x11d,
|
|
2025
|
+
_0x3f9536: 0x246,
|
|
2026
|
+
_0x2dfbcd: 0x225,
|
|
2027
|
+
_0x28289f: 0x188,
|
|
2028
|
+
_0x2ff49e: 0x171,
|
|
2029
|
+
_0x2e1eaf: 0x1e7,
|
|
2030
|
+
_0x4a15f4: 0x1c6,
|
|
2031
|
+
_0x3a5e8d: 0x184,
|
|
2032
|
+
_0x34fea0: 0x19d,
|
|
2033
|
+
_0x9a4324: 0x1af,
|
|
2034
|
+
_0x3d3363: 0x1e7,
|
|
2035
|
+
_0x587a52: 0x161,
|
|
2036
|
+
_0xb5b644: 0x1e7,
|
|
2037
|
+
_0x2c8b8d: 0xff,
|
|
2038
|
+
_0x54eda6: 0x1f8,
|
|
2039
|
+
_0x1d04d7: 0x115,
|
|
2040
|
+
_0x596aa9: 0x177,
|
|
2041
|
+
_0xc73c02: 0x1e7,
|
|
2042
|
+
_0x500673: 0x198,
|
|
2043
|
+
_0x55e45c: 0x1e7,
|
|
2044
|
+
_0x292c23: 0x199
|
|
2045
|
+
}, _0x58c225 = { _0x389288: 0x1b2 }, _0x4bcbc2 = { _0x239602: 0x20c }, _0x5a954d = { _0x3527a5: 0x1f8 }, _0x1b3d7d = { _0x17c0ac: 0xca }, _0x3c7d93 = { _0x1feced: 0x1b2 }, _0x591fee = { _0x42941d: 0x1b2 }, _0x400bd0 = {
|
|
2046
|
+
_0x51c649: 0x19a,
|
|
2047
|
+
_0x3a58ef: 0x1b2
|
|
2048
|
+
}, _0x30400c = {
|
|
2049
|
+
_0x561b11: 0x193,
|
|
2050
|
+
_0x1ed5a6: 0x1b2,
|
|
2051
|
+
_0xbf7784: 0x153
|
|
2052
|
+
}, _0x31e104 = { _0x573b10: 0x17f }, _0x205969 = { _0x9fdb9f: 0x1b5 }, _0x1dab32 = { _0x39c96b: 0x140 }, _0x4afbe8 = {
|
|
2053
|
+
_0x17838e: 0x21b,
|
|
2054
|
+
_0x360511: 0x1b2
|
|
2055
|
+
}, _0x4a0287 = { _0xaa07fc: 0x1b2 }, _0x2573e5 = _0x1bf962, {z: _0x2e8397} = await import(_0x2573e5(0x216));
|
|
2056
|
+
_0x405754[_0x2573e5(0x1e4)](_0x2573e5(_0x46d75c._0x43baa7), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
|
|
2057
|
+
'target': _0x2e8397[_0x2573e5(_0x46d75c._0x14901f)](),
|
|
2058
|
+
'content': _0x2e8397[_0x2573e5(_0x46d75c._0x14901f)](),
|
|
2059
|
+
'attachment_ids': _0x2e8397[_0x2573e5(_0x46d75c._0x2c1b57)](_0x2e8397[_0x2573e5(_0x46d75c._0x14901f)]())[_0x2573e5(0x171)](),
|
|
2060
|
+
'visibility': _0x2e8397[_0x2573e5(0xef)]([
|
|
2061
|
+
_0x2573e5(0x144),
|
|
2062
|
+
_0x2573e5(_0x46d75c._0x199d9d)
|
|
2063
|
+
])[_0x2573e5(0x171)]()['describe'](_0x2573e5(0x249))
|
|
2064
|
+
}, async _0x512eb1 => {
|
|
2065
|
+
const _0x1e0c32 = _0x2573e5;
|
|
2066
|
+
try {
|
|
2067
|
+
return textResult(await _0x400cab['send_message'](_0x512eb1));
|
|
2068
|
+
} catch (_0x36f52c) {
|
|
2069
|
+
return textResult(_0x36f52c instanceof Error ? _0x36f52c[_0x1e0c32(0x1b2)] : 'send_message\x20failed', !![]);
|
|
2070
|
+
}
|
|
2071
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x39bc6f)](_0x2573e5(0x13b), _0x2573e5(_0x46d75c._0x5655bd), {}, async () => {
|
|
2072
|
+
const _0x1e85ac = _0x2573e5;
|
|
2073
|
+
try {
|
|
2074
|
+
return textResult(await _0x400cab[_0x1e85ac(0x13b)]());
|
|
2075
|
+
} catch (_0x50d8e3) {
|
|
2076
|
+
return textResult(_0x50d8e3 instanceof Error ? _0x50d8e3[_0x1e85ac(_0x4a0287._0xaa07fc)] : _0x1e85ac(0x1a1), !![]);
|
|
2077
|
+
}
|
|
2078
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x2c457c)](_0x2573e5(0x21b), _0x2573e5(_0x46d75c._0x2522aa), {
|
|
2079
|
+
'channel': _0x2e8397[_0x2573e5(0x1e7)](),
|
|
2080
|
+
'limit': _0x2e8397[_0x2573e5(_0x46d75c._0x23791b)]()['optional'](),
|
|
2081
|
+
'before': _0x2e8397[_0x2573e5(0x186)]()['optional'](),
|
|
2082
|
+
'after': _0x2e8397[_0x2573e5(_0x46d75c._0x23791b)]()[_0x2573e5(0x171)]()
|
|
2083
|
+
}, async _0x1b8c16 => {
|
|
2084
|
+
const _0x2076c4 = _0x2573e5;
|
|
2085
|
+
try {
|
|
2086
|
+
return textResult(await _0x400cab[_0x2076c4(_0x4afbe8._0x17838e)](_0x1b8c16));
|
|
2087
|
+
} catch (_0x512721) {
|
|
2088
|
+
return textResult(_0x512721 instanceof Error ? _0x512721[_0x2076c4(_0x4afbe8._0x360511)] : 'read_history\x20failed', !![]);
|
|
2089
|
+
}
|
|
2090
|
+
}), _0x405754[_0x2573e5(0x1e4)](_0x2573e5(_0x46d75c._0x2dfaa1), _0x2573e5(_0x46d75c._0x47a531), {}, async () => {
|
|
2091
|
+
const _0x348e1b = _0x2573e5;
|
|
2092
|
+
try {
|
|
2093
|
+
return textResult(await _0x400cab[_0x348e1b(_0x1dab32._0x39c96b)]());
|
|
2094
|
+
} catch (_0x522dfa) {
|
|
2095
|
+
return textResult(_0x522dfa instanceof Error ? _0x522dfa[_0x348e1b(0x1b2)] : _0x348e1b(0xfb), !![]);
|
|
2096
|
+
}
|
|
2097
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x4a99db)](_0x2573e5(0x1b5), _0x2573e5(0x190), {
|
|
2098
|
+
'channel': _0x2e8397[_0x2573e5(_0x46d75c._0x5ccab3)](),
|
|
2099
|
+
'status': _0x2e8397[_0x2573e5(0xef)]([
|
|
2100
|
+
_0x2573e5(0x245),
|
|
2101
|
+
_0x2573e5(_0x46d75c._0x25e2d3),
|
|
2102
|
+
'in_review',
|
|
2103
|
+
_0x2573e5(0x152)
|
|
2104
|
+
])[_0x2573e5(0x171)]()
|
|
2105
|
+
}, async _0xd68d43 => {
|
|
2106
|
+
const _0x19f455 = _0x2573e5;
|
|
2107
|
+
try {
|
|
2108
|
+
return textResult(await _0x400cab[_0x19f455(_0x205969._0x9fdb9f)](_0xd68d43));
|
|
2109
|
+
} catch (_0x1a82d8) {
|
|
2110
|
+
return textResult(_0x1a82d8 instanceof Error ? _0x1a82d8[_0x19f455(0x1b2)] : _0x19f455(0x192), !![]);
|
|
2111
|
+
}
|
|
2112
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x3a4610)]('create_tasks', 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
2113
|
+
'channel': _0x2e8397[_0x2573e5(0x1e7)](),
|
|
2114
|
+
'idempotency_key': _0x2e8397[_0x2573e5(_0x46d75c._0x14901f)]()[_0x2573e5(0x171)](),
|
|
2115
|
+
'tasks': _0x2e8397[_0x2573e5(_0x46d75c._0x2c1b57)](_0x2e8397[_0x2573e5(0x14c)]({
|
|
2116
|
+
'title': _0x2e8397[_0x2573e5(0x1e7)](),
|
|
2117
|
+
'description': _0x2e8397[_0x2573e5(0x1e7)]()[_0x2573e5(0x171)](),
|
|
2118
|
+
'priority': _0x2e8397['enum']([
|
|
2119
|
+
_0x2573e5(0x242),
|
|
2120
|
+
_0x2573e5(_0x46d75c._0x4ec372),
|
|
2121
|
+
_0x2573e5(0xc4),
|
|
2122
|
+
_0x2573e5(_0x46d75c._0xc72345)
|
|
2123
|
+
])[_0x2573e5(_0x46d75c._0xe943c0)]()
|
|
2124
|
+
}))
|
|
2125
|
+
}, async _0x5dd46d => {
|
|
2126
|
+
const _0x1cc13c = _0x2573e5;
|
|
2127
|
+
try {
|
|
2128
|
+
return textResult(await _0x400cab[_0x1cc13c(_0x31e104._0x573b10)](_0x5dd46d));
|
|
2129
|
+
} catch (_0xe7a06d) {
|
|
2130
|
+
return textResult(_0xe7a06d instanceof Error ? _0xe7a06d[_0x1cc13c(0x1b2)] : 'create_tasks\x20failed', !![]);
|
|
2131
|
+
}
|
|
2132
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x4a99db)](_0x2573e5(_0x46d75c._0x526d5f), _0x2573e5(_0x46d75c._0x282c21), {
|
|
2133
|
+
'channel': _0x2e8397['string'](),
|
|
2134
|
+
'task_numbers': _0x2e8397[_0x2573e5(_0x46d75c._0x3f9536)](_0x2e8397['number']())[_0x2573e5(0x171)](),
|
|
2135
|
+
'message_ids': _0x2e8397[_0x2573e5(0x246)](_0x2e8397['string']())[_0x2573e5(_0x46d75c._0xe943c0)](),
|
|
2136
|
+
'evidence': _0x2e8397[_0x2573e5(_0x46d75c._0x2dfbcd)](_0x2e8397[_0x2573e5(0x1e7)](), _0x2e8397[_0x2573e5(0x14c)]({
|
|
2137
|
+
'create_thread': _0x2e8397[_0x2573e5(_0x46d75c._0x28289f)]()[_0x2573e5(0x171)](),
|
|
2138
|
+
'create_task': _0x2e8397[_0x2573e5(_0x46d75c._0x28289f)]()[_0x2573e5(_0x46d75c._0x2ff49e)]()
|
|
2139
|
+
}))['optional'](),
|
|
2140
|
+
'idempotency_key': _0x2e8397[_0x2573e5(0x1e7)]()[_0x2573e5(0x171)]()
|
|
2141
|
+
}, async _0x3470ac => {
|
|
2142
|
+
const _0x286095 = _0x2573e5;
|
|
2143
|
+
try {
|
|
2144
|
+
return textResult(await _0x400cab[_0x286095(_0x30400c._0x561b11)](_0x3470ac));
|
|
2145
|
+
} catch (_0x510e99) {
|
|
2146
|
+
return textResult(_0x510e99 instanceof Error ? _0x510e99[_0x286095(_0x30400c._0x1ed5a6)] : _0x286095(_0x30400c._0xbf7784), !![]);
|
|
2147
|
+
}
|
|
2148
|
+
}), _0x405754[_0x2573e5(0x1e4)]('unclaim_task', _0x2573e5(0x243), {
|
|
2149
|
+
'channel': _0x2e8397[_0x2573e5(_0x46d75c._0x5ccab3)](),
|
|
2150
|
+
'task_number': _0x2e8397['number'](),
|
|
2151
|
+
'idempotency_key': _0x2e8397[_0x2573e5(_0x46d75c._0x2e1eaf)]()[_0x2573e5(_0x46d75c._0x2ff49e)]()
|
|
2152
|
+
}, async _0x241ad0 => {
|
|
2153
|
+
const _0x45142e = _0x2573e5;
|
|
2154
|
+
try {
|
|
2155
|
+
return textResult(await _0x400cab[_0x45142e(_0x400bd0._0x51c649)](_0x241ad0));
|
|
2156
|
+
} catch (_0x290648) {
|
|
2157
|
+
return textResult(_0x290648 instanceof Error ? _0x290648[_0x45142e(_0x400bd0._0x3a58ef)] : 'unclaim_task\x20failed', !![]);
|
|
2158
|
+
}
|
|
2159
|
+
}), _0x405754['tool'](_0x2573e5(0x1a3), _0x2573e5(_0x46d75c._0x4a15f4), {
|
|
2160
|
+
'channel': _0x2e8397[_0x2573e5(0x1e7)](),
|
|
2161
|
+
'task_number': _0x2e8397[_0x2573e5(0x186)](),
|
|
2162
|
+
'status': _0x2e8397[_0x2573e5(0xef)]([
|
|
2163
|
+
_0x2573e5(0x245),
|
|
2164
|
+
_0x2573e5(_0x46d75c._0x3a5e8d),
|
|
2165
|
+
_0x2573e5(_0x46d75c._0x34fea0),
|
|
2166
|
+
'done'
|
|
2167
|
+
]),
|
|
2168
|
+
'idempotency_key': _0x2e8397['string']()[_0x2573e5(0x171)]()
|
|
2169
|
+
}, async _0x25f9ec => {
|
|
2170
|
+
const _0x3ef64a = _0x2573e5;
|
|
2171
|
+
try {
|
|
2172
|
+
return textResult(await _0x400cab[_0x3ef64a(0x1a3)](_0x25f9ec));
|
|
2173
|
+
} catch (_0x335b53) {
|
|
2174
|
+
return textResult(_0x335b53 instanceof Error ? _0x335b53[_0x3ef64a(_0x591fee._0x42941d)] : _0x3ef64a(0x21a), !![]);
|
|
2175
|
+
}
|
|
2176
|
+
}), _0x405754[_0x2573e5(0x1e4)]('upload_file', _0x2573e5(_0x46d75c._0x9a4324), {
|
|
2177
|
+
'channel': _0x2e8397[_0x2573e5(_0x46d75c._0x3d3363)](),
|
|
2178
|
+
'file_path': _0x2e8397[_0x2573e5(0x1e7)]()
|
|
2179
|
+
}, async _0x2e43aa => {
|
|
2180
|
+
const _0x4c848b = _0x2573e5;
|
|
2181
|
+
try {
|
|
2182
|
+
return textResult(await _0x400cab['upload_file'](_0x2e43aa));
|
|
2183
|
+
} catch (_0x3a612b) {
|
|
2184
|
+
return textResult(_0x3a612b instanceof Error ? _0x3a612b['message'] : _0x4c848b(0x20e), !![]);
|
|
2185
|
+
}
|
|
2186
|
+
}), _0x405754[_0x2573e5(0x1e4)](_0x2573e5(_0x46d75c._0x587a52), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x2e8397[_0x2573e5(_0x46d75c._0xb5b644)]() }, async _0x282ad2 => {
|
|
2187
|
+
const _0x3d0ad1 = _0x2573e5;
|
|
2188
|
+
try {
|
|
2189
|
+
return textResult(await _0x400cab[_0x3d0ad1(0x161)](_0x282ad2));
|
|
2190
|
+
} catch (_0x1ab02d) {
|
|
2191
|
+
return textResult(_0x1ab02d instanceof Error ? _0x1ab02d['message'] : _0x3d0ad1(0x1b0), !![]);
|
|
2192
|
+
}
|
|
2193
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x4a99db)]('get_worker_status', 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x2e8397[_0x2573e5(0x1e7)]() }, async _0x3ffacb => {
|
|
2194
|
+
const _0x25d058 = _0x2573e5;
|
|
2195
|
+
try {
|
|
2196
|
+
return textResult(await _0x400cab['get_worker_status'](_0x3ffacb));
|
|
2197
|
+
} catch (_0xaec18f) {
|
|
2198
|
+
return textResult(_0xaec18f instanceof Error ? _0xaec18f[_0x25d058(_0x3c7d93._0x1feced)] : _0x25d058(0xe1), !![]);
|
|
2199
|
+
}
|
|
2200
|
+
}), _0x405754['tool']('get_worker_result', _0x2573e5(_0x46d75c._0x2c8b8d), { 'work_key': _0x2e8397['string']() }, async _0x44805b => {
|
|
2201
|
+
const _0x430426 = _0x2573e5;
|
|
2202
|
+
try {
|
|
2203
|
+
return textResult(await _0x400cab[_0x430426(_0x1b3d7d._0x17c0ac)](_0x44805b));
|
|
2204
|
+
} catch (_0xe6d9b) {
|
|
2205
|
+
return textResult(_0xe6d9b instanceof Error ? _0xe6d9b[_0x430426(0x1b2)] : _0x430426(0x176), !![]);
|
|
2206
|
+
}
|
|
2207
|
+
}), _0x405754['tool'](_0x2573e5(_0x46d75c._0x54eda6), _0x2573e5(_0x46d75c._0x1d04d7), {
|
|
2208
|
+
'work_key': _0x2e8397[_0x2573e5(0x1e7)](),
|
|
2209
|
+
'result': _0x2e8397[_0x2573e5(0xef)]([
|
|
2210
|
+
_0x2573e5(0x1c8),
|
|
2211
|
+
_0x2573e5(_0x46d75c._0x596aa9),
|
|
2212
|
+
_0x2573e5(0xf7)
|
|
2213
|
+
]),
|
|
2214
|
+
'summary': _0x2e8397[_0x2573e5(_0x46d75c._0xc73c02)](),
|
|
2215
|
+
'decisions': _0x2e8397[_0x2573e5(_0x46d75c._0x2c1b57)](_0x2e8397[_0x2573e5(0x1e7)]())['optional'](),
|
|
2216
|
+
'files_changed': _0x2e8397[_0x2573e5(0x246)](_0x2e8397['string']())[_0x2573e5(0x171)](),
|
|
2217
|
+
'open_issues': _0x2e8397[_0x2573e5(0x246)](_0x2e8397[_0x2573e5(0x1e7)]())[_0x2573e5(_0x46d75c._0x2ff49e)](),
|
|
2218
|
+
'next_steps': _0x2e8397[_0x2573e5(_0x46d75c._0x3f9536)](_0x2e8397[_0x2573e5(_0x46d75c._0xc73c02)]())['optional']()
|
|
2219
|
+
}, async _0x27fbb5 => {
|
|
2220
|
+
const _0x97bb53 = _0x2573e5;
|
|
2221
|
+
try {
|
|
2222
|
+
return textResult(await _0x400cab[_0x97bb53(_0x5a954d._0x3527a5)](_0x27fbb5));
|
|
2223
|
+
} catch (_0x4228ab) {
|
|
2224
|
+
return textResult(_0x4228ab instanceof Error ? _0x4228ab[_0x97bb53(0x1b2)] : 'finish_worker\x20failed', !![]);
|
|
2225
|
+
}
|
|
2226
|
+
}), _0x405754[_0x2573e5(_0x46d75c._0x4a99db)](_0x2573e5(_0x46d75c._0x500673), _0x2573e5(0x1d4), {
|
|
2227
|
+
'work_key': _0x2e8397['string'](),
|
|
2228
|
+
'reason': _0x2e8397[_0x2573e5(_0x46d75c._0x55e45c)]()
|
|
2229
|
+
}, async _0x56a395 => {
|
|
2230
|
+
const _0x1245df = _0x2573e5;
|
|
2231
|
+
try {
|
|
2232
|
+
return textResult(await _0x400cab['escalate_to_main'](_0x56a395));
|
|
2233
|
+
} catch (_0x412645) {
|
|
2234
|
+
return textResult(_0x412645 instanceof Error ? _0x412645[_0x1245df(0x1b2)] : _0x1245df(_0x4bcbc2._0x239602), !![]);
|
|
2235
|
+
}
|
|
2236
|
+
}), _0x494f9a?.[_0x2573e5(0x180)] && _0x405754[_0x2573e5(_0x46d75c._0x39bc6f)](_0x2573e5(_0x46d75c._0x292c23), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x2e8397[_0x2573e5(_0x46d75c._0x14901f)]() }, async _0x55dfd0 => {
|
|
2237
|
+
const _0x24a2c4 = _0x2573e5;
|
|
2238
|
+
try {
|
|
2239
|
+
return textResult(await _0x400cab[_0x24a2c4(0x199)](_0x55dfd0));
|
|
2240
|
+
} catch (_0x5570ef) {
|
|
2241
|
+
return textResult(_0x5570ef instanceof Error ? _0x5570ef[_0x24a2c4(_0x58c225._0x389288)] : _0x24a2c4(0x11e), !![]);
|
|
2242
|
+
}
|
|
2243
|
+
});
|
|
2244
|
+
}
|
|
2245
|
+
async function createChatBridgeServer(_0x49791e) {
|
|
2246
|
+
const _0x53b2ad = { _0x1ba874: 0x180 }, _0x59eed9 = _0x1bf962, {McpServer: _0x9e4c70} = await import(_0x59eed9(0xd9)), _0x376ec1 = new _0x9e4c70({
|
|
2247
|
+
'name': _0x59eed9(0x18f),
|
|
2248
|
+
'version': _0x59eed9(0x1c4)
|
|
2249
|
+
}), _0x57a6a8 = createChatBridgeHandlers(_0x49791e);
|
|
2250
|
+
return await registerChatBridgeTools(_0x376ec1, _0x57a6a8, { 'workerMode': _0x49791e[_0x59eed9(_0x53b2ad._0x1ba874)] }), {
|
|
2251
|
+
'handlers': _0x57a6a8,
|
|
2252
|
+
'server': _0x376ec1
|
|
2253
|
+
};
|
|
2254
|
+
}
|
|
2255
|
+
function readFlag(_0x5a6437, _0x4c889d) {
|
|
2256
|
+
const _0xae1bf5 = _0x1bf962, _0x214b41 = _0x5a6437[_0xae1bf5(0x15f)](_0x4c889d);
|
|
2257
|
+
if (_0x214b41 === -0x1)
|
|
2258
|
+
return void 0x0;
|
|
2259
|
+
return _0x5a6437[_0x214b41 + 0x1];
|
|
2260
|
+
}
|
|
2261
|
+
function parseChatBridgeArgs(_0xa58575) {
|
|
2262
|
+
const _0x46788e = {
|
|
2263
|
+
_0x30c9f7: 0x1e2,
|
|
2264
|
+
_0x521e96: 0xc3,
|
|
2265
|
+
_0xbc295b: 0x104,
|
|
2266
|
+
_0x9ecf97: 0x22b,
|
|
2267
|
+
_0x4f5c6b: 0x232,
|
|
2268
|
+
_0x4ccaf0: 0xe5,
|
|
2269
|
+
_0x1e9f4a: 0x166,
|
|
2270
|
+
_0xfca6d4: 0x16d
|
|
2271
|
+
}, _0x46f27b = _0x1bf962, _0x2bf0e6 = readFlag(_0xa58575, _0x46f27b(0x165)), _0x49e9db = readFlag(_0xa58575, '--daemon-api-key'), _0x2af28c = readFlag(_0xa58575, '--initial-last-seen-seq'), _0x445524 = readFlag(_0xa58575, '--server-url') ?? _0x46f27b(_0x46788e._0x30c9f7), _0x160c86 = readFlag(_0xa58575, _0x46f27b(_0x46788e._0x521e96)), _0xcdb032 = readFlag(_0xa58575, _0x46f27b(_0x46788e._0xbc295b)), _0xc140a4 = readFlag(_0xa58575, _0x46f27b(_0x46788e._0x9ecf97)), _0x5c99d4 = readFlag(_0xa58575, _0x46f27b(0x1a6)), _0x11bf7b = readFlag(_0xa58575, _0x46f27b(0x1fd)), _0x4a480c = _0xa58575[_0x46f27b(_0x46788e._0x4f5c6b)]('--worker-mode'), _0x45171e = _0x2af28c === void 0x0 ? void 0x0 : Number['parseInt'](_0x2af28c, 0xa);
|
|
2272
|
+
if (!_0x2bf0e6)
|
|
2273
|
+
throw new Error('Missing\x20--agent-id');
|
|
2274
|
+
if (!_0x49e9db)
|
|
2275
|
+
throw new Error(_0x46f27b(_0x46788e._0x4ccaf0));
|
|
2276
|
+
if (_0x2af28c !== void 0x0 && (_0x45171e === void 0x0 || !Number[_0x46f27b(_0x46788e._0x1e9f4a)](_0x45171e) || _0x45171e < 0x0))
|
|
2277
|
+
throw new Error(_0x46f27b(_0x46788e._0xfca6d4));
|
|
2278
|
+
return {
|
|
2279
|
+
'agentId': _0x2bf0e6,
|
|
2280
|
+
'daemonApiKey': _0x49e9db,
|
|
2281
|
+
'daemonLocalUrl': _0x160c86,
|
|
2282
|
+
'initialLastSeenSeq': _0x45171e,
|
|
2283
|
+
'sessionId': _0xcdb032,
|
|
2284
|
+
'serverUrl': _0x445524,
|
|
2285
|
+
'workerModeEnabled': _0xc140a4 === void 0x0 ? void 0x0 : _0xc140a4 !== 'false',
|
|
2286
|
+
'workerSessionId': _0x5c99d4,
|
|
2287
|
+
'workerThreadTarget': _0x11bf7b,
|
|
2288
|
+
'workerMode': _0x4a480c
|
|
2305
2289
|
};
|
|
2306
|
-
return _0x4199();
|
|
2307
2290
|
}
|
|
2291
|
+
async function runChatBridgeCli(_0x3d4297) {
|
|
2292
|
+
const _0x3e17ec = {
|
|
2293
|
+
_0x1e909b: 0xc2,
|
|
2294
|
+
_0x5d1294: 0x150
|
|
2295
|
+
}, _0x597392 = _0x1bf962, _0x56cfae = parseChatBridgeArgs(_0x3d4297), {StdioServerTransport: _0x495dfc} = await import(_0x597392(_0x3e17ec._0x1e909b)), _0x1601f7 = createInternalAgentClient(_0x56cfae), _0x12ed73 = createAttachmentCache(), _0x101ade = await createChatBridgeServer({
|
|
2296
|
+
'agentId': _0x56cfae['agentId'],
|
|
2297
|
+
'attachmentCache': _0x12ed73,
|
|
2298
|
+
'client': _0x1601f7,
|
|
2299
|
+
'daemonLocalUrl': _0x56cfae[_0x597392(0xf9)],
|
|
2300
|
+
'uploadPreparer': prepareUploadFile,
|
|
2301
|
+
'workerModeEnabled': _0x56cfae['workerModeEnabled'],
|
|
2302
|
+
'workerMode': _0x56cfae['workerMode']
|
|
2303
|
+
});
|
|
2304
|
+
await _0x101ade[_0x597392(0x18c)][_0x597392(_0x3e17ec._0x5d1294)](new _0x495dfc());
|
|
2305
|
+
}
|
|
2306
|
+
var executedAsEntry = process[_0x1bf962(0x218)][0x1] ? import.meta.url === pathToFileURL(process[_0x1bf962(0x218)][0x1])['href'] : ![];
|
|
2307
|
+
executedAsEntry && await runChatBridgeCli(process[_0x1bf962(0x218)][_0x1bf962(0x120)](0x2));
|
|
2308
|
+
export {
|
|
2309
|
+
createChatBridgeHandlers,
|
|
2310
|
+
createChatBridgeServer,
|
|
2311
|
+
getChatBridgeToolDefinitions,
|
|
2312
|
+
parseChatBridgeArgs,
|
|
2313
|
+
runChatBridgeCli
|
|
2314
|
+
};
|