@dscord/daemon 0.1.12 → 0.1.14
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 +2197 -2073
- package/dist/index.js +7480 -6917
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const _0x84e1c7 = _0x4ff1;
|
|
2
|
+
(function (_0x2dcc81, _0x105cfb) {
|
|
3
|
+
const _0x3ae9db = {
|
|
4
|
+
_0x16e0aa: 0x1a7,
|
|
5
|
+
_0x4430bd: 0x258,
|
|
6
|
+
_0x17a94f: 0x280,
|
|
7
|
+
_0x4d798b: 0x1f3,
|
|
8
|
+
_0x182b36: 0x17f,
|
|
9
|
+
_0x3e8400: 0x215,
|
|
10
|
+
_0x791ced: 0x209,
|
|
11
|
+
_0x2e84c0: 0x29d
|
|
12
|
+
}, _0x419bb8 = _0x4ff1, _0x12d01b = _0x2dcc81();
|
|
8
13
|
while (!![]) {
|
|
9
14
|
try {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
15
|
+
const _0x2f781a = -parseInt(_0x419bb8(_0x3ae9db._0x16e0aa)) / 0x1 + parseInt(_0x419bb8(_0x3ae9db._0x4430bd)) / 0x2 * (-parseInt(_0x419bb8(0x196)) / 0x3) + -parseInt(_0x419bb8(_0x3ae9db._0x17a94f)) / 0x4 + parseInt(_0x419bb8(0x20e)) / 0x5 + parseInt(_0x419bb8(0x204)) / 0x6 * (parseInt(_0x419bb8(_0x3ae9db._0x4d798b)) / 0x7) + parseInt(_0x419bb8(_0x3ae9db._0x182b36)) / 0x8 * (-parseInt(_0x419bb8(_0x3ae9db._0x3e8400)) / 0x9) + -parseInt(_0x419bb8(_0x3ae9db._0x791ced)) / 0xa * (-parseInt(_0x419bb8(_0x3ae9db._0x2e84c0)) / 0xb);
|
|
16
|
+
if (_0x2f781a === _0x105cfb)
|
|
12
17
|
break;
|
|
13
18
|
else
|
|
14
|
-
|
|
15
|
-
} catch (
|
|
16
|
-
|
|
19
|
+
_0x12d01b['push'](_0x12d01b['shift']());
|
|
20
|
+
} catch (_0x3581c2) {
|
|
21
|
+
_0x12d01b['push'](_0x12d01b['shift']());
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
|
-
}(
|
|
24
|
+
}(_0x1f56, 0x1e44e));
|
|
20
25
|
import { pathToFileURL } from 'node:url';
|
|
21
26
|
import {
|
|
22
27
|
mkdir,
|
|
@@ -26,80 +31,104 @@ import {
|
|
|
26
31
|
writeFile
|
|
27
32
|
} from 'node:fs/promises';
|
|
28
33
|
import { homedir } from 'node:os';
|
|
29
|
-
|
|
34
|
+
function _0x4ff1(_0x4eb3d1, _0x2ef167) {
|
|
35
|
+
_0x4eb3d1 = _0x4eb3d1 - 0x160;
|
|
36
|
+
const _0x1f56f0 = _0x1f56();
|
|
37
|
+
let _0x4ff1bb = _0x1f56f0[_0x4eb3d1];
|
|
38
|
+
if (_0x4ff1['LkDULG'] === undefined) {
|
|
39
|
+
var _0x1167af = function (_0x46da1d) {
|
|
40
|
+
const _0x88b883 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
41
|
+
let _0x3b0e99 = '', _0x86124 = '';
|
|
42
|
+
for (let _0x244daf = 0x0, _0x188019, _0x297b3a, _0x3cf68d = 0x0; _0x297b3a = _0x46da1d['charAt'](_0x3cf68d++); ~_0x297b3a && (_0x188019 = _0x244daf % 0x4 ? _0x188019 * 0x40 + _0x297b3a : _0x297b3a, _0x244daf++ % 0x4) ? _0x3b0e99 += String['fromCharCode'](0xff & _0x188019 >> (-0x2 * _0x244daf & 0x6)) : 0x0) {
|
|
43
|
+
_0x297b3a = _0x88b883['indexOf'](_0x297b3a);
|
|
44
|
+
}
|
|
45
|
+
for (let _0x4e26d7 = 0x0, _0x4a2547 = _0x3b0e99['length']; _0x4e26d7 < _0x4a2547; _0x4e26d7++) {
|
|
46
|
+
_0x86124 += '%' + ('00' + _0x3b0e99['charCodeAt'](_0x4e26d7)['toString'](0x10))['slice'](-0x2);
|
|
47
|
+
}
|
|
48
|
+
return decodeURIComponent(_0x86124);
|
|
49
|
+
};
|
|
50
|
+
_0x4ff1['BPhiqJ'] = _0x1167af, _0x4ff1['MEmfio'] = {}, _0x4ff1['LkDULG'] = !![];
|
|
51
|
+
}
|
|
52
|
+
const _0x552b17 = _0x1f56f0[0x0], _0x47bc00 = _0x4eb3d1 + _0x552b17, _0x2cfd4e = _0x4ff1['MEmfio'][_0x47bc00];
|
|
53
|
+
return !_0x2cfd4e ? (_0x4ff1bb = _0x4ff1['BPhiqJ'](_0x4ff1bb), _0x4ff1['MEmfio'][_0x47bc00] = _0x4ff1bb) : _0x4ff1bb = _0x2cfd4e, _0x4ff1bb;
|
|
54
|
+
}
|
|
55
|
+
import _0x3b0e99 from 'node:path';
|
|
30
56
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
31
|
-
'.csv':
|
|
32
|
-
'.gif':
|
|
33
|
-
'.jpeg':
|
|
34
|
-
'.jpg':
|
|
57
|
+
'.csv': 'text/csv',
|
|
58
|
+
'.gif': _0x84e1c7(0x1ad),
|
|
59
|
+
'.jpeg': _0x84e1c7(0x1bf),
|
|
60
|
+
'.jpg': 'image/jpeg',
|
|
35
61
|
'.json': 'application/json',
|
|
36
|
-
'.md':
|
|
37
|
-
'.pdf':
|
|
62
|
+
'.md': 'text/markdown',
|
|
63
|
+
'.pdf': _0x84e1c7(0x26a),
|
|
38
64
|
'.png': 'image/png',
|
|
39
|
-
'.svg':
|
|
40
|
-
'.txt':
|
|
41
|
-
'.webp':
|
|
42
|
-
'.xml':
|
|
43
|
-
'.zip':
|
|
65
|
+
'.svg': _0x84e1c7(0x237),
|
|
66
|
+
'.txt': _0x84e1c7(0x223),
|
|
67
|
+
'.webp': 'image/webp',
|
|
68
|
+
'.xml': _0x84e1c7(0x205),
|
|
69
|
+
'.zip': _0x84e1c7(0x26c)
|
|
44
70
|
};
|
|
45
|
-
function guessContentType(
|
|
46
|
-
const
|
|
47
|
-
|
|
71
|
+
function guessContentType(_0x86124) {
|
|
72
|
+
const _0x31712a = {
|
|
73
|
+
_0x11ffcf: 0x29a,
|
|
74
|
+
_0x1c6dab: 0x1b8,
|
|
75
|
+
_0x4aa37b: 0x208
|
|
76
|
+
}, _0x3ae492 = _0x84e1c7;
|
|
77
|
+
return MIME_BY_EXTENSION[_0x3b0e99[_0x3ae492(_0x31712a._0x11ffcf)](_0x86124)[_0x3ae492(_0x31712a._0x1c6dab)]()] ?? _0x3ae492(_0x31712a._0x4aa37b);
|
|
48
78
|
}
|
|
49
|
-
function safeFilename(
|
|
50
|
-
|
|
79
|
+
function safeFilename(_0x244daf) {
|
|
80
|
+
const _0x18dbb7 = _0x84e1c7;
|
|
81
|
+
return _0x244daf[_0x18dbb7(0x1d3)](/[\\/]/g, '-');
|
|
51
82
|
}
|
|
52
|
-
function extensionFor(
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
return
|
|
83
|
+
function extensionFor(_0x188019) {
|
|
84
|
+
const _0x34982d = {
|
|
85
|
+
_0x5e93f2: 0x2da,
|
|
86
|
+
_0xdc81a1: 0x266
|
|
87
|
+
}, _0x5c7fb0 = _0x84e1c7, _0x297b3a = Object[_0x5c7fb0(0x2df)](MIME_BY_EXTENSION)[_0x5c7fb0(_0x34982d._0x5e93f2)](([, _0x3cf68d]) => _0x3cf68d === _0x188019);
|
|
88
|
+
return _0x297b3a?.[0x0] ?? _0x5c7fb0(_0x34982d._0xdc81a1);
|
|
58
89
|
}
|
|
59
|
-
async function prepareUploadFile(
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
const _0xe8e09e = await readFile(_0x3bd2af), _0x40aa1d = _0x3efa53[_0x18f57a(_0x1bcf63._0x4ba6a3)](_0x3bd2af);
|
|
90
|
+
async function prepareUploadFile(_0x4e26d7, _0x4a2547 = {}) {
|
|
91
|
+
const _0x42e6e9 = {
|
|
92
|
+
_0x3c744c: 0x1e1,
|
|
93
|
+
_0x2cd323: 0x286,
|
|
94
|
+
_0xcb6d08: 0x2e5
|
|
95
|
+
}, _0x219575 = _0x84e1c7;
|
|
96
|
+
if (!_0x3b0e99[_0x219575(0x1d7)](_0x4e26d7))
|
|
97
|
+
throw new Error(_0x219575(0x2e0));
|
|
98
|
+
const _0x12d631 = await stat(_0x4e26d7)[_0x219575(_0x42e6e9._0x3c744c)](() => null);
|
|
99
|
+
if (!_0x12d631 || !_0x12d631['isFile']())
|
|
100
|
+
throw new Error(_0x219575(_0x42e6e9._0x2cd323) + _0x4e26d7);
|
|
101
|
+
const _0x58a5f0 = _0x4a2547['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
102
|
+
if (_0x12d631[_0x219575(_0x42e6e9._0xcb6d08)] > _0x58a5f0)
|
|
103
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x12d631['size']);
|
|
104
|
+
const _0x44f8be = await readFile(_0x4e26d7), _0x1fc4d9 = _0x3b0e99['basename'](_0x4e26d7);
|
|
75
105
|
return {
|
|
76
|
-
'contentBase64':
|
|
77
|
-
'contentType': guessContentType(
|
|
78
|
-
'filename':
|
|
79
|
-
'sizeBytes':
|
|
106
|
+
'contentBase64': _0x44f8be['toString']('base64'),
|
|
107
|
+
'contentType': guessContentType(_0x1fc4d9),
|
|
108
|
+
'filename': _0x1fc4d9,
|
|
109
|
+
'sizeBytes': _0x12d631[_0x219575(0x2e5)]
|
|
80
110
|
};
|
|
81
111
|
}
|
|
82
|
-
function createAttachmentCache(
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}, _0x34c7ed = _0x2c1aa0, _0x58d9a3 = _0x4cf8f9[_0x34c7ed(0x16c)] ?? _0x3efa53[_0x34c7ed(0x229)](homedir(), _0x34c7ed(_0xfa2ad4._0x20f983), 'attachments');
|
|
112
|
+
function createAttachmentCache(_0x465a97 = {}) {
|
|
113
|
+
const _0x3ef64f = { _0x2b74fe: 0x295 }, _0x99ca03 = {
|
|
114
|
+
_0x2c0b2b: 0x1d5,
|
|
115
|
+
_0x22bf1a: 0x16e,
|
|
116
|
+
_0x5ceb9: 0x295,
|
|
117
|
+
_0x3513fc: 0x239
|
|
118
|
+
}, _0xa1135c = _0x84e1c7, _0x3827d9 = _0x465a97['cacheDir'] ?? _0x3b0e99[_0xa1135c(_0x3ef64f._0x2b74fe)](homedir(), '.slock', 'attachments');
|
|
90
119
|
return {
|
|
91
|
-
'cacheDir':
|
|
92
|
-
async 'findCachedPath'(
|
|
93
|
-
const
|
|
94
|
-
await mkdir(
|
|
95
|
-
const
|
|
96
|
-
return
|
|
120
|
+
'cacheDir': _0x3827d9,
|
|
121
|
+
async 'findCachedPath'(_0x57f5fe) {
|
|
122
|
+
const _0x488b53 = _0xa1135c;
|
|
123
|
+
await mkdir(_0x3827d9, { 'recursive': !![] });
|
|
124
|
+
const _0x2f0772 = await readdir(_0x3827d9), _0x4e7f25 = _0x2f0772['find'](_0x2d9c6b => _0x2d9c6b[_0x488b53(0x269)](_0x57f5fe + '-') || _0x2d9c6b['startsWith'](_0x57f5fe));
|
|
125
|
+
return _0x4e7f25 ? _0x3b0e99[_0x488b53(0x295)](_0x3827d9, _0x4e7f25) : null;
|
|
97
126
|
},
|
|
98
|
-
async 'save'(
|
|
99
|
-
const
|
|
100
|
-
await mkdir(
|
|
101
|
-
const
|
|
102
|
-
return await writeFile(
|
|
127
|
+
async 'save'(_0x151b99) {
|
|
128
|
+
const _0x51c653 = _0xa1135c;
|
|
129
|
+
await mkdir(_0x3827d9, { 'recursive': !![] });
|
|
130
|
+
const _0x394766 = _0x151b99[_0x51c653(0x16e)]?.[_0x51c653(_0x99ca03._0x2c0b2b)]() ? safeFilename(_0x151b99[_0x51c653(_0x99ca03._0x22bf1a)]) : '' + _0x151b99['attachmentId'] + extensionFor(_0x151b99[_0x51c653(0x191)]), _0x7d4732 = _0x3b0e99[_0x51c653(_0x99ca03._0x5ceb9)](_0x3827d9, _0x151b99[_0x51c653(_0x99ca03._0x3513fc)] + '-' + _0x394766);
|
|
131
|
+
return await writeFile(_0x7d4732, _0x151b99[_0x51c653(0x297)]), _0x7d4732;
|
|
103
132
|
}
|
|
104
133
|
};
|
|
105
134
|
}
|
|
@@ -107,2063 +136,2158 @@ import {
|
|
|
107
136
|
createHash,
|
|
108
137
|
randomUUID
|
|
109
138
|
} from 'node:crypto';
|
|
110
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
111
|
-
function ensureSegment(
|
|
112
|
-
const
|
|
113
|
-
if (!
|
|
139
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x84e1c7(0x2c4);
|
|
140
|
+
function ensureSegment(_0x241881) {
|
|
141
|
+
const _0x46b348 = _0x84e1c7, _0x5a1672 = _0x241881['trim']();
|
|
142
|
+
if (!_0x5a1672 || _0x5a1672[_0x46b348(0x275)](':'))
|
|
114
143
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
115
|
-
return
|
|
144
|
+
return _0x5a1672;
|
|
116
145
|
}
|
|
117
|
-
function parseThreadParts(
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
146
|
+
function parseThreadParts(_0x4912c6) {
|
|
147
|
+
const _0xa55c98 = { _0x2ed99c: 0x17e }, _0x3d359d = _0x84e1c7, _0x1e7f11 = _0x4912c6[_0x3d359d(_0xa55c98._0x2ed99c)](':');
|
|
148
|
+
if (_0x1e7f11['length'] < 0x1 || _0x1e7f11[_0x3d359d(0x216)] > 0x2)
|
|
120
149
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
121
150
|
return {
|
|
122
|
-
'channelName': ensureSegment(
|
|
123
|
-
'threadShortId':
|
|
151
|
+
'channelName': ensureSegment(_0x1e7f11[0x0] ?? ''),
|
|
152
|
+
'threadShortId': _0x1e7f11[0x1] ? ensureSegment(_0x1e7f11[0x1]) : null
|
|
124
153
|
};
|
|
125
154
|
}
|
|
126
|
-
function parseTarget(
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
155
|
+
function parseTarget(_0x556677) {
|
|
156
|
+
const _0x584af4 = {
|
|
157
|
+
_0x5e5e21: 0x269,
|
|
158
|
+
_0x8fb44a: 0x16b,
|
|
159
|
+
_0x4e3afb: 0x198,
|
|
160
|
+
_0x23d65a: 0x219,
|
|
161
|
+
_0x5e964e: 0x16b,
|
|
162
|
+
_0x544bae: 0x270,
|
|
163
|
+
_0x46283b: 0x219,
|
|
164
|
+
_0x2d19c6: 0x198,
|
|
165
|
+
_0x29e789: 0x2b8,
|
|
166
|
+
_0x396c04: 0x219,
|
|
167
|
+
_0x196cb1: 0x198
|
|
168
|
+
}, _0x292109 = _0x84e1c7, _0x567457 = _0x556677['trim']();
|
|
169
|
+
if (!_0x567457)
|
|
137
170
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
138
|
-
if (
|
|
139
|
-
const
|
|
140
|
-
if (!
|
|
171
|
+
if (_0x567457[_0x292109(_0x584af4._0x5e5e21)]('#')) {
|
|
172
|
+
const _0x4017a2 = parseThreadParts(_0x567457[_0x292109(_0x584af4._0x8fb44a)](0x1)), _0x96f26f = '#' + _0x4017a2['channelName'];
|
|
173
|
+
if (!_0x4017a2[_0x292109(_0x584af4._0x4e3afb)])
|
|
141
174
|
return {
|
|
142
|
-
'channelName':
|
|
143
|
-
'channelTarget':
|
|
175
|
+
'channelName': _0x4017a2[_0x292109(0x219)],
|
|
176
|
+
'channelTarget': _0x96f26f,
|
|
144
177
|
'kind': 'channel',
|
|
145
|
-
'target':
|
|
178
|
+
'target': _0x96f26f
|
|
146
179
|
};
|
|
147
180
|
return {
|
|
148
|
-
'channelName':
|
|
149
|
-
'channelTarget':
|
|
150
|
-
'kind':
|
|
151
|
-
'target':
|
|
152
|
-
'threadShortId':
|
|
181
|
+
'channelName': _0x4017a2[_0x292109(_0x584af4._0x23d65a)],
|
|
182
|
+
'channelTarget': _0x96f26f,
|
|
183
|
+
'kind': _0x292109(0x255),
|
|
184
|
+
'target': _0x96f26f + ':' + _0x4017a2['threadShortId'],
|
|
185
|
+
'threadShortId': _0x4017a2[_0x292109(0x198)]
|
|
153
186
|
};
|
|
154
187
|
}
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
if (!
|
|
188
|
+
if (_0x567457[_0x292109(0x269)](_0x292109(0x270))) {
|
|
189
|
+
const _0x476136 = parseThreadParts(_0x567457[_0x292109(_0x584af4._0x5e964e)](0x3));
|
|
190
|
+
if (!_0x476136[_0x292109(0x219)][_0x292109(_0x584af4._0x5e5e21)](_0x292109(0x2d7)))
|
|
158
191
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
159
|
-
const
|
|
160
|
-
if (!
|
|
192
|
+
const _0x42d0c2 = _0x292109(_0x584af4._0x544bae) + _0x476136[_0x292109(_0x584af4._0x46283b)];
|
|
193
|
+
if (!_0x476136[_0x292109(_0x584af4._0x2d19c6)])
|
|
161
194
|
return {
|
|
162
|
-
'channelName':
|
|
163
|
-
'channelTarget':
|
|
164
|
-
'kind':
|
|
165
|
-
'target':
|
|
195
|
+
'channelName': _0x476136[_0x292109(_0x584af4._0x23d65a)],
|
|
196
|
+
'channelTarget': _0x42d0c2,
|
|
197
|
+
'kind': _0x292109(_0x584af4._0x29e789),
|
|
198
|
+
'target': _0x42d0c2
|
|
166
199
|
};
|
|
167
200
|
return {
|
|
168
|
-
'channelName':
|
|
169
|
-
'channelTarget':
|
|
170
|
-
'kind':
|
|
171
|
-
'target':
|
|
172
|
-
'threadShortId':
|
|
201
|
+
'channelName': _0x476136[_0x292109(_0x584af4._0x396c04)],
|
|
202
|
+
'channelTarget': _0x42d0c2,
|
|
203
|
+
'kind': _0x292109(0x255),
|
|
204
|
+
'target': _0x42d0c2 + ':' + _0x476136[_0x292109(_0x584af4._0x196cb1)],
|
|
205
|
+
'threadShortId': _0x476136[_0x292109(0x198)]
|
|
173
206
|
};
|
|
174
207
|
}
|
|
175
208
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
176
209
|
}
|
|
177
|
-
function asErrorMessage(
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
function asRecord(_0xc66a99) {
|
|
183
|
-
return typeof _0xc66a99 === 'object' && _0xc66a99 !== null ? _0xc66a99 : {};
|
|
184
|
-
}
|
|
185
|
-
function stableStringify(_0x9a62c1) {
|
|
186
|
-
const _0x50ffa2 = { _0x4813cd: 0x229 }, _0x282935 = _0x2c1aa0;
|
|
187
|
-
if (_0x9a62c1 === null || typeof _0x9a62c1 !== _0x282935(0x1fe))
|
|
188
|
-
return JSON[_0x282935(0x29a)](_0x9a62c1);
|
|
189
|
-
if (Array[_0x282935(0x249)](_0x9a62c1))
|
|
190
|
-
return '[' + _0x9a62c1['map'](_0x12936d => stableStringify(_0x12936d))['join'](',') + ']';
|
|
191
|
-
const _0x45463d = Object['entries'](_0x9a62c1)['filter'](([, _0xc2aa3]) => _0xc2aa3 !== void 0x0)[_0x282935(0x148)](([_0x15b834], [_0x412027]) => _0x15b834['localeCompare'](_0x412027))['map'](([_0x2402aa, _0x541eaf]) => JSON[_0x282935(0x29a)](_0x2402aa) + ':' + stableStringify(_0x541eaf));
|
|
192
|
-
return '{' + _0x45463d[_0x282935(_0x50ffa2._0x4813cd)](',') + '}';
|
|
193
|
-
}
|
|
194
|
-
function createHeaders(_0x29f83e) {
|
|
195
|
-
const _0x42b598 = { _0x11aa76: 0x146 }, _0x33572f = _0x2c1aa0;
|
|
196
|
-
return {
|
|
197
|
-
'Content-Type': _0x33572f(_0x42b598._0x11aa76),
|
|
198
|
-
'x-daemon-api-key': _0x29f83e
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
function toHttpBaseUrl(_0x83e0d0) {
|
|
202
|
-
const _0x378653 = {
|
|
203
|
-
_0x498a35: 0x1dd,
|
|
204
|
-
_0x116c49: 0x24b,
|
|
205
|
-
_0x444c24: 0x179
|
|
206
|
-
}, _0x31f493 = _0x2c1aa0, _0x4fa638 = new URL(_0x83e0d0);
|
|
207
|
-
if (_0x4fa638['protocol'] === 'ws:')
|
|
208
|
-
_0x4fa638[_0x31f493(_0x378653._0x498a35)] = _0x31f493(_0x378653._0x116c49);
|
|
209
|
-
else
|
|
210
|
-
_0x4fa638['protocol'] === _0x31f493(_0x378653._0x444c24) && (_0x4fa638['protocol'] = 'https:');
|
|
211
|
-
return _0x4fa638['toString']()[_0x31f493(0x19c)](/\/$/, '');
|
|
212
|
-
}
|
|
213
|
-
function isMentionBoundary(_0xf37b3) {
|
|
214
|
-
const _0x45473b = { _0xbb87ca: 0x1b3 }, _0x50c026 = _0x2c1aa0;
|
|
215
|
-
return !_0xf37b3 || /\s|[([{'",。!?、:;]/[_0x50c026(_0x45473b._0xbb87ca)](_0xf37b3);
|
|
216
|
-
}
|
|
217
|
-
function isMentionTerminal(_0x107824) {
|
|
218
|
-
const _0x4e379a = _0x2c1aa0;
|
|
219
|
-
return !_0x107824 || /\s|[)\]}'",。!?、:;,.!?]/[_0x4e379a(0x1b3)](_0x107824);
|
|
220
|
-
}
|
|
221
|
-
function extractMentionedParticipantIds(_0x36e07c, _0x4cd1a9) {
|
|
222
|
-
const _0x5cb448 = {
|
|
223
|
-
_0x14b1ab: 0x1cf,
|
|
224
|
-
_0x4f0a4d: 0x212,
|
|
225
|
-
_0x5a043b: 0x282,
|
|
226
|
-
_0x3a7567: 0x25e,
|
|
227
|
-
_0x4c081c: 0x20c
|
|
228
|
-
}, _0x10b4bc = { _0x5311b4: 0x1a7 }, _0x59e242 = _0x2c1aa0, _0x14b2f4 = [
|
|
229
|
-
..._0x4cd1a9['agents'],
|
|
230
|
-
..._0x4cd1a9[_0x59e242(_0x5cb448._0x14b1ab)]
|
|
231
|
-
][_0x59e242(_0x5cb448._0x4f0a4d)](_0x242ee1 => ({
|
|
232
|
-
'displayName': _0x242ee1[_0x59e242(0x16e)],
|
|
233
|
-
'displayNameLower': _0x242ee1[_0x59e242(0x16e)][_0x59e242(0x25e)](),
|
|
234
|
-
'participantId': _0x242ee1['id']
|
|
235
|
-
}))[_0x59e242(0x148)]((_0x2fbcb0, _0x365411) => _0x365411[_0x59e242(0x1a7)][_0x59e242(0x282)] - _0x2fbcb0['displayName'][_0x59e242(0x282)]), _0x2f699d = [], _0x27267a = new Set();
|
|
236
|
-
for (let _0x5a86ca = 0x0; _0x5a86ca < _0x36e07c[_0x59e242(_0x5cb448._0x5a043b)]; _0x5a86ca += 0x1) {
|
|
237
|
-
if (_0x36e07c[_0x5a86ca] !== '@' || !isMentionBoundary(_0x36e07c[_0x5a86ca - 0x1]))
|
|
238
|
-
continue;
|
|
239
|
-
const _0x54e7ea = _0x36e07c[_0x59e242(0x225)](_0x5a86ca + 0x1), _0x1df1d5 = _0x54e7ea[_0x59e242(_0x5cb448._0x3a7567)](), _0x231022 = _0x14b2f4[_0x59e242(0x1a4)](_0x4d440b => {
|
|
240
|
-
const _0x943596 = _0x59e242;
|
|
241
|
-
if (!_0x1df1d5[_0x943596(0x1c8)](_0x4d440b['displayNameLower']))
|
|
242
|
-
return ![];
|
|
243
|
-
return isMentionTerminal(_0x54e7ea[_0x4d440b[_0x943596(_0x10b4bc._0x5311b4)][_0x943596(0x282)]]);
|
|
244
|
-
});
|
|
245
|
-
if (!_0x231022 || _0x27267a[_0x59e242(0x1b0)](_0x231022['participantId']))
|
|
246
|
-
continue;
|
|
247
|
-
_0x27267a['add'](_0x231022[_0x59e242(0x20c)]), _0x2f699d[_0x59e242(0x1c2)](_0x231022[_0x59e242(_0x5cb448._0x4c081c)]), _0x5a86ca += _0x231022['displayName'][_0x59e242(_0x5cb448._0x5a043b)];
|
|
248
|
-
}
|
|
249
|
-
return _0x2f699d;
|
|
250
|
-
}
|
|
251
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
252
|
-
function anySignal(..._0x245111) {
|
|
253
|
-
const _0x5429fb = {
|
|
254
|
-
_0x1c96cd: 0x190,
|
|
255
|
-
_0x5b9e37: 0x162
|
|
256
|
-
}, _0xaaf54f = _0x2c1aa0, _0x238c24 = new AbortController();
|
|
257
|
-
for (const _0x4aa134 of _0x245111) {
|
|
258
|
-
if (_0x4aa134['aborted'])
|
|
259
|
-
return _0x238c24[_0xaaf54f(0x142)](_0x4aa134[_0xaaf54f(0x143)]), _0x238c24[_0xaaf54f(_0x5429fb._0x1c96cd)];
|
|
260
|
-
_0x4aa134[_0xaaf54f(_0x5429fb._0x5b9e37)](_0xaaf54f(0x142), () => _0x238c24[_0xaaf54f(0x142)](_0x4aa134[_0xaaf54f(0x143)]), {
|
|
261
|
-
'once': !![],
|
|
262
|
-
'signal': _0x238c24['signal']
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
return _0x238c24[_0xaaf54f(_0x5429fb._0x1c96cd)];
|
|
266
|
-
}
|
|
267
|
-
function createInternalAgentClient(_0x15df81) {
|
|
268
|
-
const _0x3b61c7 = {
|
|
269
|
-
_0x1c896c: 0x17e,
|
|
270
|
-
_0x17bf3e: 0x16d,
|
|
271
|
-
_0x3fc2a1: 0x25b,
|
|
272
|
-
_0x1ed57f: 0x13b
|
|
273
|
-
}, _0x3b8add = {
|
|
274
|
-
_0x22c141: 0x257,
|
|
275
|
-
_0x81bca: 0x1c7,
|
|
276
|
-
_0x553d8c: 0x253,
|
|
277
|
-
_0x2dfaa1: 0x1f1,
|
|
278
|
-
_0x20a82a: 0x292,
|
|
279
|
-
_0x2d66d0: 0x282,
|
|
280
|
-
_0x564396: 0x28c,
|
|
281
|
-
_0x43106b: 0x23b,
|
|
282
|
-
_0x4bb6d0: 0x1d8,
|
|
283
|
-
_0x3d6035: 0x251,
|
|
284
|
-
_0x5f51dd: 0x29b,
|
|
285
|
-
_0x27fd6f: 0x295,
|
|
286
|
-
_0x113a37: 0x22c,
|
|
287
|
-
_0xc6747b: 0x212,
|
|
288
|
-
_0x52c51a: 0x225,
|
|
289
|
-
_0x420dfa: 0x203,
|
|
290
|
-
_0xdd3ec5: 0x1a0,
|
|
291
|
-
_0x5ac950: 0x1a6,
|
|
292
|
-
_0x4760c2: 0x1cd,
|
|
293
|
-
_0x302bf6: 0x1ec,
|
|
294
|
-
_0x548bff: 0x288,
|
|
295
|
-
_0x16db03: 0x21e
|
|
296
|
-
}, _0xe56201 = {
|
|
297
|
-
_0x4a9ca8: 0x13c,
|
|
298
|
-
_0x2545a3: 0x29f,
|
|
299
|
-
_0x540b2d: 0x23b,
|
|
300
|
-
_0x4a1ea5: 0x219
|
|
301
|
-
}, _0x1a3315 = {
|
|
302
|
-
_0x45b63d: 0x13d,
|
|
303
|
-
_0x1de007: 0x190,
|
|
304
|
-
_0x3afbff: 0x29d,
|
|
305
|
-
_0x48394c: 0x295,
|
|
306
|
-
_0x249058: 0x273,
|
|
307
|
-
_0x55a14f: 0x168,
|
|
308
|
-
_0x37913c: 0x186
|
|
309
|
-
}, _0x24433f = {
|
|
310
|
-
_0x1232a0: 0x1d8,
|
|
311
|
-
_0x6c4748: 0x213,
|
|
312
|
-
_0x9da715: 0x260,
|
|
313
|
-
_0x5d8133: 0x29a,
|
|
314
|
-
_0x13eca1: 0x219,
|
|
315
|
-
_0x2b6cd9: 0x29d,
|
|
316
|
-
_0x5b66b8: 0x1d3,
|
|
317
|
-
_0x1824f5: 0x186,
|
|
318
|
-
_0x526134: 0x245,
|
|
319
|
-
_0x29191e: 0x1cc
|
|
320
|
-
}, _0x360498 = { _0x4865d0: 0x1d3 }, _0x1d036a = {
|
|
321
|
-
_0x29b3c1: 0x1c7,
|
|
322
|
-
_0x436698: 0x1b2,
|
|
323
|
-
_0x50b2c8: 0x29a
|
|
324
|
-
}, _0x840d99 = {
|
|
325
|
-
_0x2a8d1e: 0x1c7,
|
|
326
|
-
_0x53abc9: 0x29a,
|
|
327
|
-
_0x1576f4: 0x234,
|
|
328
|
-
_0x5893c0: 0x1d3
|
|
329
|
-
}, _0x5a9e9a = {
|
|
330
|
-
_0x1d145b: 0x220,
|
|
331
|
-
_0x25edcd: 0x222
|
|
332
|
-
}, _0x592885 = {
|
|
333
|
-
_0x9671be: 0x257,
|
|
334
|
-
_0x43a6be: 0x297,
|
|
335
|
-
_0x2bdd0f: 0x297,
|
|
336
|
-
_0x128dae: 0x152,
|
|
337
|
-
_0x1cdbcd: 0x1c7,
|
|
338
|
-
_0x8579d: 0x196
|
|
339
|
-
}, _0x137fec = {
|
|
340
|
-
_0x438979: 0x149,
|
|
341
|
-
_0x522367: 0x291,
|
|
342
|
-
_0x825988: 0x152
|
|
343
|
-
}, _0x1ef326 = {
|
|
344
|
-
_0x137d4f: 0x29a,
|
|
345
|
-
_0x2b0a7b: 0x1d7,
|
|
346
|
-
_0x2ecc15: 0x244
|
|
347
|
-
}, _0x680260 = { _0x1d239d: 0x214 }, _0x1150fd = {
|
|
348
|
-
_0xab993e: 0x1f0,
|
|
349
|
-
_0x2a5243: 0x186
|
|
350
|
-
}, _0x44da16 = {
|
|
351
|
-
_0x442793: 0x1e5,
|
|
352
|
-
_0x400abf: 0x29a,
|
|
353
|
-
_0x5bcadf: 0x165,
|
|
354
|
-
_0x420032: 0x282,
|
|
355
|
-
_0x26f217: 0x1d8,
|
|
356
|
-
_0x453443: 0x1d3
|
|
357
|
-
}, _0x4eb305 = {
|
|
358
|
-
_0x3c4438: 0x147,
|
|
359
|
-
_0x55336a: 0x1d8,
|
|
360
|
-
_0x3d3607: 0x23b,
|
|
361
|
-
_0x6701d7: 0x29f,
|
|
362
|
-
_0x377260: 0x29f,
|
|
363
|
-
_0x327d37: 0x13c,
|
|
364
|
-
_0x19612c: 0x257,
|
|
365
|
-
_0x4724de: 0x1e5,
|
|
366
|
-
_0x442038: 0x196,
|
|
367
|
-
_0x171f84: 0x221,
|
|
368
|
-
_0xea0526: 0x292
|
|
369
|
-
}, _0x496656 = { _0x1f5451: 0x22d }, _0x67e025 = { _0x5cb444: 0x22d }, _0x3656b3 = { _0x24866c: 0x26b }, _0x1cdfeb = {
|
|
370
|
-
_0x29ee9e: 0x176,
|
|
371
|
-
_0x32c437: 0x221,
|
|
372
|
-
_0x3b92b9: 0x186,
|
|
373
|
-
_0x19a06a: 0x1d8
|
|
374
|
-
}, _0x4c10a4 = { _0x3f4e2f: 0x289 }, _0xb4af7 = {
|
|
375
|
-
_0x800f03: 0x158,
|
|
376
|
-
_0x2e0d80: 0x152
|
|
377
|
-
}, _0x3472bd = {
|
|
378
|
-
_0x10deb4: 0x190,
|
|
379
|
-
_0x28a389: 0x190,
|
|
380
|
-
_0xf74332: 0x1cb
|
|
381
|
-
}, _0x14b23d = {
|
|
382
|
-
_0x508b6a: 0x1cd,
|
|
383
|
-
_0x3888b6: 0x18f,
|
|
384
|
-
_0x4ded7b: 0x1e4,
|
|
385
|
-
_0x3e6221: 0x17b,
|
|
386
|
-
_0x570768: 0x17a,
|
|
387
|
-
_0x2ce160: 0x15f
|
|
388
|
-
}, _0x1d42b4 = {
|
|
389
|
-
_0x38b532: 0x269,
|
|
390
|
-
_0x14b6b6: 0x25d,
|
|
391
|
-
_0x5af26e: 0x1d4
|
|
392
|
-
}, _0x924c53 = {
|
|
393
|
-
_0x55e5a5: 0x22a,
|
|
394
|
-
_0x54d1ed: 0x295,
|
|
395
|
-
_0xe008c: 0x20f,
|
|
396
|
-
_0x1eb765: 0x19c,
|
|
397
|
-
_0x1c69f0: 0x21a,
|
|
398
|
-
_0x3d76fd: 0x19e,
|
|
399
|
-
_0x590af6: 0x262,
|
|
400
|
-
_0x413d2b: 0x22a
|
|
401
|
-
}, _0x3d3503 = _0x2c1aa0, _0x16d437 = _0x15df81[_0x3d3503(0x1db)] ?? fetch, _0x4b63db = _0x15df81[_0x3d3503(_0x3b61c7._0x1c896c)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2fca9b = typeof _0x15df81[_0x3d3503(0x16d)] === 'number' && _0x15df81[_0x3d3503(_0x3b61c7._0x17bf3e)] > 0x0 ? _0x15df81[_0x3d3503(0x16d)] : 0x0, _0x2021f5 = _0x15df81[_0x3d3503(_0x3b61c7._0x3fc2a1)]?.['trim']() || void 0x0, _0x7c89e7 = _0x15df81[_0x3d3503(0x14d)]?.[_0x3d3503(0x25f)]() || void 0x0, _0x21ebb6 = createHeaders(_0x15df81[_0x3d3503(0x28e)]), _0x2385c7 = toHttpBaseUrl(_0x15df81[_0x3d3503(_0x3b61c7._0x1ed57f)]);
|
|
402
|
-
let _0x5c9638 = null;
|
|
403
|
-
const _0x528dad = new Map();
|
|
404
|
-
let _0x37ead6 = _0x2fca9b, _0x2f0ebe = _0x2fca9b;
|
|
405
|
-
function _0x5c6191(_0x310355) {
|
|
406
|
-
const _0x503352 = _0x3d3503, _0x35b39e = _0x310355[_0x503352(_0x924c53._0x55e5a5)][_0x503352(0x259)][_0x503352(_0x924c53._0x54d1ed)]('content-type') ?? _0x503352(_0x924c53._0xe008c), _0x2877d9 = _0x310355['bodyText']['trim']()[_0x503352(_0x924c53._0x1eb765)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x503352(_0x924c53._0x1c69f0);
|
|
407
|
-
return _0x503352(_0x924c53._0x3d76fd) + _0x310355[_0x503352(0x211)] + _0x503352(_0x924c53._0x590af6) + _0x310355[_0x503352(_0x924c53._0x413d2b)][_0x503352(0x152)] + ',\x20content-type=' + _0x35b39e + ',\x20preview=' + _0x2877d9 + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
408
|
-
}
|
|
409
|
-
async function _0x11f6b1(_0x12da29, _0x2cd773) {
|
|
410
|
-
const _0x578f37 = _0x3d3503, _0x25670e = Buffer[_0x578f37(_0x1d42b4._0x38b532)](await _0x2cd773[_0x578f37(_0x1d42b4._0x14b6b6)]())['toString'](_0x578f37(_0x1d42b4._0x5af26e));
|
|
411
|
-
if (!_0x25670e[_0x578f37(0x25f)]())
|
|
412
|
-
return {};
|
|
413
|
-
try {
|
|
414
|
-
return JSON[_0x578f37(0x26e)](_0x25670e);
|
|
415
|
-
} catch {
|
|
416
|
-
throw new Error(_0x5c6191({
|
|
417
|
-
'bodyText': _0x25670e,
|
|
418
|
-
'requestUrl': _0x12da29,
|
|
419
|
-
'response': _0x2cd773
|
|
420
|
-
}));
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
function _0x2cdad2(_0x3ff742, _0x34dac9) {
|
|
424
|
-
const _0x360448 = _0x3d3503, _0x151dc1 = typeof _0x34dac9[_0x360448(0x18f)] === _0x360448(_0x14b23d._0x508b6a) ? _0x34dac9[_0x360448(_0x14b23d._0x3888b6)]['trim']() : '';
|
|
425
|
-
if (_0x151dc1)
|
|
426
|
-
return _0x151dc1;
|
|
427
|
-
const _0x41bb12 = Date[_0x360448(_0x14b23d._0x4ded7b)]();
|
|
428
|
-
for (const [_0x523398, _0x46e1c9] of _0x528dad) {
|
|
429
|
-
_0x46e1c9[_0x360448(_0x14b23d._0x3e6221)] <= _0x41bb12 && _0x528dad[_0x360448(_0x14b23d._0x570768)](_0x523398);
|
|
430
|
-
}
|
|
431
|
-
const _0x2ede7f = {
|
|
432
|
-
..._0x34dac9,
|
|
433
|
-
'idempotency_key': void 0x0
|
|
434
|
-
}, _0xcfc91a = createHash(_0x360448(0x1af))['update'](_0x3ff742 + ':' + stableStringify(_0x2ede7f))[_0x360448(0x250)](_0x360448(0x21f)), _0x14da16 = _0x3ff742 + ':' + _0xcfc91a, _0x1f9210 = _0x528dad['get'](_0x14da16);
|
|
435
|
-
if (_0x1f9210)
|
|
436
|
-
return _0x1f9210['value'];
|
|
437
|
-
const _0xaebe49 = _0x360448(_0x14b23d._0x2ce160) + _0x3ff742 + ':' + randomUUID();
|
|
438
|
-
return _0x528dad['set'](_0x14da16, {
|
|
439
|
-
'expiresAt': _0x41bb12 + 0x5 * 0x3c * 0x3e8,
|
|
440
|
-
'value': _0xaebe49
|
|
441
|
-
}), _0xaebe49;
|
|
442
|
-
}
|
|
443
|
-
async function _0xf20665(_0x579f81, _0x5306a8) {
|
|
444
|
-
const _0x3d5e12 = _0x3d3503, _0x4162a7 = new AbortController(), _0xb5a5a1 = setTimeout(() => _0x4162a7[_0x3d5e12(0x142)](), _0x4b63db), _0x121699 = _0x5306a8?.[_0x3d5e12(0x190)] ? anySignal(_0x5306a8[_0x3d5e12(0x190)], _0x4162a7[_0x3d5e12(_0x3472bd._0x10deb4)]) : _0x4162a7[_0x3d5e12(_0x3472bd._0x28a389)], _0x115d05 = '' + _0x2385c7 + _0x579f81;
|
|
445
|
-
try {
|
|
446
|
-
const _0x31b7f0 = await _0x16d437(_0x115d05, {
|
|
447
|
-
..._0x5306a8,
|
|
448
|
-
'signal': _0x121699
|
|
449
|
-
}), _0x57b94a = await _0x11f6b1(_0x115d05, _0x31b7f0);
|
|
450
|
-
if (!_0x31b7f0['ok'] || _0x57b94a[_0x3d5e12(_0x3472bd._0xf74332)] === ![])
|
|
451
|
-
throw new Error(asErrorMessage(_0x57b94a['error'], 'HTTP\x20' + _0x31b7f0[_0x3d5e12(0x152)]));
|
|
452
|
-
return _0x57b94a;
|
|
453
|
-
} finally {
|
|
454
|
-
clearTimeout(_0xb5a5a1);
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
async function _0x6de492(_0x1688a5, _0xd6c3eb) {
|
|
458
|
-
const _0x3e2697 = _0x3d3503, _0x4a1f9a = new AbortController(), _0x3c5b2c = setTimeout(() => _0x4a1f9a['abort'](), _0x4b63db), _0x568809 = _0xd6c3eb?.['signal'] ? anySignal(_0xd6c3eb['signal'], _0x4a1f9a['signal']) : _0x4a1f9a[_0x3e2697(0x190)], _0x3ad301 = '' + _0x2385c7 + _0x1688a5;
|
|
459
|
-
try {
|
|
460
|
-
const _0x1dc024 = await _0x16d437(_0x3ad301, {
|
|
461
|
-
..._0xd6c3eb,
|
|
462
|
-
'signal': _0x568809
|
|
463
|
-
}), _0x4a11d1 = await _0x11f6b1(_0x3ad301, _0x1dc024);
|
|
464
|
-
if (!_0x1dc024['ok'])
|
|
465
|
-
throw new Error(asErrorMessage(_0x4a11d1['error'], _0x3e2697(_0xb4af7._0x800f03) + _0x1dc024[_0x3e2697(_0xb4af7._0x2e0d80)]));
|
|
466
|
-
return _0x4a11d1;
|
|
467
|
-
} finally {
|
|
468
|
-
clearTimeout(_0x3c5b2c);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
async function _0x50843e(_0x25b978) {
|
|
472
|
-
const _0x5b35d0 = _0x3d3503;
|
|
473
|
-
if (!_0x2021f5 || _0x25b978 <= _0x2f0ebe)
|
|
474
|
-
return;
|
|
475
|
-
await _0xf20665('/api/agent-sessions/' + encodeURIComponent(_0x2021f5) + _0x5b35d0(0x1e3), {
|
|
476
|
-
'body': JSON['stringify']({ 'lastSeenSeq': _0x25b978 }),
|
|
477
|
-
'headers': _0x21ebb6,
|
|
478
|
-
'method': _0x5b35d0(_0x4c10a4._0x3f4e2f)
|
|
479
|
-
}), _0x2f0ebe = _0x25b978;
|
|
480
|
-
}
|
|
481
|
-
async function _0xb689d6(_0x56c18e) {
|
|
482
|
-
const _0x1c0301 = _0x3d3503, _0x44543f = parseTarget(_0x56c18e), _0x3df216 = await _0xf20665('/internal/agent/' + _0x15df81[_0x1c0301(0x1e5)] + _0x1c0301(_0x1cdfeb._0x29ee9e), {
|
|
483
|
-
'body': JSON[_0x1c0301(0x29a)]({ 'target': _0x44543f['target'] }),
|
|
484
|
-
'headers': _0x21ebb6,
|
|
485
|
-
'method': _0x1c0301(0x1d3)
|
|
486
|
-
});
|
|
487
|
-
return {
|
|
488
|
-
'channelId': _0x3df216['data']?.[_0x1c0301(0x23b)] ?? '',
|
|
489
|
-
'target': _0x44543f[_0x1c0301(_0x1cdfeb._0x32c437)],
|
|
490
|
-
'threadId': _0x3df216[_0x1c0301(_0x1cdfeb._0x3b92b9)]?.[_0x1c0301(_0x1cdfeb._0x19a06a)]
|
|
491
|
-
};
|
|
492
|
-
}
|
|
493
|
-
async function _0x3b51ed() {
|
|
494
|
-
const _0x1b9f0c = {
|
|
495
|
-
_0x490e1f: 0x186,
|
|
496
|
-
_0x43e0ab: 0x130,
|
|
497
|
-
_0x1645d4: 0x186,
|
|
498
|
-
_0xa846d9: 0x21e,
|
|
499
|
-
_0x116623: 0x212,
|
|
500
|
-
_0x12d058: 0x14c
|
|
501
|
-
}, _0x3c6412 = _0x3d3503;
|
|
502
|
-
return !_0x5c9638 && (_0x5c9638 = (async () => {
|
|
503
|
-
const _0x4639b4 = _0x3278, _0xc964f7 = await _0xf20665('/internal/agent/' + _0x15df81['agentId'] + _0x4639b4(0x131), {
|
|
504
|
-
'headers': _0x21ebb6,
|
|
505
|
-
'method': 'GET'
|
|
506
|
-
}), _0x3400c9 = _0xc964f7[_0x4639b4(_0x1b9f0c._0x490e1f)]?.[_0x4639b4(_0x1b9f0c._0x43e0ab)]['id'] ?? '';
|
|
507
|
-
let _0x35e008 = [];
|
|
508
|
-
try {
|
|
509
|
-
const _0x294888 = await _0xf20665('/api/agents?serverId=' + encodeURIComponent(_0x3400c9), {
|
|
510
|
-
'headers': _0x21ebb6,
|
|
511
|
-
'method': _0x4639b4(0x246)
|
|
512
|
-
});
|
|
513
|
-
_0x35e008 = _0x294888[_0x4639b4(_0x1b9f0c._0x1645d4)] ?? [];
|
|
514
|
-
} catch {
|
|
515
|
-
_0x35e008 = [];
|
|
516
|
-
}
|
|
517
|
-
const _0x2b8699 = _0x35e008[_0x4639b4(0x212)](_0x5c0ea9 => ({
|
|
518
|
-
'id': _0x5c0ea9[_0x4639b4(0x188)]?.['id'] ?? _0x5c0ea9['server_members']?.[_0x4639b4(0x20c)] ?? '',
|
|
519
|
-
'name': _0x5c0ea9['participants']?.[_0x4639b4(0x16e)] ?? _0x5c0ea9[_0x4639b4(0x1bd)]?.['participantId'] ?? ''
|
|
520
|
-
}))[_0x4639b4(_0x1b9f0c._0xa846d9)](_0x10446c => _0x10446c['id']), _0x54bff2 = new Set(_0x2b8699[_0x4639b4(_0x1b9f0c._0x116623)](_0x4e40d4 => _0x4e40d4['id'])), _0x588f61 = (_0xc964f7['data']?.[_0x4639b4(_0x1b9f0c._0x12d058)] ?? [])[_0x4639b4(_0x1b9f0c._0xa846d9)](_0x5d26df => !_0x54bff2[_0x4639b4(0x1b0)](_0x51b992(_0x5d26df)))['map'](_0x3d5f49 => ({
|
|
521
|
-
'id': _0x51b992(_0x3d5f49),
|
|
522
|
-
'name': _0x20ecf4(_0x3d5f49)
|
|
523
|
-
}))[_0x4639b4(0x21e)](_0x4590dc => _0x4590dc['id']);
|
|
524
|
-
return {
|
|
525
|
-
'agents': _0x2b8699,
|
|
526
|
-
'channels': _0xc964f7[_0x4639b4(0x186)]?.['channels'] ?? [],
|
|
527
|
-
'humans': _0x588f61,
|
|
528
|
-
'serverId': _0x3400c9,
|
|
529
|
-
'serverName': _0xc964f7['data']?.['server'][_0x4639b4(0x16e)] ?? _0x3400c9
|
|
530
|
-
};
|
|
531
|
-
})()[_0x3c6412(_0x3656b3._0x24866c)](_0x4ba124 => {
|
|
532
|
-
_0x5c9638 = null;
|
|
533
|
-
throw _0x4ba124;
|
|
534
|
-
})), _0x5c9638;
|
|
535
|
-
}
|
|
536
|
-
function _0x49125c(_0x31b4a8, _0x8c73cc) {
|
|
537
|
-
const _0xbdbb4d = _0x3d3503;
|
|
538
|
-
return _0x8c73cc[_0xbdbb4d(0x155)][_0xbdbb4d(0x205)](_0x386e40 => _0x386e40['id'] === _0x31b4a8 || _0x386e40['name'] === _0x31b4a8) ? 'agent' : _0xbdbb4d(0x164);
|
|
539
|
-
}
|
|
540
|
-
function _0x51b992(_0x29f9d5) {
|
|
541
|
-
const _0x22ce9e = _0x3d3503;
|
|
542
|
-
return _0x29f9d5[_0x22ce9e(0x2a2)]?.[_0x22ce9e(0x20c)] ?? _0x29f9d5[_0x22ce9e(_0x67e025._0x5cb444)]?.['id'] ?? _0x29f9d5[_0x22ce9e(0x20c)] ?? '';
|
|
543
|
-
}
|
|
544
|
-
function _0x20ecf4(_0xd33fb2) {
|
|
545
|
-
const _0x44d661 = _0x3d3503;
|
|
546
|
-
return _0xd33fb2[_0x44d661(_0x496656._0x1f5451)]?.[_0x44d661(0x16e)] ?? _0x51b992(_0xd33fb2);
|
|
547
|
-
}
|
|
548
|
-
async function _0x4672f7(_0x3f9f4f) {
|
|
549
|
-
const _0x567e1f = _0x3d3503, _0x39a281 = Math[_0x567e1f(_0x4eb305._0x3c4438)](_0x3f9f4f['limit'] ?? 0x32, 0x64), _0x182dc5 = await _0x3b51ed(), _0x59ea66 = new URLSearchParams();
|
|
550
|
-
_0x59ea66[_0x567e1f(0x257)](_0x567e1f(0x15e), String(_0x39a281));
|
|
551
|
-
_0x3f9f4f[_0x567e1f(0x1d8)] ? (_0x59ea66['set'](_0x567e1f(_0x4eb305._0x55336a), _0x3f9f4f['threadId']), _0x59ea66['set'](_0x567e1f(0x23b), _0x3f9f4f[_0x567e1f(0x23b)])) : _0x59ea66[_0x567e1f(0x257)](_0x567e1f(_0x4eb305._0x3d3607), _0x3f9f4f[_0x567e1f(_0x4eb305._0x3d3607)]);
|
|
552
|
-
_0x3f9f4f[_0x567e1f(_0x4eb305._0x6701d7)] && _0x59ea66['set']('cursor', String(_0x3f9f4f[_0x567e1f(_0x4eb305._0x377260)]));
|
|
553
|
-
_0x3f9f4f[_0x567e1f(_0x4eb305._0x327d37)] !== void 0x0 && _0x59ea66[_0x567e1f(_0x4eb305._0x19612c)](_0x567e1f(0x13c), String(_0x3f9f4f[_0x567e1f(0x13c)]));
|
|
554
|
-
const _0x4b9e88 = await _0xf20665(_0x567e1f(0x1c7) + _0x15df81[_0x567e1f(_0x4eb305._0x4724de)] + _0x567e1f(0x1f5) + _0x59ea66[_0x567e1f(_0x4eb305._0x442038)](), {
|
|
555
|
-
'headers': _0x21ebb6,
|
|
556
|
-
'method': 'GET'
|
|
557
|
-
}), _0x3df426 = (_0x4b9e88[_0x567e1f(0x186)] ?? [])['map'](_0x299e3d => ({
|
|
558
|
-
'attachments': (_0x299e3d['attachments'] ?? [])[_0x567e1f(0x212)](_0x4d1f56 => ({
|
|
559
|
-
'filename': _0x4d1f56[_0x567e1f(0x1e1)] ?? _0x4d1f56['id'],
|
|
560
|
-
'id': _0x4d1f56['id']
|
|
561
|
-
})),
|
|
562
|
-
'content': _0x299e3d['bodyMarkdown'] ?? '',
|
|
563
|
-
'createdAt': _0x299e3d[_0x567e1f(0x24e)],
|
|
564
|
-
'messageId': _0x299e3d['id'],
|
|
565
|
-
'senderName': _0x299e3d['senderParticipantId'],
|
|
566
|
-
'senderType': _0x49125c(_0x299e3d[_0x567e1f(0x1ec)], _0x182dc5),
|
|
567
|
-
'seq': _0x299e3d[_0x567e1f(0x256)] ?? 0x0
|
|
568
|
-
}));
|
|
569
|
-
return {
|
|
570
|
-
'channel': _0x3f9f4f[_0x567e1f(_0x4eb305._0x171f84)],
|
|
571
|
-
'hasMore': _0x4b9e88['meta']?.[_0x567e1f(0x298)] ?? ![],
|
|
572
|
-
'messages': _0x3df426,
|
|
573
|
-
'nextCursor': _0x4b9e88[_0x567e1f(0x1f1)]?.[_0x567e1f(_0x4eb305._0xea0526)]
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
return {
|
|
577
|
-
async 'sendMessage'(_0x598f33) {
|
|
578
|
-
const _0x343c29 = _0x3d3503, _0x2a90ef = await _0xb689d6(_0x598f33['target']), _0x1b2536 = _0x598f33[_0x343c29(0x1a0)][_0x343c29(0x1a3)]('@') ? extractMentionedParticipantIds(_0x598f33['content'], await _0x3b51ed()) : [], _0x2a2df3 = await _0xf20665('/internal/agent/' + _0x15df81[_0x343c29(_0x44da16._0x442793)] + _0x343c29(0x139), {
|
|
579
|
-
'body': JSON[_0x343c29(_0x44da16._0x400abf)]({
|
|
580
|
-
'attachment_ids': _0x598f33[_0x343c29(_0x44da16._0x5bcadf)],
|
|
581
|
-
'bodyMarkdown': _0x598f33['content'],
|
|
582
|
-
'channelId': _0x2a90ef[_0x343c29(0x23b)],
|
|
583
|
-
..._0x1b2536[_0x343c29(_0x44da16._0x420032)] > 0x0 ? { 'mentionedParticipantIds': _0x1b2536 } : {},
|
|
584
|
-
'threadId': _0x2a90ef[_0x343c29(_0x44da16._0x26f217)]
|
|
585
|
-
}),
|
|
586
|
-
'headers': _0x21ebb6,
|
|
587
|
-
'method': _0x343c29(_0x44da16._0x453443)
|
|
588
|
-
});
|
|
589
|
-
return { 'messageId': _0x2a2df3[_0x343c29(0x186)]?.['id'] ?? '' };
|
|
590
|
-
},
|
|
591
|
-
async 'listSchedules'() {
|
|
592
|
-
const _0x299e23 = _0x3d3503, _0x1d075a = await _0xf20665(_0x299e23(_0x1150fd._0xab993e), {
|
|
593
|
-
'headers': _0x21ebb6,
|
|
594
|
-
'method': _0x299e23(0x246)
|
|
595
|
-
});
|
|
596
|
-
return _0x1d075a[_0x299e23(_0x1150fd._0x2a5243)] ?? [];
|
|
597
|
-
},
|
|
598
|
-
async 'claimScheduleRun'(_0x12c723) {
|
|
599
|
-
const _0x113d64 = _0x3d3503, _0xd3a101 = await _0xf20665(_0x113d64(_0x680260._0x1d239d), {
|
|
600
|
-
'body': JSON['stringify'](_0x12c723),
|
|
601
|
-
'headers': _0x21ebb6,
|
|
602
|
-
'method': _0x113d64(0x1d3)
|
|
603
|
-
});
|
|
604
|
-
return _0xd3a101[_0x113d64(0x186)] ?? {
|
|
605
|
-
'granted': ![],
|
|
606
|
-
'runId': null,
|
|
607
|
-
'schedule': null,
|
|
608
|
-
'scheduledFor': _0x12c723[_0x113d64(0x1ed)]
|
|
609
|
-
};
|
|
610
|
-
},
|
|
611
|
-
async 'startScheduleRun'(_0x205b9f) {
|
|
612
|
-
const _0xce461b = _0x3d3503, _0x5143bb = await _0xf20665(_0xce461b(0x149) + encodeURIComponent(_0x205b9f[_0xce461b(0x1d7)]) + _0xce461b(0x1f6), {
|
|
613
|
-
'body': JSON[_0xce461b(_0x1ef326._0x137d4f)]({}),
|
|
614
|
-
'headers': _0x21ebb6,
|
|
615
|
-
'method': _0xce461b(0x1d3)
|
|
616
|
-
});
|
|
617
|
-
return _0x5143bb['data'] ?? {
|
|
618
|
-
'claimedByDaemonId': '',
|
|
619
|
-
'id': _0x205b9f[_0xce461b(_0x1ef326._0x2b0a7b)],
|
|
620
|
-
'scheduleId': '',
|
|
621
|
-
'status': _0xce461b(_0x1ef326._0x2ecc15)
|
|
622
|
-
};
|
|
623
|
-
},
|
|
624
|
-
async 'finishScheduleRun'(_0x314fbf) {
|
|
625
|
-
const _0x5554a1 = _0x3d3503, _0x56adc2 = await _0xf20665(_0x5554a1(_0x137fec._0x438979) + encodeURIComponent(_0x314fbf[_0x5554a1(0x1d7)]) + _0x5554a1(_0x137fec._0x522367), {
|
|
626
|
-
'body': JSON['stringify']({
|
|
627
|
-
'error': _0x314fbf['error'],
|
|
628
|
-
'resultJson': _0x314fbf[_0x5554a1(0x195)],
|
|
629
|
-
'status': _0x314fbf[_0x5554a1(_0x137fec._0x825988)]
|
|
630
|
-
}),
|
|
631
|
-
'headers': _0x21ebb6,
|
|
632
|
-
'method': _0x5554a1(0x1d3)
|
|
633
|
-
});
|
|
634
|
-
return _0x56adc2[_0x5554a1(0x186)] ?? {
|
|
635
|
-
'nextRunAt': null,
|
|
636
|
-
'run': {
|
|
637
|
-
'claimedByDaemonId': '',
|
|
638
|
-
'id': _0x314fbf[_0x5554a1(0x1d7)],
|
|
639
|
-
'scheduleId': '',
|
|
640
|
-
'status': _0x314fbf['status']
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
},
|
|
644
|
-
async 'listTasks'(_0x2e2a53) {
|
|
645
|
-
const _0x3cc7c8 = _0x3d3503, _0x3cfda8 = new URLSearchParams();
|
|
646
|
-
return _0x3cfda8[_0x3cc7c8(_0x592885._0x9671be)](_0x3cc7c8(_0x592885._0x43a6be), _0x2e2a53[_0x3cc7c8(_0x592885._0x2bdd0f)]), _0x2e2a53[_0x3cc7c8(0x152)] && _0x3cfda8[_0x3cc7c8(0x257)](_0x3cc7c8(0x152), _0x2e2a53[_0x3cc7c8(_0x592885._0x128dae)]), _0x6de492(_0x3cc7c8(_0x592885._0x1cdbcd) + _0x15df81[_0x3cc7c8(0x1e5)] + '/tasks?' + _0x3cfda8[_0x3cc7c8(_0x592885._0x8579d)](), {
|
|
647
|
-
'headers': _0x21ebb6,
|
|
648
|
-
'method': _0x3cc7c8(0x246)
|
|
649
|
-
});
|
|
650
|
-
},
|
|
651
|
-
async 'createTasks'(_0xa3fd7) {
|
|
652
|
-
const _0x33c932 = _0x3d3503;
|
|
653
|
-
return _0x6de492('/internal/agent/' + _0x15df81[_0x33c932(0x1e5)] + _0x33c932(_0x5a9e9a._0x1d145b), {
|
|
654
|
-
'body': JSON[_0x33c932(0x29a)]({
|
|
655
|
-
..._0xa3fd7,
|
|
656
|
-
'idempotency_key': _0x2cdad2(_0x33c932(_0x5a9e9a._0x25edcd), _0xa3fd7)
|
|
657
|
-
}),
|
|
658
|
-
'headers': _0x21ebb6,
|
|
659
|
-
'method': _0x33c932(0x1d3)
|
|
660
|
-
});
|
|
661
|
-
},
|
|
662
|
-
async 'claimTasks'(_0x4ac867) {
|
|
663
|
-
const _0x10f5a2 = _0x3d3503;
|
|
664
|
-
return _0x6de492(_0x10f5a2(_0x840d99._0x2a8d1e) + _0x15df81[_0x10f5a2(0x1e5)] + _0x10f5a2(0x200), {
|
|
665
|
-
'body': JSON[_0x10f5a2(_0x840d99._0x53abc9)]({
|
|
666
|
-
..._0x4ac867,
|
|
667
|
-
'idempotency_key': _0x2cdad2(_0x10f5a2(_0x840d99._0x1576f4), _0x4ac867)
|
|
668
|
-
}),
|
|
669
|
-
'headers': _0x21ebb6,
|
|
670
|
-
'method': _0x10f5a2(_0x840d99._0x5893c0)
|
|
671
|
-
});
|
|
672
|
-
},
|
|
673
|
-
async 'unclaimTask'(_0x2de98b) {
|
|
674
|
-
const _0x3aba22 = _0x3d3503;
|
|
675
|
-
return _0x6de492(_0x3aba22(_0x1d036a._0x29b3c1) + _0x15df81['agentId'] + _0x3aba22(_0x1d036a._0x436698), {
|
|
676
|
-
'body': JSON[_0x3aba22(_0x1d036a._0x50b2c8)]({
|
|
677
|
-
..._0x2de98b,
|
|
678
|
-
'idempotency_key': _0x2cdad2('unclaim_task', _0x2de98b)
|
|
679
|
-
}),
|
|
680
|
-
'headers': _0x21ebb6,
|
|
681
|
-
'method': _0x3aba22(0x1d3)
|
|
682
|
-
});
|
|
683
|
-
},
|
|
684
|
-
async 'updateTaskStatus'(_0x17377e) {
|
|
685
|
-
const _0x409d1f = _0x3d3503;
|
|
686
|
-
return _0x6de492('/internal/agent/' + _0x15df81[_0x409d1f(0x1e5)] + _0x409d1f(0x1b9), {
|
|
687
|
-
'body': JSON['stringify']({
|
|
688
|
-
..._0x17377e,
|
|
689
|
-
'idempotency_key': _0x2cdad2('update_task_status', _0x17377e)
|
|
690
|
-
}),
|
|
691
|
-
'headers': _0x21ebb6,
|
|
692
|
-
'method': _0x409d1f(_0x360498._0x4865d0)
|
|
693
|
-
});
|
|
694
|
-
},
|
|
695
|
-
async 'uploadFile'(_0x24396c) {
|
|
696
|
-
const _0x21d0e5 = _0x3d3503, _0x49e5fc = await _0xb689d6(_0x24396c[_0x21d0e5(0x297)]);
|
|
697
|
-
if (_0x49e5fc[_0x21d0e5(_0x24433f._0x1232a0)])
|
|
698
|
-
throw new Error(_0x21d0e5(_0x24433f._0x6c4748));
|
|
699
|
-
const _0x33f268 = await _0xf20665(_0x21d0e5(0x1c7) + _0x15df81['agentId'] + _0x21d0e5(_0x24433f._0x9da715), {
|
|
700
|
-
'body': JSON[_0x21d0e5(_0x24433f._0x5d8133)]({
|
|
701
|
-
'channel': _0x49e5fc[_0x21d0e5(_0x24433f._0x13eca1)],
|
|
702
|
-
'contentBase64': _0x24396c[_0x21d0e5(0x178)],
|
|
703
|
-
'contentType': _0x24396c[_0x21d0e5(_0x24433f._0x2b6cd9)],
|
|
704
|
-
'originalFilename': _0x24396c['filename']
|
|
705
|
-
}),
|
|
706
|
-
'headers': _0x21ebb6,
|
|
707
|
-
'method': _0x21d0e5(_0x24433f._0x5b66b8)
|
|
708
|
-
});
|
|
709
|
-
return {
|
|
710
|
-
'attachmentId': _0x33f268['data']?.['id'] ?? '',
|
|
711
|
-
'filename': _0x33f268[_0x21d0e5(_0x24433f._0x1824f5)]?.[_0x21d0e5(_0x24433f._0x526134)] ?? _0x24396c[_0x21d0e5(0x1e1)],
|
|
712
|
-
'sizeBytes': _0x33f268[_0x21d0e5(0x186)]?.[_0x21d0e5(_0x24433f._0x29191e)] ?? 0x0
|
|
713
|
-
};
|
|
714
|
-
},
|
|
715
|
-
async 'downloadAttachment'(_0x261990) {
|
|
716
|
-
const _0x2dbb4d = _0x3d3503, _0x3d4ba4 = await _0xf20665('/api/attachments/' + _0x261990, {
|
|
717
|
-
'headers': _0x21ebb6,
|
|
718
|
-
'method': 'GET'
|
|
719
|
-
}), _0x4ff241 = new AbortController(), _0x5a282b = setTimeout(() => _0x4ff241[_0x2dbb4d(0x142)](), _0x4b63db);
|
|
720
|
-
try {
|
|
721
|
-
const _0x320448 = await _0x16d437(_0x2385c7 + _0x2dbb4d(_0x1a3315._0x45b63d) + _0x261990 + _0x2dbb4d(0x167), {
|
|
722
|
-
'headers': _0x21ebb6,
|
|
723
|
-
'method': _0x2dbb4d(0x246),
|
|
724
|
-
'signal': _0x4ff241[_0x2dbb4d(_0x1a3315._0x1de007)]
|
|
725
|
-
});
|
|
726
|
-
if (!_0x320448['ok'])
|
|
727
|
-
throw new Error('HTTP\x20' + _0x320448['status']);
|
|
728
|
-
return {
|
|
729
|
-
'contentType': _0x3d4ba4[_0x2dbb4d(0x186)]?.[_0x2dbb4d(_0x1a3315._0x3afbff)] ?? _0x320448[_0x2dbb4d(0x259)][_0x2dbb4d(_0x1a3315._0x48394c)](_0x2dbb4d(_0x1a3315._0x249058)) ?? _0x2dbb4d(_0x1a3315._0x55a14f),
|
|
730
|
-
'data': Buffer[_0x2dbb4d(0x269)](await _0x320448['arrayBuffer']()),
|
|
731
|
-
'originalFilename': _0x3d4ba4[_0x2dbb4d(_0x1a3315._0x37913c)]?.[_0x2dbb4d(0x245)]
|
|
732
|
-
};
|
|
733
|
-
} finally {
|
|
734
|
-
clearTimeout(_0x5a282b);
|
|
735
|
-
}
|
|
736
|
-
},
|
|
737
|
-
async 'listServer'() {
|
|
738
|
-
return _0x3b51ed();
|
|
739
|
-
},
|
|
740
|
-
async 'readHistory'(_0x170f6a) {
|
|
741
|
-
const _0x4757b3 = _0x3d3503, _0x1d5571 = await _0xb689d6(_0x170f6a[_0x4757b3(0x297)]);
|
|
742
|
-
return _0x4672f7({
|
|
743
|
-
'after': _0x170f6a[_0x4757b3(_0xe56201._0x4a9ca8)],
|
|
744
|
-
'before': _0x170f6a[_0x4757b3(_0xe56201._0x2545a3)],
|
|
745
|
-
'channelId': _0x1d5571[_0x4757b3(_0xe56201._0x540b2d)],
|
|
746
|
-
'channelTarget': _0x1d5571[_0x4757b3(_0xe56201._0x4a1ea5)],
|
|
747
|
-
'limit': _0x170f6a[_0x4757b3(0x15e)],
|
|
748
|
-
'threadId': _0x1d5571[_0x4757b3(0x1d8)]
|
|
749
|
-
});
|
|
750
|
-
},
|
|
751
|
-
async 'checkMessages'() {
|
|
752
|
-
const _0xbaaae7 = _0x3d3503, _0x331db2 = new URLSearchParams();
|
|
753
|
-
_0x331db2[_0xbaaae7(_0x3b8add._0x22c141)](_0xbaaae7(0x223), String(_0x37ead6));
|
|
754
|
-
const _0xee86d4 = _0x331db2['toString'](), _0x327fb7 = await _0xf20665(_0xbaaae7(_0x3b8add._0x81bca) + _0x15df81[_0xbaaae7(0x1e5)] + _0xbaaae7(_0x3b8add._0x553d8c) + (_0xee86d4 ? '?' + _0xee86d4 : ''), {
|
|
755
|
-
'headers': _0x21ebb6,
|
|
756
|
-
'method': _0xbaaae7(0x246)
|
|
757
|
-
}), _0x19431a = _0x327fb7['data'] ?? [], _0x2b8f6d = _0x327fb7[_0xbaaae7(_0x3b8add._0x2dfaa1)]?.[_0xbaaae7(_0x3b8add._0x20a82a)], _0x2e76d1 = _0x2b8f6d !== void 0x0 ? Math[_0xbaaae7(0x264)](_0x37ead6, _0x2b8f6d) : _0x19431a[_0xbaaae7(_0x3b8add._0x2d66d0)] > 0x0 ? Math[_0xbaaae7(0x264)](_0x37ead6, _0x19431a[_0x19431a['length'] - 0x1]['seq']) : _0x37ead6, _0x1dabae = await _0x3b51ed(), _0x3b4e41 = new Map(_0x1dabae[_0xbaaae7(0x1b5)][_0xbaaae7(0x212)](_0x9797be => [
|
|
758
|
-
_0x9797be['id'],
|
|
759
|
-
_0x9797be
|
|
760
|
-
])), _0x1aebdb = _0x19431a['filter'](_0x1c27bf => _0x1c27bf[_0xbaaae7(0x150)] === 'message'), _0x504400 = new Map();
|
|
761
|
-
for (const _0x3820e4 of _0x1aebdb) {
|
|
762
|
-
const _0x23ea6d = asRecord(_0x3820e4[_0xbaaae7(_0x3b8add._0x564396)]), _0x32639e = typeof _0x23ea6d['channelId'] === _0xbaaae7(0x1cd) ? _0x23ea6d[_0xbaaae7(_0x3b8add._0x43106b)] : '';
|
|
763
|
-
if (!_0x32639e)
|
|
764
|
-
continue;
|
|
765
|
-
const _0x5f58aa = typeof _0x23ea6d['threadId'] === 'string' ? _0x23ea6d[_0xbaaae7(_0x3b8add._0x4bb6d0)] : void 0x0, _0x5bfcbf = typeof _0x23ea6d[_0xbaaae7(0x140)] === _0xbaaae7(0x1cd) ? _0x23ea6d['rootMessageId'] : void 0x0, _0x12eec3 = Boolean(_0x5f58aa && (!_0x5bfcbf || _0x3820e4['aggregateId'] !== _0x5bfcbf)), _0x4af0d8 = _0x12eec3 ? _0x32639e + ':' + _0x5f58aa : _0x32639e, _0x3135c4 = _0x504400[_0xbaaae7(0x295)](_0x4af0d8) ?? {
|
|
766
|
-
'aggregateIds': [],
|
|
767
|
-
'channelId': _0x32639e,
|
|
768
|
-
'entries': new Map(),
|
|
769
|
-
'isThreadReply': _0x12eec3,
|
|
770
|
-
'rootMessageId': _0x5bfcbf,
|
|
771
|
-
'threadId': _0x12eec3 ? _0x5f58aa : void 0x0
|
|
772
|
-
};
|
|
773
|
-
_0x3135c4[_0xbaaae7(_0x3b8add._0x3d6035)]['push'](_0x3820e4[_0xbaaae7(_0x3b8add._0x5f51dd)]), _0x3135c4[_0xbaaae7(0x180)]['set'](_0x3820e4[_0xbaaae7(0x29b)], {
|
|
774
|
-
'payloadJson': _0x3820e4[_0xbaaae7(0x28c)],
|
|
775
|
-
'seq': _0x3820e4['seq']
|
|
776
|
-
}), _0x504400[_0xbaaae7(0x257)](_0x4af0d8, _0x3135c4);
|
|
777
|
-
}
|
|
778
|
-
const _0x4e16ad = [];
|
|
779
|
-
for (const _0x2cbe13 of _0x504400['values']()) {
|
|
780
|
-
const {
|
|
781
|
-
channelId: _0x954310,
|
|
782
|
-
threadId: _0xeb9761,
|
|
783
|
-
rootMessageId: _0x43c997,
|
|
784
|
-
aggregateIds: _0xc3c756,
|
|
785
|
-
isThreadReply: _0xde3bc3,
|
|
786
|
-
entries: _0x4a835b
|
|
787
|
-
} = _0x2cbe13, _0x1d1e99 = _0x3b4e41[_0xbaaae7(_0x3b8add._0x27fd6f)](_0x954310), _0x164324 = _0x1d1e99?.['name'] ?? _0x954310, _0x5e5bb6 = _0x1d1e99?.[_0xbaaae7(0x16b)] === 'dm' ? _0xbaaae7(_0x3b8add._0x113a37) + _0x164324 : '#' + _0x164324, _0x3a568a = await _0x4672f7({
|
|
788
|
-
'channelId': _0x954310,
|
|
789
|
-
'channelTarget': _0x5e5bb6,
|
|
790
|
-
'limit': Math['max'](_0xc3c756[_0xbaaae7(0x282)], 0x32),
|
|
791
|
-
'threadId': _0xeb9761
|
|
792
|
-
}), _0x48abd8 = new Map(_0x3a568a[_0xbaaae7(0x160)][_0xbaaae7(_0x3b8add._0xc6747b)](_0x1d3d64 => [
|
|
793
|
-
_0x1d3d64['messageId'],
|
|
794
|
-
_0x1d3d64
|
|
795
|
-
])), _0x4f2d1f = _0xeb9761 ? _0x5e5bb6 + ':' + (_0x43c997?.[_0xbaaae7(0x225)](0x0, 0x8) ?? _0xeb9761[_0xbaaae7(_0x3b8add._0x52c51a)](0x0, 0x8)) : _0x5e5bb6, _0x5a6042 = _0xde3bc3 ? _0x4f2d1f : _0x5e5bb6;
|
|
796
|
-
for (const _0x33e2c9 of _0xc3c756) {
|
|
797
|
-
const _0x4eaaa6 = _0x48abd8['get'](_0x33e2c9);
|
|
798
|
-
if (_0x4eaaa6) {
|
|
799
|
-
_0x4e16ad[_0xbaaae7(0x1c2)]({
|
|
800
|
-
'attachments': _0x4eaaa6[_0xbaaae7(_0x3b8add._0x420dfa)],
|
|
801
|
-
'content': _0x4eaaa6[_0xbaaae7(_0x3b8add._0xdd3ec5)],
|
|
802
|
-
'createdAt': _0x4eaaa6['createdAt'],
|
|
803
|
-
'messageId': _0x4eaaa6[_0xbaaae7(0x22f)],
|
|
804
|
-
'senderName': _0x4eaaa6[_0xbaaae7(_0x3b8add._0x5ac950)],
|
|
805
|
-
'senderType': _0x4eaaa6['senderType'],
|
|
806
|
-
'target': _0x5a6042
|
|
807
|
-
});
|
|
808
|
-
continue;
|
|
809
|
-
}
|
|
810
|
-
const _0xf03ac4 = _0x4a835b['get'](_0x33e2c9);
|
|
811
|
-
if (_0xf03ac4) {
|
|
812
|
-
const _0x52686f = asRecord(_0xf03ac4[_0xbaaae7(_0x3b8add._0x564396)]), _0x154f90 = typeof _0x52686f[_0xbaaae7(0x1ec)] === _0xbaaae7(_0x3b8add._0x4760c2) ? _0x52686f[_0xbaaae7(_0x3b8add._0x302bf6)] : '', _0x24477e = typeof _0x52686f[_0xbaaae7(_0x3b8add._0x548bff)] === _0xbaaae7(0x1cd) ? _0x52686f['bodyMarkdown'] : '';
|
|
813
|
-
_0x154f90 && _0x24477e && _0x4e16ad[_0xbaaae7(0x1c2)]({
|
|
814
|
-
'attachments': [],
|
|
815
|
-
'content': _0x24477e,
|
|
816
|
-
'createdAt': new Date()['toISOString'](),
|
|
817
|
-
'messageId': _0x33e2c9,
|
|
818
|
-
'senderName': _0x154f90,
|
|
819
|
-
'senderType': _0x49125c(_0x154f90, _0x1dabae),
|
|
820
|
-
'target': _0x5a6042
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
const _0x311ace = _0x7c89e7 ? _0x4e16ad[_0xbaaae7(_0x3b8add._0x16db03)](_0x492c8c => _0x492c8c[_0xbaaae7(0x219)] === _0x7c89e7) : _0x4e16ad;
|
|
826
|
-
return _0x2e76d1 > 0x0 && await _0x50843e(_0x2e76d1), _0x2e76d1 > _0x37ead6 && (_0x37ead6 = _0x2e76d1), { 'messages': _0x311ace };
|
|
827
|
-
}
|
|
828
|
-
};
|
|
829
|
-
}
|
|
830
|
-
function _0x3278(_0x43a1c4, _0x4652a7) {
|
|
831
|
-
_0x43a1c4 = _0x43a1c4 - 0x130;
|
|
832
|
-
const _0x5c8c72 = _0x5c8c();
|
|
833
|
-
let _0x3278ac = _0x5c8c72[_0x43a1c4];
|
|
834
|
-
if (_0x3278['YKGyec'] === undefined) {
|
|
835
|
-
var _0x78613b = function (_0x556030) {
|
|
836
|
-
const _0x3d0fdc = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
837
|
-
let _0x3efa53 = '', _0x49b2f1 = '';
|
|
838
|
-
for (let _0x580fb6 = 0x0, _0x32b5ca, _0x137e31, _0x383686 = 0x0; _0x137e31 = _0x556030['charAt'](_0x383686++); ~_0x137e31 && (_0x32b5ca = _0x580fb6 % 0x4 ? _0x32b5ca * 0x40 + _0x137e31 : _0x137e31, _0x580fb6++ % 0x4) ? _0x3efa53 += String['fromCharCode'](0xff & _0x32b5ca >> (-0x2 * _0x580fb6 & 0x6)) : 0x0) {
|
|
839
|
-
_0x137e31 = _0x3d0fdc['indexOf'](_0x137e31);
|
|
840
|
-
}
|
|
841
|
-
for (let _0x3bd2af = 0x0, _0x147084 = _0x3efa53['length']; _0x3bd2af < _0x147084; _0x3bd2af++) {
|
|
842
|
-
_0x49b2f1 += '%' + ('00' + _0x3efa53['charCodeAt'](_0x3bd2af)['toString'](0x10))['slice'](-0x2);
|
|
843
|
-
}
|
|
844
|
-
return decodeURIComponent(_0x49b2f1);
|
|
845
|
-
};
|
|
846
|
-
_0x3278['pRNwai'] = _0x78613b, _0x3278['DSoIRU'] = {}, _0x3278['YKGyec'] = !![];
|
|
847
|
-
}
|
|
848
|
-
const _0xb70ff8 = _0x5c8c72[0x0], _0x492663 = _0x43a1c4 + _0xb70ff8, _0x398275 = _0x3278['DSoIRU'][_0x492663];
|
|
849
|
-
return !_0x398275 ? (_0x3278ac = _0x3278['pRNwai'](_0x3278ac), _0x3278['DSoIRU'][_0x492663] = _0x3278ac) : _0x3278ac = _0x398275, _0x3278ac;
|
|
850
|
-
}
|
|
851
|
-
function toLocalTime(_0x5c5e9f) {
|
|
852
|
-
const _0x187d35 = {
|
|
853
|
-
_0x4576e2: 0x1c3,
|
|
854
|
-
_0x23c442: 0x17c,
|
|
855
|
-
_0x387ae0: 0x159,
|
|
856
|
-
_0x2e4b16: 0x1f9
|
|
857
|
-
}, _0x1b7bba = _0x2c1aa0, _0x3f67be = new Date(_0x5c5e9f);
|
|
858
|
-
if (Number[_0x1b7bba(0x239)](_0x3f67be[_0x1b7bba(0x1a2)]()))
|
|
859
|
-
return _0x5c5e9f;
|
|
860
|
-
const _0x2e41e8 = _0x991513 => String(_0x991513)[_0x1b7bba(0x209)](0x2, '0');
|
|
861
|
-
return _0x3f67be[_0x1b7bba(0x1c9)]() + '-' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x4576e2)]() + 0x1) + '-' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x23c442)]()) + '\x20' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x387ae0)]()) + ':' + _0x2e41e8(_0x3f67be[_0x1b7bba(_0x187d35._0x2e4b16)]()) + ':' + _0x2e41e8(_0x3f67be[_0x1b7bba(0x13f)]());
|
|
862
|
-
}
|
|
863
|
-
function formatAttachmentSuffix(_0x2cf165) {
|
|
864
|
-
const _0x6185df = {
|
|
865
|
-
_0x3f39dc: 0x282,
|
|
866
|
-
_0x3d74d3: 0x161,
|
|
867
|
-
_0x2f8786: 0x212
|
|
868
|
-
}, _0x17af62 = _0x2c1aa0;
|
|
869
|
-
if (!_0x2cf165 || _0x2cf165['length'] === 0x0)
|
|
870
|
-
return '';
|
|
871
|
-
return '\x20[' + _0x2cf165[_0x17af62(_0x6185df._0x3f39dc)] + _0x17af62(_0x6185df._0x3d74d3) + (_0x2cf165[_0x17af62(_0x6185df._0x3f39dc)] > 0x1 ? 's' : '') + ':\x20' + _0x2cf165[_0x17af62(_0x6185df._0x2f8786)](_0x397bb4 => _0x397bb4[_0x17af62(0x1e1)] + _0x17af62(0x261) + _0x397bb4['id'] + ')')[_0x17af62(0x229)](',\x20') + _0x17af62(0x28d);
|
|
872
|
-
}
|
|
873
|
-
function formatCheckMessages(_0x28c83c) {
|
|
874
|
-
const _0x39a3b7 = { _0x28b775: 0x229 }, _0x68a5ce = {
|
|
875
|
-
_0x4f0841: 0x1ab,
|
|
876
|
-
_0x1a3c2f: 0x174,
|
|
877
|
-
_0x4c1822: 0x1eb,
|
|
878
|
-
_0x3c802a: 0x22f,
|
|
879
|
-
_0x489172: 0x225,
|
|
880
|
-
_0x39e01b: 0x1a9,
|
|
881
|
-
_0x498dad: 0x1a6,
|
|
882
|
-
_0x44d294: 0x203
|
|
883
|
-
}, _0x38238b = _0x2c1aa0;
|
|
884
|
-
if (_0x28c83c[_0x38238b(0x282)] === 0x0)
|
|
885
|
-
return 'No\x20new\x20messages.';
|
|
886
|
-
return _0x28c83c['map'](_0x5e4063 => {
|
|
887
|
-
const _0x3260d6 = _0x38238b, _0x26ca10 = _0x5e4063[_0x3260d6(_0x68a5ce._0x4f0841)] === _0x3260d6(0x182) ? _0x3260d6(_0x68a5ce._0x1a3c2f) : '';
|
|
888
|
-
return _0x3260d6(_0x68a5ce._0x4c1822) + _0x5e4063[_0x3260d6(0x219)] + _0x3260d6(0x2aa) + _0x5e4063[_0x3260d6(_0x68a5ce._0x3c802a)][_0x3260d6(_0x68a5ce._0x489172)](0x0, 0x8) + _0x3260d6(0x278) + toLocalTime(_0x5e4063[_0x3260d6(0x24e)]) + _0x26ca10 + _0x3260d6(_0x68a5ce._0x39e01b) + _0x5e4063[_0x3260d6(_0x68a5ce._0x498dad)] + ':\x20' + _0x5e4063[_0x3260d6(0x1a0)] + formatAttachmentSuffix(_0x5e4063[_0x3260d6(_0x68a5ce._0x44d294)]);
|
|
889
|
-
})[_0x38238b(_0x39a3b7._0x28b775)]('\x0a');
|
|
890
|
-
}
|
|
891
|
-
function formatHistory(_0x491faf) {
|
|
892
|
-
const _0x3a97a7 = {
|
|
893
|
-
_0x502c98: 0x160,
|
|
894
|
-
_0xdddfe1: 0x266
|
|
895
|
-
}, _0x59ce38 = {
|
|
896
|
-
_0x3b6c19: 0x182,
|
|
897
|
-
_0x611b4a: 0x1f7,
|
|
898
|
-
_0x2b2db9: 0x166,
|
|
899
|
-
_0x2f1c43: 0x24e,
|
|
900
|
-
_0x48d730: 0x1a6
|
|
901
|
-
}, _0x23a8e4 = _0x2c1aa0;
|
|
902
|
-
if (_0x491faf[_0x23a8e4(_0x3a97a7._0x502c98)]['length'] === 0x0)
|
|
903
|
-
return '##\x20Message\x20History\x20for\x20' + _0x491faf['channel'] + _0x23a8e4(0x283);
|
|
904
|
-
const _0x26acef = _0x491faf['messages']['map'](_0x55bd93 => {
|
|
905
|
-
const _0x322502 = _0x23a8e4, _0x223e54 = _0x55bd93[_0x322502(0x1ab)] === _0x322502(_0x59ce38._0x3b6c19) ? _0x322502(0x174) : '';
|
|
906
|
-
return _0x322502(_0x59ce38._0x611b4a) + _0x55bd93[_0x322502(_0x59ce38._0x2b2db9)] + '\x20msg=' + _0x55bd93[_0x322502(0x22f)] + _0x322502(0x278) + toLocalTime(_0x55bd93[_0x322502(_0x59ce38._0x2f1c43)]) + _0x223e54 + ']\x20@' + _0x55bd93[_0x322502(_0x59ce38._0x48d730)] + ':\x20' + _0x55bd93[_0x322502(0x1a0)] + formatAttachmentSuffix(_0x55bd93['attachments']);
|
|
907
|
-
})[_0x23a8e4(0x229)]('\x0a'), _0x35daef = _0x491faf[_0x23a8e4(0x298)] && _0x491faf['nextCursor'] ? '\x0a\x0a---\x20' + _0x491faf[_0x23a8e4(_0x3a97a7._0x502c98)]['length'] + _0x23a8e4(0x21d) + _0x491faf['nextCursor'] + _0x23a8e4(_0x3a97a7._0xdddfe1) : '';
|
|
908
|
-
return '##\x20Message\x20History\x20for\x20' + _0x491faf['channel'] + '\x20(' + _0x491faf[_0x23a8e4(0x160)]['length'] + _0x23a8e4(0x241) + _0x26acef + _0x35daef;
|
|
909
|
-
}
|
|
910
|
-
function formatServerDirectory(_0x1d2265) {
|
|
911
|
-
const _0x41775e = {
|
|
912
|
-
_0x37a17b: 0x1b5,
|
|
913
|
-
_0xb06054: 0x282,
|
|
914
|
-
_0x486bd4: 0x229,
|
|
915
|
-
_0x456745: 0x27d,
|
|
916
|
-
_0x27a4c7: 0x155,
|
|
917
|
-
_0x3673ef: 0x27d,
|
|
918
|
-
_0x3e18c7: 0x1cf,
|
|
919
|
-
_0x4597c3: 0x18d,
|
|
920
|
-
_0x474ff8: 0x1bf,
|
|
921
|
-
_0xd85472: 0x237
|
|
922
|
-
}, _0x31b0d0 = _0x2c1aa0, _0x249260 = _0x1d2265[_0x31b0d0(_0x41775e._0x37a17b)][_0x31b0d0(_0x41775e._0xb06054)] > 0x0 ? _0x1d2265[_0x31b0d0(_0x41775e._0x37a17b)][_0x31b0d0(0x212)](_0x5a8a21 => _0x5a8a21['description'] ? _0x31b0d0(0x1fa) + _0x5a8a21[_0x31b0d0(0x16e)] + _0x31b0d0(0x1e9) + _0x5a8a21[_0x31b0d0(0x145)] : _0x31b0d0(0x1fa) + _0x5a8a21[_0x31b0d0(0x16e)])[_0x31b0d0(_0x41775e._0x486bd4)]('\x0a') : _0x31b0d0(_0x41775e._0x456745), _0x1c48ac = _0x1d2265[_0x31b0d0(_0x41775e._0x27a4c7)]['length'] > 0x0 ? _0x1d2265[_0x31b0d0(0x155)][_0x31b0d0(0x212)](_0x1dc783 => _0x31b0d0(0x1d0) + _0x1dc783[_0x31b0d0(0x16e)])[_0x31b0d0(0x229)]('\x0a') : _0x31b0d0(_0x41775e._0x3673ef), _0x296995 = _0x1d2265['humans'][_0x31b0d0(_0x41775e._0xb06054)] > 0x0 ? _0x1d2265[_0x31b0d0(_0x41775e._0x3e18c7)]['map'](_0x22f5aa => _0x31b0d0(0x1d0) + _0x22f5aa['name'])['join']('\x0a') : _0x31b0d0(0x27d);
|
|
923
|
-
return [
|
|
924
|
-
_0x31b0d0(_0x41775e._0x4597c3) + _0x1d2265[_0x31b0d0(_0x41775e._0x474ff8)],
|
|
925
|
-
'',
|
|
926
|
-
_0x31b0d0(0x18e),
|
|
927
|
-
_0x249260,
|
|
928
|
-
'',
|
|
929
|
-
_0x31b0d0(0x184),
|
|
930
|
-
_0x1c48ac,
|
|
931
|
-
'',
|
|
932
|
-
_0x31b0d0(_0x41775e._0xd85472),
|
|
933
|
-
_0x296995
|
|
934
|
-
]['join']('\x0a');
|
|
935
|
-
}
|
|
936
|
-
function formatUploadResult(_0x250740) {
|
|
937
|
-
const _0x30a1c7 = {
|
|
938
|
-
_0x18683c: 0x1e1,
|
|
939
|
-
_0x4e8e54: 0x1cc
|
|
940
|
-
}, _0x245fee = _0x2c1aa0;
|
|
941
|
-
return _0x245fee(0x1c4) + _0x250740[_0x245fee(_0x30a1c7._0x18683c)] + '\x20(' + (_0x250740[_0x245fee(_0x30a1c7._0x4e8e54)] / 0x400)['toFixed'](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x250740['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
942
|
-
}
|
|
943
|
-
function formatViewFileResult(_0x367ceb, _0x253767) {
|
|
944
|
-
return _0x253767 ? 'File\x20already\x20cached\x20at:\x20' + _0x367ceb : 'Downloaded\x20to:\x20' + _0x367ceb;
|
|
945
|
-
}
|
|
946
|
-
function formatTaskList(_0x1df1a8, _0x86ffd) {
|
|
947
|
-
const _0x46ca45 = {
|
|
948
|
-
_0x2c80ca: 0x290,
|
|
949
|
-
_0x2f8d50: 0x212
|
|
950
|
-
}, _0x2fd232 = {
|
|
951
|
-
_0x2f3a68: 0x22f,
|
|
952
|
-
_0xeae961: 0x19f,
|
|
953
|
-
_0x30837b: 0x152
|
|
954
|
-
}, _0xa1b94d = _0x2c1aa0;
|
|
955
|
-
if (_0x1df1a8['length'] === 0x0)
|
|
956
|
-
return _0xa1b94d(_0x46ca45._0x2c80ca);
|
|
957
|
-
return _0x1df1a8[_0xa1b94d(_0x46ca45._0x2f8d50)](_0x5b5a7d => {
|
|
958
|
-
const _0x1b019c = _0xa1b94d, _0x44fb97 = _0x5b5a7d[_0x1b019c(0x1ad)] == null ? '(legacy)' : '#' + _0x5b5a7d[_0x1b019c(0x1ad)], _0x2874f5 = _0x5b5a7d['messageId'] ? '\x20message=' + _0x5b5a7d[_0x1b019c(_0x2fd232._0x2f3a68)] : '', _0x4ed519 = _0x86ffd && _0x5b5a7d['taskNumber'] != null && _0x86ffd[_0x1b019c(0x1b0)](_0x5b5a7d['taskNumber']) ? _0x1b019c(_0x2fd232._0xeae961) : '';
|
|
959
|
-
return _0x44fb97 + '\x20[' + _0x5b5a7d[_0x1b019c(_0x2fd232._0x30837b)] + ']\x20' + _0x5b5a7d['title'] + _0x2874f5 + _0x4ed519;
|
|
960
|
-
})[_0xa1b94d(0x229)]('\x0a');
|
|
961
|
-
}
|
|
962
|
-
function formatCreatedTasks(_0x473eaa) {
|
|
963
|
-
const _0x7074c2 = {
|
|
964
|
-
_0x3e7eaf: 0x254,
|
|
965
|
-
_0x452e71: 0x181,
|
|
966
|
-
_0xfa1a1: 0x22f
|
|
967
|
-
}, _0x13f308 = _0x2c1aa0;
|
|
968
|
-
if (_0x473eaa[_0x13f308(0x282)] === 0x0)
|
|
969
|
-
return _0x13f308(0x1ff);
|
|
970
|
-
return _0x473eaa['map'](_0x84b96e => {
|
|
971
|
-
const _0x518bc5 = _0x13f308, _0x2b6379 = _0x84b96e[_0x518bc5(0x1ad)] == null ? _0x518bc5(_0x7074c2._0x3e7eaf) : '#' + _0x84b96e[_0x518bc5(0x1ad)];
|
|
972
|
-
return _0x2b6379 + '\x20' + _0x84b96e['title'] + _0x518bc5(_0x7074c2._0x452e71) + _0x84b96e[_0x518bc5(_0x7074c2._0xfa1a1)];
|
|
973
|
-
})[_0x13f308(0x229)]('\x0a');
|
|
974
|
-
}
|
|
975
|
-
function formatClaimTaskResults(_0x418c) {
|
|
976
|
-
const _0x6587cc = {
|
|
977
|
-
_0x39db4e: 0x1df,
|
|
978
|
-
_0x326473: 0x212
|
|
979
|
-
}, _0x2f161c = {
|
|
980
|
-
_0x71a520: 0x26c,
|
|
981
|
-
_0x49e8d2: 0x26f,
|
|
982
|
-
_0x4bb606: 0x1a8,
|
|
983
|
-
_0x1ed262: 0x2a6,
|
|
984
|
-
_0xe54abe: 0x280,
|
|
985
|
-
_0x373461: 0x138,
|
|
986
|
-
_0x33e030: 0x1ad,
|
|
987
|
-
_0x3de6f6: 0x22f,
|
|
988
|
-
_0x46aba3: 0x1ca,
|
|
989
|
-
_0x393e69: 0x23e
|
|
990
|
-
}, _0x40549a = _0x2c1aa0;
|
|
991
|
-
if (_0x418c[_0x40549a(0x282)] === 0x0)
|
|
992
|
-
return _0x40549a(_0x6587cc._0x39db4e);
|
|
993
|
-
return _0x418c[_0x40549a(_0x6587cc._0x326473)](_0x39a128 => {
|
|
994
|
-
const _0x385104 = _0x40549a;
|
|
995
|
-
if (_0x39a128[_0x385104(0x1cb)]) {
|
|
996
|
-
const _0x3741c5 = _0x39a128['taskNumber'] == null ? _0x385104(0x254) : '#' + _0x39a128[_0x385104(0x1ad)], _0x37d397 = _0x39a128[_0x385104(0x22f)] ? '\x20message=' + _0x39a128[_0x385104(0x22f)] : '', _0x5f3c5f = _0x39a128[_0x385104(_0x2f161c._0x71a520)] ? [
|
|
997
|
-
'workerHandoff=true',
|
|
998
|
-
_0x39a128['stopMain'] ? 'stopMain=true' : null,
|
|
999
|
-
_0x39a128[_0x385104(0x1ee)] ? 'executionMode=' + _0x39a128[_0x385104(0x1ee)] : null,
|
|
1000
|
-
_0x39a128[_0x385104(_0x2f161c._0x49e8d2)] ? _0x385104(_0x2f161c._0x4bb606) + _0x39a128[_0x385104(_0x2f161c._0x49e8d2)] : null,
|
|
1001
|
-
_0x39a128[_0x385104(_0x2f161c._0x1ed262)] ? _0x385104(_0x2f161c._0xe54abe) + _0x39a128[_0x385104(_0x2f161c._0x1ed262)] : null
|
|
1002
|
-
][_0x385104(0x21e)](Boolean)['join']('\x20') : _0x39a128[_0x385104(0x138)] ? _0x385104(0x230) + _0x39a128[_0x385104(_0x2f161c._0x373461)] : '';
|
|
1003
|
-
return [
|
|
1004
|
-
_0x3741c5 + '\x20claimed' + _0x37d397,
|
|
1005
|
-
_0x5f3c5f
|
|
1006
|
-
][_0x385104(0x21e)](Boolean)[_0x385104(0x229)]('\x20');
|
|
1007
|
-
}
|
|
1008
|
-
const _0x5c5338 = _0x39a128[_0x385104(_0x2f161c._0x33e030)] == null ? _0x39a128[_0x385104(_0x2f161c._0x3de6f6)] ?? _0x385104(_0x2f161c._0x46aba3) : '#' + _0x39a128['taskNumber'];
|
|
1009
|
-
return _0x5c5338 + _0x385104(0x1e8) + (_0x39a128['reason'] ?? _0x385104(_0x2f161c._0x393e69));
|
|
1010
|
-
})[_0x40549a(0x229)]('\x0a');
|
|
1011
|
-
}
|
|
1012
|
-
function formatUnclaimTaskResult(_0x353cd5) {
|
|
1013
|
-
const _0x4e268a = {
|
|
1014
|
-
_0x39c80d: 0x1ad,
|
|
1015
|
-
_0x1ce544: 0x202
|
|
1016
|
-
}, _0x3da968 = _0x2c1aa0, _0x5a764a = _0x353cd5[_0x3da968(_0x4e268a._0x39c80d)] == null ? '(legacy)' : '#' + _0x353cd5[_0x3da968(0x1ad)];
|
|
1017
|
-
return _0x5a764a + _0x3da968(_0x4e268a._0x1ce544) + _0x353cd5[_0x3da968(0x152)];
|
|
210
|
+
function asErrorMessage(_0x144707, _0x3783f5) {
|
|
211
|
+
const _0x7ff8f3 = _0x84e1c7;
|
|
212
|
+
if (typeof _0x144707 === _0x7ff8f3(0x234) && _0x144707[_0x7ff8f3(0x1d5)]())
|
|
213
|
+
return _0x144707;
|
|
214
|
+
return _0x3783f5;
|
|
1018
215
|
}
|
|
1019
|
-
function
|
|
1020
|
-
const
|
|
1021
|
-
return
|
|
1022
|
-
}
|
|
1023
|
-
function getChatBridgeToolDefinitions() {
|
|
1024
|
-
const _0x330729 = {
|
|
1025
|
-
_0x40bd63: 0x1fd,
|
|
1026
|
-
_0x193e13: 0x1e0,
|
|
1027
|
-
_0x8c5328: 0x20a,
|
|
1028
|
-
_0xa136f5: 0x2a8,
|
|
1029
|
-
_0x379da6: 0x252,
|
|
1030
|
-
_0x3a6c05: 0x16f,
|
|
1031
|
-
_0xe96868: 0x23d,
|
|
1032
|
-
_0x45548f: 0x132
|
|
1033
|
-
}, _0xc715e1 = _0x2c1aa0;
|
|
1034
|
-
return [
|
|
1035
|
-
{ 'name': _0xc715e1(_0x330729._0x40bd63) },
|
|
1036
|
-
{ 'name': _0xc715e1(_0x330729._0x193e13) },
|
|
1037
|
-
{ 'name': 'read_history' },
|
|
1038
|
-
{ 'name': _0xc715e1(_0x330729._0x8c5328) },
|
|
1039
|
-
{ 'name': 'upload_file' },
|
|
1040
|
-
{ 'name': _0xc715e1(0x287) },
|
|
1041
|
-
{ 'name': _0xc715e1(0x201) },
|
|
1042
|
-
{ 'name': 'create_tasks' },
|
|
1043
|
-
{ 'name': _0xc715e1(0x234) },
|
|
1044
|
-
{ 'name': 'unclaim_task' },
|
|
1045
|
-
{ 'name': _0xc715e1(0x27b) },
|
|
1046
|
-
{ 'name': _0xc715e1(_0x330729._0xa136f5) },
|
|
1047
|
-
{ 'name': _0xc715e1(_0x330729._0x379da6) },
|
|
1048
|
-
{ 'name': 'get_worker_result' },
|
|
1049
|
-
{ 'name': _0xc715e1(_0x330729._0x3a6c05) },
|
|
1050
|
-
{ 'name': _0xc715e1(_0x330729._0xe96868) },
|
|
1051
|
-
{ 'name': _0xc715e1(_0x330729._0x45548f) }
|
|
1052
|
-
];
|
|
1053
|
-
}
|
|
1054
|
-
function createChatBridgeHandlers(_0x121873) {
|
|
1055
|
-
const _0x3b0500 = {
|
|
1056
|
-
_0x156f62: 0x1d3,
|
|
1057
|
-
_0x1f35c0: 0x146,
|
|
1058
|
-
_0x398e66: 0x29a,
|
|
1059
|
-
_0x5945d1: 0x210,
|
|
1060
|
-
_0x26d8ac: 0x1aa
|
|
1061
|
-
}, _0x324241 = {
|
|
1062
|
-
_0x5b7155: 0x156,
|
|
1063
|
-
_0x4fc778: 0x20b,
|
|
1064
|
-
_0x3f0fce: 0x146,
|
|
1065
|
-
_0x1c218a: 0x29a,
|
|
1066
|
-
_0x2577bd: 0x1e5,
|
|
1067
|
-
_0x10c957: 0x15a,
|
|
1068
|
-
_0x2f4145: 0x210,
|
|
1069
|
-
_0x1bd1c1: 0x18a,
|
|
1070
|
-
_0x5ee23c: 0x193
|
|
1071
|
-
}, _0x2b1bc1 = {
|
|
1072
|
-
_0x4a5c78: 0x20b,
|
|
1073
|
-
_0x130a39: 0x1fc,
|
|
1074
|
-
_0x3f2ffa: 0x146,
|
|
1075
|
-
_0x1fe65a: 0x255,
|
|
1076
|
-
_0x3a2c8d: 0x227,
|
|
1077
|
-
_0x521028: 0x210,
|
|
1078
|
-
_0x484f50: 0x268,
|
|
1079
|
-
_0x12ba14: 0x224
|
|
1080
|
-
}, _0x21e62e = {
|
|
1081
|
-
_0x515c09: 0x20b,
|
|
1082
|
-
_0xa6124a: 0x1fc,
|
|
1083
|
-
_0x44f3e4: 0x20b,
|
|
1084
|
-
_0x261357: 0x173,
|
|
1085
|
-
_0x1f014e: 0x24d,
|
|
1086
|
-
_0x740616: 0x193
|
|
1087
|
-
}, _0x145963 = {
|
|
1088
|
-
_0x500c0a: 0x20b,
|
|
1089
|
-
_0x5ccf46: 0x193,
|
|
1090
|
-
_0x38efc3: 0x18a,
|
|
1091
|
-
_0x24881b: 0x2a1,
|
|
1092
|
-
_0x514472: 0x18a
|
|
1093
|
-
}, _0x46876c = {
|
|
1094
|
-
_0x5f2b84: 0x20b,
|
|
1095
|
-
_0x58dec7: 0x1e5,
|
|
1096
|
-
_0x2183c9: 0x29a,
|
|
1097
|
-
_0x2b015c: 0x1be,
|
|
1098
|
-
_0x12579f: 0x14a,
|
|
1099
|
-
_0x4ae969: 0x15a,
|
|
1100
|
-
_0x5ad891: 0x210,
|
|
1101
|
-
_0x4dfda4: 0x28b,
|
|
1102
|
-
_0x409338: 0x136
|
|
1103
|
-
}, _0xd21ad5 = {
|
|
1104
|
-
_0x5aead9: 0x1e2,
|
|
1105
|
-
_0x319576: 0x1a1,
|
|
1106
|
-
_0x56b3eb: 0x29d,
|
|
1107
|
-
_0x21f559: 0x186,
|
|
1108
|
-
_0x199e31: 0x245
|
|
1109
|
-
}, _0x597d44 = {
|
|
1110
|
-
_0x1b6531: 0x135,
|
|
1111
|
-
_0x164795: 0x17d
|
|
1112
|
-
}, _0xda40d4 = { _0x465549: 0x17d }, _0x2ceb0f = {
|
|
1113
|
-
_0x3aa2ed: 0x17d,
|
|
1114
|
-
_0x38ecfb: 0x23c,
|
|
1115
|
-
_0x573efc: 0x272
|
|
1116
|
-
}, _0x559ab1 = { _0x452d58: 0x169 }, _0xf096dd = {
|
|
1117
|
-
_0x323eda: 0x17d,
|
|
1118
|
-
_0x11fb14: 0x152,
|
|
1119
|
-
_0x165913: 0x281,
|
|
1120
|
-
_0x263cfa: 0x1bb,
|
|
1121
|
-
_0x1ec62f: 0x1ad,
|
|
1122
|
-
_0x14e8b8: 0x197
|
|
1123
|
-
}, _0x55814b = {
|
|
1124
|
-
_0x5f13a0: 0x17d,
|
|
1125
|
-
_0x5f3724: 0x1ef
|
|
1126
|
-
}, _0x3bc921 = {
|
|
1127
|
-
_0x23164b: 0x17d,
|
|
1128
|
-
_0x2ec12e: 0x240
|
|
1129
|
-
}, _0x5386d0 = {
|
|
1130
|
-
_0x5f0f77: 0x21e,
|
|
1131
|
-
_0x2366c9: 0x160
|
|
1132
|
-
}, _0x1690f0 = {
|
|
1133
|
-
_0x386590: 0x17d,
|
|
1134
|
-
_0x1f2df8: 0x17f,
|
|
1135
|
-
_0x2bd7fd: 0x1b7
|
|
1136
|
-
}, _0x3b8d1d = {
|
|
1137
|
-
_0x4750a8: 0x1e5,
|
|
1138
|
-
_0x38b7ec: 0x20b,
|
|
1139
|
-
_0x4c9d3e: 0x197,
|
|
1140
|
-
_0x141074: 0x1c0,
|
|
1141
|
-
_0x5a2375: 0x1e7
|
|
1142
|
-
}, _0x18d8c8 = {
|
|
1143
|
-
_0x267e6f: 0x1e5,
|
|
1144
|
-
_0x5b011b: 0x15d,
|
|
1145
|
-
_0x3d8dda: 0x13a,
|
|
1146
|
-
_0x5236e6: 0x297,
|
|
1147
|
-
_0x2b155c: 0x221,
|
|
1148
|
-
_0x56608: 0x22f,
|
|
1149
|
-
_0x50df0b: 0x2aa,
|
|
1150
|
-
_0x2a0f45: 0x22f,
|
|
1151
|
-
_0x1977df: 0x278,
|
|
1152
|
-
_0x60d79b: 0x177,
|
|
1153
|
-
_0x9d4913: 0x277,
|
|
1154
|
-
_0x4007d5: 0x23f,
|
|
1155
|
-
_0x3c97b1: 0x153,
|
|
1156
|
-
_0x4266c2: 0x226,
|
|
1157
|
-
_0x406689: 0x1e5,
|
|
1158
|
-
_0x227481: 0x271,
|
|
1159
|
-
_0x1afb2b: 0x1ad,
|
|
1160
|
-
_0x55cbd6: 0x247,
|
|
1161
|
-
_0x2b15b1: 0x15a,
|
|
1162
|
-
_0x4d4acc: 0x210,
|
|
1163
|
-
_0x1affc0: 0x141
|
|
1164
|
-
};
|
|
1165
|
-
async function _0x3c1456(_0x56ca09) {
|
|
1166
|
-
const _0x20de21 = _0x3278;
|
|
1167
|
-
if (!_0x121873[_0x20de21(0x20b)] || !_0x121873[_0x20de21(_0x18d8c8._0x267e6f)] || _0x121873[_0x20de21(_0x18d8c8._0x5b011b)] || _0x121873[_0x20de21(_0x18d8c8._0x3d8dda)] !== !![])
|
|
1168
|
-
return null;
|
|
1169
|
-
const _0x2a1156 = parseTarget(_0x56ca09[_0x20de21(_0x18d8c8._0x5236e6)]);
|
|
1170
|
-
if (_0x2a1156['kind'] !== _0x20de21(0x297))
|
|
1171
|
-
return null;
|
|
1172
|
-
const _0x13878a = _0x2a1156[_0x20de21(_0x18d8c8._0x2b155c)] + ':' + _0x56ca09[_0x20de21(_0x18d8c8._0x56608)][_0x20de21(0x225)](0x0, 0x8), _0x19738c = await _0x121873[_0x20de21(0x17d)][_0x20de21(0x240)]({
|
|
1173
|
-
'channel': _0x13878a,
|
|
1174
|
-
'limit': 0x14
|
|
1175
|
-
}), _0x2de390 = _0x19738c[_0x20de21(0x160)][_0x20de21(0x1a4)](_0x47c73b => _0x47c73b[_0x20de21(0x22f)] === _0x56ca09[_0x20de21(0x22f)]), _0x3aceda = _0x56ca09['taskNumber'] == null ? _0x20de21(0x254) : '#' + _0x56ca09['taskNumber'], _0x46dc09 = [
|
|
1176
|
-
'[target=' + _0x13878a + _0x20de21(_0x18d8c8._0x50df0b) + _0x56ca09[_0x20de21(_0x18d8c8._0x2a0f45)][_0x20de21(0x225)](0x0, 0x8) + _0x20de21(_0x18d8c8._0x1977df) + new Date()[_0x20de21(0x14f)]() + _0x20de21(_0x18d8c8._0x60d79b) + _0x3aceda + '\x20已切换到\x20worker\x20执行',
|
|
1177
|
-
'',
|
|
1178
|
-
_0x2de390 ? 'Root\x20task\x20message:\x0a' + _0x2de390[_0x20de21(0x1a0)] : _0x20de21(_0x18d8c8._0x9d4913) + _0x56ca09[_0x20de21(_0x18d8c8._0x2a0f45)],
|
|
1179
|
-
'',
|
|
1180
|
-
_0x20de21(_0x18d8c8._0x4007d5) + _0x13878a,
|
|
1181
|
-
_0x20de21(_0x18d8c8._0x3c97b1)
|
|
1182
|
-
]['join']('\x0a'), _0x388ab3 = await fetch(_0x121873['daemonLocalUrl'] + _0x20de21(_0x18d8c8._0x4266c2), {
|
|
1183
|
-
'method': _0x20de21(0x1d3),
|
|
1184
|
-
'headers': { 'Content-Type': 'application/json' },
|
|
1185
|
-
'body': JSON['stringify']({
|
|
1186
|
-
'agent_id': _0x121873[_0x20de21(_0x18d8c8._0x406689)],
|
|
1187
|
-
'thread_target': _0x13878a,
|
|
1188
|
-
'spawn_packet': {
|
|
1189
|
-
'replyTarget': _0x13878a,
|
|
1190
|
-
..._0x56ca09['taskId'] ? { 'taskId': _0x56ca09['taskId'] } : _0x56ca09[_0x20de21(0x1ad)] != null ? { 'taskId': _0x20de21(_0x18d8c8._0x227481) + _0x56ca09[_0x20de21(_0x18d8c8._0x1afb2b)] } : {}
|
|
1191
|
-
},
|
|
1192
|
-
'payload': {
|
|
1193
|
-
'mode': _0x20de21(_0x18d8c8._0x55cbd6),
|
|
1194
|
-
'text': _0x46dc09
|
|
1195
|
-
}
|
|
1196
|
-
})
|
|
1197
|
-
}), _0x144e82 = await _0x388ab3[_0x20de21(_0x18d8c8._0x2b15b1)]();
|
|
1198
|
-
if (!_0x144e82['ok'])
|
|
1199
|
-
throw new Error(_0x144e82[_0x20de21(_0x18d8c8._0x4d4acc)] ?? 'worker\x20handoff\x20failed');
|
|
1200
|
-
return {
|
|
1201
|
-
'stopMain': !![],
|
|
1202
|
-
'threadTarget': _0x13878a,
|
|
1203
|
-
'workerDisposition': _0x144e82[_0x20de21(0x28b)] === _0x20de21(0x141) ? _0x20de21(_0x18d8c8._0x1affc0) : 'started',
|
|
1204
|
-
'workerHandoff': !![],
|
|
1205
|
-
'workerSessionId': _0x144e82[_0x20de21(0x270)] ?? '',
|
|
1206
|
-
'executionMode': _0x20de21(0x2a5)
|
|
1207
|
-
};
|
|
1208
|
-
}
|
|
1209
|
-
async function _0x235142() {
|
|
1210
|
-
const _0x1380a6 = _0x3278;
|
|
1211
|
-
if (!_0x121873['daemonLocalUrl'] || !_0x121873[_0x1380a6(_0x3b8d1d._0x4750a8)] || _0x121873['workerMode'])
|
|
1212
|
-
return null;
|
|
1213
|
-
try {
|
|
1214
|
-
const _0x4b8a48 = await fetch(_0x121873[_0x1380a6(_0x3b8d1d._0x38b7ec)] + _0x1380a6(0x1d1) + encodeURIComponent(_0x121873['agentId'])), _0x1631b4 = await _0x4b8a48['json']();
|
|
1215
|
-
if (!_0x1631b4['ok'])
|
|
1216
|
-
return null;
|
|
1217
|
-
const _0x4a3cf2 = new Set();
|
|
1218
|
-
for (const _0x13d233 of _0x1631b4[_0x1380a6(0x189)]) {
|
|
1219
|
-
_0x13d233['status'] !== _0x1380a6(0x281) && _0x13d233[_0x1380a6(0x1c0)] && _0x4a3cf2[_0x1380a6(_0x3b8d1d._0x4c9d3e)](_0x13d233[_0x1380a6(_0x3b8d1d._0x141074)]);
|
|
1220
|
-
}
|
|
1221
|
-
return _0x4a3cf2[_0x1380a6(_0x3b8d1d._0x5a2375)] > 0x0 ? _0x4a3cf2 : null;
|
|
1222
|
-
} catch {
|
|
1223
|
-
return null;
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
return {
|
|
1227
|
-
async 'send_message'(_0x413dcc) {
|
|
1228
|
-
const _0x5bb9f6 = _0x3278, _0x2d84b5 = await _0x121873[_0x5bb9f6(_0x1690f0._0x386590)]['sendMessage']({
|
|
1229
|
-
'attachmentIds': _0x413dcc[_0x5bb9f6(_0x1690f0._0x1f2df8)],
|
|
1230
|
-
'content': _0x413dcc['content'],
|
|
1231
|
-
'target': _0x413dcc[_0x5bb9f6(0x219)]
|
|
1232
|
-
});
|
|
1233
|
-
return _0x5bb9f6(0x258) + _0x413dcc[_0x5bb9f6(0x219)] + _0x5bb9f6(_0x1690f0._0x2bd7fd) + _0x2d84b5['messageId'];
|
|
1234
|
-
},
|
|
1235
|
-
async 'check_messages'() {
|
|
1236
|
-
const _0x4b2bdf = _0x3278, _0x214e1f = await _0x121873[_0x4b2bdf(0x17d)][_0x4b2bdf(0x1dc)]();
|
|
1237
|
-
if (!_0x121873['workerMode']) {
|
|
1238
|
-
const _0x93df93 = await _0x235142();
|
|
1239
|
-
if (_0x93df93)
|
|
1240
|
-
return formatCheckMessages(_0x214e1f['messages'][_0x4b2bdf(_0x5386d0._0x5f0f77)](_0x5841d3 => !_0x93df93[_0x4b2bdf(0x1b0)](_0x5841d3['target'])));
|
|
1241
|
-
}
|
|
1242
|
-
return formatCheckMessages(_0x214e1f[_0x4b2bdf(_0x5386d0._0x2366c9)]);
|
|
1243
|
-
},
|
|
1244
|
-
async 'read_history'(_0x413775) {
|
|
1245
|
-
const _0x511466 = _0x3278, _0x22ba93 = await _0x121873[_0x511466(_0x3bc921._0x23164b)][_0x511466(_0x3bc921._0x2ec12e)](_0x413775);
|
|
1246
|
-
return formatHistory(_0x22ba93);
|
|
1247
|
-
},
|
|
1248
|
-
async 'list_server'() {
|
|
1249
|
-
const _0x5b7df6 = _0x3278, _0x1d443b = await _0x121873[_0x5b7df6(_0x55814b._0x5f13a0)][_0x5b7df6(_0x55814b._0x5f3724)]();
|
|
1250
|
-
return formatServerDirectory(_0x1d443b);
|
|
1251
|
-
},
|
|
1252
|
-
async 'list_tasks'(_0x3b5c9b) {
|
|
1253
|
-
const _0xc71b42 = _0x3278, _0xf2cef = await _0x121873[_0xc71b42(_0xf096dd._0x323eda)][_0xc71b42(0x1d6)](_0x3b5c9b);
|
|
1254
|
-
let _0x1fabe5;
|
|
1255
|
-
if (_0x121873['daemonLocalUrl'] && _0x121873[_0xc71b42(0x1e5)])
|
|
1256
|
-
try {
|
|
1257
|
-
const _0x58c3f3 = await fetch(_0x121873[_0xc71b42(0x20b)] + _0xc71b42(0x1d1) + encodeURIComponent(_0x121873['agentId'])), _0x44bcb4 = await _0x58c3f3['json']();
|
|
1258
|
-
if (_0x44bcb4['ok']) {
|
|
1259
|
-
const _0x4cb972 = _0x3b5c9b[_0xc71b42(0x297)] + ':';
|
|
1260
|
-
_0x1fabe5 = new Set();
|
|
1261
|
-
for (const _0x132534 of _0x44bcb4[_0xc71b42(0x189)]) {
|
|
1262
|
-
if (_0x132534[_0xc71b42(_0xf096dd._0x11fb14)] === _0xc71b42(_0xf096dd._0x165913))
|
|
1263
|
-
continue;
|
|
1264
|
-
if (_0x132534['thread_target']?.[_0xc71b42(0x1c8)](_0x4cb972)) {
|
|
1265
|
-
const _0x4ae558 = _0x132534[_0xc71b42(0x1c0)]['slice'](_0x4cb972[_0xc71b42(0x282)]), _0x2c0c1b = _0xf2cef[_0xc71b42(_0xf096dd._0x263cfa)][_0xc71b42(0x1a4)](_0x44f4fd => _0x44f4fd[_0xc71b42(0x22f)]?.[_0xc71b42(0x1c8)](_0x4ae558) === !![]);
|
|
1266
|
-
if (_0x2c0c1b?.[_0xc71b42(0x1ad)] != null) {
|
|
1267
|
-
_0x1fabe5[_0xc71b42(0x197)](_0x2c0c1b['taskNumber']);
|
|
1268
|
-
continue;
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
if (_0x132534['task_id']) {
|
|
1272
|
-
const _0x2c73b3 = _0xf2cef[_0xc71b42(0x1bb)]['find'](_0x15dc1a => _0x15dc1a[_0xc71b42(0x19b)] === _0x132534[_0xc71b42(0x14a)]);
|
|
1273
|
-
_0x2c73b3?.[_0xc71b42(_0xf096dd._0x1ec62f)] != null && _0x1fabe5[_0xc71b42(_0xf096dd._0x14e8b8)](_0x2c73b3['taskNumber']);
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
} catch {
|
|
1278
|
-
}
|
|
1279
|
-
return formatTaskList(_0xf2cef[_0xc71b42(0x1bb)], _0x1fabe5);
|
|
1280
|
-
},
|
|
1281
|
-
async 'create_tasks'(_0x5d4b7c) {
|
|
1282
|
-
const _0x3a41be = _0x3278, _0x247171 = await _0x121873[_0x3a41be(0x17d)][_0x3a41be(_0x559ab1._0x452d58)](_0x5d4b7c);
|
|
1283
|
-
return formatCreatedTasks(_0x247171['tasks']);
|
|
1284
|
-
},
|
|
1285
|
-
async 'claim_tasks'(_0x31597a) {
|
|
1286
|
-
const _0x2caf63 = {
|
|
1287
|
-
_0x106ca7: 0x1cb,
|
|
1288
|
-
_0x3e1f1f: 0x22f,
|
|
1289
|
-
_0xe5c8e1: 0x297,
|
|
1290
|
-
_0x4ea0b2: 0x1ae
|
|
1291
|
-
}, _0x238a92 = _0x3278, _0x3dee75 = await _0x121873[_0x238a92(_0x2ceb0f._0x3aa2ed)][_0x238a92(_0x2ceb0f._0x38ecfb)](_0x31597a), _0x243f87 = await Promise[_0x238a92(0x208)](_0x3dee75[_0x238a92(_0x2ceb0f._0x573efc)]['map'](async _0x380875 => {
|
|
1292
|
-
const _0x5a6400 = _0x238a92;
|
|
1293
|
-
if (!_0x380875[_0x5a6400(_0x2caf63._0x106ca7)] || !_0x380875[_0x5a6400(_0x2caf63._0x3e1f1f)])
|
|
1294
|
-
return _0x380875;
|
|
1295
|
-
try {
|
|
1296
|
-
const _0x2e9d83 = await _0x3c1456({
|
|
1297
|
-
'channel': _0x31597a[_0x5a6400(_0x2caf63._0xe5c8e1)],
|
|
1298
|
-
'messageId': _0x380875[_0x5a6400(0x22f)],
|
|
1299
|
-
'taskId': _0x380875[_0x5a6400(0x19b)],
|
|
1300
|
-
'taskNumber': _0x380875['taskNumber']
|
|
1301
|
-
});
|
|
1302
|
-
return _0x2e9d83 ? {
|
|
1303
|
-
..._0x380875,
|
|
1304
|
-
..._0x2e9d83
|
|
1305
|
-
} : _0x380875;
|
|
1306
|
-
} catch (_0x46f916) {
|
|
1307
|
-
return {
|
|
1308
|
-
..._0x380875,
|
|
1309
|
-
'workerHandoffError': _0x46f916 instanceof Error ? _0x46f916[_0x5a6400(0x15c)] : _0x5a6400(_0x2caf63._0x4ea0b2)
|
|
1310
|
-
};
|
|
1311
|
-
}
|
|
1312
|
-
}));
|
|
1313
|
-
return formatClaimTaskResults(_0x243f87);
|
|
1314
|
-
},
|
|
1315
|
-
async 'unclaim_task'(_0x490f78) {
|
|
1316
|
-
const _0x338f7f = await _0x121873['client']['unclaimTask'](_0x490f78);
|
|
1317
|
-
return formatUnclaimTaskResult(_0x338f7f);
|
|
1318
|
-
},
|
|
1319
|
-
async 'update_task_status'(_0x7d5bf) {
|
|
1320
|
-
const _0x40fd25 = _0x3278, _0xb6cbac = await _0x121873[_0x40fd25(_0xda40d4._0x465549)][_0x40fd25(0x1b1)](_0x7d5bf);
|
|
1321
|
-
return formatUpdateTaskStatusResult(_0xb6cbac);
|
|
1322
|
-
},
|
|
1323
|
-
async 'upload_file'(_0x3b6d32) {
|
|
1324
|
-
const _0x5e205b = _0x3278, _0x5926db = await _0x121873[_0x5e205b(0x187)](_0x3b6d32[_0x5e205b(_0x597d44._0x1b6531)]), {
|
|
1325
|
-
sizeBytes: _0x5377cf,
|
|
1326
|
-
..._0x593c5d
|
|
1327
|
-
} = _0x5926db, _0x4c97a0 = await _0x121873[_0x5e205b(_0x597d44._0x164795)]['uploadFile']({
|
|
1328
|
-
'channel': _0x3b6d32[_0x5e205b(0x297)],
|
|
1329
|
-
..._0x593c5d
|
|
1330
|
-
});
|
|
1331
|
-
return formatUploadResult(_0x4c97a0);
|
|
1332
|
-
},
|
|
1333
|
-
async 'view_file'(_0x81017a) {
|
|
1334
|
-
const _0xb6a11b = _0x3278, _0x37df23 = await _0x121873[_0xb6a11b(0x1a1)][_0xb6a11b(_0xd21ad5._0x5aead9)](_0x81017a['attachment_id']);
|
|
1335
|
-
if (_0x37df23)
|
|
1336
|
-
return formatViewFileResult(_0x37df23, !![]);
|
|
1337
|
-
const _0x1c857d = await _0x121873['client'][_0xb6a11b(0x1d2)](_0x81017a['attachment_id']), _0x2e5aa3 = await _0x121873[_0xb6a11b(_0xd21ad5._0x319576)][_0xb6a11b(0x206)]({
|
|
1338
|
-
'attachmentId': _0x81017a[_0xb6a11b(0x13e)],
|
|
1339
|
-
'contentType': _0x1c857d[_0xb6a11b(_0xd21ad5._0x56b3eb)],
|
|
1340
|
-
'data': _0x1c857d[_0xb6a11b(_0xd21ad5._0x21f559)],
|
|
1341
|
-
'originalFilename': _0x1c857d[_0xb6a11b(_0xd21ad5._0x199e31)]
|
|
1342
|
-
});
|
|
1343
|
-
return formatViewFileResult(_0x2e5aa3, ![]);
|
|
1344
|
-
},
|
|
1345
|
-
async 'spawn_worker'(_0x4b5f35) {
|
|
1346
|
-
const _0x994f90 = _0x3278;
|
|
1347
|
-
if (!_0x121873[_0x994f90(_0x46876c._0x5f2b84)] || !_0x121873[_0x994f90(_0x46876c._0x58dec7)])
|
|
1348
|
-
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20not\x20configured)';
|
|
1349
|
-
const _0x15ec2e = await fetch(_0x121873[_0x994f90(_0x46876c._0x5f2b84)] + _0x994f90(0x215), {
|
|
1350
|
-
'method': 'POST',
|
|
1351
|
-
'headers': { 'Content-Type': _0x994f90(0x146) },
|
|
1352
|
-
'body': JSON[_0x994f90(_0x46876c._0x2183c9)]({
|
|
1353
|
-
'agent_id': _0x121873[_0x994f90(0x1e5)],
|
|
1354
|
-
'work_key': _0x4b5f35['work_key'],
|
|
1355
|
-
'thread_target': _0x4b5f35['thread_target'],
|
|
1356
|
-
'spawn_packet': {
|
|
1357
|
-
'replyTarget': _0x4b5f35[_0x994f90(_0x46876c._0x2b015c)],
|
|
1358
|
-
'taskId': _0x4b5f35[_0x994f90(_0x46876c._0x12579f)]
|
|
1359
|
-
}
|
|
1360
|
-
})
|
|
1361
|
-
}), _0x3adf99 = await _0x15ec2e[_0x994f90(_0x46876c._0x4ae969)]();
|
|
1362
|
-
if (!_0x3adf99['ok'])
|
|
1363
|
-
throw new Error(_0x3adf99[_0x994f90(_0x46876c._0x5ad891)] ?? _0x994f90(0x25c));
|
|
1364
|
-
const _0x4cb4cc = _0x3adf99[_0x994f90(_0x46876c._0x4dfda4)] === _0x994f90(0x141) ? _0x994f90(0x141) : _0x994f90(_0x46876c._0x409338);
|
|
1365
|
-
return 'Worker\x20' + _0x4cb4cc + _0x994f90(0x1f2) + _0x3adf99[_0x994f90(0x270)] + _0x994f90(0x20e) + _0x4b5f35['work_key'];
|
|
1366
|
-
},
|
|
1367
|
-
async 'get_worker_status'(_0x1d8cef) {
|
|
1368
|
-
const _0x245fda = _0x3278;
|
|
1369
|
-
if (!_0x121873[_0x245fda(_0x145963._0x500c0a)])
|
|
1370
|
-
return _0x245fda(0x1fc);
|
|
1371
|
-
const _0x299a8f = await fetch(_0x121873['daemonLocalUrl'] + _0x245fda(0x1c1) + encodeURIComponent(_0x1d8cef[_0x245fda(_0x145963._0x5ccf46)])), _0x33725d = await _0x299a8f[_0x245fda(0x15a)]();
|
|
1372
|
-
if (!_0x33725d['ok'])
|
|
1373
|
-
return _0x245fda(_0x145963._0x38efc3) + _0x1d8cef[_0x245fda(0x193)] + _0x245fda(_0x145963._0x24881b);
|
|
1374
|
-
return _0x245fda(_0x145963._0x514472) + _0x1d8cef[_0x245fda(0x193)] + _0x245fda(0x296) + _0x33725d[_0x245fda(0x152)];
|
|
1375
|
-
},
|
|
1376
|
-
async 'get_worker_result'(_0x1aaedd) {
|
|
1377
|
-
const _0x38de87 = _0x3278;
|
|
1378
|
-
if (!_0x121873[_0x38de87(_0x21e62e._0x515c09)])
|
|
1379
|
-
return _0x38de87(_0x21e62e._0xa6124a);
|
|
1380
|
-
const _0x449d78 = await fetch(_0x121873[_0x38de87(_0x21e62e._0x44f3e4)] + _0x38de87(_0x21e62e._0x261357) + encodeURIComponent(_0x1aaedd[_0x38de87(0x193)])), _0x10ce96 = await _0x449d78['json']();
|
|
1381
|
-
if (!_0x10ce96['resume_packet'])
|
|
1382
|
-
return _0x38de87(_0x21e62e._0x1f014e) + _0x1aaedd[_0x38de87(_0x21e62e._0x740616)] + '\x22';
|
|
1383
|
-
return JSON['stringify'](_0x10ce96[_0x38de87(0x267)], null, 0x2);
|
|
1384
|
-
},
|
|
1385
|
-
async 'finish_worker'(_0x4bdf89) {
|
|
1386
|
-
const _0x57f783 = _0x3278;
|
|
1387
|
-
if (!_0x121873[_0x57f783(_0x2b1bc1._0x4a5c78)])
|
|
1388
|
-
return _0x57f783(_0x2b1bc1._0x130a39);
|
|
1389
|
-
const _0x5f0f5b = await fetch(_0x121873[_0x57f783(0x20b)] + '/workers/finish', {
|
|
1390
|
-
'method': _0x57f783(0x1d3),
|
|
1391
|
-
'headers': { 'Content-Type': _0x57f783(_0x2b1bc1._0x3f2ffa) },
|
|
1392
|
-
'body': JSON[_0x57f783(0x29a)]({
|
|
1393
|
-
'work_key': _0x4bdf89[_0x57f783(0x193)],
|
|
1394
|
-
'resume_packet': {
|
|
1395
|
-
'objective': '',
|
|
1396
|
-
'result': _0x4bdf89['result'],
|
|
1397
|
-
'summary': _0x4bdf89[_0x57f783(0x279)],
|
|
1398
|
-
'decisions': _0x4bdf89[_0x57f783(_0x2b1bc1._0x1fe65a)] ?? [],
|
|
1399
|
-
'filesChanged': _0x4bdf89[_0x57f783(_0x2b1bc1._0x3a2c8d)] ?? [],
|
|
1400
|
-
'openIssues': _0x4bdf89[_0x57f783(0x154)] ?? [],
|
|
1401
|
-
'nextSteps': _0x4bdf89[_0x57f783(0x22b)] ?? []
|
|
1402
|
-
}
|
|
1403
|
-
})
|
|
1404
|
-
}), _0x46e976 = await _0x5f0f5b[_0x57f783(0x15a)]();
|
|
1405
|
-
if (!_0x46e976['ok'])
|
|
1406
|
-
throw new Error(_0x46e976[_0x57f783(_0x2b1bc1._0x521028)] ?? _0x57f783(_0x2b1bc1._0x484f50));
|
|
1407
|
-
return 'Worker\x20\x22' + _0x4bdf89[_0x57f783(0x193)] + _0x57f783(_0x2b1bc1._0x12ba14) + _0x4bdf89[_0x57f783(0x23a)];
|
|
1408
|
-
},
|
|
1409
|
-
async 'mark_waiting_input'(_0x36d4a5) {
|
|
1410
|
-
const _0x1022b6 = _0x3278;
|
|
1411
|
-
if (!_0x121873[_0x1022b6(0x20b)] || !_0x121873[_0x1022b6(0x1e5)])
|
|
1412
|
-
return _0x1022b6(_0x324241._0x5b7155);
|
|
1413
|
-
const _0x4b32ee = await fetch(_0x121873[_0x1022b6(_0x324241._0x4fc778)] + '/workers/waiting_input', {
|
|
1414
|
-
'method': _0x1022b6(0x1d3),
|
|
1415
|
-
'headers': { 'Content-Type': _0x1022b6(_0x324241._0x3f0fce) },
|
|
1416
|
-
'body': JSON[_0x1022b6(_0x324241._0x1c218a)]({
|
|
1417
|
-
'work_key': _0x36d4a5[_0x1022b6(0x193)],
|
|
1418
|
-
'agent_id': _0x121873[_0x1022b6(_0x324241._0x2577bd)]
|
|
1419
|
-
})
|
|
1420
|
-
}), _0x165a40 = await _0x4b32ee[_0x1022b6(_0x324241._0x10c957)]();
|
|
1421
|
-
if (!_0x165a40['ok'])
|
|
1422
|
-
throw new Error(_0x165a40[_0x1022b6(_0x324241._0x2f4145)] ?? 'mark_waiting_input\x20failed');
|
|
1423
|
-
return _0x1022b6(_0x324241._0x1bd1c1) + _0x36d4a5[_0x1022b6(_0x324241._0x5ee23c)] + _0x1022b6(0x18b);
|
|
1424
|
-
},
|
|
1425
|
-
async 'escalate_to_main'(_0x294067) {
|
|
1426
|
-
const _0x36180c = _0x3278;
|
|
1427
|
-
if (!_0x121873[_0x36180c(0x20b)])
|
|
1428
|
-
return _0x36180c(0x1fc);
|
|
1429
|
-
const _0x5ecdeb = await fetch(_0x121873[_0x36180c(0x20b)] + '/workers/escalate', {
|
|
1430
|
-
'method': _0x36180c(_0x3b0500._0x156f62),
|
|
1431
|
-
'headers': { 'Content-Type': _0x36180c(_0x3b0500._0x1f35c0) },
|
|
1432
|
-
'body': JSON[_0x36180c(_0x3b0500._0x398e66)]({
|
|
1433
|
-
'work_key': _0x294067['work_key'],
|
|
1434
|
-
'reason': _0x294067[_0x36180c(0x143)]
|
|
1435
|
-
})
|
|
1436
|
-
}), _0x28a034 = await _0x5ecdeb['json']();
|
|
1437
|
-
if (!_0x28a034['ok'])
|
|
1438
|
-
throw new Error(_0x28a034[_0x36180c(_0x3b0500._0x5945d1)] ?? _0x36180c(_0x3b0500._0x26d8ac));
|
|
1439
|
-
return _0x36180c(0x1ce) + _0x294067['reason'];
|
|
1440
|
-
}
|
|
1441
|
-
};
|
|
216
|
+
function asRecord(_0x26bc86) {
|
|
217
|
+
const _0x2b4a96 = { _0x41620c: 0x23e }, _0xfba7da = _0x84e1c7;
|
|
218
|
+
return typeof _0x26bc86 === _0xfba7da(_0x2b4a96._0x41620c) && _0x26bc86 !== null ? _0x26bc86 : {};
|
|
1442
219
|
}
|
|
1443
|
-
function
|
|
1444
|
-
const
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
220
|
+
function stableStringify(_0x31d686) {
|
|
221
|
+
const _0x5a0f43 = {
|
|
222
|
+
_0x467207: 0x23e,
|
|
223
|
+
_0x595462: 0x1d2,
|
|
224
|
+
_0x2aff66: 0x1fb
|
|
225
|
+
}, _0x572ab9 = _0x84e1c7;
|
|
226
|
+
if (_0x31d686 === null || typeof _0x31d686 !== _0x572ab9(_0x5a0f43._0x467207))
|
|
227
|
+
return JSON['stringify'](_0x31d686);
|
|
228
|
+
if (Array[_0x572ab9(0x181)](_0x31d686))
|
|
229
|
+
return '[' + _0x31d686[_0x572ab9(0x169)](_0xba23b9 => stableStringify(_0xba23b9))[_0x572ab9(0x295)](',') + ']';
|
|
230
|
+
const _0x3085c7 = Object['entries'](_0x31d686)[_0x572ab9(_0x5a0f43._0x595462)](([, _0x18552d]) => _0x18552d !== void 0x0)[_0x572ab9(_0x5a0f43._0x2aff66)](([_0xe51e16], [_0x22baea]) => _0xe51e16[_0x572ab9(0x24f)](_0x22baea))['map'](([_0x18d6fa, _0x347679]) => JSON[_0x572ab9(0x2c7)](_0x18d6fa) + ':' + stableStringify(_0x347679));
|
|
231
|
+
return '{' + _0x3085c7[_0x572ab9(0x295)](',') + '}';
|
|
1452
232
|
}
|
|
1453
|
-
|
|
1454
|
-
const
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
_0x57594f: 0x263,
|
|
1474
|
-
_0x1936c5: 0x216,
|
|
1475
|
-
_0x5ec3b1: 0x171,
|
|
1476
|
-
_0x3799ff: 0x217,
|
|
1477
|
-
_0x554d1a: 0x175,
|
|
1478
|
-
_0x56e0c0: 0x1cd,
|
|
1479
|
-
_0x2881f9: 0x1cd,
|
|
1480
|
-
_0x3f08e5: 0x24a,
|
|
1481
|
-
_0x29e20f: 0x263,
|
|
1482
|
-
_0x3b6968: 0x228,
|
|
1483
|
-
_0x10e727: 0x248,
|
|
1484
|
-
_0x3f72cd: 0x243,
|
|
1485
|
-
_0x4ef5d6: 0x1cd,
|
|
1486
|
-
_0x38cfee: 0x1cd,
|
|
1487
|
-
_0x16ee1a: 0x1cd,
|
|
1488
|
-
_0x3436a6: 0x1cd,
|
|
1489
|
-
_0xf2c6da: 0x15d,
|
|
1490
|
-
_0x3b9e7a: 0x263,
|
|
1491
|
-
_0x26a15c: 0x275
|
|
1492
|
-
}, _0x2d7bb2 = { _0x1d245a: 0x15c }, _0x4f9d98 = {
|
|
1493
|
-
_0x5eaa52: 0x15c,
|
|
1494
|
-
_0x4cc09e: 0x1aa
|
|
1495
|
-
}, _0x30115d = {
|
|
1496
|
-
_0x5d8080: 0x16f,
|
|
1497
|
-
_0x1dfa29: 0x268
|
|
1498
|
-
}, _0x3e6635 = { _0x36dc52: 0x18c }, _0x1e1d10 = {
|
|
1499
|
-
_0x1da898: 0x2a8,
|
|
1500
|
-
_0x817df9: 0x25c
|
|
1501
|
-
}, _0x1315a2 = { _0x54cc4f: 0x144 }, _0x13b24e = { _0x2ea12f: 0x172 }, _0x3d5efc = {
|
|
1502
|
-
_0x2b0619: 0x27b,
|
|
1503
|
-
_0x5f29e6: 0x1c6
|
|
1504
|
-
}, _0x36a75c = {
|
|
1505
|
-
_0x48908a: 0x15c,
|
|
1506
|
-
_0x753d9d: 0x191
|
|
1507
|
-
}, _0x11e13c = {
|
|
1508
|
-
_0x5df8a5: 0x222,
|
|
1509
|
-
_0x574ccd: 0x1b4
|
|
1510
|
-
}, _0x1862c2 = {
|
|
1511
|
-
_0x3d9bde: 0x201,
|
|
1512
|
-
_0x35e757: 0x15c,
|
|
1513
|
-
_0xdd72f5: 0x28a
|
|
1514
|
-
}, _0x26a8ce = {
|
|
1515
|
-
_0x224745: 0x20a,
|
|
1516
|
-
_0x1fc7d8: 0x20d
|
|
1517
|
-
}, _0x4cf077 = _0x2c1aa0, {z: _0x3cb920} = await import(_0x4cf077(0x19d));
|
|
1518
|
-
_0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)](_0x4cf077(0x1fd), 'Send\x20a\x20message\x20to\x20a\x20channel\x20or\x20DM.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages;\x20thread\x20targets\x20use\x20the\x20same\x20field.', {
|
|
1519
|
-
'target': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1520
|
-
'content': _0x3cb920['string'](),
|
|
1521
|
-
'attachment_ids': _0x3cb920[_0x4cf077(_0x41c04b._0x4e317f)](_0x3cb920[_0x4cf077(_0x41c04b._0x172d87)]())[_0x4cf077(_0x41c04b._0x30ba0f)]()
|
|
1522
|
-
}, async _0x44406e => {
|
|
1523
|
-
const _0x50e6d4 = _0x4cf077;
|
|
1524
|
-
try {
|
|
1525
|
-
return textResult(await _0x7fa0c4['send_message'](_0x44406e));
|
|
1526
|
-
} catch (_0x378ea5) {
|
|
1527
|
-
return textResult(_0x378ea5 instanceof Error ? _0x378ea5[_0x50e6d4(0x15c)] : 'send_message\x20failed', !![]);
|
|
1528
|
-
}
|
|
1529
|
-
}), _0x1cadc0[_0x4cf077(0x263)]('check_messages', 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
1530
|
-
const _0xf875ec = _0x4cf077;
|
|
1531
|
-
try {
|
|
1532
|
-
return textResult(await _0x7fa0c4['check_messages']());
|
|
1533
|
-
} catch (_0x5f5834) {
|
|
1534
|
-
return textResult(_0x5f5834 instanceof Error ? _0x5f5834[_0xf875ec(0x15c)] : _0xf875ec(0x274), !![]);
|
|
1535
|
-
}
|
|
1536
|
-
}), _0x1cadc0[_0x4cf077(0x263)]('read_history', _0x4cf077(_0x41c04b._0xa9a607), {
|
|
1537
|
-
'channel': _0x3cb920['string'](),
|
|
1538
|
-
'limit': _0x3cb920[_0x4cf077(_0x41c04b._0x58e4d2)]()[_0x4cf077(0x24a)](),
|
|
1539
|
-
'before': _0x3cb920[_0x4cf077(_0x41c04b._0x58e4d2)]()['optional'](),
|
|
1540
|
-
'after': _0x3cb920[_0x4cf077(0x24f)]()['optional']()
|
|
1541
|
-
}, async _0x23415b => {
|
|
1542
|
-
try {
|
|
1543
|
-
return textResult(await _0x7fa0c4['read_history'](_0x23415b));
|
|
1544
|
-
} catch (_0x23b517) {
|
|
1545
|
-
return textResult(_0x23b517 instanceof Error ? _0x23b517['message'] : 'read_history\x20failed', !![]);
|
|
1546
|
-
}
|
|
1547
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x271a25)](_0x4cf077(0x20a), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
1548
|
-
const _0x15c216 = _0x4cf077;
|
|
1549
|
-
try {
|
|
1550
|
-
return textResult(await _0x7fa0c4[_0x15c216(_0x26a8ce._0x224745)]());
|
|
1551
|
-
} catch (_0x33a89f) {
|
|
1552
|
-
return textResult(_0x33a89f instanceof Error ? _0x33a89f[_0x15c216(0x15c)] : _0x15c216(_0x26a8ce._0x1fc7d8), !![]);
|
|
1553
|
-
}
|
|
1554
|
-
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x201), _0x4cf077(_0x41c04b._0x2e1e80), {
|
|
1555
|
-
'channel': _0x3cb920['string'](),
|
|
1556
|
-
'status': _0x3cb920['enum']([
|
|
1557
|
-
_0x4cf077(0x216),
|
|
1558
|
-
'in_progress',
|
|
1559
|
-
_0x4cf077(_0x41c04b._0x5bed4f),
|
|
1560
|
-
_0x4cf077(_0x41c04b._0x3befeb)
|
|
1561
|
-
])[_0x4cf077(_0x41c04b._0x30ba0f)]()
|
|
1562
|
-
}, async _0x1228dc => {
|
|
1563
|
-
const _0x3c8b95 = _0x4cf077;
|
|
1564
|
-
try {
|
|
1565
|
-
return textResult(await _0x7fa0c4[_0x3c8b95(_0x1862c2._0x3d9bde)](_0x1228dc));
|
|
1566
|
-
} catch (_0x4b5bdf) {
|
|
1567
|
-
return textResult(_0x4b5bdf instanceof Error ? _0x4b5bdf[_0x3c8b95(_0x1862c2._0x35e757)] : _0x3c8b95(_0x1862c2._0xdd72f5), !![]);
|
|
1568
|
-
}
|
|
1569
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)](_0x4cf077(0x222), 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
1570
|
-
'channel': _0x3cb920['string'](),
|
|
1571
|
-
'idempotency_key': _0x3cb920[_0x4cf077(0x1cd)]()[_0x4cf077(0x24a)](),
|
|
1572
|
-
'tasks': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x2afa3a)]({
|
|
1573
|
-
'title': _0x3cb920[_0x4cf077(_0x41c04b._0xae0a3c)](),
|
|
1574
|
-
'description': _0x3cb920['string']()[_0x4cf077(_0x41c04b._0x425d5f)](),
|
|
1575
|
-
'priority': _0x3cb920['enum']([
|
|
1576
|
-
'low',
|
|
1577
|
-
_0x4cf077(0x232),
|
|
1578
|
-
'high',
|
|
1579
|
-
_0x4cf077(0x294)
|
|
1580
|
-
])[_0x4cf077(0x24a)]()
|
|
1581
|
-
}))
|
|
1582
|
-
}, async _0x4651b5 => {
|
|
1583
|
-
const _0x2505bd = _0x4cf077;
|
|
1584
|
-
try {
|
|
1585
|
-
return textResult(await _0x7fa0c4[_0x2505bd(_0x11e13c._0x5df8a5)](_0x4651b5));
|
|
1586
|
-
} catch (_0x5ed80c) {
|
|
1587
|
-
return textResult(_0x5ed80c instanceof Error ? _0x5ed80c['message'] : _0x2505bd(_0x11e13c._0x574ccd), !![]);
|
|
1588
|
-
}
|
|
1589
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x39b94f)](_0x4cf077(_0x41c04b._0x18395f), _0x4cf077(0x1f4), {
|
|
1590
|
-
'channel': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1591
|
-
'task_numbers': _0x3cb920[_0x4cf077(_0x41c04b._0x349cc8)](_0x3cb920['number']())['optional'](),
|
|
1592
|
-
'message_ids': _0x3cb920[_0x4cf077(_0x41c04b._0x349cc8)](_0x3cb920['string']())[_0x4cf077(0x24a)](),
|
|
1593
|
-
'evidence': _0x3cb920['record'](_0x3cb920[_0x4cf077(0x1cd)](), _0x3cb920[_0x4cf077(_0x41c04b._0x2afa3a)]({
|
|
1594
|
-
'create_thread': _0x3cb920[_0x4cf077(0x20f)]()[_0x4cf077(_0x41c04b._0x1797c5)](),
|
|
1595
|
-
'create_task': _0x3cb920['unknown']()['optional']()
|
|
1596
|
-
}))['optional'](),
|
|
1597
|
-
'idempotency_key': _0x3cb920['string']()[_0x4cf077(_0x41c04b._0x425d5f)]()
|
|
1598
|
-
}, async _0x2f9cd9 => {
|
|
1599
|
-
const _0x348485 = _0x4cf077;
|
|
1600
|
-
try {
|
|
1601
|
-
return textResult(await _0x7fa0c4[_0x348485(0x234)](_0x2f9cd9));
|
|
1602
|
-
} catch (_0x345091) {
|
|
1603
|
-
return textResult(_0x345091 instanceof Error ? _0x345091['message'] : 'claim_tasks\x20failed', !![]);
|
|
1604
|
-
}
|
|
1605
|
-
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x198), _0x4cf077(0x137), {
|
|
1606
|
-
'channel': _0x3cb920['string'](),
|
|
1607
|
-
'task_number': _0x3cb920[_0x4cf077(_0x41c04b._0x3c9eba)](),
|
|
1608
|
-
'idempotency_key': _0x3cb920['string']()[_0x4cf077(0x24a)]()
|
|
1609
|
-
}, async _0x3bdda5 => {
|
|
1610
|
-
const _0x3e652e = _0x4cf077;
|
|
1611
|
-
try {
|
|
1612
|
-
return textResult(await _0x7fa0c4[_0x3e652e(0x198)](_0x3bdda5));
|
|
1613
|
-
} catch (_0x7cb791) {
|
|
1614
|
-
return textResult(_0x7cb791 instanceof Error ? _0x7cb791[_0x3e652e(_0x36a75c._0x48908a)] : _0x3e652e(_0x36a75c._0x753d9d), !![]);
|
|
1615
|
-
}
|
|
1616
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x57594f)](_0x4cf077(0x27b), _0x4cf077(0x27e), {
|
|
1617
|
-
'channel': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1618
|
-
'task_number': _0x3cb920[_0x4cf077(0x24f)](),
|
|
1619
|
-
'status': _0x3cb920['enum']([
|
|
1620
|
-
_0x4cf077(_0x41c04b._0x1936c5),
|
|
1621
|
-
'in_progress',
|
|
1622
|
-
_0x4cf077(_0x41c04b._0x5ec3b1),
|
|
1623
|
-
'done'
|
|
1624
|
-
]),
|
|
1625
|
-
'idempotency_key': _0x3cb920['string']()[_0x4cf077(_0x41c04b._0x1797c5)]()
|
|
1626
|
-
}, async _0x20a5b1 => {
|
|
1627
|
-
const _0x38ff31 = _0x4cf077;
|
|
1628
|
-
try {
|
|
1629
|
-
return textResult(await _0x7fa0c4[_0x38ff31(_0x3d5efc._0x2b0619)](_0x20a5b1));
|
|
1630
|
-
} catch (_0x12c60e) {
|
|
1631
|
-
return textResult(_0x12c60e instanceof Error ? _0x12c60e[_0x38ff31(0x15c)] : _0x38ff31(_0x3d5efc._0x5f29e6), !![]);
|
|
1632
|
-
}
|
|
1633
|
-
}), _0x1cadc0['tool'](_0x4cf077(_0x41c04b._0x3799ff), _0x4cf077(_0x41c04b._0x554d1a), {
|
|
1634
|
-
'channel': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1635
|
-
'file_path': _0x3cb920[_0x4cf077(_0x41c04b._0xae0a3c)]()
|
|
1636
|
-
}, async _0x3e1172 => {
|
|
1637
|
-
const _0x6471f7 = _0x4cf077;
|
|
1638
|
-
try {
|
|
1639
|
-
return textResult(await _0x7fa0c4[_0x6471f7(0x217)](_0x3e1172));
|
|
1640
|
-
} catch (_0x3c1800) {
|
|
1641
|
-
return textResult(_0x3c1800 instanceof Error ? _0x3c1800['message'] : _0x6471f7(_0x13b24e._0x2ea12f), !![]);
|
|
1642
|
-
}
|
|
1643
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)]('view_file', _0x4cf077(0x1fb), { 'attachment_id': _0x3cb920[_0x4cf077(_0x41c04b._0x56e0c0)]() }, async _0x443c6f => {
|
|
1644
|
-
const _0x406e46 = _0x4cf077;
|
|
1645
|
-
try {
|
|
1646
|
-
return textResult(await _0x7fa0c4[_0x406e46(0x287)](_0x443c6f));
|
|
1647
|
-
} catch (_0x2411f4) {
|
|
1648
|
-
return textResult(_0x2411f4 instanceof Error ? _0x2411f4['message'] : _0x406e46(_0x1315a2._0x54cc4f), !![]);
|
|
1649
|
-
}
|
|
1650
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x4fed1a)](_0x4cf077(0x2a8), 'Spawn\x20a\x20worker\x20agent\x20to\x20handle\x20a\x20subtask\x20asynchronously.\x20The\x20worker\x20runs\x20in\x20its\x20own\x20session\x20and\x20reports\x20back\x20when\x20done.', {
|
|
1651
|
-
'work_key': _0x3cb920['string'](),
|
|
1652
|
-
'thread_target': _0x3cb920['string'](),
|
|
1653
|
-
'objective': _0x3cb920[_0x4cf077(_0x41c04b._0x172d87)](),
|
|
1654
|
-
'conclusions': _0x3cb920[_0x4cf077(0x235)](_0x3cb920[_0x4cf077(_0x41c04b._0x2881f9)]())[_0x4cf077(_0x41c04b._0x3f08e5)](),
|
|
1655
|
-
'relevant_files': _0x3cb920['array'](_0x3cb920[_0x4cf077(0x1cd)]())[_0x4cf077(0x24a)](),
|
|
1656
|
-
'open_questions': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x2881f9)]())[_0x4cf077(0x24a)](),
|
|
1657
|
-
'reply_target': _0x3cb920[_0x4cf077(_0x41c04b._0x56e0c0)](),
|
|
1658
|
-
'task_id': _0x3cb920[_0x4cf077(0x1cd)]()[_0x4cf077(0x24a)]()
|
|
1659
|
-
}, async _0x391eea => {
|
|
1660
|
-
const _0x1c54d2 = _0x4cf077;
|
|
1661
|
-
try {
|
|
1662
|
-
return textResult(await _0x7fa0c4[_0x1c54d2(_0x1e1d10._0x1da898)](_0x391eea));
|
|
1663
|
-
} catch (_0x50e27a) {
|
|
1664
|
-
return textResult(_0x50e27a instanceof Error ? _0x50e27a['message'] : _0x1c54d2(_0x1e1d10._0x817df9), !![]);
|
|
1665
|
-
}
|
|
1666
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x29e20f)](_0x4cf077(0x252), _0x4cf077(0x14b), { 'work_key': _0x3cb920[_0x4cf077(_0x41c04b._0x2881f9)]() }, async _0x381a7d => {
|
|
1667
|
-
const _0x43ba4e = _0x4cf077;
|
|
1668
|
-
try {
|
|
1669
|
-
return textResult(await _0x7fa0c4['get_worker_status'](_0x381a7d));
|
|
1670
|
-
} catch (_0x1b9858) {
|
|
1671
|
-
return textResult(_0x1b9858 instanceof Error ? _0x1b9858[_0x43ba4e(0x15c)] : _0x43ba4e(_0x3e6635._0x36dc52), !![]);
|
|
1672
|
-
}
|
|
1673
|
-
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x1da), _0x4cf077(_0x41c04b._0x3b6968), { 'work_key': _0x3cb920['string']() }, async _0x3ba7ab => {
|
|
1674
|
-
const _0x41dfb3 = _0x4cf077;
|
|
1675
|
-
try {
|
|
1676
|
-
return textResult(await _0x7fa0c4['get_worker_result'](_0x3ba7ab));
|
|
1677
|
-
} catch (_0x1c34f1) {
|
|
1678
|
-
return textResult(_0x1c34f1 instanceof Error ? _0x1c34f1[_0x41dfb3(0x15c)] : 'get_worker_result\x20failed', !![]);
|
|
1679
|
-
}
|
|
1680
|
-
}), _0x1cadc0[_0x4cf077(_0x41c04b._0x29e20f)](_0x4cf077(0x16f), _0x4cf077(0x185), {
|
|
1681
|
-
'work_key': _0x3cb920[_0x4cf077(0x1cd)](),
|
|
1682
|
-
'result': _0x3cb920[_0x4cf077(_0x41c04b._0x10e727)]([
|
|
1683
|
-
_0x4cf077(0x15b),
|
|
1684
|
-
'blocked',
|
|
1685
|
-
_0x4cf077(_0x41c04b._0x3f72cd)
|
|
1686
|
-
]),
|
|
1687
|
-
'summary': _0x3cb920[_0x4cf077(_0x41c04b._0x4ef5d6)](),
|
|
1688
|
-
'decisions': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x38cfee)]())[_0x4cf077(0x24a)](),
|
|
1689
|
-
'files_changed': _0x3cb920[_0x4cf077(0x235)](_0x3cb920[_0x4cf077(_0x41c04b._0x16ee1a)]())[_0x4cf077(0x24a)](),
|
|
1690
|
-
'open_issues': _0x3cb920['array'](_0x3cb920[_0x4cf077(0x1cd)]())[_0x4cf077(_0x41c04b._0x425d5f)](),
|
|
1691
|
-
'next_steps': _0x3cb920['array'](_0x3cb920[_0x4cf077(_0x41c04b._0x3436a6)]())[_0x4cf077(0x24a)]()
|
|
1692
|
-
}, async _0x5b2179 => {
|
|
1693
|
-
const _0x5fb5d8 = _0x4cf077;
|
|
1694
|
-
try {
|
|
1695
|
-
return textResult(await _0x7fa0c4[_0x5fb5d8(_0x30115d._0x5d8080)](_0x5b2179));
|
|
1696
|
-
} catch (_0x28e81a) {
|
|
1697
|
-
return textResult(_0x28e81a instanceof Error ? _0x28e81a[_0x5fb5d8(0x15c)] : _0x5fb5d8(_0x30115d._0x1dfa29), !![]);
|
|
1698
|
-
}
|
|
1699
|
-
}), _0x1cadc0[_0x4cf077(0x263)](_0x4cf077(0x23d), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
1700
|
-
'work_key': _0x3cb920['string'](),
|
|
1701
|
-
'reason': _0x3cb920[_0x4cf077(_0x41c04b._0x3436a6)]()
|
|
1702
|
-
}, async _0x2614c2 => {
|
|
1703
|
-
const _0x3510f3 = _0x4cf077;
|
|
1704
|
-
try {
|
|
1705
|
-
return textResult(await _0x7fa0c4[_0x3510f3(0x23d)](_0x2614c2));
|
|
1706
|
-
} catch (_0x5a5c94) {
|
|
1707
|
-
return textResult(_0x5a5c94 instanceof Error ? _0x5a5c94[_0x3510f3(_0x4f9d98._0x5eaa52)] : _0x3510f3(_0x4f9d98._0x4cc09e), !![]);
|
|
1708
|
-
}
|
|
1709
|
-
}), _0x4b95b4?.[_0x4cf077(_0x41c04b._0xf2c6da)] && _0x1cadc0[_0x4cf077(_0x41c04b._0x3b9e7a)](_0x4cf077(0x132), _0x4cf077(_0x41c04b._0x26a15c), { 'work_key': _0x3cb920['string']() }, async _0x54ab7b => {
|
|
1710
|
-
const _0x47c4b0 = _0x4cf077;
|
|
1711
|
-
try {
|
|
1712
|
-
return textResult(await _0x7fa0c4['mark_waiting_input'](_0x54ab7b));
|
|
1713
|
-
} catch (_0x3d54c1) {
|
|
1714
|
-
return textResult(_0x3d54c1 instanceof Error ? _0x3d54c1[_0x47c4b0(_0x2d7bb2._0x1d245a)] : _0x47c4b0(0x21b), !![]);
|
|
1715
|
-
}
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
async function createChatBridgeServer(_0x3bf8c4) {
|
|
1719
|
-
const _0x1e8efe = { _0x146326: 0x1de }, _0x2d8214 = _0x2c1aa0, {McpServer: _0x59da82} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x5c21a9 = new _0x59da82({
|
|
1720
|
-
'name': _0x2d8214(_0x1e8efe._0x146326),
|
|
1721
|
-
'version': _0x2d8214(0x299)
|
|
1722
|
-
}), _0x6c096f = createChatBridgeHandlers(_0x3bf8c4);
|
|
1723
|
-
return await registerChatBridgeTools(_0x5c21a9, _0x6c096f, { 'workerMode': _0x3bf8c4[_0x2d8214(0x15d)] }), {
|
|
1724
|
-
'handlers': _0x6c096f,
|
|
1725
|
-
'server': _0x5c21a9
|
|
1726
|
-
};
|
|
1727
|
-
}
|
|
1728
|
-
function readFlag(_0x393484, _0x4fff7f) {
|
|
1729
|
-
const _0x3f815c = _0x2c1aa0, _0x32d872 = _0x393484[_0x3f815c(0x151)](_0x4fff7f);
|
|
1730
|
-
if (_0x32d872 === -0x1)
|
|
1731
|
-
return void 0x0;
|
|
1732
|
-
return _0x393484[_0x32d872 + 0x1];
|
|
1733
|
-
}
|
|
1734
|
-
function parseChatBridgeArgs(_0x3df1b6) {
|
|
1735
|
-
const _0x28b424 = {
|
|
1736
|
-
_0x5750fe: 0x26d,
|
|
1737
|
-
_0x34c76e: 0x14e,
|
|
1738
|
-
_0xfc9004: 0x27a,
|
|
1739
|
-
_0x167b04: 0x293,
|
|
1740
|
-
_0x83c097: 0x1ea,
|
|
1741
|
-
_0x41cb4b: 0x194,
|
|
1742
|
-
_0x3274d4: 0x1a5
|
|
1743
|
-
}, _0x3ed015 = _0x2c1aa0, _0x5dda31 = readFlag(_0x3df1b6, '--agent-id'), _0x191d74 = readFlag(_0x3df1b6, _0x3ed015(_0x28b424._0x5750fe)), _0x79f6a5 = readFlag(_0x3df1b6, _0x3ed015(0x29e)), _0x26092e = readFlag(_0x3df1b6, _0x3ed015(_0x28b424._0x34c76e)) ?? _0x3ed015(0x236), _0x414a83 = readFlag(_0x3df1b6, _0x3ed015(_0x28b424._0xfc9004)), _0x195efd = readFlag(_0x3df1b6, _0x3ed015(0x1f8)), _0xaccfe8 = readFlag(_0x3df1b6, '--worker-mode-enabled'), _0x5b37e6 = readFlag(_0x3df1b6, '--worker-thread-target'), _0x25ca5a = _0x3df1b6[_0x3ed015(0x1a3)](_0x3ed015(0x1e6)), _0xa0299 = _0x79f6a5 === void 0x0 ? void 0x0 : Number[_0x3ed015(0x21c)](_0x79f6a5, 0xa);
|
|
1744
|
-
if (!_0x5dda31)
|
|
1745
|
-
throw new Error(_0x3ed015(_0x28b424._0x167b04));
|
|
1746
|
-
if (!_0x191d74)
|
|
1747
|
-
throw new Error(_0x3ed015(_0x28b424._0x83c097));
|
|
1748
|
-
if (_0x79f6a5 !== void 0x0 && (_0xa0299 === void 0x0 || !Number['isFinite'](_0xa0299) || _0xa0299 < 0x0))
|
|
1749
|
-
throw new Error(_0x3ed015(_0x28b424._0x41cb4b));
|
|
1750
|
-
return {
|
|
1751
|
-
'agentId': _0x5dda31,
|
|
1752
|
-
'daemonApiKey': _0x191d74,
|
|
1753
|
-
'daemonLocalUrl': _0x414a83,
|
|
1754
|
-
'initialLastSeenSeq': _0xa0299,
|
|
1755
|
-
'sessionId': _0x195efd,
|
|
1756
|
-
'serverUrl': _0x26092e,
|
|
1757
|
-
'workerModeEnabled': _0xaccfe8 === void 0x0 ? void 0x0 : _0xaccfe8 !== _0x3ed015(_0x28b424._0x3274d4),
|
|
1758
|
-
'workerThreadTarget': _0x5b37e6,
|
|
1759
|
-
'workerMode': _0x25ca5a
|
|
1760
|
-
};
|
|
1761
|
-
}
|
|
1762
|
-
function _0x5c8c() {
|
|
1763
|
-
const _0x6da97d = [
|
|
1764
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1765
|
-
'ChvZAa',
|
|
1766
|
-
'z2v0tw9UDgG',
|
|
1767
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
1768
|
-
'oty5mZy3mej0sMT1vW',
|
|
1769
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1770
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1771
|
-
'C3rHCNrZv2L0Aa',
|
|
1772
|
-
'z2v0rNvSBfLLyxi',
|
|
1773
|
-
'khvUA25VD24P',
|
|
1774
|
-
'C3vJy2vZCW',
|
|
1775
|
-
'C2L6zuj5DgvZ',
|
|
1776
|
-
'C3rYAw5N',
|
|
1777
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1778
|
-
'AhvTyw5Z',
|
|
1779
|
-
'lsba',
|
|
1780
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1781
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1782
|
-
'ue9tva',
|
|
1783
|
-
'DxrMoa',
|
|
1784
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1785
|
-
'BgLZDfrHC2TZ',
|
|
1786
|
-
'CNvUswq',
|
|
1787
|
-
'DgHYzwfKswq',
|
|
1788
|
-
'mJeWt2DAAKfL',
|
|
1789
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1790
|
-
'zMv0y2HjBxbS',
|
|
1791
|
-
'y2HLy2TnzxnZywDLCW',
|
|
1792
|
-
'ChjVDg9JB2W',
|
|
1793
|
-
'y2HHDa',
|
|
1794
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1795
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
1796
|
-
'zMLSzw5HBwu',
|
|
1797
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
1798
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1799
|
-
'BM93',
|
|
1800
|
-
'ywDLBNrjza',
|
|
1801
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
233
|
+
function _0x1f56() {
|
|
234
|
+
const _0x214060 = [
|
|
235
|
+
'BwvZC2fNzxm',
|
|
236
|
+
'AhvTyw4',
|
|
237
|
+
'kg5VBMuP',
|
|
238
|
+
'DgfZA051BwjLCG',
|
|
239
|
+
'zg0T',
|
|
240
|
+
'C3bHD25FD29YA2vYigzHAwXLza',
|
|
241
|
+
'Ahr0Chm6',
|
|
242
|
+
'zMLUza',
|
|
243
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
244
|
+
'Ahr0CdO',
|
|
245
|
+
'zNjVBq',
|
|
246
|
+
'A2LUza',
|
|
247
|
+
'zw50CMLLCW',
|
|
248
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
249
|
+
'ywrK',
|
|
250
|
+
'C2LNBMfS',
|
|
251
|
+
'icHPzdO',
|
|
252
|
+
'y3vYC29Y',
|
|
1802
253
|
'C2L6zq',
|
|
1803
|
-
'
|
|
1804
|
-
'
|
|
1805
|
-
'
|
|
1806
|
-
'w3rHCMDLDd0',
|
|
1807
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1808
|
-
'C2nOzwr1BgvKrM9Y',
|
|
1809
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
1810
|
-
'BgLZDfnLCNzLCG',
|
|
1811
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1812
|
-
'Bwv0yq',
|
|
1813
|
-
'lIbtzxnZAw9UieLeoIa',
|
|
1814
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
1815
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1816
|
-
'l2HPC3rVCNK/',
|
|
1817
|
-
'l3n0yxj0',
|
|
1818
|
-
'w3nLCt0',
|
|
1819
|
-
'ls1ZzxnZAw9UlwLK',
|
|
1820
|
-
'z2v0twLUDxrLCW',
|
|
1821
|
-
'lsaJ',
|
|
1822
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1823
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1824
|
-
'C2vUzf9TzxnZywDL',
|
|
1825
|
-
'B2jQzwn0',
|
|
1826
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1827
|
-
'l3rHC2TZl2nSywLT',
|
|
1828
|
-
'BgLZDf90yxnRCW',
|
|
1829
|
-
'ihn0yxr1CZ0',
|
|
1830
|
-
'yxr0ywnOBwvUDhm',
|
|
1831
|
-
'Aw1Hz2uVD2vICa',
|
|
254
|
+
'D3nZoG',
|
|
255
|
+
'ls1Hz2vUDc1Pza',
|
|
256
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1832
257
|
'C29Tzq',
|
|
1833
|
-
'
|
|
1834
|
-
'
|
|
1835
|
-
'
|
|
1836
|
-
'
|
|
1837
|
-
'
|
|
1838
|
-
'
|
|
1839
|
-
'CgfYDgLJAxbHBNrjza',
|
|
1840
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1841
|
-
'lcb3B3jRx2TLEtOG',
|
|
1842
|
-
'Dw5RBM93BG',
|
|
1843
|
-
'zxjYB3i',
|
|
1844
|
-
'CMvXDwvZDfvYBa',
|
|
258
|
+
'Axnoyu4',
|
|
259
|
+
'l3vWBg9Hza',
|
|
260
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
261
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
262
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
263
|
+
'ywDNCMvNyxrLswrZ',
|
|
1845
264
|
'BwfW',
|
|
1846
|
-
'
|
|
1847
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1848
|
-
'l3DVCMTLCNmVC3bHD24',
|
|
1849
|
-
'Dg9KBW',
|
|
1850
|
-
'DxbSB2fKx2zPBgu',
|
|
1851
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1852
|
-
'DgfYz2v0',
|
|
1853
|
-
'pgvTChr5pG',
|
|
1854
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1855
|
-
'CgfYC2vjBNq',
|
|
1856
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1857
|
-
'zMLSDgvY',
|
|
1858
|
-
'Agv4',
|
|
1859
|
-
'l3rHC2TZ',
|
|
1860
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
1861
|
-
'y3jLyxrLx3rHC2TZ',
|
|
1862
|
-
'ywz0zxjtzxe',
|
|
1863
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
265
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
1864
266
|
'C2XPy2u',
|
|
1865
|
-
'
|
|
1866
|
-
'
|
|
1867
|
-
'
|
|
1868
|
-
'AM9PBG',
|
|
267
|
+
'DxbSB2fKx2zPBgu',
|
|
268
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
269
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1869
270
|
'CMvZCg9UC2u',
|
|
1870
|
-
'
|
|
1871
|
-
'
|
|
1872
|
-
'
|
|
1873
|
-
'
|
|
1874
|
-
'
|
|
1875
|
-
'
|
|
271
|
+
'Agv4',
|
|
272
|
+
'AhvTyw5Z',
|
|
273
|
+
'zgLZCg9ZAxrPB24',
|
|
274
|
+
'Dg9tDhjPBMC',
|
|
275
|
+
'C2nOzwr1BgvKrM9Y',
|
|
276
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
277
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
278
|
+
'zgvJAxnPB25Z',
|
|
279
|
+
'ihn0yxr1CZ0',
|
|
280
|
+
'y29UBMvJDa',
|
|
281
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
282
|
+
'xsba',
|
|
283
|
+
'y2HLy2TnzxnZywDLCW',
|
|
284
|
+
'y2HHBM5LBhm',
|
|
1876
285
|
'C3bSAxq',
|
|
1877
|
-
'
|
|
1878
|
-
'
|
|
1879
|
-
'y2XHAw1FDgfZA3m',
|
|
1880
|
-
'yxjYyxK',
|
|
1881
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1882
|
-
'iYmJieH1BwfUCW',
|
|
1883
|
-
'Dgv4Dc9JC3y',
|
|
1884
|
-
'Axnoyu4',
|
|
1885
|
-
'CMvZDwX0',
|
|
1886
|
-
'y2HHBM5LBeLK',
|
|
1887
|
-
'y2XHAw1uyxnRCW',
|
|
1888
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1889
|
-
'y2XHAw0GzMfPBgvK',
|
|
1890
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
1891
|
-
'CMvHzeHPC3rVCNK',
|
|
1892
|
-
'ig1LC3nHz2vZkqOk',
|
|
1893
|
-
'Dgv4Dc9WBgfPBG',
|
|
1894
|
-
'zMfPBgvK',
|
|
1895
|
-
'CNvUBMLUzW',
|
|
1896
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1897
|
-
'r0vu',
|
|
1898
|
-
'DxnLCG',
|
|
1899
|
-
'zw51Bq',
|
|
286
|
+
'mtmYohHTDffzDq',
|
|
287
|
+
'DgfZA19Pza',
|
|
1900
288
|
'AxnbCNjHEq',
|
|
1901
|
-
'
|
|
1902
|
-
'
|
|
289
|
+
'D3m6',
|
|
290
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
291
|
+
'z2v0sg91CNm',
|
|
292
|
+
'zMv0y2HjBxbS',
|
|
293
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
294
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
295
|
+
'Dw5RBM93BG',
|
|
296
|
+
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
297
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
298
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
299
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
300
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
301
|
+
'zgvZy3jPChrPB24',
|
|
302
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
303
|
+
'CgfYDgLJAxbHBNrZ',
|
|
304
|
+
'y29UDgvUDfr5Cgu',
|
|
305
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
306
|
+
'BgLZDf90yxnRCW',
|
|
307
|
+
'ywDLBNq',
|
|
308
|
+
'ywjVCNq',
|
|
309
|
+
'otnIB1bgt1a',
|
|
310
|
+
'Dg9KBW',
|
|
1903
311
|
'DgHYzwfKu2HVCNrjza',
|
|
312
|
+
'Dgv4Da',
|
|
313
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
314
|
+
'yM9KEvrLEhq',
|
|
315
|
+
'sfruuca',
|
|
316
|
+
'CNvUswq',
|
|
317
|
+
'DgHYzwfKvgfYz2v0',
|
|
318
|
+
'DgfYz2v0zwruyxnR',
|
|
319
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
320
|
+
'zgvZDhjVEwvK',
|
|
321
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
322
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
323
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
324
|
+
'BM93',
|
|
325
|
+
'Dg9VBa',
|
|
326
|
+
'mJu5odfjt0PiwvG',
|
|
327
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
328
|
+
'DMfSDwvZ',
|
|
329
|
+
'D29YA2vYtw9Kzq',
|
|
330
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
331
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
332
|
+
'Aw1Hz2uVz2LM',
|
|
333
|
+
'C3rVCe1HAw4',
|
|
334
|
+
'iYmGu2vYDMvYoIa',
|
|
335
|
+
'u3bHD24Gysb3B3jRzxiGywDLBNqGDg8GAgfUzgXLigeGC3vIDgfZAYbHC3LUy2HYB25VDxnSEs4GvgHLihDVCMTLCIbYDw5ZigLUigL0CYbVD24GC2vZC2LVBIbHBMqGCMvWB3j0CYbIywnRihDOzw4Gzg9Uzs4',
|
|
1904
336
|
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1905
|
-
'
|
|
337
|
+
'DxbKyxrL',
|
|
338
|
+
'lsaJ',
|
|
339
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
340
|
+
'AxngAw5PDgu',
|
|
341
|
+
'ls1ZzxnZAw9UlwLK',
|
|
342
|
+
'DxjNzw50',
|
|
343
|
+
'Dg9mB3DLCKnHC2u',
|
|
1906
344
|
'BNvTyMvY',
|
|
1907
|
-
'
|
|
1908
|
-
'
|
|
1909
|
-
'
|
|
1910
|
-
'
|
|
1911
|
-
'
|
|
1912
|
-
'zgvJAxnPB25Z',
|
|
1913
|
-
'zxzLBNrtzxe',
|
|
1914
|
-
'C2v0',
|
|
1915
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
1916
|
-
'AgvHzgvYCW',
|
|
345
|
+
'CMvXDwvZDfvYBa',
|
|
346
|
+
'igzHAwXLzdOG',
|
|
347
|
+
'yM9KEu1HCMTKB3DU',
|
|
348
|
+
'BgLZDf9Zzxj2zxi',
|
|
349
|
+
'BwvKAxvT',
|
|
1917
350
|
'Aw1Hz2uVANbLzW',
|
|
1918
|
-
'
|
|
1919
|
-
'
|
|
1920
|
-
'
|
|
1921
|
-
'
|
|
351
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
352
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
353
|
+
'CM9VDe1LC3nHz2vjza',
|
|
354
|
+
'C2vUze1LC3nHz2u',
|
|
355
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
356
|
+
'6k+35Rgcia',
|
|
357
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
358
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
359
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
360
|
+
'BwLU',
|
|
361
|
+
'AgfZtw9Yzq',
|
|
362
|
+
'iYmJieH1BwfUCW',
|
|
363
|
+
'BMv4Den1CNnVCG',
|
|
364
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
365
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
366
|
+
'C3rHDhvZ',
|
|
367
|
+
'l3rHC2TZ',
|
|
368
|
+
'l3nLBMq',
|
|
369
|
+
'zMLSDgvY',
|
|
370
|
+
'CMvWBgfJzq',
|
|
371
|
+
'zMfPBgvK',
|
|
1922
372
|
'DhjPBq',
|
|
1923
|
-
'
|
|
1924
|
-
'
|
|
373
|
+
'yxjYyxLcDwzMzxi',
|
|
374
|
+
'AxnbyNnVBhv0zq',
|
|
375
|
+
'BwvZC2fNzq',
|
|
376
|
+
'CMvJB3jK',
|
|
377
|
+
'z2v0u2vJB25KCW',
|
|
378
|
+
'ig1LC3nHz2u9',
|
|
379
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
380
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
381
|
+
'ywz0zxjtzxe',
|
|
1925
382
|
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1926
|
-
'
|
|
1927
|
-
'Bwf4',
|
|
1928
|
-
'mtG5nKfJD2r1Cq',
|
|
1929
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1930
|
-
'CMvZDw1Lx3bHy2TLDa',
|
|
1931
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1932
|
-
'zNjVBq',
|
|
1933
|
-
'yMfZzty0',
|
|
383
|
+
'Aw5KzxHpzG',
|
|
1934
384
|
'y2f0y2G',
|
|
1935
|
-
'
|
|
1936
|
-
'
|
|
1937
|
-
'
|
|
1938
|
-
'
|
|
1939
|
-
'
|
|
1940
|
-
'
|
|
1941
|
-
'
|
|
1942
|
-
'
|
|
1943
|
-
'
|
|
1944
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1945
|
-
'yMfZzw5HBwu',
|
|
1946
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1947
|
-
'ihrPBwu9',
|
|
1948
|
-
'C3vTBwfYEq',
|
|
1949
|
-
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1950
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1951
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
1952
|
-
'kg5VBMuP',
|
|
1953
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
1954
|
-
'AxnbyNnVBhv0zq',
|
|
1955
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1956
|
-
'zgvZDhjVEwvK',
|
|
1957
|
-
'BgvUz3rO',
|
|
1958
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1959
|
-
'ndy5mJnUCvnWCK4',
|
|
1960
|
-
'AxngAwXL',
|
|
1961
|
-
'mta1CMzKuLLv',
|
|
1962
|
-
'DMLLD19MAwXL',
|
|
1963
|
-
'yM9KEu1HCMTKB3DU',
|
|
1964
|
-
'uefuq0G',
|
|
1965
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1966
|
-
'zgLZCg9ZAxrPB24',
|
|
1967
|
-
'Cgf5Bg9HzePZB24',
|
|
1968
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1969
|
-
'zgfLBw9UqxbPs2v5',
|
|
1970
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1971
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
1972
|
-
'l2zPBMLZAa',
|
|
1973
|
-
'y3vYC29Y',
|
|
1974
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1975
|
-
'DxjNzw50',
|
|
1976
|
-
'z2v0',
|
|
1977
|
-
'iJOGC3rHDhvZpq',
|
|
1978
|
-
'y2HHBM5LBa',
|
|
1979
|
-
'AgfZtw9Yzq',
|
|
1980
|
-
'mc4WlJa',
|
|
1981
|
-
'C3rYAw5NAwz5',
|
|
1982
|
-
'ywDNCMvNyxrLswq',
|
|
1983
|
-
'otbyCuv4s1K',
|
|
1984
|
-
'y29UDgvUDfr5Cgu',
|
|
1985
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1986
|
-
'yMvMB3jL',
|
|
385
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
386
|
+
'ChjVDg9JB2W',
|
|
387
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
388
|
+
'C2vYDMvY',
|
|
389
|
+
'lsba',
|
|
390
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
391
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
392
|
+
'ywz0zxi',
|
|
393
|
+
'zg9Uzq',
|
|
1987
394
|
'AhjLzG',
|
|
395
|
+
'zMLSzxnFy2HHBMDLza',
|
|
396
|
+
'Aw5FChjVz3jLC3m',
|
|
397
|
+
'z2v0vgLTzq',
|
|
398
|
+
'C2vUzgvYtMfTzq',
|
|
399
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
400
|
+
'D29YA19RzxK',
|
|
401
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
402
|
+
'mJuZntrpCM9rsM0',
|
|
1988
403
|
'iIbUB3qGzM91BMq',
|
|
1989
|
-
'
|
|
1990
|
-
'
|
|
1991
|
-
'
|
|
1992
|
-
'
|
|
1993
|
-
'
|
|
1994
|
-
'
|
|
1995
|
-
'
|
|
1996
|
-
'
|
|
1997
|
-
'
|
|
1998
|
-
'
|
|
1999
|
-
'
|
|
2000
|
-
'
|
|
2001
|
-
'
|
|
2002
|
-
'
|
|
2003
|
-
'
|
|
2004
|
-
'
|
|
2005
|
-
'
|
|
2006
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
2007
|
-
'l3nLBMq',
|
|
404
|
+
'DgfYz2v0',
|
|
405
|
+
'zw51Bq',
|
|
406
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
407
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
408
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
409
|
+
'l2HPC3rVCNK/',
|
|
410
|
+
'C29YDa',
|
|
411
|
+
'C2vUzf9TzxnZywDL',
|
|
412
|
+
'Dg9gAxHLza',
|
|
413
|
+
'cGOTls0G',
|
|
414
|
+
'ihrPBwu9',
|
|
415
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
416
|
+
'z2v0rNvSBfLLyxi',
|
|
417
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
418
|
+
'y2XHAw1FDgfZA3m',
|
|
419
|
+
'odret3vUq2u',
|
|
420
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
2008
421
|
'D29YA2vYtw9KzuvUywjSzwq',
|
|
422
|
+
'C2f2zq',
|
|
423
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
424
|
+
'mteWEersr0rv',
|
|
425
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
426
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
427
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
428
|
+
'ihr5Cgu9ywDLBNq',
|
|
429
|
+
'mtqYmZu1y2nfzhDP',
|
|
430
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
431
|
+
'AgfZ',
|
|
2009
432
|
'C2vYDMvYvxjS',
|
|
2010
|
-
'
|
|
2011
|
-
'
|
|
2012
|
-
'
|
|
2013
|
-
'
|
|
2014
|
-
'
|
|
2015
|
-
'CxvLDwvK',
|
|
2016
|
-
'ywjVCNq',
|
|
2017
|
-
'CMvHC29U',
|
|
2018
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
2019
|
-
'zgvZy3jPChrPB24',
|
|
2020
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
2021
|
-
'BwLU',
|
|
2022
|
-
'C29YDa',
|
|
2023
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
2024
|
-
'DgfZA19Pza',
|
|
433
|
+
'z2v0',
|
|
434
|
+
'ChvZAa',
|
|
435
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
436
|
+
'nteZqKvPD2fU',
|
|
437
|
+
'BgvUz3rO',
|
|
2025
438
|
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
2026
|
-
'BwvTyMvYCW',
|
|
2027
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
2028
|
-
'ls1Zzxj2zxiTDxjS',
|
|
2029
|
-
'Dg9ju09tDhjPBMC',
|
|
2030
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
2031
|
-
'Aw5KzxHpzG',
|
|
2032
|
-
'C3rHDhvZ',
|
|
2033
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
2034
|
-
'B3bLBL9PC3n1zxm',
|
|
2035
|
-
'ywDLBNrZ',
|
|
2036
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
2037
|
-
'lMjPBG',
|
|
2038
|
-
'sfruuca',
|
|
2039
|
-
'z2v0sg91CNm',
|
|
2040
|
-
'ANnVBG',
|
|
2041
|
-
'y29TCgXLDgvK',
|
|
2042
|
-
'BwvZC2fNzq',
|
|
2043
|
-
'D29YA2vYtw9Kzq',
|
|
2044
|
-
'BgLTAxq',
|
|
2045
|
-
'yxv0BZO',
|
|
2046
|
-
'BwvZC2fNzxm',
|
|
2047
|
-
'igf0DgfJAg1LBNq',
|
|
2048
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
2049
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
2050
|
-
'AhvTyw4',
|
|
2051
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
2052
|
-
'C2vX',
|
|
2053
|
-
'l2nVBNrLBNq',
|
|
2054
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
2055
|
-
'y3jLyxrLvgfZA3m',
|
|
2056
|
-
'zg9Uzq',
|
|
2057
|
-
'A2LUza',
|
|
2058
|
-
'y2fJAgveAxi',
|
|
2059
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
2060
|
-
'BMfTzq',
|
|
2061
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
2062
|
-
'y2HHBM5LBe5HBwu',
|
|
2063
439
|
'Aw5FCMv2Awv3',
|
|
2064
|
-
'
|
|
2065
|
-
'
|
|
2066
|
-
'
|
|
2067
|
-
'
|
|
2068
|
-
'
|
|
2069
|
-
'
|
|
440
|
+
'y2HHBM5LBe5HBwu',
|
|
441
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
442
|
+
'kgXLz2fJEsK',
|
|
443
|
+
'C2vYDMvYx21LBwjLCNm',
|
|
444
|
+
'DMfSDwu',
|
|
445
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
446
|
+
'yxjNDG',
|
|
447
|
+
'CMvZDwX0',
|
|
448
|
+
'zMLSzv9WyxrO',
|
|
449
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
450
|
+
'Dgv4Dc9WBgfPBG',
|
|
451
|
+
'l3rHC2TZl2nSywLT',
|
|
452
|
+
'iYmJiefNzw50CW',
|
|
453
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
454
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
455
|
+
'lcbWCMv2Awv3pq',
|
|
456
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
457
|
+
'v29YA2vYia',
|
|
2070
458
|
'y29UDgvUDejHC2u2na',
|
|
2071
|
-
'
|
|
2072
|
-
'
|
|
2073
|
-
'
|
|
459
|
+
'y29UDgvUDa',
|
|
460
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
461
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
462
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
463
|
+
'BgLZDfrHC2TZ',
|
|
464
|
+
'DgvZDa',
|
|
465
|
+
'yxjYyxK',
|
|
466
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
467
|
+
'C3rYAw5N',
|
|
468
|
+
'C3bHD25Lza',
|
|
2074
469
|
'z2v0rgf0zq',
|
|
2075
|
-
'
|
|
470
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
471
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
472
|
+
'yxr0ywnOBwvUDeLK',
|
|
473
|
+
'y3jLyxrLzef0',
|
|
474
|
+
'ywDLBNrjza',
|
|
475
|
+
'DgfYz2v0zwq',
|
|
476
|
+
'CgfYC2u',
|
|
477
|
+
'B2jQzwn0',
|
|
478
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
479
|
+
'Bwf0y2Hoyw1L',
|
|
480
|
+
'C2L6zuj5DgvZ',
|
|
2076
481
|
'zMv0y2HuAw1LB3v0txm',
|
|
2077
|
-
'
|
|
2078
|
-
'
|
|
2079
|
-
'
|
|
2080
|
-
'
|
|
2081
|
-
'
|
|
2082
|
-
'
|
|
2083
|
-
'
|
|
2084
|
-
'
|
|
2085
|
-
'
|
|
2086
|
-
'
|
|
482
|
+
'yxv0BZO',
|
|
483
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
484
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
485
|
+
'y2HHBM5LBeLK',
|
|
486
|
+
'ywjVCNrLza',
|
|
487
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
488
|
+
'DgL0Bgu',
|
|
489
|
+
'C3rHCNrLza',
|
|
490
|
+
'igf0DgfJAg1LBNq',
|
|
491
|
+
'C3bHD25FD29YA2vY',
|
|
492
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
493
|
+
'y2XPzw50',
|
|
494
|
+
'Bg9JywXLq29TCgfYzq',
|
|
495
|
+
'y3jLyxrLx3rHC2TZ',
|
|
496
|
+
'BwvZC2fNzuLK',
|
|
497
|
+
'C2vX',
|
|
498
|
+
'DgHYzwfKswq',
|
|
499
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
500
|
+
'DgHYzwfK',
|
|
501
|
+
'yMvMB3jL',
|
|
502
|
+
'iokaLca',
|
|
503
|
+
'mtqYnZHwC1HAr2e',
|
|
504
|
+
'y29UDgvUDc10ExbL',
|
|
505
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
506
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
507
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
508
|
+
'B3bLBL9PC3n1zxm',
|
|
509
|
+
'y2XHAw0GzMfPBgvK',
|
|
510
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
511
|
+
'EM9K',
|
|
2087
512
|
'D29YA2vYCW',
|
|
513
|
+
'AgvHzgvYCW',
|
|
514
|
+
'w3nLCt0',
|
|
515
|
+
'ywDNCMvNyxrLswq',
|
|
516
|
+
'zMLSzw5HBwu',
|
|
517
|
+
'lMjPBG',
|
|
518
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
519
|
+
'CgfYC2vjBNq',
|
|
520
|
+
'C3rHCNrZv2L0Aa',
|
|
521
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
522
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
523
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
524
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
525
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
2088
526
|
'v29YA2vYici',
|
|
2089
|
-
'
|
|
2090
|
-
'
|
|
2091
|
-
'
|
|
2092
|
-
'
|
|
2093
|
-
'
|
|
2094
|
-
'C2LNBMfS',
|
|
2095
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
2096
|
-
'mJyWodmXnZHAqM9ZuLi',
|
|
2097
|
-
'D29YA19RzxK',
|
|
2098
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
2099
|
-
'CMvZDwX0sNnVBG',
|
|
2100
|
-
'Dg9tDhjPBMC',
|
|
2101
|
-
'ywrK',
|
|
2102
|
-
'Dw5JBgfPBv90yxnR',
|
|
2103
|
-
'ndu5mti2CeH1uMnA',
|
|
2104
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
2105
|
-
'DgfZA0LK',
|
|
2106
|
-
'CMvWBgfJzq',
|
|
2107
|
-
'EM9K',
|
|
2108
|
-
'6k+35Rgcia',
|
|
2109
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
2110
|
-
'y29UDgvUDa',
|
|
2111
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
2112
|
-
'z2v0vgLTzq',
|
|
527
|
+
'zg06',
|
|
528
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
529
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
530
|
+
'w3rHCMDLDd0',
|
|
531
|
+
'ywDLBNrZ',
|
|
2113
532
|
'Aw5JBhvKzxm',
|
|
2114
|
-
'
|
|
533
|
+
'Bwf4',
|
|
534
|
+
'zxjYB3i',
|
|
535
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
536
|
+
'z2v0tw9UDgG',
|
|
537
|
+
'C2vYDMvYtMfTzq',
|
|
538
|
+
'DxrMoa',
|
|
539
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
540
|
+
'ig1LC3nHz2vZkqOk',
|
|
541
|
+
'ywXS',
|
|
542
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
543
|
+
'mtq4mdu2s2LfwM9O',
|
|
544
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
545
|
+
'C3vJy2vZCW',
|
|
546
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
547
|
+
'C2vZC2LVBKLK',
|
|
548
|
+
'BMfTzq',
|
|
549
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
550
|
+
'DMLLD19MAwXL',
|
|
551
|
+
'B3b0Aw9UywW',
|
|
552
|
+
'DxnLCG',
|
|
553
|
+
'ig1ZzZ0',
|
|
554
|
+
'y29TCgXLDgvK',
|
|
555
|
+
'CMvZDwX0sNnVBG',
|
|
556
|
+
'Bwv0yq',
|
|
557
|
+
'Cgf5Bg9HzePZB24',
|
|
558
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
559
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
560
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
561
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
562
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
563
|
+
'Dg9ju09tDhjPBMC',
|
|
564
|
+
'AM9PBG',
|
|
565
|
+
'l3nLCNzLCG',
|
|
566
|
+
'zgf0yq',
|
|
567
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
2115
568
|
'zMfSC2u',
|
|
2116
|
-
'
|
|
2117
|
-
'
|
|
2118
|
-
'
|
|
2119
|
-
'
|
|
2120
|
-
'
|
|
2121
|
-
'
|
|
2122
|
-
'
|
|
2123
|
-
'
|
|
2124
|
-
'
|
|
2125
|
-
'
|
|
2126
|
-
'
|
|
2127
|
-
'
|
|
2128
|
-
'
|
|
2129
|
-
'
|
|
2130
|
-
'
|
|
2131
|
-
'
|
|
2132
|
-
'
|
|
569
|
+
'zxH0BMfTzq',
|
|
570
|
+
'y2XHAw1uyxnRCW',
|
|
571
|
+
'iJOGC3rHDhvZpq',
|
|
572
|
+
'mZm4nty5qLniuKvZ',
|
|
573
|
+
'AgLNAa',
|
|
574
|
+
'CNvUBMLUzW',
|
|
575
|
+
'BgLTAxq',
|
|
576
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
577
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGBM90ignVBMzPz3vYzwqP',
|
|
578
|
+
'CMvHC29U',
|
|
579
|
+
'lcb3B3jRx2TLEtOG',
|
|
580
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
581
|
+
'yxr0ywnOBwvUDhm',
|
|
582
|
+
'D29YA2vYsgfUzg9MzG',
|
|
583
|
+
'Dw5JBgfPBv90yxnR',
|
|
584
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
585
|
+
'CxvLDwvK',
|
|
586
|
+
'BgLZDfnLCNzLCG',
|
|
587
|
+
'l2fWAs9Hz2vUDhm/C2vYDMvYswq9',
|
|
588
|
+
'CgfKu3rHCNq',
|
|
589
|
+
'ANnVBG',
|
|
590
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
591
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
592
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
593
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
594
|
+
'C2v0',
|
|
595
|
+
'z2v0twLUDxrLCW',
|
|
596
|
+
'CgfYDgLJAxbHBNrjza',
|
|
597
|
+
'l3DVCMTLCNmVC3bHD24',
|
|
598
|
+
'y2HHDa',
|
|
599
|
+
'y2HHBM5LBa',
|
|
600
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
601
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
602
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
603
|
+
'Dw5JBgfPBvrHC2S',
|
|
604
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
605
|
+
'CgfYDgLJAxbHBNq',
|
|
2133
606
|
'lIbnzxnZywDLieLeoIa',
|
|
2134
|
-
'
|
|
2135
|
-
'
|
|
607
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
608
|
+
'D29YA2vY',
|
|
609
|
+
'CMvHzf9OAxn0B3j5',
|
|
610
|
+
'y3jLyxrLvgfZA3m',
|
|
611
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
612
|
+
'ue9tva',
|
|
613
|
+
'DgHYzwfKtNvTyMvY',
|
|
614
|
+
'C3rYAw5NAwz5',
|
|
615
|
+
'zgfLBw9UqxbPs2v5',
|
|
616
|
+
'yMXVy2TLza',
|
|
2136
617
|
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
2137
|
-
'
|
|
2138
|
-
'
|
|
2139
|
-
'
|
|
2140
|
-
'
|
|
2141
|
-
'
|
|
2142
|
-
'
|
|
618
|
+
'CMvHzeHPC3rVCNK',
|
|
619
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
620
|
+
'r0vu',
|
|
621
|
+
'BwvTyMvY',
|
|
622
|
+
'DgfZA0LK',
|
|
623
|
+
'C2HHmJu2',
|
|
624
|
+
'C2vUzgvYvhLWzq',
|
|
625
|
+
'DgfZA3m'
|
|
626
|
+
];
|
|
627
|
+
_0x1f56 = function () {
|
|
628
|
+
return _0x214060;
|
|
629
|
+
};
|
|
630
|
+
return _0x1f56();
|
|
631
|
+
}
|
|
632
|
+
function createHeaders(_0x387ed4) {
|
|
633
|
+
const _0x2fdcce = { _0x593f82: 0x24d }, _0x3dc5c4 = _0x84e1c7;
|
|
634
|
+
return {
|
|
635
|
+
'Content-Type': _0x3dc5c4(_0x2fdcce._0x593f82),
|
|
636
|
+
'x-daemon-api-key': _0x387ed4
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
function toHttpBaseUrl(_0x34610f) {
|
|
640
|
+
const _0xff61f2 = {
|
|
641
|
+
_0x106e56: 0x182,
|
|
642
|
+
_0x3b54df: 0x2dc,
|
|
643
|
+
_0x509021: 0x1e3,
|
|
644
|
+
_0x42b5ea: 0x2e6,
|
|
645
|
+
_0x244fbb: 0x1d3
|
|
646
|
+
}, _0x5eeb34 = _0x84e1c7, _0x1e332a = new URL(_0x34610f);
|
|
647
|
+
if (_0x1e332a['protocol'] === _0x5eeb34(_0xff61f2._0x106e56))
|
|
648
|
+
_0x1e332a['protocol'] = _0x5eeb34(_0xff61f2._0x3b54df);
|
|
649
|
+
else
|
|
650
|
+
_0x1e332a[_0x5eeb34(_0xff61f2._0x509021)] === _0x5eeb34(_0xff61f2._0x42b5ea) && (_0x1e332a[_0x5eeb34(0x1e3)] = _0x5eeb34(0x2d9));
|
|
651
|
+
return _0x1e332a[_0x5eeb34(0x173)]()[_0x5eeb34(_0xff61f2._0x244fbb)](/\/$/, '');
|
|
652
|
+
}
|
|
653
|
+
function isMentionBoundary(_0x292df8) {
|
|
654
|
+
return !_0x292df8 || /\s|[([{'",。!?、:;]/['test'](_0x292df8);
|
|
655
|
+
}
|
|
656
|
+
function isMentionTerminal(_0x1ece59) {
|
|
657
|
+
const _0x1629da = _0x84e1c7;
|
|
658
|
+
return !_0x1ece59 || /\s|[)\]}'",。!?、:;,.!?]/[_0x1629da(0x231)](_0x1ece59);
|
|
659
|
+
}
|
|
660
|
+
function buildMatchableEntries(_0xbe2243) {
|
|
661
|
+
const _0x3b0e02 = {
|
|
662
|
+
_0x4f0607: 0x274,
|
|
663
|
+
_0x16e946: 0x171,
|
|
664
|
+
_0x2bf483: 0x213,
|
|
665
|
+
_0x20fcce: 0x1f8
|
|
666
|
+
}, _0x4c82e6 = _0x84e1c7, _0x3b0459 = [];
|
|
667
|
+
for (const _0x439f8c of [
|
|
668
|
+
..._0xbe2243[_0x4c82e6(_0x3b0e02._0x4f0607)],
|
|
669
|
+
..._0xbe2243[_0x4c82e6(_0x3b0e02._0x16e946)]
|
|
670
|
+
]) {
|
|
671
|
+
_0x3b0459[_0x4c82e6(_0x3b0e02._0x2bf483)]({
|
|
672
|
+
'matchName': _0x439f8c['name'],
|
|
673
|
+
'matchNameLower': _0x439f8c[_0x4c82e6(0x285)][_0x4c82e6(_0x3b0e02._0x20fcce)](),
|
|
674
|
+
'participantId': _0x439f8c['id']
|
|
675
|
+
}), _0x439f8c['id'] !== _0x439f8c['name'] && _0x3b0459['push']({
|
|
676
|
+
'matchName': _0x439f8c['id'],
|
|
677
|
+
'matchNameLower': _0x439f8c['id']['toLocaleLowerCase'](),
|
|
678
|
+
'participantId': _0x439f8c['id']
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
return _0x3b0459;
|
|
682
|
+
}
|
|
683
|
+
function extractMentionedParticipantIds(_0x3f82e0, _0x5cd019) {
|
|
684
|
+
const _0x19e348 = {
|
|
685
|
+
_0x19cc21: 0x1fb,
|
|
686
|
+
_0x198e50: 0x210,
|
|
687
|
+
_0x4806fd: 0x2e1,
|
|
688
|
+
_0x3a9c9c: 0x2b5,
|
|
689
|
+
_0x40586f: 0x216
|
|
690
|
+
}, _0xfe7c6a = { _0x53921d: 0x269 }, _0x58b97c = _0x84e1c7, _0x4f2509 = buildMatchableEntries(_0x5cd019)[_0x58b97c(_0x19e348._0x19cc21)]((_0x2aad33, _0x59ec47) => _0x59ec47[_0x58b97c(0x240)][_0x58b97c(0x216)] - _0x2aad33['matchName']['length']), _0x3b2f89 = [], _0xe2add5 = new Set();
|
|
691
|
+
for (let _0xec8f0 = 0x0; _0xec8f0 < _0x3f82e0['length']; _0xec8f0 += 0x1) {
|
|
692
|
+
if (_0x3f82e0[_0xec8f0] !== '@' || !isMentionBoundary(_0x3f82e0[_0xec8f0 - 0x1]))
|
|
693
|
+
continue;
|
|
694
|
+
const _0x152a3e = _0x3f82e0['slice'](_0xec8f0 + 0x1), _0x3864ff = _0x152a3e['toLocaleLowerCase'](), _0x4262e1 = _0x4f2509['find'](_0x4059de => {
|
|
695
|
+
const _0x568823 = _0x58b97c;
|
|
696
|
+
if (!_0x3864ff[_0x568823(_0xfe7c6a._0x53921d)](_0x4059de[_0x568823(0x1dc)]))
|
|
697
|
+
return ![];
|
|
698
|
+
return isMentionTerminal(_0x152a3e[_0x4059de[_0x568823(0x240)][_0x568823(0x216)]]);
|
|
699
|
+
});
|
|
700
|
+
if (!_0x4262e1 || _0xe2add5[_0x58b97c(_0x19e348._0x198e50)](_0x4262e1['participantId']))
|
|
701
|
+
continue;
|
|
702
|
+
_0xe2add5[_0x58b97c(_0x19e348._0x4806fd)](_0x4262e1[_0x58b97c(_0x19e348._0x3a9c9c)]), _0x3b2f89[_0x58b97c(0x213)](_0x4262e1[_0x58b97c(_0x19e348._0x3a9c9c)]), _0xec8f0 += _0x4262e1[_0x58b97c(0x240)][_0x58b97c(_0x19e348._0x40586f)];
|
|
703
|
+
}
|
|
704
|
+
return _0x3b2f89;
|
|
705
|
+
}
|
|
706
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
707
|
+
function anySignal(..._0x24e3b3) {
|
|
708
|
+
const _0x5de929 = {
|
|
709
|
+
_0x5be611: 0x2a3,
|
|
710
|
+
_0x2cc253: 0x2e2
|
|
711
|
+
}, _0xe22063 = _0x84e1c7, _0x213182 = new AbortController();
|
|
712
|
+
for (const _0x6ce29f of _0x24e3b3) {
|
|
713
|
+
if (_0x6ce29f[_0xe22063(0x247)])
|
|
714
|
+
return _0x213182['abort'](_0x6ce29f[_0xe22063(_0x5de929._0x5be611)]), _0x213182['signal'];
|
|
715
|
+
_0x6ce29f[_0xe22063(0x26b)](_0xe22063(0x195), () => _0x213182['abort'](_0x6ce29f[_0xe22063(0x2a3)]), {
|
|
716
|
+
'once': !![],
|
|
717
|
+
'signal': _0x213182[_0xe22063(_0x5de929._0x2cc253)]
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
return _0x213182[_0xe22063(_0x5de929._0x2cc253)];
|
|
721
|
+
}
|
|
722
|
+
function createInternalAgentClient(_0xdaecdf) {
|
|
723
|
+
const _0x4073fb = {
|
|
724
|
+
_0x39cc75: 0x242,
|
|
725
|
+
_0x334b5a: 0x1e4,
|
|
726
|
+
_0x3a5565: 0x1e4,
|
|
727
|
+
_0x89cb63: 0x26e,
|
|
728
|
+
_0x241a3f: 0x1d5,
|
|
729
|
+
_0x4a4c90: 0x206,
|
|
730
|
+
_0x3e07fa: 0x1ce,
|
|
731
|
+
_0x396cb6: 0x1d5,
|
|
732
|
+
_0x3ac2d6: 0x1d5,
|
|
733
|
+
_0x5227a3: 0x211
|
|
734
|
+
}, _0x311ebd = {
|
|
735
|
+
_0x5730ae: 0x173,
|
|
736
|
+
_0x7a0e88: 0x2cd,
|
|
737
|
+
_0x3be2dc: 0x2e4,
|
|
738
|
+
_0x45eb7b: 0x276,
|
|
739
|
+
_0x3c5dec: 0x17d,
|
|
740
|
+
_0x5dccaf: 0x1c2,
|
|
741
|
+
_0x3a1128: 0x234,
|
|
742
|
+
_0x494186: 0x2c6,
|
|
743
|
+
_0xddf19c: 0x264,
|
|
744
|
+
_0x3cc77a: 0x168,
|
|
745
|
+
_0x36109f: 0x2b3,
|
|
746
|
+
_0x4a3030: 0x169,
|
|
747
|
+
_0x34b6be: 0x28e,
|
|
748
|
+
_0x54619a: 0x212,
|
|
749
|
+
_0x478d47: 0x23a,
|
|
750
|
+
_0x15e1bd: 0x251,
|
|
751
|
+
_0x2d515c: 0x20a
|
|
752
|
+
}, _0x192f77 = { _0x581a4c: 0x253 }, _0x2f5f8b = {
|
|
753
|
+
_0x1d2877: 0x1cd,
|
|
754
|
+
_0x558515: 0x1cd,
|
|
755
|
+
_0x378e20: 0x2cd,
|
|
756
|
+
_0x15d319: 0x19c,
|
|
757
|
+
_0x34c30e: 0x297,
|
|
758
|
+
_0x193959: 0x191,
|
|
759
|
+
_0x3343b7: 0x212
|
|
760
|
+
}, _0x233c80 = {
|
|
761
|
+
_0x2f8873: 0x1a3,
|
|
762
|
+
_0x325ca7: 0x23b,
|
|
763
|
+
_0x5b40e3: 0x2c7,
|
|
764
|
+
_0x5b1267: 0x22b,
|
|
765
|
+
_0x16d325: 0x2c5,
|
|
766
|
+
_0x760980: 0x297,
|
|
767
|
+
_0x5d97f7: 0x16e
|
|
768
|
+
}, _0x1cc6eb = {
|
|
769
|
+
_0x3a5713: 0x281,
|
|
770
|
+
_0x2808a6: 0x2db
|
|
771
|
+
}, _0x5a5cfd = {
|
|
772
|
+
_0x151970: 0x18a,
|
|
773
|
+
_0x39b175: 0x23b,
|
|
774
|
+
_0x37c68e: 0x2c5
|
|
775
|
+
}, _0x14e9fb = {
|
|
776
|
+
_0x506ccb: 0x23b,
|
|
777
|
+
_0xbafc3f: 0x2c7
|
|
778
|
+
}, _0x10936e = { _0x5ba742: 0x18a }, _0x5e7b8b = {
|
|
779
|
+
_0x5414ac: 0x1cf,
|
|
780
|
+
_0x3a1018: 0x2b3,
|
|
781
|
+
_0x5075f3: 0x18a
|
|
782
|
+
}, _0x5b3f1d = {
|
|
783
|
+
_0x5884df: 0x2c7,
|
|
784
|
+
_0x4730cb: 0x277,
|
|
785
|
+
_0xbe318a: 0x28c,
|
|
786
|
+
_0x1273bd: 0x19d
|
|
787
|
+
}, _0x749d9f = {
|
|
788
|
+
_0x3a4eea: 0x167,
|
|
789
|
+
_0x1cf22a: 0x2c7,
|
|
790
|
+
_0x33bdcc: 0x297,
|
|
791
|
+
_0x2583f2: 0x19d,
|
|
792
|
+
_0x1e2760: 0x29f
|
|
793
|
+
}, _0x193005 = { _0x37dbbb: 0x2c5 }, _0x154045 = { _0xab7ff1: 0x297 }, _0x58ffeb = {
|
|
794
|
+
_0x21ae11: 0x23b,
|
|
795
|
+
_0x27ffd1: 0x22c,
|
|
796
|
+
_0x18e6d2: 0x246,
|
|
797
|
+
_0x3cb907: 0x253
|
|
798
|
+
}, _0x4988e6 = {
|
|
799
|
+
_0x44d4da: 0x1c9,
|
|
800
|
+
_0x17337a: 0x2b3,
|
|
801
|
+
_0x211642: 0x2a0,
|
|
802
|
+
_0x57ab0d: 0x2b3,
|
|
803
|
+
_0x197c98: 0x253,
|
|
804
|
+
_0x50d6fa: 0x246,
|
|
805
|
+
_0x579e86: 0x256,
|
|
806
|
+
_0x10cf5f: 0x1e9,
|
|
807
|
+
_0x1384c3: 0x18a,
|
|
808
|
+
_0x4028e3: 0x297,
|
|
809
|
+
_0x22c728: 0x169,
|
|
810
|
+
_0x44d7da: 0x1e8,
|
|
811
|
+
_0x2cb1ab: 0x28d,
|
|
812
|
+
_0x34077a: 0x2e4
|
|
813
|
+
}, _0x2b039f = { _0x2bb5a8: 0x285 }, _0x49fb40 = {
|
|
814
|
+
_0x3d5064: 0x2ce,
|
|
815
|
+
_0x4bb98f: 0x2b5
|
|
816
|
+
}, _0x4be8cf = {
|
|
817
|
+
_0x370521: 0x2de,
|
|
818
|
+
_0x1cfb85: 0x255,
|
|
819
|
+
_0x5322aa: 0x2c6,
|
|
820
|
+
_0x50eac4: 0x1c2,
|
|
821
|
+
_0x168c7f: 0x253,
|
|
822
|
+
_0x275039: 0x269,
|
|
823
|
+
_0x2d81cb: 0x198
|
|
824
|
+
}, _0x4d9fb2 = {
|
|
825
|
+
_0x4c4acf: 0x1e8,
|
|
826
|
+
_0x989f47: 0x2c6,
|
|
827
|
+
_0x38398d: 0x1c2,
|
|
828
|
+
_0x376ca4: 0x253,
|
|
829
|
+
_0x26f7b3: 0x253
|
|
830
|
+
}, _0x5d2dfd = { _0x1981f0: 0x274 }, _0x59255e = { _0xc272eb: 0x1e1 }, _0xab2c8d = {
|
|
831
|
+
_0x4b806e: 0x18a,
|
|
832
|
+
_0x2ed179: 0x1e5,
|
|
833
|
+
_0x7947e0: 0x169,
|
|
834
|
+
_0x2c8154: 0x297,
|
|
835
|
+
_0x44fa18: 0x1d2,
|
|
836
|
+
_0x11f557: 0x297,
|
|
837
|
+
_0x52dfea: 0x1e5,
|
|
838
|
+
_0x40a71e: 0x285
|
|
839
|
+
}, _0x184e82 = { _0x307b25: 0x297 }, _0x3edaf1 = {
|
|
840
|
+
_0x45c1c4: 0x2c7,
|
|
841
|
+
_0x4d9d12: 0x2c5,
|
|
842
|
+
_0xe8cdab: 0x19c
|
|
843
|
+
}, _0x33d8c9 = {
|
|
844
|
+
_0x42449b: 0x2e2,
|
|
845
|
+
_0x396182: 0x277,
|
|
846
|
+
_0x1d9245: 0x19c
|
|
847
|
+
}, _0x5e14da = {
|
|
848
|
+
_0x5ce46e: 0x2e2,
|
|
849
|
+
_0x61d937: 0x2e2,
|
|
850
|
+
_0x557f55: 0x277
|
|
851
|
+
}, _0x4a0d58 = {
|
|
852
|
+
_0x5efaca: 0x234,
|
|
853
|
+
_0x7dd502: 0x1b2,
|
|
854
|
+
_0x5b3c2f: 0x212,
|
|
855
|
+
_0x3acb58: 0x21d
|
|
856
|
+
}, _0x391a39 = {
|
|
857
|
+
_0x4e252e: 0x173,
|
|
858
|
+
_0x5ca15e: 0x23d
|
|
859
|
+
}, _0x2bba10 = {
|
|
860
|
+
_0x3bc7df: 0x16f,
|
|
861
|
+
_0x4ae886: 0x259,
|
|
862
|
+
_0x4ea192: 0x1d5,
|
|
863
|
+
_0x35c950: 0x1df,
|
|
864
|
+
_0x5c0011: 0x228,
|
|
865
|
+
_0xaf080f: 0x18d
|
|
866
|
+
}, _0x257a80 = _0x84e1c7, _0x37f05e = _0xdaecdf[_0x257a80(0x185)] ?? fetch, _0xe668f9 = _0xdaecdf[_0x257a80(_0x4073fb._0x39cc75)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x34ae50 = typeof _0xdaecdf[_0x257a80(_0x4073fb._0x334b5a)] === _0x257a80(0x1b9) && _0xdaecdf['initialLastSeenSeq'] > 0x0 ? _0xdaecdf[_0x257a80(_0x4073fb._0x3a5565)] : 0x0, _0x334f2e = _0xdaecdf[_0x257a80(_0x4073fb._0x89cb63)]?.[_0x257a80(_0x4073fb._0x241a3f)]() || void 0x0, _0x4fdff0 = _0xdaecdf[_0x257a80(0x284)]?.['trim']() || void 0x0, _0x29afb4 = _0xdaecdf[_0x257a80(_0x4073fb._0x4a4c90)] === !![], _0x3d9d4f = _0xdaecdf[_0x257a80(_0x4073fb._0x3e07fa)]?.[_0x257a80(_0x4073fb._0x396cb6)]() || void 0x0, _0xf601bd = _0xdaecdf[_0x257a80(0x2cc)]?.[_0x257a80(_0x4073fb._0x3ac2d6)]() || void 0x0, _0x38dae4 = createHeaders(_0xdaecdf[_0x257a80(0x2c8)]), _0x2ba3ae = toHttpBaseUrl(_0xdaecdf[_0x257a80(_0x4073fb._0x5227a3)]);
|
|
867
|
+
let _0x4544d6 = null;
|
|
868
|
+
const _0x4b392e = new Map();
|
|
869
|
+
let _0x3032e9 = _0x34ae50, _0x4b96d8 = _0x34ae50;
|
|
870
|
+
function _0x1b79ac(_0x140791) {
|
|
871
|
+
const _0x367d8a = _0x257a80, _0x44de2d = _0x140791[_0x367d8a(_0x2bba10._0x3bc7df)][_0x367d8a(0x262)][_0x367d8a(0x212)](_0x367d8a(_0x2bba10._0x4ae886)) ?? _0x367d8a(0x188), _0x36041e = _0x140791[_0x367d8a(0x19b)][_0x367d8a(_0x2bba10._0x4ea192)]()[_0x367d8a(0x1d3)](/\s+/g, '\x20')[_0x367d8a(0x16b)](0x0, 0x78) || '<empty>';
|
|
872
|
+
return _0x367d8a(0x1c5) + _0x140791[_0x367d8a(0x1ba)] + _0x367d8a(_0x2bba10._0x35c950) + _0x140791[_0x367d8a(0x16f)][_0x367d8a(0x1cf)] + ',\x20content-type=' + _0x44de2d + _0x367d8a(_0x2bba10._0x5c0011) + _0x36041e + _0x367d8a(_0x2bba10._0xaf080f);
|
|
873
|
+
}
|
|
874
|
+
async function _0x5e8af7(_0x5737ff, _0x2dd0eb) {
|
|
875
|
+
const _0x4f9358 = _0x257a80, _0x19d855 = Buffer[_0x4f9358(0x2dd)](await _0x2dd0eb[_0x4f9358(0x1d6)]())[_0x4f9358(_0x391a39._0x4e252e)](_0x4f9358(0x27b));
|
|
876
|
+
if (!_0x19d855[_0x4f9358(0x1d5)]())
|
|
877
|
+
return {};
|
|
878
|
+
try {
|
|
879
|
+
return JSON[_0x4f9358(_0x391a39._0x5ca15e)](_0x19d855);
|
|
880
|
+
} catch {
|
|
881
|
+
throw new Error(_0x1b79ac({
|
|
882
|
+
'bodyText': _0x19d855,
|
|
883
|
+
'requestUrl': _0x5737ff,
|
|
884
|
+
'response': _0x2dd0eb
|
|
885
|
+
}));
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
function _0x5f2b67(_0x679b3f, _0x3b64ff) {
|
|
889
|
+
const _0x3c9cee = _0x257a80, _0x532e4f = typeof _0x3b64ff['idempotency_key'] === _0x3c9cee(_0x4a0d58._0x5efaca) ? _0x3b64ff[_0x3c9cee(0x200)]['trim']() : '';
|
|
890
|
+
if (_0x532e4f)
|
|
891
|
+
return _0x532e4f;
|
|
892
|
+
const _0xd18def = Date[_0x3c9cee(0x1a5)]();
|
|
893
|
+
for (const [_0xea4e8c, _0x2b8ba7] of _0x4b392e) {
|
|
894
|
+
_0x2b8ba7['expiresAt'] <= _0xd18def && _0x4b392e['delete'](_0xea4e8c);
|
|
895
|
+
}
|
|
896
|
+
const _0x34e85e = {
|
|
897
|
+
..._0x3b64ff,
|
|
898
|
+
'idempotency_key': void 0x0
|
|
899
|
+
}, _0x20ad9d = createHash(_0x3c9cee(0x2d0))[_0x3c9cee(_0x4a0d58._0x7dd502)](_0x679b3f + ':' + stableStringify(_0x34e85e))['digest'](_0x3c9cee(0x170)), _0x28befa = _0x679b3f + ':' + _0x20ad9d, _0x4b3836 = _0x4b392e[_0x3c9cee(_0x4a0d58._0x5b3c2f)](_0x28befa);
|
|
900
|
+
if (_0x4b3836)
|
|
901
|
+
return _0x4b3836[_0x3c9cee(_0x4a0d58._0x3acb58)];
|
|
902
|
+
const _0x130c19 = _0x3c9cee(0x243) + _0x679b3f + ':' + randomUUID();
|
|
903
|
+
return _0x4b392e['set'](_0x28befa, {
|
|
904
|
+
'expiresAt': _0xd18def + 0x5 * 0x3c * 0x3e8,
|
|
905
|
+
'value': _0x130c19
|
|
906
|
+
}), _0x130c19;
|
|
907
|
+
}
|
|
908
|
+
async function _0x2a9a06(_0x519746, _0x4fdd00) {
|
|
909
|
+
const _0x4074c8 = _0x257a80, _0x3a4255 = new AbortController(), _0xa4a5bf = setTimeout(() => _0x3a4255[_0x4074c8(0x195)](), _0xe668f9), _0x2100fd = _0x4fdd00?.[_0x4074c8(_0x5e14da._0x5ce46e)] ? anySignal(_0x4fdd00[_0x4074c8(_0x5e14da._0x61d937)], _0x3a4255['signal']) : _0x3a4255[_0x4074c8(0x2e2)], _0x57ef88 = '' + _0x2ba3ae + _0x519746;
|
|
910
|
+
try {
|
|
911
|
+
const _0x569efa = await _0x37f05e(_0x57ef88, {
|
|
912
|
+
..._0x4fdd00,
|
|
913
|
+
'signal': _0x2100fd
|
|
914
|
+
}), _0x107e3b = await _0x5e8af7(_0x57ef88, _0x569efa);
|
|
915
|
+
if (!_0x569efa['ok'] || _0x107e3b[_0x4074c8(0x282)] === ![])
|
|
916
|
+
throw new Error(asErrorMessage(_0x107e3b[_0x4074c8(_0x5e14da._0x557f55)], 'HTTP\x20' + _0x569efa['status']));
|
|
917
|
+
return _0x107e3b;
|
|
918
|
+
} finally {
|
|
919
|
+
clearTimeout(_0xa4a5bf);
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
async function _0x3c9e5d(_0x4870e6, _0x570657) {
|
|
923
|
+
const _0x36a6ce = _0x257a80, _0x53e7d9 = new AbortController(), _0x21bdbd = setTimeout(() => _0x53e7d9['abort'](), _0xe668f9), _0x209a99 = _0x570657?.[_0x36a6ce(_0x33d8c9._0x42449b)] ? anySignal(_0x570657['signal'], _0x53e7d9['signal']) : _0x53e7d9[_0x36a6ce(0x2e2)], _0x5b5cfc = '' + _0x2ba3ae + _0x4870e6;
|
|
924
|
+
try {
|
|
925
|
+
const _0x5c5847 = await _0x37f05e(_0x5b5cfc, {
|
|
926
|
+
..._0x570657,
|
|
927
|
+
'signal': _0x209a99
|
|
928
|
+
}), _0x5486c = await _0x5e8af7(_0x5b5cfc, _0x5c5847);
|
|
929
|
+
if (!_0x5c5847['ok'])
|
|
930
|
+
throw new Error(asErrorMessage(_0x5486c[_0x36a6ce(_0x33d8c9._0x396182)], _0x36a6ce(_0x33d8c9._0x1d9245) + _0x5c5847['status']));
|
|
931
|
+
return _0x5486c;
|
|
932
|
+
} finally {
|
|
933
|
+
clearTimeout(_0x21bdbd);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
async function _0x258ce3(_0x1d6fe8) {
|
|
937
|
+
const _0x2f17eb = _0x257a80;
|
|
938
|
+
if (!_0x4fdff0 || _0x1d6fe8 <= _0x4b96d8)
|
|
939
|
+
return;
|
|
940
|
+
await _0x2a9a06(_0x2f17eb(0x2a9) + encodeURIComponent(_0x4fdff0) + _0x2f17eb(0x290), {
|
|
941
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x1d6fe8 }),
|
|
942
|
+
'headers': _0x38dae4,
|
|
943
|
+
'method': 'PATCH'
|
|
944
|
+
}), _0x4b96d8 = _0x1d6fe8;
|
|
945
|
+
}
|
|
946
|
+
async function _0x2120e3(_0x342d1d) {
|
|
947
|
+
const _0x2ee19e = _0x257a80;
|
|
948
|
+
if (!_0x334f2e || !_0x3d9d4f || _0x342d1d <= _0x4b96d8)
|
|
949
|
+
return;
|
|
950
|
+
const _0x41beb0 = await _0x37f05e(_0x334f2e + '/workers/context-metrics', {
|
|
951
|
+
'body': JSON[_0x2ee19e(_0x3edaf1._0x45c1c4)]({
|
|
952
|
+
'last_seen_seq': _0x342d1d,
|
|
953
|
+
'worker_session_id': _0x3d9d4f
|
|
954
|
+
}),
|
|
955
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
956
|
+
'method': _0x2ee19e(_0x3edaf1._0x4d9d12)
|
|
957
|
+
});
|
|
958
|
+
if (!_0x41beb0['ok'])
|
|
959
|
+
throw new Error(_0x2ee19e(_0x3edaf1._0xe8cdab) + _0x41beb0[_0x2ee19e(0x1cf)]);
|
|
960
|
+
_0x4b96d8 = _0x342d1d;
|
|
961
|
+
}
|
|
962
|
+
async function _0x532698(_0x47e8e8) {
|
|
963
|
+
const _0x1dfc95 = _0x257a80, _0x7cb561 = parseTarget(_0x47e8e8), _0x4bbca8 = await _0x2a9a06(_0x1dfc95(0x18a) + _0xdaecdf['agentId'] + _0x1dfc95(0x2b1), {
|
|
964
|
+
'body': JSON['stringify']({ 'target': _0x7cb561[_0x1dfc95(0x1f5)] }),
|
|
965
|
+
'headers': _0x38dae4,
|
|
966
|
+
'method': _0x1dfc95(0x2c5)
|
|
967
|
+
});
|
|
968
|
+
return {
|
|
969
|
+
'channelId': _0x4bbca8[_0x1dfc95(_0x184e82._0x307b25)]?.['channelId'] ?? '',
|
|
970
|
+
'target': _0x7cb561[_0x1dfc95(0x1e8)],
|
|
971
|
+
'threadId': _0x4bbca8[_0x1dfc95(0x297)]?.['threadId']
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
async function _0xa9a3f7() {
|
|
975
|
+
const _0x50abb2 = _0x257a80;
|
|
976
|
+
return !_0x4544d6 && (_0x4544d6 = (async () => {
|
|
977
|
+
const _0x1cba70 = _0x4ff1, _0x2c36c2 = await _0x2a9a06(_0x1cba70(_0xab2c8d._0x4b806e) + _0xdaecdf[_0x1cba70(0x23b)] + _0x1cba70(0x296), {
|
|
978
|
+
'headers': _0x38dae4,
|
|
979
|
+
'method': _0x1cba70(0x2cd)
|
|
980
|
+
}), _0x259b9e = _0x2c36c2[_0x1cba70(0x297)]?.[_0x1cba70(_0xab2c8d._0x2ed179)]['id'] ?? '';
|
|
981
|
+
let _0x47170a = [];
|
|
982
|
+
try {
|
|
983
|
+
const _0x705f1b = await _0x2a9a06(_0x1cba70(0x2ac) + encodeURIComponent(_0x259b9e), {
|
|
984
|
+
'headers': _0x38dae4,
|
|
985
|
+
'method': 'GET'
|
|
986
|
+
});
|
|
987
|
+
_0x47170a = _0x705f1b[_0x1cba70(0x297)] ?? [];
|
|
988
|
+
} catch {
|
|
989
|
+
_0x47170a = [];
|
|
990
|
+
}
|
|
991
|
+
const _0x27768b = _0x47170a['map'](_0x5475c7 => ({
|
|
992
|
+
'id': _0x5475c7[_0x1cba70(0x190)]?.['id'] ?? _0x5475c7['server_members']?.[_0x1cba70(0x2b5)] ?? '',
|
|
993
|
+
'name': _0x5475c7[_0x1cba70(0x190)]?.[_0x1cba70(0x285)] ?? _0x5475c7[_0x1cba70(0x21c)]?.[_0x1cba70(0x2b5)] ?? ''
|
|
994
|
+
}))[_0x1cba70(0x1d2)](_0x4dcddb => _0x4dcddb['id']), _0xabbf24 = new Set(_0x27768b[_0x1cba70(_0xab2c8d._0x7947e0)](_0x7d26fb => _0x7d26fb['id'])), _0xe67c63 = (_0x2c36c2[_0x1cba70(_0xab2c8d._0x2c8154)]?.['members'] ?? [])[_0x1cba70(_0xab2c8d._0x44fa18)](_0x2adfbd => !_0xabbf24[_0x1cba70(0x210)](_0x5ed678(_0x2adfbd)))['map'](_0x427f32 => ({
|
|
995
|
+
'id': _0x5ed678(_0x427f32),
|
|
996
|
+
'name': _0x21b599(_0x427f32)
|
|
997
|
+
}))['filter'](_0x46c547 => _0x46c547['id']);
|
|
998
|
+
return {
|
|
999
|
+
'agents': _0x27768b,
|
|
1000
|
+
'channels': _0x2c36c2[_0x1cba70(_0xab2c8d._0x2c8154)]?.['channels'] ?? [],
|
|
1001
|
+
'humans': _0xe67c63,
|
|
1002
|
+
'serverId': _0x259b9e,
|
|
1003
|
+
'serverName': _0x2c36c2[_0x1cba70(_0xab2c8d._0x11f557)]?.[_0x1cba70(_0xab2c8d._0x52dfea)][_0x1cba70(_0xab2c8d._0x40a71e)] ?? _0x259b9e
|
|
1004
|
+
};
|
|
1005
|
+
})()[_0x50abb2(_0x59255e._0xc272eb)](_0xfe79f3 => {
|
|
1006
|
+
_0x4544d6 = null;
|
|
1007
|
+
throw _0xfe79f3;
|
|
1008
|
+
})), _0x4544d6;
|
|
1009
|
+
}
|
|
1010
|
+
function _0x38cc54(_0x472318, _0x5524c8) {
|
|
1011
|
+
const _0x368e41 = _0x257a80;
|
|
1012
|
+
return _0x5524c8[_0x368e41(_0x5d2dfd._0x1981f0)][_0x368e41(0x162)](_0x3d106b => _0x3d106b['id'] === _0x472318 || _0x3d106b[_0x368e41(0x285)] === _0x472318) ? _0x368e41(0x194) : _0x368e41(0x2d4);
|
|
1013
|
+
}
|
|
1014
|
+
function _0x58382d(_0x54c66f) {
|
|
1015
|
+
const _0x3752dc = _0x257a80;
|
|
1016
|
+
if (_0x54c66f['threadNumber'] != null)
|
|
1017
|
+
return _0x54c66f[_0x3752dc(_0x4d9fb2._0x4c4acf)] + ':t' + _0x54c66f[_0x3752dc(_0x4d9fb2._0x989f47)];
|
|
1018
|
+
if (_0x54c66f[_0x3752dc(_0x4d9fb2._0x38398d)])
|
|
1019
|
+
return _0x54c66f[_0x3752dc(0x1e8)] + ':' + _0x54c66f['rootMessageId'];
|
|
1020
|
+
if (_0x54c66f[_0x3752dc(_0x4d9fb2._0x376ca4)])
|
|
1021
|
+
return _0x54c66f[_0x3752dc(_0x4d9fb2._0x4c4acf)] + ':' + _0x54c66f[_0x3752dc(_0x4d9fb2._0x26f7b3)]['slice'](0x0, 0x8);
|
|
1022
|
+
return _0x54c66f[_0x3752dc(_0x4d9fb2._0x4c4acf)];
|
|
1023
|
+
}
|
|
1024
|
+
function _0x49d73e(_0x5450a6, _0x51cf95) {
|
|
1025
|
+
const _0x2e4b7e = _0x257a80;
|
|
1026
|
+
try {
|
|
1027
|
+
const _0x564b9e = parseTarget(_0x5450a6);
|
|
1028
|
+
if (_0x564b9e[_0x2e4b7e(_0x4be8cf._0x370521)] !== _0x2e4b7e(_0x4be8cf._0x1cfb85) || _0x564b9e['channelTarget'] !== _0x51cf95[_0x2e4b7e(0x1e8)])
|
|
1029
|
+
return ![];
|
|
1030
|
+
if (_0x51cf95[_0x2e4b7e(0x2c6)] != null && _0x564b9e[_0x2e4b7e(0x198)] === 't' + _0x51cf95[_0x2e4b7e(_0x4be8cf._0x5322aa)])
|
|
1031
|
+
return !![];
|
|
1032
|
+
if (_0x51cf95[_0x2e4b7e(_0x4be8cf._0x50eac4)])
|
|
1033
|
+
return _0x564b9e[_0x2e4b7e(0x198)] === _0x51cf95['rootMessageId'] || _0x51cf95[_0x2e4b7e(0x1c2)][_0x2e4b7e(0x269)](_0x564b9e['threadShortId']);
|
|
1034
|
+
if (_0x51cf95[_0x2e4b7e(_0x4be8cf._0x168c7f)])
|
|
1035
|
+
return _0x564b9e[_0x2e4b7e(0x198)] === _0x51cf95[_0x2e4b7e(0x253)] || _0x51cf95['threadId'][_0x2e4b7e(_0x4be8cf._0x275039)](_0x564b9e[_0x2e4b7e(_0x4be8cf._0x2d81cb)]);
|
|
1036
|
+
return ![];
|
|
1037
|
+
} catch {
|
|
1038
|
+
return ![];
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
function _0x5ed678(_0x5adda5) {
|
|
1042
|
+
const _0x34f735 = _0x257a80;
|
|
1043
|
+
return _0x5adda5[_0x34f735(_0x49fb40._0x3d5064)]?.[_0x34f735(_0x49fb40._0x4bb98f)] ?? _0x5adda5['participant']?.['id'] ?? _0x5adda5[_0x34f735(0x2b5)] ?? '';
|
|
1044
|
+
}
|
|
1045
|
+
function _0x21b599(_0x4b83e3) {
|
|
1046
|
+
const _0x248009 = _0x257a80;
|
|
1047
|
+
return _0x4b83e3[_0x248009(0x2be)]?.[_0x248009(_0x2b039f._0x2bb5a8)] ?? _0x5ed678(_0x4b83e3);
|
|
1048
|
+
}
|
|
1049
|
+
async function _0x130faa(_0x15c3f8) {
|
|
1050
|
+
const _0x2841b3 = _0x257a80, _0x285de9 = Math[_0x2841b3(_0x4988e6._0x44d4da)](_0x15c3f8['limit'] ?? 0x32, 0x64), _0x225334 = await _0xa9a3f7(), _0x14525a = new URLSearchParams();
|
|
1051
|
+
_0x14525a[_0x2841b3(_0x4988e6._0x17337a)](_0x2841b3(_0x4988e6._0x211642), String(_0x285de9));
|
|
1052
|
+
_0x15c3f8['threadId'] ? (_0x14525a[_0x2841b3(_0x4988e6._0x57ab0d)](_0x2841b3(0x253), _0x15c3f8[_0x2841b3(_0x4988e6._0x197c98)]), _0x14525a[_0x2841b3(_0x4988e6._0x57ab0d)](_0x2841b3(0x246), _0x15c3f8[_0x2841b3(_0x4988e6._0x50d6fa)])) : _0x14525a[_0x2841b3(0x2b3)](_0x2841b3(0x246), _0x15c3f8[_0x2841b3(_0x4988e6._0x50d6fa)]);
|
|
1053
|
+
_0x15c3f8[_0x2841b3(_0x4988e6._0x579e86)] && _0x14525a[_0x2841b3(_0x4988e6._0x17337a)]('cursor', String(_0x15c3f8[_0x2841b3(0x256)]));
|
|
1054
|
+
_0x15c3f8['after'] !== void 0x0 && _0x14525a[_0x2841b3(0x2b3)](_0x2841b3(_0x4988e6._0x10cf5f), String(_0x15c3f8[_0x2841b3(0x1e9)]));
|
|
1055
|
+
const _0x4f40a0 = await _0x2a9a06(_0x2841b3(_0x4988e6._0x1384c3) + _0xdaecdf['agentId'] + _0x2841b3(0x1fa) + _0x14525a['toString'](), {
|
|
1056
|
+
'headers': _0x38dae4,
|
|
1057
|
+
'method': 'GET'
|
|
1058
|
+
}), _0x4a9e76 = (_0x4f40a0[_0x2841b3(_0x4988e6._0x4028e3)] ?? [])[_0x2841b3(_0x4988e6._0x22c728)](_0x423663 => ({
|
|
1059
|
+
'attachments': (_0x423663[_0x2841b3(0x2a6)] ?? [])[_0x2841b3(0x169)](_0x47c985 => ({
|
|
1060
|
+
'filename': _0x47c985[_0x2841b3(0x265)] ?? _0x47c985['id'],
|
|
1061
|
+
'id': _0x47c985['id']
|
|
1062
|
+
})),
|
|
1063
|
+
'content': _0x423663[_0x2841b3(0x1bc)] ?? '',
|
|
1064
|
+
'createdAt': _0x423663['createdAt'],
|
|
1065
|
+
'messageId': _0x423663['id'],
|
|
1066
|
+
'senderName': _0x423663[_0x2841b3(0x20a)],
|
|
1067
|
+
'senderType': _0x38cc54(_0x423663['senderParticipantId'], _0x225334),
|
|
1068
|
+
'seq': _0x423663['eventSeq'] ?? 0x0
|
|
1069
|
+
}));
|
|
1070
|
+
return {
|
|
1071
|
+
'channel': _0x15c3f8[_0x2841b3(_0x4988e6._0x44d7da)],
|
|
1072
|
+
'hasMore': _0x4f40a0['meta']?.[_0x2841b3(0x1ca)] ?? ![],
|
|
1073
|
+
'messages': _0x4a9e76,
|
|
1074
|
+
'nextCursor': _0x4f40a0[_0x2841b3(_0x4988e6._0x2cb1ab)]?.[_0x2841b3(_0x4988e6._0x34077a)]
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
return {
|
|
1078
|
+
async 'sendMessage'(_0x2bedb2) {
|
|
1079
|
+
const _0x226ad8 = _0x257a80, _0xbc9c66 = await _0x532698(_0x2bedb2[_0x226ad8(0x1f5)]), _0x4c7ff1 = _0x2bedb2[_0x226ad8(0x22c)]['includes']('@') ? extractMentionedParticipantIds(_0x2bedb2[_0x226ad8(0x22c)], await _0xa9a3f7()) : [], _0xdb9ae = await _0x2a9a06(_0x226ad8(0x18a) + _0xdaecdf[_0x226ad8(_0x58ffeb._0x21ae11)] + _0x226ad8(0x1d1), {
|
|
1080
|
+
'body': JSON[_0x226ad8(0x2c7)]({
|
|
1081
|
+
'attachment_ids': _0x2bedb2[_0x226ad8(0x222)],
|
|
1082
|
+
'bodyMarkdown': _0x2bedb2[_0x226ad8(_0x58ffeb._0x27ffd1)],
|
|
1083
|
+
'channelId': _0xbc9c66[_0x226ad8(_0x58ffeb._0x18e6d2)],
|
|
1084
|
+
..._0x4c7ff1[_0x226ad8(0x216)] > 0x0 ? { 'mentionedParticipantIds': _0x4c7ff1 } : {},
|
|
1085
|
+
'threadId': _0xbc9c66[_0x226ad8(_0x58ffeb._0x3cb907)]
|
|
1086
|
+
}),
|
|
1087
|
+
'headers': _0x38dae4,
|
|
1088
|
+
'method': _0x226ad8(0x2c5)
|
|
1089
|
+
});
|
|
1090
|
+
return { 'messageId': _0xdb9ae['data']?.['id'] ?? '' };
|
|
1091
|
+
},
|
|
1092
|
+
async 'listSchedules'() {
|
|
1093
|
+
const _0x50869a = _0x257a80, _0x56bb95 = await _0x2a9a06('/api/internal/schedules', {
|
|
1094
|
+
'headers': _0x38dae4,
|
|
1095
|
+
'method': 'GET'
|
|
1096
|
+
});
|
|
1097
|
+
return _0x56bb95[_0x50869a(_0x154045._0xab7ff1)] ?? [];
|
|
1098
|
+
},
|
|
1099
|
+
async 'claimScheduleRun'(_0x14d516) {
|
|
1100
|
+
const _0x2556e0 = _0x257a80, _0x3a161d = await _0x2a9a06(_0x2556e0(0x19a), {
|
|
1101
|
+
'body': JSON[_0x2556e0(0x2c7)](_0x14d516),
|
|
1102
|
+
'headers': _0x38dae4,
|
|
1103
|
+
'method': _0x2556e0(_0x193005._0x37dbbb)
|
|
1104
|
+
});
|
|
1105
|
+
return _0x3a161d['data'] ?? {
|
|
1106
|
+
'granted': ![],
|
|
1107
|
+
'runId': null,
|
|
1108
|
+
'schedule': null,
|
|
1109
|
+
'scheduledFor': _0x14d516[_0x2556e0(0x174)]
|
|
1110
|
+
};
|
|
1111
|
+
},
|
|
1112
|
+
async 'startScheduleRun'(_0x599b4a) {
|
|
1113
|
+
const _0x1c00e8 = _0x257a80, _0x58bf7e = await _0x2a9a06(_0x1c00e8(_0x749d9f._0x3a4eea) + encodeURIComponent(_0x599b4a['runId']) + '/start', {
|
|
1114
|
+
'body': JSON[_0x1c00e8(_0x749d9f._0x1cf22a)]({}),
|
|
1115
|
+
'headers': _0x38dae4,
|
|
1116
|
+
'method': _0x1c00e8(0x2c5)
|
|
1117
|
+
});
|
|
1118
|
+
return _0x58bf7e[_0x1c00e8(_0x749d9f._0x33bdcc)] ?? {
|
|
1119
|
+
'claimedByDaemonId': '',
|
|
1120
|
+
'id': _0x599b4a[_0x1c00e8(_0x749d9f._0x2583f2)],
|
|
1121
|
+
'scheduleId': '',
|
|
1122
|
+
'status': _0x1c00e8(_0x749d9f._0x1e2760)
|
|
1123
|
+
};
|
|
1124
|
+
},
|
|
1125
|
+
async 'finishScheduleRun'(_0x387556) {
|
|
1126
|
+
const _0x416124 = _0x257a80, _0x5bf8fe = await _0x2a9a06(_0x416124(0x167) + encodeURIComponent(_0x387556['runId']) + '/finish', {
|
|
1127
|
+
'body': JSON[_0x416124(_0x5b3f1d._0x5884df)]({
|
|
1128
|
+
'error': _0x387556[_0x416124(_0x5b3f1d._0x4730cb)],
|
|
1129
|
+
'resultJson': _0x387556[_0x416124(_0x5b3f1d._0xbe318a)],
|
|
1130
|
+
'status': _0x387556[_0x416124(0x1cf)]
|
|
1131
|
+
}),
|
|
1132
|
+
'headers': _0x38dae4,
|
|
1133
|
+
'method': 'POST'
|
|
1134
|
+
});
|
|
1135
|
+
return _0x5bf8fe['data'] ?? {
|
|
1136
|
+
'nextRunAt': null,
|
|
1137
|
+
'run': {
|
|
1138
|
+
'claimedByDaemonId': '',
|
|
1139
|
+
'id': _0x387556[_0x416124(_0x5b3f1d._0x1273bd)],
|
|
1140
|
+
'scheduleId': '',
|
|
1141
|
+
'status': _0x387556['status']
|
|
1142
|
+
}
|
|
1143
|
+
};
|
|
1144
|
+
},
|
|
1145
|
+
async 'listTasks'(_0x349032) {
|
|
1146
|
+
const _0x256cb7 = _0x257a80, _0x13927f = new URLSearchParams();
|
|
1147
|
+
return _0x13927f[_0x256cb7(0x2b3)]('channel', _0x349032['channel']), _0x349032[_0x256cb7(_0x5e7b8b._0x5414ac)] && _0x13927f[_0x256cb7(_0x5e7b8b._0x3a1018)](_0x256cb7(0x1cf), _0x349032['status']), _0x3c9e5d(_0x256cb7(_0x5e7b8b._0x5075f3) + _0xdaecdf['agentId'] + '/tasks?' + _0x13927f[_0x256cb7(0x173)](), {
|
|
1148
|
+
'headers': _0x38dae4,
|
|
1149
|
+
'method': 'GET'
|
|
1150
|
+
});
|
|
1151
|
+
},
|
|
1152
|
+
async 'createTasks'(_0x2bc775) {
|
|
1153
|
+
const _0x513f78 = _0x257a80;
|
|
1154
|
+
return _0x3c9e5d(_0x513f78(_0x10936e._0x5ba742) + _0xdaecdf[_0x513f78(0x23b)] + _0x513f78(0x1d0), {
|
|
1155
|
+
'body': JSON['stringify']({
|
|
1156
|
+
..._0x2bc775,
|
|
1157
|
+
'idempotency_key': _0x5f2b67(_0x513f78(0x250), _0x2bc775)
|
|
1158
|
+
}),
|
|
1159
|
+
'headers': _0x38dae4,
|
|
1160
|
+
'method': _0x513f78(0x2c5)
|
|
1161
|
+
});
|
|
1162
|
+
},
|
|
1163
|
+
async 'claimTasks'(_0x48a6d9) {
|
|
1164
|
+
const _0x3b70d0 = _0x257a80;
|
|
1165
|
+
return _0x3c9e5d(_0x3b70d0(0x18a) + _0xdaecdf[_0x3b70d0(_0x14e9fb._0x506ccb)] + _0x3b70d0(0x224), {
|
|
1166
|
+
'body': JSON[_0x3b70d0(_0x14e9fb._0xbafc3f)]({
|
|
1167
|
+
..._0x48a6d9,
|
|
1168
|
+
'idempotency_key': _0x5f2b67(_0x3b70d0(0x203), _0x48a6d9)
|
|
1169
|
+
}),
|
|
1170
|
+
'headers': _0x38dae4,
|
|
1171
|
+
'method': 'POST'
|
|
1172
|
+
});
|
|
1173
|
+
},
|
|
1174
|
+
async 'unclaimTask'(_0x4fa2ff) {
|
|
1175
|
+
const _0x36c214 = _0x257a80;
|
|
1176
|
+
return _0x3c9e5d(_0x36c214(_0x5a5cfd._0x151970) + _0xdaecdf[_0x36c214(_0x5a5cfd._0x39b175)] + '/tasks/unclaim', {
|
|
1177
|
+
'body': JSON['stringify']({
|
|
1178
|
+
..._0x4fa2ff,
|
|
1179
|
+
'idempotency_key': _0x5f2b67(_0x36c214(0x2a8), _0x4fa2ff)
|
|
1180
|
+
}),
|
|
1181
|
+
'headers': _0x38dae4,
|
|
1182
|
+
'method': _0x36c214(_0x5a5cfd._0x37c68e)
|
|
1183
|
+
});
|
|
1184
|
+
},
|
|
1185
|
+
async 'updateTaskStatus'(_0x23dfce) {
|
|
1186
|
+
const _0x1ee23d = _0x257a80;
|
|
1187
|
+
return _0x3c9e5d('/internal/agent/' + _0xdaecdf[_0x1ee23d(0x23b)] + _0x1ee23d(_0x1cc6eb._0x3a5713), {
|
|
1188
|
+
'body': JSON[_0x1ee23d(0x2c7)]({
|
|
1189
|
+
..._0x23dfce,
|
|
1190
|
+
'idempotency_key': _0x5f2b67(_0x1ee23d(_0x1cc6eb._0x2808a6), _0x23dfce)
|
|
1191
|
+
}),
|
|
1192
|
+
'headers': _0x38dae4,
|
|
1193
|
+
'method': _0x1ee23d(0x2c5)
|
|
1194
|
+
});
|
|
1195
|
+
},
|
|
1196
|
+
async 'uploadFile'(_0x652ba) {
|
|
1197
|
+
const _0x31cf7c = _0x257a80, _0x2d3bdd = await _0x532698(_0x652ba[_0x31cf7c(0x2b8)]);
|
|
1198
|
+
if (_0x2d3bdd[_0x31cf7c(0x253)])
|
|
1199
|
+
throw new Error(_0x31cf7c(_0x233c80._0x2f8873));
|
|
1200
|
+
const _0xa3674b = await _0x2a9a06(_0x31cf7c(0x18a) + _0xdaecdf[_0x31cf7c(_0x233c80._0x325ca7)] + _0x31cf7c(0x164), {
|
|
1201
|
+
'body': JSON[_0x31cf7c(_0x233c80._0x5b40e3)]({
|
|
1202
|
+
'channel': _0x2d3bdd[_0x31cf7c(0x1f5)],
|
|
1203
|
+
'contentBase64': _0x652ba[_0x31cf7c(_0x233c80._0x5b1267)],
|
|
1204
|
+
'contentType': _0x652ba['contentType'],
|
|
1205
|
+
'originalFilename': _0x652ba[_0x31cf7c(0x265)]
|
|
1206
|
+
}),
|
|
1207
|
+
'headers': _0x38dae4,
|
|
1208
|
+
'method': _0x31cf7c(_0x233c80._0x16d325)
|
|
1209
|
+
});
|
|
1210
|
+
return {
|
|
1211
|
+
'attachmentId': _0xa3674b[_0x31cf7c(_0x233c80._0x760980)]?.['id'] ?? '',
|
|
1212
|
+
'filename': _0xa3674b[_0x31cf7c(0x297)]?.[_0x31cf7c(_0x233c80._0x5d97f7)] ?? _0x652ba[_0x31cf7c(0x265)],
|
|
1213
|
+
'sizeBytes': _0xa3674b['data']?.[_0x31cf7c(0x241)] ?? 0x0
|
|
1214
|
+
};
|
|
1215
|
+
},
|
|
1216
|
+
async 'downloadAttachment'(_0x11c928) {
|
|
1217
|
+
const _0x4048c4 = _0x257a80, _0x30f648 = await _0x2a9a06(_0x4048c4(_0x2f5f8b._0x1d2877) + _0x11c928, {
|
|
1218
|
+
'headers': _0x38dae4,
|
|
1219
|
+
'method': _0x4048c4(0x2cd)
|
|
1220
|
+
}), _0x4b8c74 = new AbortController(), _0x501e53 = setTimeout(() => _0x4b8c74[_0x4048c4(0x195)](), _0xe668f9);
|
|
1221
|
+
try {
|
|
1222
|
+
const _0x4a1c2a = await _0x37f05e(_0x2ba3ae + _0x4048c4(_0x2f5f8b._0x558515) + _0x11c928 + '/content', {
|
|
1223
|
+
'headers': _0x38dae4,
|
|
1224
|
+
'method': _0x4048c4(_0x2f5f8b._0x378e20),
|
|
1225
|
+
'signal': _0x4b8c74['signal']
|
|
1226
|
+
});
|
|
1227
|
+
if (!_0x4a1c2a['ok'])
|
|
1228
|
+
throw new Error(_0x4048c4(_0x2f5f8b._0x15d319) + _0x4a1c2a[_0x4048c4(0x1cf)]);
|
|
1229
|
+
return {
|
|
1230
|
+
'contentType': _0x30f648[_0x4048c4(_0x2f5f8b._0x34c30e)]?.[_0x4048c4(_0x2f5f8b._0x193959)] ?? _0x4a1c2a['headers'][_0x4048c4(_0x2f5f8b._0x3343b7)]('content-type') ?? _0x4048c4(0x208),
|
|
1231
|
+
'data': Buffer[_0x4048c4(0x2dd)](await _0x4a1c2a[_0x4048c4(0x1d6)]()),
|
|
1232
|
+
'originalFilename': _0x30f648[_0x4048c4(0x297)]?.[_0x4048c4(0x16e)]
|
|
1233
|
+
};
|
|
1234
|
+
} finally {
|
|
1235
|
+
clearTimeout(_0x501e53);
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
async 'listServer'() {
|
|
1239
|
+
return _0xa9a3f7();
|
|
1240
|
+
},
|
|
1241
|
+
async 'readHistory'(_0x299a2e) {
|
|
1242
|
+
const _0x2c3176 = _0x257a80, _0xdc9463 = await _0x532698(_0x299a2e[_0x2c3176(0x2b8)]);
|
|
1243
|
+
return _0x130faa({
|
|
1244
|
+
'after': _0x299a2e[_0x2c3176(0x1e9)],
|
|
1245
|
+
'before': _0x299a2e['before'],
|
|
1246
|
+
'channelId': _0xdc9463[_0x2c3176(0x246)],
|
|
1247
|
+
'channelTarget': _0xdc9463['target'],
|
|
1248
|
+
'limit': _0x299a2e[_0x2c3176(0x2a0)],
|
|
1249
|
+
'threadId': _0xdc9463[_0x2c3176(_0x192f77._0x581a4c)]
|
|
1250
|
+
});
|
|
1251
|
+
},
|
|
1252
|
+
async 'checkMessages'() {
|
|
1253
|
+
const _0x110c06 = _0x257a80, _0x176c74 = new URLSearchParams();
|
|
1254
|
+
_0x176c74['set'](_0x110c06(0x1de), String(_0x3032e9));
|
|
1255
|
+
const _0x38312a = _0x176c74[_0x110c06(_0x311ebd._0x5730ae)](), _0xc811eb = await _0x2a9a06(_0x110c06(0x18a) + _0xdaecdf['agentId'] + '/receive' + (_0x38312a ? '?' + _0x38312a : ''), {
|
|
1256
|
+
'headers': _0x38dae4,
|
|
1257
|
+
'method': _0x110c06(_0x311ebd._0x7a0e88)
|
|
1258
|
+
}), _0x443ea1 = _0xc811eb[_0x110c06(0x297)] ?? [], _0x57ef74 = _0xc811eb['meta']?.[_0x110c06(_0x311ebd._0x3be2dc)], _0x3be219 = _0x57ef74 !== void 0x0 ? Math[_0x110c06(_0x311ebd._0x45eb7b)](_0x3032e9, _0x57ef74) : _0x443ea1[_0x110c06(0x216)] > 0x0 ? Math[_0x110c06(0x276)](_0x3032e9, _0x443ea1[_0x443ea1['length'] - 0x1][_0x110c06(0x252)]) : _0x3032e9, _0x3058dc = _0xf601bd === void 0x0 && _0x29afb4, _0x1e1f6b = await _0xa9a3f7(), _0x19a691 = new Map(_0x1e1f6b[_0x110c06(_0x311ebd._0x3c5dec)]['map'](_0x3ee876 => [
|
|
1259
|
+
_0x3ee876['id'],
|
|
1260
|
+
_0x3ee876
|
|
1261
|
+
])), _0x4e979d = _0x443ea1['filter'](_0x381dc8 => _0x381dc8['aggregateType'] === _0x110c06(0x1d8)), _0x298ae7 = new Map();
|
|
1262
|
+
for (const _0x59a6a1 of _0x4e979d) {
|
|
1263
|
+
const _0xcf921f = asRecord(_0x59a6a1['payloadJson']), _0x116874 = typeof _0xcf921f[_0x110c06(0x246)] === _0x110c06(0x234) ? _0xcf921f[_0x110c06(0x246)] : '';
|
|
1264
|
+
if (!_0x116874)
|
|
1265
|
+
continue;
|
|
1266
|
+
const _0x269b0b = typeof _0xcf921f[_0x110c06(0x253)] === _0x110c06(0x234) ? _0xcf921f['threadId'] : void 0x0, _0xaddce8 = typeof _0xcf921f[_0x110c06(_0x311ebd._0x5dccaf)] === _0x110c06(_0x311ebd._0x3a1128) ? _0xcf921f['rootMessageId'] : void 0x0, _0x40e5f1 = typeof _0xcf921f['threadNumber'] === _0x110c06(0x1b9) && Number['isInteger'](_0xcf921f[_0x110c06(_0x311ebd._0x494186)]) ? _0xcf921f[_0x110c06(0x2c6)] : void 0x0, _0x5feb43 = Boolean(_0x269b0b && (!_0xaddce8 || _0x59a6a1[_0x110c06(_0x311ebd._0xddf19c)] !== _0xaddce8)), _0x431a1a = _0x5feb43 ? _0x116874 + ':' + _0x269b0b : _0x116874, _0x5c85ce = _0x298ae7['get'](_0x431a1a) ?? {
|
|
1267
|
+
'aggregateIds': [],
|
|
1268
|
+
'channelId': _0x116874,
|
|
1269
|
+
'entries': new Map(),
|
|
1270
|
+
'isThreadReply': _0x5feb43,
|
|
1271
|
+
'rootMessageId': _0xaddce8,
|
|
1272
|
+
'threadNumber': _0x40e5f1,
|
|
1273
|
+
'threadId': _0x5feb43 ? _0x269b0b : void 0x0
|
|
1274
|
+
};
|
|
1275
|
+
_0x5c85ce[_0x110c06(_0x311ebd._0x494186)] == null && _0x40e5f1 != null && (_0x5c85ce[_0x110c06(0x2c6)] = _0x40e5f1), !_0x5c85ce[_0x110c06(_0x311ebd._0x5dccaf)] && _0xaddce8 && (_0x5c85ce[_0x110c06(0x1c2)] = _0xaddce8), _0x5c85ce[_0x110c06(_0x311ebd._0x3cc77a)][_0x110c06(0x213)](_0x59a6a1[_0x110c06(_0x311ebd._0xddf19c)]), _0x5c85ce['entries'][_0x110c06(_0x311ebd._0x36109f)](_0x59a6a1['aggregateId'], {
|
|
1276
|
+
'payloadJson': _0x59a6a1[_0x110c06(0x28e)],
|
|
1277
|
+
'seq': _0x59a6a1[_0x110c06(0x252)]
|
|
1278
|
+
}), _0x298ae7[_0x110c06(0x2b3)](_0x431a1a, _0x5c85ce);
|
|
1279
|
+
}
|
|
1280
|
+
const _0x2ecb0e = [];
|
|
1281
|
+
for (const _0x2e34e2 of _0x298ae7[_0x110c06(0x1a9)]()) {
|
|
1282
|
+
const {
|
|
1283
|
+
channelId: _0x59785b,
|
|
1284
|
+
threadId: _0x222e6c,
|
|
1285
|
+
rootMessageId: _0x2d1214,
|
|
1286
|
+
threadNumber: _0x1ef059,
|
|
1287
|
+
aggregateIds: _0x352814,
|
|
1288
|
+
isThreadReply: _0x2141e3,
|
|
1289
|
+
entries: _0x3539e2
|
|
1290
|
+
} = _0x2e34e2, _0x42085f = _0x19a691[_0x110c06(0x212)](_0x59785b), _0x5570b4 = _0x42085f?.[_0x110c06(0x285)] ?? _0x59785b, _0x3f8c57 = _0x42085f?.['kind'] === 'dm' ? _0x110c06(0x270) + _0x5570b4 : '#' + _0x5570b4, _0x111604 = {
|
|
1291
|
+
'channelTarget': _0x3f8c57,
|
|
1292
|
+
'rootMessageId': _0x2d1214,
|
|
1293
|
+
'threadId': _0x222e6c,
|
|
1294
|
+
'threadNumber': _0x1ef059
|
|
1295
|
+
}, _0x510398 = await _0x130faa({
|
|
1296
|
+
'channelId': _0x59785b,
|
|
1297
|
+
'channelTarget': _0x3f8c57,
|
|
1298
|
+
'limit': Math[_0x110c06(0x276)](_0x352814['length'], 0x32),
|
|
1299
|
+
'threadId': _0x222e6c
|
|
1300
|
+
}), _0x4b1ab4 = new Map(_0x510398['messages'][_0x110c06(_0x311ebd._0x4a3030)](_0x98f38 => [
|
|
1301
|
+
_0x98f38[_0x110c06(0x251)],
|
|
1302
|
+
_0x98f38
|
|
1303
|
+
])), _0x3a866d = _0x222e6c ? _0x58382d(_0x111604) : _0x3f8c57, _0x596f26 = _0xf601bd ? _0x2141e3 && _0x49d73e(_0xf601bd, _0x111604) : !![], _0xcf7411 = _0x2141e3 ? _0x596f26 && _0xf601bd ? _0xf601bd : _0x3a866d : _0x3f8c57;
|
|
1304
|
+
for (const _0x5848ac of _0x352814) {
|
|
1305
|
+
if (!_0x596f26)
|
|
1306
|
+
continue;
|
|
1307
|
+
const _0x3fd6b7 = _0x3539e2[_0x110c06(0x212)](_0x5848ac), _0x486949 = _0x3fd6b7 ? asRecord(_0x3fd6b7[_0x110c06(_0x311ebd._0x34b6be)]) : void 0x0, _0x1af207 = _0x486949?.[_0x110c06(0x1c8)] === _0x110c06(0x23c);
|
|
1308
|
+
if (_0x3058dc && _0x1af207)
|
|
1309
|
+
continue;
|
|
1310
|
+
const _0x17c04f = _0x4b1ab4[_0x110c06(_0x311ebd._0x54619a)](_0x5848ac);
|
|
1311
|
+
if (_0x17c04f) {
|
|
1312
|
+
_0x2ecb0e[_0x110c06(0x213)]({
|
|
1313
|
+
'attachments': _0x17c04f['attachments'],
|
|
1314
|
+
'content': _0x17c04f['content'],
|
|
1315
|
+
'createdAt': _0x17c04f[_0x110c06(_0x311ebd._0x478d47)],
|
|
1316
|
+
'messageId': _0x17c04f[_0x110c06(_0x311ebd._0x15e1bd)],
|
|
1317
|
+
'senderName': _0x17c04f['senderName'],
|
|
1318
|
+
'senderType': _0x17c04f['senderType'],
|
|
1319
|
+
'target': _0xcf7411,
|
|
1320
|
+
..._0x1af207 ? { 'targetedTask': !![] } : {}
|
|
1321
|
+
});
|
|
1322
|
+
continue;
|
|
1323
|
+
}
|
|
1324
|
+
if (_0x3fd6b7) {
|
|
1325
|
+
const _0x1acff3 = typeof _0x486949?.[_0x110c06(_0x311ebd._0x2d515c)] === _0x110c06(_0x311ebd._0x3a1128) ? _0x486949[_0x110c06(0x20a)] : '', _0x101868 = typeof _0x486949?.[_0x110c06(0x1bc)] === _0x110c06(_0x311ebd._0x3a1128) ? _0x486949['bodyMarkdown'] : '';
|
|
1326
|
+
_0x1acff3 && _0x101868 && _0x2ecb0e['push']({
|
|
1327
|
+
'attachments': [],
|
|
1328
|
+
'content': _0x101868,
|
|
1329
|
+
'createdAt': new Date()['toISOString'](),
|
|
1330
|
+
'messageId': _0x5848ac,
|
|
1331
|
+
'senderName': _0x1acff3,
|
|
1332
|
+
'senderType': _0x38cc54(_0x1acff3, _0x1e1f6b),
|
|
1333
|
+
'target': _0xcf7411,
|
|
1334
|
+
..._0x1af207 ? { 'targetedTask': !![] } : {}
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
if (_0x3be219 > 0x0) {
|
|
1340
|
+
if (_0x4fdff0)
|
|
1341
|
+
await _0x258ce3(_0x3be219);
|
|
1342
|
+
else
|
|
1343
|
+
_0x3d9d4f && await _0x2120e3(_0x3be219);
|
|
1344
|
+
}
|
|
1345
|
+
return _0x3be219 > _0x3032e9 && (_0x3032e9 = _0x3be219), { 'messages': _0xf601bd ? _0x2ecb0e : _0x3058dc ? _0x2ecb0e[_0x110c06(0x1d2)](_0xfd598f => _0xfd598f[_0x110c06(0x19f)] !== !![]) : _0x2ecb0e };
|
|
1346
|
+
}
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
function toLocalTime(_0x5ba76e) {
|
|
1350
|
+
const _0x3530e5 = {
|
|
1351
|
+
_0x2aef30: 0x1ee,
|
|
1352
|
+
_0x327d55: 0x201,
|
|
1353
|
+
_0x2adac6: 0x279,
|
|
1354
|
+
_0x5e1ebb: 0x236,
|
|
1355
|
+
_0x2326db: 0x184,
|
|
1356
|
+
_0x518888: 0x1da
|
|
1357
|
+
}, _0x4cad71 = _0x84e1c7, _0x33dfc5 = new Date(_0x5ba76e);
|
|
1358
|
+
if (Number[_0x4cad71(0x163)](_0x33dfc5[_0x4cad71(_0x3530e5._0x2aef30)]()))
|
|
1359
|
+
return _0x5ba76e;
|
|
1360
|
+
const _0x5e357c = _0x47dfdd => String(_0x47dfdd)[_0x4cad71(0x2ad)](0x2, '0');
|
|
1361
|
+
return _0x33dfc5[_0x4cad71(_0x3530e5._0x327d55)]() + '-' + _0x5e357c(_0x33dfc5[_0x4cad71(_0x3530e5._0x2adac6)]() + 0x1) + '-' + _0x5e357c(_0x33dfc5[_0x4cad71(_0x3530e5._0x5e1ebb)]()) + '\x20' + _0x5e357c(_0x33dfc5[_0x4cad71(_0x3530e5._0x2326db)]()) + ':' + _0x5e357c(_0x33dfc5[_0x4cad71(0x2b4)]()) + ':' + _0x5e357c(_0x33dfc5[_0x4cad71(_0x3530e5._0x518888)]());
|
|
1362
|
+
}
|
|
1363
|
+
function formatAttachmentSuffix(_0x3a43e2) {
|
|
1364
|
+
const _0x3487a4 = {
|
|
1365
|
+
_0x351faa: 0x216,
|
|
1366
|
+
_0x4b014c: 0x216,
|
|
1367
|
+
_0x1be8b9: 0x295,
|
|
1368
|
+
_0x48eafc: 0x25a
|
|
1369
|
+
}, _0x1d769d = _0x84e1c7;
|
|
1370
|
+
if (!_0x3a43e2 || _0x3a43e2[_0x1d769d(_0x3487a4._0x351faa)] === 0x0)
|
|
1371
|
+
return '';
|
|
1372
|
+
return '\x20[' + _0x3a43e2[_0x1d769d(_0x3487a4._0x4b014c)] + _0x1d769d(0x24b) + (_0x3a43e2['length'] > 0x1 ? 's' : '') + ':\x20' + _0x3a43e2['map'](_0x59a486 => _0x59a486[_0x1d769d(0x265)] + _0x1d769d(0x2e3) + _0x59a486['id'] + ')')[_0x1d769d(_0x3487a4._0x1be8b9)](',\x20') + _0x1d769d(_0x3487a4._0x48eafc);
|
|
1373
|
+
}
|
|
1374
|
+
function formatCheckMessages(_0x3362ce) {
|
|
1375
|
+
const _0x11ba09 = { _0x45179e: 0x1ab }, _0x218f72 = {
|
|
1376
|
+
_0x5dfa4e: 0x2d1,
|
|
1377
|
+
_0x83f46f: 0x194,
|
|
1378
|
+
_0x2e6f81: 0x1f5,
|
|
1379
|
+
_0xd7ab21: 0x251,
|
|
1380
|
+
_0x46e33f: 0x16b,
|
|
1381
|
+
_0x33b59b: 0x17b,
|
|
1382
|
+
_0x519c3b: 0x22c
|
|
1383
|
+
}, _0x2912d2 = _0x84e1c7;
|
|
1384
|
+
if (_0x3362ce['length'] === 0x0)
|
|
1385
|
+
return _0x2912d2(_0x11ba09._0x45179e);
|
|
1386
|
+
return _0x3362ce['map'](_0x42316a => {
|
|
1387
|
+
const _0x4ce395 = _0x2912d2, _0x4bafb1 = _0x42316a[_0x4ce395(_0x218f72._0x5dfa4e)] === _0x4ce395(_0x218f72._0x83f46f) ? _0x4ce395(0x20d) : '';
|
|
1388
|
+
return _0x4ce395(0x273) + _0x42316a[_0x4ce395(_0x218f72._0x2e6f81)] + _0x4ce395(0x28a) + _0x42316a[_0x4ce395(_0x218f72._0xd7ab21)][_0x4ce395(_0x218f72._0x46e33f)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x42316a[_0x4ce395(0x23a)]) + _0x4bafb1 + _0x4ce395(_0x218f72._0x33b59b) + _0x42316a[_0x4ce395(0x1ef)] + ':\x20' + _0x42316a[_0x4ce395(_0x218f72._0x519c3b)] + formatAttachmentSuffix(_0x42316a['attachments']);
|
|
1389
|
+
})[_0x2912d2(0x295)]('\x0a');
|
|
1390
|
+
}
|
|
1391
|
+
function formatHistory(_0x37331a) {
|
|
1392
|
+
const _0x3042c6 = {
|
|
1393
|
+
_0x3147f5: 0x2d3,
|
|
1394
|
+
_0x39559b: 0x2b8,
|
|
1395
|
+
_0x3ebf46: 0x1a8,
|
|
1396
|
+
_0x52e000: 0x169,
|
|
1397
|
+
_0x29e6dd: 0x295,
|
|
1398
|
+
_0x1df756: 0x1fe,
|
|
1399
|
+
_0x347a34: 0x1cc,
|
|
1400
|
+
_0x88d393: 0x176
|
|
1401
|
+
}, _0x268ae5 = {
|
|
1402
|
+
_0x74d5d6: 0x2d1,
|
|
1403
|
+
_0x467e5d: 0x20d,
|
|
1404
|
+
_0x5d532b: 0x263,
|
|
1405
|
+
_0x5c7524: 0x251,
|
|
1406
|
+
_0x4ca399: 0x1ff,
|
|
1407
|
+
_0x4a03d1: 0x23a,
|
|
1408
|
+
_0x2631d4: 0x17b,
|
|
1409
|
+
_0x4c12d6: 0x22c
|
|
1410
|
+
}, _0x2879eb = _0x84e1c7;
|
|
1411
|
+
if (_0x37331a[_0x2879eb(_0x3042c6._0x3147f5)]['length'] === 0x0)
|
|
1412
|
+
return _0x2879eb(0x176) + _0x37331a[_0x2879eb(_0x3042c6._0x39559b)] + _0x2879eb(_0x3042c6._0x3ebf46);
|
|
1413
|
+
const _0x459613 = _0x37331a[_0x2879eb(0x2d3)][_0x2879eb(_0x3042c6._0x52e000)](_0x2f247c => {
|
|
1414
|
+
const _0x4b6640 = _0x2879eb, _0x5ec32b = _0x2f247c[_0x4b6640(_0x268ae5._0x74d5d6)] === 'agent' ? _0x4b6640(_0x268ae5._0x467e5d) : '';
|
|
1415
|
+
return _0x4b6640(_0x268ae5._0x5d532b) + _0x2f247c[_0x4b6640(0x252)] + _0x4b6640(0x28a) + _0x2f247c[_0x4b6640(_0x268ae5._0x5c7524)] + _0x4b6640(_0x268ae5._0x4ca399) + toLocalTime(_0x2f247c[_0x4b6640(_0x268ae5._0x4a03d1)]) + _0x5ec32b + _0x4b6640(_0x268ae5._0x2631d4) + _0x2f247c[_0x4b6640(0x1ef)] + ':\x20' + _0x2f247c[_0x4b6640(_0x268ae5._0x4c12d6)] + formatAttachmentSuffix(_0x2f247c[_0x4b6640(0x2a6)]);
|
|
1416
|
+
})[_0x2879eb(_0x3042c6._0x29e6dd)]('\x0a'), _0x2e6540 = _0x37331a[_0x2879eb(0x1ca)] && _0x37331a[_0x2879eb(0x1cc)] ? _0x2879eb(_0x3042c6._0x1df756) + _0x37331a[_0x2879eb(0x2d3)]['length'] + _0x2879eb(0x2a5) + _0x37331a[_0x2879eb(_0x3042c6._0x347a34)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1417
|
+
return _0x2879eb(_0x3042c6._0x88d393) + _0x37331a['channel'] + '\x20(' + _0x37331a['messages'][_0x2879eb(0x216)] + _0x2879eb(0x27d) + _0x459613 + _0x2e6540;
|
|
1418
|
+
}
|
|
1419
|
+
function formatServerDirectory(_0x431fb0) {
|
|
1420
|
+
const _0xb73f7 = {
|
|
1421
|
+
_0x1750e1: 0x17d,
|
|
1422
|
+
_0xdc4c63: 0x169,
|
|
1423
|
+
_0x1f09e4: 0x216,
|
|
1424
|
+
_0x95e207: 0x171,
|
|
1425
|
+
_0x19b2f2: 0x295,
|
|
1426
|
+
_0x4f0681: 0x2d5,
|
|
1427
|
+
_0x48b5f4: 0x27a,
|
|
1428
|
+
_0xf5cc0f: 0x225,
|
|
1429
|
+
_0x2c556d: 0x1cb,
|
|
1430
|
+
_0x30009c: 0x295
|
|
1431
|
+
}, _0x33558e = _0x84e1c7, _0x1ae7ae = _0x431fb0[_0x33558e(0x17d)][_0x33558e(0x216)] > 0x0 ? _0x431fb0[_0x33558e(_0xb73f7._0x1750e1)][_0x33558e(_0xb73f7._0xdc4c63)](_0x48de87 => _0x48de87[_0x33558e(0x18e)] ? _0x33558e(0x1b3) + _0x48de87[_0x33558e(0x285)] + _0x33558e(0x257) + _0x48de87[_0x33558e(0x18e)] : _0x33558e(0x1b3) + _0x48de87['name'])[_0x33558e(0x295)]('\x0a') : '(none)', _0xbdbb95 = _0x431fb0['agents'][_0x33558e(_0xb73f7._0x1f09e4)] > 0x0 ? _0x431fb0[_0x33558e(0x274)]['map'](_0x3b4825 => _0x33558e(0x1e6) + _0x3b4825[_0x33558e(0x285)])[_0x33558e(0x295)]('\x0a') : _0x33558e(0x2d5), _0xdf6865 = _0x431fb0['humans']['length'] > 0x0 ? _0x431fb0[_0x33558e(_0xb73f7._0x95e207)][_0x33558e(_0xb73f7._0xdc4c63)](_0x317bef => _0x33558e(0x1e6) + _0x317bef['name'])[_0x33558e(_0xb73f7._0x19b2f2)]('\x0a') : _0x33558e(_0xb73f7._0x4f0681);
|
|
1432
|
+
return [
|
|
1433
|
+
_0x33558e(0x1af) + _0x431fb0[_0x33558e(_0xb73f7._0x48b5f4)],
|
|
1434
|
+
'',
|
|
1435
|
+
'###\x20Channels',
|
|
1436
|
+
_0x1ae7ae,
|
|
1437
|
+
'',
|
|
1438
|
+
_0x33558e(_0xb73f7._0xf5cc0f),
|
|
1439
|
+
_0xbdbb95,
|
|
1440
|
+
'',
|
|
1441
|
+
_0x33558e(_0xb73f7._0x2c556d),
|
|
1442
|
+
_0xdf6865
|
|
1443
|
+
][_0x33558e(_0xb73f7._0x30009c)]('\x0a');
|
|
1444
|
+
}
|
|
1445
|
+
function formatUploadResult(_0x403a2e) {
|
|
1446
|
+
const _0x4c6611 = {
|
|
1447
|
+
_0x51b61c: 0x1fd,
|
|
1448
|
+
_0x3b8607: 0x239
|
|
1449
|
+
}, _0x496f37 = _0x84e1c7;
|
|
1450
|
+
return 'File\x20uploaded:\x20' + _0x403a2e[_0x496f37(0x265)] + '\x20(' + (_0x403a2e['sizeBytes'] / 0x400)[_0x496f37(_0x4c6611._0x51b61c)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x403a2e[_0x496f37(_0x4c6611._0x3b8607)] + _0x496f37(0x227);
|
|
1451
|
+
}
|
|
1452
|
+
function formatViewFileResult(_0x18e1d4, _0x4ceb13) {
|
|
1453
|
+
const _0x14d1ee = {
|
|
1454
|
+
_0x741f4e: 0x2bb,
|
|
1455
|
+
_0xd7cea1: 0x16d
|
|
1456
|
+
}, _0x24a8ce = _0x84e1c7;
|
|
1457
|
+
return _0x4ceb13 ? _0x24a8ce(_0x14d1ee._0x741f4e) + _0x18e1d4 : _0x24a8ce(_0x14d1ee._0xd7cea1) + _0x18e1d4;
|
|
1458
|
+
}
|
|
1459
|
+
function formatTaskList(_0x51ad31, _0x20de3a) {
|
|
1460
|
+
const _0x4bef2e = {
|
|
1461
|
+
_0x31868d: 0x216,
|
|
1462
|
+
_0x3a9948: 0x295
|
|
1463
|
+
}, _0x12cf0f = {
|
|
1464
|
+
_0x3ad138: 0x2d6,
|
|
1465
|
+
_0x2a0ac4: 0x21b,
|
|
1466
|
+
_0x3e9dc9: 0x1cf
|
|
1467
|
+
}, _0x594dff = _0x84e1c7;
|
|
1468
|
+
if (_0x51ad31[_0x594dff(_0x4bef2e._0x31868d)] === 0x0)
|
|
1469
|
+
return _0x594dff(0x1a2);
|
|
1470
|
+
return _0x51ad31['map'](_0x5aff54 => {
|
|
1471
|
+
const _0xf08a39 = _0x594dff, _0x5c631f = _0x5aff54[_0xf08a39(_0x12cf0f._0x3ad138)] == null ? _0xf08a39(_0x12cf0f._0x2a0ac4) : '#' + _0x5aff54['taskNumber'], _0x4d36f1 = _0x5aff54[_0xf08a39(0x251)] ? _0xf08a39(0x1db) + _0x5aff54[_0xf08a39(0x251)] : '', _0x1a6989 = _0x20de3a && _0x5aff54[_0xf08a39(0x2d6)] != null && _0x20de3a[_0xf08a39(0x210)](_0x5aff54['taskNumber']) ? _0xf08a39(0x1a4) : '';
|
|
1472
|
+
return _0x5c631f + '\x20[' + _0x5aff54[_0xf08a39(_0x12cf0f._0x3e9dc9)] + ']\x20' + _0x5aff54[_0xf08a39(0x249)] + _0x4d36f1 + _0x1a6989;
|
|
1473
|
+
})[_0x594dff(_0x4bef2e._0x3a9948)]('\x0a');
|
|
1474
|
+
}
|
|
1475
|
+
function formatCreatedTasks(_0x46685c) {
|
|
1476
|
+
const _0x467bdb = {
|
|
1477
|
+
_0x426ddd: 0x21b,
|
|
1478
|
+
_0x1fd963: 0x1db
|
|
1479
|
+
}, _0x144c3c = _0x84e1c7;
|
|
1480
|
+
if (_0x46685c['length'] === 0x0)
|
|
1481
|
+
return 'No\x20tasks\x20created.';
|
|
1482
|
+
return _0x46685c[_0x144c3c(0x169)](_0x17132e => {
|
|
1483
|
+
const _0x3cbdcc = _0x144c3c, _0xe9e81d = _0x17132e['taskNumber'] == null ? _0x3cbdcc(_0x467bdb._0x426ddd) : '#' + _0x17132e['taskNumber'];
|
|
1484
|
+
return _0xe9e81d + '\x20' + _0x17132e[_0x3cbdcc(0x249)] + _0x3cbdcc(_0x467bdb._0x1fd963) + _0x17132e['messageId'];
|
|
1485
|
+
})[_0x144c3c(0x295)]('\x0a');
|
|
1486
|
+
}
|
|
1487
|
+
function formatClaimTaskResults(_0x3f834a) {
|
|
1488
|
+
const _0x486346 = { _0x3d2b47: 0x216 }, _0x5a3c9d = {
|
|
1489
|
+
_0x232267: 0x251,
|
|
1490
|
+
_0x43e3a9: 0x2b9,
|
|
1491
|
+
_0x426af0: 0x1f7,
|
|
1492
|
+
_0xa66e02: 0x18b,
|
|
1493
|
+
_0x35a578: 0x2a1,
|
|
1494
|
+
_0x4832f9: 0x1d2,
|
|
1495
|
+
_0x1d8995: 0x295,
|
|
1496
|
+
_0x1381c4: 0x189
|
|
1497
|
+
}, _0x1256a4 = _0x84e1c7;
|
|
1498
|
+
if (_0x3f834a[_0x1256a4(_0x486346._0x3d2b47)] === 0x0)
|
|
1499
|
+
return _0x1256a4(0x17a);
|
|
1500
|
+
return _0x3f834a[_0x1256a4(0x169)](_0x316ba3 => {
|
|
1501
|
+
const _0x254eee = _0x1256a4;
|
|
1502
|
+
if (_0x316ba3['success']) {
|
|
1503
|
+
const _0x19713a = _0x316ba3[_0x254eee(0x2d6)] == null ? '(legacy)' : '#' + _0x316ba3[_0x254eee(0x2d6)], _0x4ffad8 = _0x316ba3[_0x254eee(_0x5a3c9d._0x232267)] ? _0x254eee(0x1db) + _0x316ba3[_0x254eee(_0x5a3c9d._0x232267)] : '', _0x1ed147 = _0x316ba3[_0x254eee(0x2a7)] ? [
|
|
1504
|
+
_0x254eee(0x1e7),
|
|
1505
|
+
_0x316ba3[_0x254eee(0x1ae)] ? _0x254eee(0x293) : null,
|
|
1506
|
+
_0x316ba3['executionMode'] ? _0x254eee(_0x5a3c9d._0x43e3a9) + _0x316ba3[_0x254eee(_0x5a3c9d._0x426af0)] : null,
|
|
1507
|
+
_0x316ba3[_0x254eee(0x19e)] ? _0x254eee(_0x5a3c9d._0xa66e02) + _0x316ba3['threadTarget'] : null,
|
|
1508
|
+
_0x316ba3[_0x254eee(_0x5a3c9d._0x35a578)] ? _0x254eee(0x245) + _0x316ba3[_0x254eee(0x2a1)] : null
|
|
1509
|
+
][_0x254eee(_0x5a3c9d._0x4832f9)](Boolean)[_0x254eee(_0x5a3c9d._0x1d8995)]('\x20') : _0x316ba3['workerHandoffError'] ? _0x254eee(_0x5a3c9d._0x1381c4) + _0x316ba3['workerHandoffError'] : '';
|
|
1510
|
+
return [
|
|
1511
|
+
_0x19713a + '\x20claimed' + _0x4ffad8,
|
|
1512
|
+
_0x1ed147
|
|
1513
|
+
][_0x254eee(0x1d2)](Boolean)[_0x254eee(_0x5a3c9d._0x1d8995)]('\x20');
|
|
1514
|
+
}
|
|
1515
|
+
const _0x115228 = _0x316ba3['taskNumber'] == null ? _0x316ba3[_0x254eee(_0x5a3c9d._0x232267)] ?? '(unknown)' : '#' + _0x316ba3['taskNumber'];
|
|
1516
|
+
return _0x115228 + _0x254eee(0x1bb) + (_0x316ba3['reason'] ?? _0x254eee(0x25e));
|
|
1517
|
+
})[_0x1256a4(0x295)]('\x0a');
|
|
1518
|
+
}
|
|
1519
|
+
function formatUnclaimTaskResult(_0x3a2199) {
|
|
1520
|
+
const _0x6e1faa = {
|
|
1521
|
+
_0x41176e: 0x21b,
|
|
1522
|
+
_0x5c1bb5: 0x1cf
|
|
1523
|
+
}, _0x3922b7 = _0x84e1c7, _0x670caa = _0x3a2199[_0x3922b7(0x2d6)] == null ? _0x3922b7(_0x6e1faa._0x41176e) : '#' + _0x3a2199[_0x3922b7(0x2d6)];
|
|
1524
|
+
return _0x670caa + _0x3922b7(0x178) + _0x3a2199[_0x3922b7(_0x6e1faa._0x5c1bb5)];
|
|
1525
|
+
}
|
|
1526
|
+
function formatUpdateTaskStatusResult(_0x364d6f) {
|
|
1527
|
+
const _0x1faa75 = {
|
|
1528
|
+
_0x5dfa86: 0x21b,
|
|
1529
|
+
_0x5b784a: 0x178
|
|
1530
|
+
}, _0x9299b4 = _0x84e1c7, _0x44bc1d = _0x364d6f['taskNumber'] == null ? _0x9299b4(_0x1faa75._0x5dfa86) : '#' + _0x364d6f[_0x9299b4(0x2d6)];
|
|
1531
|
+
return _0x44bc1d + _0x9299b4(_0x1faa75._0x5b784a) + _0x364d6f[_0x9299b4(0x1cf)];
|
|
1532
|
+
}
|
|
1533
|
+
function getChatBridgeToolDefinitions() {
|
|
1534
|
+
const _0x1a90a5 = {
|
|
1535
|
+
_0x55b639: 0x254,
|
|
1536
|
+
_0x3909ae: 0x16c,
|
|
1537
|
+
_0x2db62f: 0x193,
|
|
1538
|
+
_0x3ebf72: 0x203,
|
|
1539
|
+
_0xd644d: 0x2a8,
|
|
1540
|
+
_0x378b0e: 0x2db,
|
|
1541
|
+
_0x39ca33: 0x1c6
|
|
1542
|
+
}, _0x10ab3c = _0x84e1c7;
|
|
1543
|
+
return [
|
|
1544
|
+
{ 'name': 'send_message' },
|
|
1545
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x55b639) },
|
|
1546
|
+
{ 'name': _0x10ab3c(0x2c2) },
|
|
1547
|
+
{ 'name': 'list_server' },
|
|
1548
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x3909ae) },
|
|
1549
|
+
{ 'name': 'view_file' },
|
|
1550
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x2db62f) },
|
|
1551
|
+
{ 'name': _0x10ab3c(0x250) },
|
|
1552
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x3ebf72) },
|
|
1553
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0xd644d) },
|
|
1554
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x378b0e) },
|
|
1555
|
+
{ 'name': _0x10ab3c(0x24c) },
|
|
1556
|
+
{ 'name': _0x10ab3c(0x161) },
|
|
1557
|
+
{ 'name': 'get_worker_result' },
|
|
1558
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x39ca33) },
|
|
1559
|
+
{ 'name': 'escalate_to_main' },
|
|
1560
|
+
{ 'name': _0x10ab3c(0x18c) }
|
|
2143
1561
|
];
|
|
2144
|
-
|
|
2145
|
-
|
|
1562
|
+
}
|
|
1563
|
+
function createChatBridgeHandlers(_0x4d6661) {
|
|
1564
|
+
const _0x1596d9 = {
|
|
1565
|
+
_0x31449a: 0x1dd,
|
|
1566
|
+
_0x1311a9: 0x25b
|
|
1567
|
+
}, _0x55e122 = {
|
|
1568
|
+
_0x184d78: 0x1c0,
|
|
1569
|
+
_0x3313dd: 0x24d,
|
|
1570
|
+
_0x4e4dd4: 0x277
|
|
1571
|
+
}, _0x2d9ef3 = {
|
|
1572
|
+
_0x2555ff: 0x1f1,
|
|
1573
|
+
_0x26b77f: 0x220,
|
|
1574
|
+
_0x4ff4cd: 0x177,
|
|
1575
|
+
_0x359702: 0x1ec,
|
|
1576
|
+
_0x445256: 0x2ae,
|
|
1577
|
+
_0x189011: 0x277,
|
|
1578
|
+
_0x5299a5: 0x1f1
|
|
1579
|
+
}, _0x24d144 = {
|
|
1580
|
+
_0x48795e: 0x26e,
|
|
1581
|
+
_0x84034c: 0x1f2,
|
|
1582
|
+
_0x1ca124: 0x25c,
|
|
1583
|
+
_0x55cb54: 0x2ae,
|
|
1584
|
+
_0x359bb8: 0x166,
|
|
1585
|
+
_0x501254: 0x166
|
|
1586
|
+
}, _0x13d6c5 = {
|
|
1587
|
+
_0x4d8875: 0x26e,
|
|
1588
|
+
_0xc05035: 0x238,
|
|
1589
|
+
_0x44feee: 0x1f1,
|
|
1590
|
+
_0x3dd377: 0x2ae,
|
|
1591
|
+
_0x460d74: 0x26f,
|
|
1592
|
+
_0x51b48d: 0x1cf
|
|
1593
|
+
}, _0x16677d = {
|
|
1594
|
+
_0x4c0e95: 0x2b6,
|
|
1595
|
+
_0x47cbb2: 0x24d,
|
|
1596
|
+
_0x3aa375: 0x2c7,
|
|
1597
|
+
_0x34981f: 0x2aa,
|
|
1598
|
+
_0x337918: 0x22a,
|
|
1599
|
+
_0x22230e: 0x27c,
|
|
1600
|
+
_0x2c36cc: 0x1f1
|
|
1601
|
+
}, _0x3c7f44 = {
|
|
1602
|
+
_0x3a4747: 0x24e,
|
|
1603
|
+
_0x4de8b5: 0x22e,
|
|
1604
|
+
_0x3e26e3: 0x297
|
|
1605
|
+
}, _0x42b309 = { _0x53522f: 0x24e }, _0x3d945a = { _0x41dee6: 0x24e }, _0x55d19c = {
|
|
1606
|
+
_0x4e67f8: 0x282,
|
|
1607
|
+
_0x5aec4a: 0x251,
|
|
1608
|
+
_0x3456dd: 0x2d6,
|
|
1609
|
+
_0x1551b6: 0x1d8
|
|
1610
|
+
}, _0x5e7390 = {
|
|
1611
|
+
_0x164244: 0x24e,
|
|
1612
|
+
_0x5782ac: 0x2c3,
|
|
1613
|
+
_0xd9897c: 0x2d2
|
|
1614
|
+
}, _0x2483f9 = {
|
|
1615
|
+
_0x191296: 0x24e,
|
|
1616
|
+
_0x2f347f: 0x26e,
|
|
1617
|
+
_0x95918d: 0x23b,
|
|
1618
|
+
_0x503c1f: 0x23b,
|
|
1619
|
+
_0x36133f: 0x2b8,
|
|
1620
|
+
_0x224522: 0x1cf,
|
|
1621
|
+
_0x4e7a71: 0x183,
|
|
1622
|
+
_0x2d7d66: 0x269,
|
|
1623
|
+
_0x12eccd: 0x216,
|
|
1624
|
+
_0x4f94b2: 0x2da,
|
|
1625
|
+
_0x5086ca: 0x180,
|
|
1626
|
+
_0x107a6f: 0x2e1,
|
|
1627
|
+
_0x334e74: 0x2d2
|
|
1628
|
+
}, _0x4e8a56 = { _0x12789c: 0x24e }, _0x4a0444 = {
|
|
1629
|
+
_0x153e57: 0x24e,
|
|
1630
|
+
_0x560339: 0x2cb
|
|
1631
|
+
}, _0xd7897f = { _0x40d176: 0x17c }, _0x3b48bd = {
|
|
1632
|
+
_0x557a67: 0x1c3,
|
|
1633
|
+
_0x51d04c: 0x1f5
|
|
1634
|
+
}, _0x5bc3f8 = {
|
|
1635
|
+
_0x4786d2: 0x26e,
|
|
1636
|
+
_0x1d7bc5: 0x261,
|
|
1637
|
+
_0x3c249a: 0x1a1,
|
|
1638
|
+
_0x26c53f: 0x183
|
|
1639
|
+
}, _0x338854 = {
|
|
1640
|
+
_0x1f66d0: 0x26e,
|
|
1641
|
+
_0x288b77: 0x23b,
|
|
1642
|
+
_0x356127: 0x1aa,
|
|
1643
|
+
_0x4d60bc: 0x206,
|
|
1644
|
+
_0x23854d: 0x2de,
|
|
1645
|
+
_0x5a6be8: 0x1e8,
|
|
1646
|
+
_0x287946: 0x2d6,
|
|
1647
|
+
_0x324e7c: 0x273,
|
|
1648
|
+
_0x2825aa: 0x1ff,
|
|
1649
|
+
_0x4322f2: 0x294,
|
|
1650
|
+
_0x1bb46f: 0x226,
|
|
1651
|
+
_0x54ea7a: 0x251,
|
|
1652
|
+
_0x5add39: 0x1e2,
|
|
1653
|
+
_0x4b9af1: 0x2af,
|
|
1654
|
+
_0x372ee1: 0x202,
|
|
1655
|
+
_0x2bd88d: 0x2c5,
|
|
1656
|
+
_0x399c31: 0x2c7,
|
|
1657
|
+
_0x55265a: 0x2d6,
|
|
1658
|
+
_0x50dda9: 0x2d6,
|
|
1659
|
+
_0x2bce5f: 0x289,
|
|
1660
|
+
_0xf7903c: 0x2ae,
|
|
1661
|
+
_0xecf81b: 0x192,
|
|
1662
|
+
_0x528ce3: 0x2aa,
|
|
1663
|
+
_0x2df23e: 0x2aa,
|
|
1664
|
+
_0x5a99e5: 0x24a
|
|
1665
|
+
};
|
|
1666
|
+
async function _0x529af5(_0x188368) {
|
|
1667
|
+
const _0x5e8d72 = _0x4ff1;
|
|
1668
|
+
if (!_0x4d6661[_0x5e8d72(_0x338854._0x1f66d0)] || !_0x4d6661[_0x5e8d72(_0x338854._0x288b77)] || _0x4d6661[_0x5e8d72(_0x338854._0x356127)] || _0x4d6661[_0x5e8d72(_0x338854._0x4d60bc)] !== !![])
|
|
1669
|
+
return null;
|
|
1670
|
+
const _0xc34531 = parseTarget(_0x188368[_0x5e8d72(0x2b8)]);
|
|
1671
|
+
if (_0xc34531[_0x5e8d72(_0x338854._0x23854d)] !== 'channel')
|
|
1672
|
+
return null;
|
|
1673
|
+
const _0x323a99 = _0x188368[_0x5e8d72(0x2c6)] != null ? _0xc34531[_0x5e8d72(0x1e8)] + ':t' + _0x188368['threadNumber'] : _0xc34531[_0x5e8d72(_0x338854._0x5a6be8)] + ':' + _0x188368['messageId'];
|
|
1674
|
+
let _0x55a23d;
|
|
1675
|
+
try {
|
|
1676
|
+
const _0x3bea36 = await _0x4d6661[_0x5e8d72(0x24e)][_0x5e8d72(0x2cb)]({
|
|
1677
|
+
'channel': _0x323a99,
|
|
1678
|
+
'limit': 0x14
|
|
1679
|
+
});
|
|
1680
|
+
_0x55a23d = _0x3bea36['messages'][_0x5e8d72(0x2da)](_0x4c2ab7 => _0x4c2ab7[_0x5e8d72(0x251)] === _0x188368[_0x5e8d72(0x251)]);
|
|
1681
|
+
} catch {
|
|
1682
|
+
_0x55a23d = void 0x0;
|
|
1683
|
+
}
|
|
1684
|
+
const _0x23c28f = _0x188368[_0x5e8d72(0x2d6)] == null ? _0x5e8d72(0x21b) : '#' + _0x188368[_0x5e8d72(_0x338854._0x287946)], _0x4acaa6 = [
|
|
1685
|
+
_0x5e8d72(_0x338854._0x324e7c) + _0x323a99 + _0x5e8d72(0x28a) + _0x188368['messageId'][_0x5e8d72(0x16b)](0x0, 0x8) + _0x5e8d72(_0x338854._0x2825aa) + new Date()[_0x5e8d72(_0x338854._0x4322f2)]() + _0x5e8d72(0x1f9) + _0x23c28f + _0x5e8d72(_0x338854._0x1bb46f),
|
|
1686
|
+
'',
|
|
1687
|
+
_0x55a23d ? 'Root\x20task\x20message:\x0a' + _0x55a23d[_0x5e8d72(0x22c)] : _0x5e8d72(0x1a0) + _0x188368[_0x5e8d72(_0x338854._0x54ea7a)],
|
|
1688
|
+
'',
|
|
1689
|
+
_0x5e8d72(_0x338854._0x5add39) + _0x323a99,
|
|
1690
|
+
_0x5e8d72(_0x338854._0x4b9af1)
|
|
1691
|
+
]['join']('\x0a'), _0x4038f6 = await fetch(_0x4d6661[_0x5e8d72(0x26e)] + _0x5e8d72(_0x338854._0x372ee1), {
|
|
1692
|
+
'method': _0x5e8d72(_0x338854._0x2bd88d),
|
|
1693
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1694
|
+
'body': JSON[_0x5e8d72(_0x338854._0x399c31)]({
|
|
1695
|
+
'agent_id': _0x4d6661['agentId'],
|
|
1696
|
+
'thread_target': _0x323a99,
|
|
1697
|
+
'spawn_packet': {
|
|
1698
|
+
'replyTarget': _0x323a99,
|
|
1699
|
+
..._0x188368['taskId'] ? { 'taskId': _0x188368['taskId'] } : _0x188368[_0x5e8d72(_0x338854._0x55265a)] != null ? { 'taskId': 'task-' + _0x188368[_0x5e8d72(_0x338854._0x50dda9)] } : {}
|
|
1700
|
+
},
|
|
1701
|
+
'payload': {
|
|
1702
|
+
'mode': _0x5e8d72(_0x338854._0x2bce5f),
|
|
1703
|
+
'text': _0x4acaa6
|
|
1704
|
+
}
|
|
1705
|
+
})
|
|
1706
|
+
}), _0x661a28 = await _0x4038f6[_0x5e8d72(_0x338854._0xf7903c)]();
|
|
1707
|
+
if (!_0x661a28['ok'])
|
|
1708
|
+
throw new Error(_0x661a28[_0x5e8d72(0x277)] ?? _0x5e8d72(_0x338854._0xecf81b));
|
|
1709
|
+
return {
|
|
1710
|
+
'stopMain': !![],
|
|
1711
|
+
'threadTarget': _0x323a99,
|
|
1712
|
+
'workerDisposition': _0x661a28['disposition'] === _0x5e8d72(_0x338854._0x528ce3) ? _0x5e8d72(_0x338854._0x2df23e) : _0x5e8d72(_0x338854._0x5a99e5),
|
|
1713
|
+
'workerHandoff': !![],
|
|
1714
|
+
'workerSessionId': _0x661a28[_0x5e8d72(0x27c)] ?? '',
|
|
1715
|
+
'executionMode': _0x5e8d72(0x2c1)
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
async function _0x474296() {
|
|
1719
|
+
const _0x1f0683 = _0x4ff1;
|
|
1720
|
+
if (!_0x4d6661[_0x1f0683(0x26e)] || !_0x4d6661[_0x1f0683(0x23b)] || _0x4d6661['workerMode'])
|
|
1721
|
+
return null;
|
|
1722
|
+
try {
|
|
1723
|
+
const _0x179960 = await fetch(_0x4d6661[_0x1f0683(_0x5bc3f8._0x4786d2)] + '/workers/list?agent_id=' + encodeURIComponent(_0x4d6661['agentId'])), _0x9a5a1c = await _0x179960['json']();
|
|
1724
|
+
if (!_0x9a5a1c['ok'])
|
|
1725
|
+
return null;
|
|
1726
|
+
const _0x1e3b1a = new Set();
|
|
1727
|
+
for (const _0xeab87c of _0x9a5a1c[_0x1f0683(_0x5bc3f8._0x1d7bc5)]) {
|
|
1728
|
+
_0xeab87c[_0x1f0683(0x1cf)] !== _0x1f0683(_0x5bc3f8._0x3c249a) && _0xeab87c[_0x1f0683(0x183)] && _0x1e3b1a[_0x1f0683(0x2e1)](_0xeab87c[_0x1f0683(_0x5bc3f8._0x26c53f)]);
|
|
1729
|
+
}
|
|
1730
|
+
return _0x1e3b1a[_0x1f0683(0x2e5)] > 0x0 ? _0x1e3b1a : null;
|
|
1731
|
+
} catch {
|
|
1732
|
+
return null;
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
return {
|
|
1736
|
+
async 'send_message'(_0x4736b3) {
|
|
1737
|
+
const _0x5c5842 = _0x4ff1, _0x5b3df9 = await _0x4d6661[_0x5c5842(0x24e)][_0x5c5842(_0x3b48bd._0x557a67)]({
|
|
1738
|
+
'attachmentIds': _0x4736b3['attachment_ids'],
|
|
1739
|
+
'content': _0x4736b3['content'],
|
|
1740
|
+
'target': _0x4736b3[_0x5c5842(0x1f5)]
|
|
1741
|
+
});
|
|
1742
|
+
return _0x5c5842(0x21a) + _0x4736b3[_0x5c5842(_0x3b48bd._0x51d04c)] + _0x5c5842(0x2bf) + _0x5b3df9[_0x5c5842(0x251)];
|
|
1743
|
+
},
|
|
1744
|
+
async 'check_messages'() {
|
|
1745
|
+
const _0x1bd20d = _0x4ff1, _0x108309 = await _0x4d6661[_0x1bd20d(0x24e)][_0x1bd20d(_0xd7897f._0x40d176)]();
|
|
1746
|
+
if (!_0x4d6661[_0x1bd20d(0x1aa)]) {
|
|
1747
|
+
const _0x503e4e = await _0x474296();
|
|
1748
|
+
if (_0x503e4e)
|
|
1749
|
+
return formatCheckMessages(_0x108309['messages']['filter'](_0x3d586b => !_0x503e4e[_0x1bd20d(0x210)](_0x3d586b[_0x1bd20d(0x1f5)])));
|
|
1750
|
+
}
|
|
1751
|
+
return formatCheckMessages(_0x108309['messages']);
|
|
1752
|
+
},
|
|
1753
|
+
async 'read_history'(_0x291297) {
|
|
1754
|
+
const _0x37fb9b = _0x4ff1, _0x311de7 = await _0x4d6661[_0x37fb9b(_0x4a0444._0x153e57)][_0x37fb9b(_0x4a0444._0x560339)](_0x291297);
|
|
1755
|
+
return formatHistory(_0x311de7);
|
|
1756
|
+
},
|
|
1757
|
+
async 'list_server'() {
|
|
1758
|
+
const _0x3cdffa = _0x4ff1, _0x5dd534 = await _0x4d6661[_0x3cdffa(_0x4e8a56._0x12789c)][_0x3cdffa(0x2ab)]();
|
|
1759
|
+
return formatServerDirectory(_0x5dd534);
|
|
1760
|
+
},
|
|
1761
|
+
async 'list_tasks'(_0xabf973) {
|
|
1762
|
+
const _0x1b34d7 = _0x4ff1, _0x52f6c2 = await _0x4d6661[_0x1b34d7(_0x2483f9._0x191296)][_0x1b34d7(0x230)](_0xabf973);
|
|
1763
|
+
let _0x2b7d18;
|
|
1764
|
+
if (_0x4d6661[_0x1b34d7(_0x2483f9._0x2f347f)] && _0x4d6661[_0x1b34d7(_0x2483f9._0x95918d)])
|
|
1765
|
+
try {
|
|
1766
|
+
const _0x244d9b = await fetch(_0x4d6661['daemonLocalUrl'] + _0x1b34d7(0x186) + encodeURIComponent(_0x4d6661[_0x1b34d7(_0x2483f9._0x503c1f)])), _0x1c77f1 = await _0x244d9b[_0x1b34d7(0x2ae)]();
|
|
1767
|
+
if (_0x1c77f1['ok']) {
|
|
1768
|
+
const _0x26a6de = _0xabf973[_0x1b34d7(_0x2483f9._0x36133f)] + ':';
|
|
1769
|
+
_0x2b7d18 = new Set();
|
|
1770
|
+
for (const _0x146a14 of _0x1c77f1[_0x1b34d7(0x261)]) {
|
|
1771
|
+
if (_0x146a14[_0x1b34d7(_0x2483f9._0x224522)] === _0x1b34d7(0x1a1))
|
|
1772
|
+
continue;
|
|
1773
|
+
if (_0x146a14[_0x1b34d7(_0x2483f9._0x4e7a71)]?.[_0x1b34d7(_0x2483f9._0x2d7d66)](_0x26a6de)) {
|
|
1774
|
+
const _0xea2c45 = _0x146a14[_0x1b34d7(0x183)][_0x1b34d7(0x16b)](_0x26a6de[_0x1b34d7(_0x2483f9._0x12eccd)]), _0x5ce0ed = _0x52f6c2['tasks'][_0x1b34d7(_0x2483f9._0x4f94b2)](_0x494f4f => _0x494f4f[_0x1b34d7(0x251)]?.['startsWith'](_0xea2c45) === !![]);
|
|
1775
|
+
if (_0x5ce0ed?.['taskNumber'] != null) {
|
|
1776
|
+
_0x2b7d18['add'](_0x5ce0ed[_0x1b34d7(0x2d6)]);
|
|
1777
|
+
continue;
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
if (_0x146a14[_0x1b34d7(_0x2483f9._0x5086ca)]) {
|
|
1781
|
+
const _0xd780a = _0x52f6c2['tasks'][_0x1b34d7(_0x2483f9._0x4f94b2)](_0x36aaf2 => _0x36aaf2['taskId'] === _0x146a14[_0x1b34d7(0x180)]);
|
|
1782
|
+
_0xd780a?.['taskNumber'] != null && _0x2b7d18[_0x1b34d7(_0x2483f9._0x107a6f)](_0xd780a['taskNumber']);
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
} catch {
|
|
1787
|
+
}
|
|
1788
|
+
return formatTaskList(_0x52f6c2[_0x1b34d7(_0x2483f9._0x334e74)], _0x2b7d18);
|
|
1789
|
+
},
|
|
1790
|
+
async 'create_tasks'(_0x1b3aa8) {
|
|
1791
|
+
const _0x27b53e = _0x4ff1, _0x5831eb = await _0x4d6661[_0x27b53e(_0x5e7390._0x164244)][_0x27b53e(_0x5e7390._0x5782ac)](_0x1b3aa8);
|
|
1792
|
+
return formatCreatedTasks(_0x5831eb[_0x27b53e(_0x5e7390._0xd9897c)]);
|
|
1793
|
+
},
|
|
1794
|
+
async 'claim_tasks'(_0x346f58) {
|
|
1795
|
+
const _0x14803c = _0x4ff1, _0x3eb44e = await _0x4d6661[_0x14803c(_0x3d945a._0x41dee6)][_0x14803c(0x29b)](_0x346f58), _0x503bfb = await Promise[_0x14803c(0x27e)](_0x3eb44e['results']['map'](async _0x16eb0f => {
|
|
1796
|
+
const _0x3ef427 = _0x14803c;
|
|
1797
|
+
if (!_0x16eb0f[_0x3ef427(_0x55d19c._0x4e67f8)] || !_0x16eb0f[_0x3ef427(_0x55d19c._0x5aec4a)])
|
|
1798
|
+
return _0x16eb0f;
|
|
1799
|
+
try {
|
|
1800
|
+
const _0x2f6645 = await _0x529af5({
|
|
1801
|
+
'channel': _0x346f58['channel'],
|
|
1802
|
+
'messageId': _0x16eb0f[_0x3ef427(0x251)],
|
|
1803
|
+
'taskId': _0x16eb0f[_0x3ef427(0x2cf)],
|
|
1804
|
+
'taskNumber': _0x16eb0f[_0x3ef427(_0x55d19c._0x3456dd)],
|
|
1805
|
+
'threadNumber': _0x16eb0f['threadNumber']
|
|
1806
|
+
});
|
|
1807
|
+
return _0x2f6645 ? {
|
|
1808
|
+
..._0x16eb0f,
|
|
1809
|
+
..._0x2f6645
|
|
1810
|
+
} : _0x16eb0f;
|
|
1811
|
+
} catch (_0x2e3106) {
|
|
1812
|
+
return {
|
|
1813
|
+
..._0x16eb0f,
|
|
1814
|
+
'workerHandoffError': _0x2e3106 instanceof Error ? _0x2e3106[_0x3ef427(_0x55d19c._0x1551b6)] : 'worker\x20handoff\x20failed'
|
|
1815
|
+
};
|
|
1816
|
+
}
|
|
1817
|
+
}));
|
|
1818
|
+
return formatClaimTaskResults(_0x503bfb);
|
|
1819
|
+
},
|
|
1820
|
+
async 'unclaim_task'(_0x31fb1f) {
|
|
1821
|
+
const _0x3e51c7 = _0x4ff1, _0x568471 = await _0x4d6661[_0x3e51c7(0x24e)][_0x3e51c7(0x2bc)](_0x31fb1f);
|
|
1822
|
+
return formatUnclaimTaskResult(_0x568471);
|
|
1823
|
+
},
|
|
1824
|
+
async 'update_task_status'(_0xb9b801) {
|
|
1825
|
+
const _0x28c25f = _0x4ff1, _0x17407d = await _0x4d6661[_0x28c25f(_0x42b309._0x53522f)]['updateTaskStatus'](_0xb9b801);
|
|
1826
|
+
return formatUpdateTaskStatusResult(_0x17407d);
|
|
1827
|
+
},
|
|
1828
|
+
async 'upload_file'(_0x360367) {
|
|
1829
|
+
const _0x2ead65 = _0x4ff1, _0x1a62d3 = await _0x4d6661[_0x2ead65(0x18f)](_0x360367[_0x2ead65(0x221)]), {
|
|
1830
|
+
sizeBytes: _0x19ef60,
|
|
1831
|
+
..._0x5a7f46
|
|
1832
|
+
} = _0x1a62d3, _0x4cfdf1 = await _0x4d6661[_0x2ead65(0x24e)]['uploadFile']({
|
|
1833
|
+
'channel': _0x360367[_0x2ead65(0x2b8)],
|
|
1834
|
+
..._0x5a7f46
|
|
1835
|
+
});
|
|
1836
|
+
return formatUploadResult(_0x4cfdf1);
|
|
1837
|
+
},
|
|
1838
|
+
async 'view_file'(_0x5a5cc2) {
|
|
1839
|
+
const _0x4f7383 = _0x4ff1, _0x1fbb39 = await _0x4d6661[_0x4f7383(0x22d)][_0x4f7383(0x292)](_0x5a5cc2[_0x4f7383(0x2bd)]);
|
|
1840
|
+
if (_0x1fbb39)
|
|
1841
|
+
return formatViewFileResult(_0x1fbb39, !![]);
|
|
1842
|
+
const _0x47362f = await _0x4d6661[_0x4f7383(_0x3c7f44._0x3a4747)][_0x4f7383(_0x3c7f44._0x4de8b5)](_0x5a5cc2[_0x4f7383(0x2bd)]), _0x28c4c9 = await _0x4d6661[_0x4f7383(0x22d)][_0x4f7383(0x207)]({
|
|
1843
|
+
'attachmentId': _0x5a5cc2[_0x4f7383(0x2bd)],
|
|
1844
|
+
'contentType': _0x47362f['contentType'],
|
|
1845
|
+
'data': _0x47362f[_0x4f7383(_0x3c7f44._0x3e26e3)],
|
|
1846
|
+
'originalFilename': _0x47362f['originalFilename']
|
|
1847
|
+
});
|
|
1848
|
+
return formatViewFileResult(_0x28c4c9, ![]);
|
|
1849
|
+
},
|
|
1850
|
+
async 'spawn_worker'(_0x34bb39) {
|
|
1851
|
+
const _0x15ba55 = _0x4ff1;
|
|
1852
|
+
if (!_0x4d6661['daemonLocalUrl'] || !_0x4d6661['agentId'])
|
|
1853
|
+
return _0x15ba55(0x2a2);
|
|
1854
|
+
const _0x52ead1 = await fetch(_0x4d6661[_0x15ba55(0x26e)] + _0x15ba55(_0x16677d._0x4c0e95), {
|
|
1855
|
+
'method': _0x15ba55(0x2c5),
|
|
1856
|
+
'headers': { 'Content-Type': _0x15ba55(_0x16677d._0x47cbb2) },
|
|
1857
|
+
'body': JSON[_0x15ba55(_0x16677d._0x3aa375)]({
|
|
1858
|
+
'agent_id': _0x4d6661[_0x15ba55(0x23b)],
|
|
1859
|
+
'work_key': _0x34bb39[_0x15ba55(0x1f1)],
|
|
1860
|
+
'thread_target': _0x34bb39[_0x15ba55(0x183)],
|
|
1861
|
+
'spawn_packet': {
|
|
1862
|
+
'replyTarget': _0x34bb39['reply_target'],
|
|
1863
|
+
'taskId': _0x34bb39[_0x15ba55(0x180)]
|
|
1864
|
+
}
|
|
1865
|
+
})
|
|
1866
|
+
}), _0x5c2cb2 = await _0x52ead1[_0x15ba55(0x2ae)]();
|
|
1867
|
+
if (!_0x5c2cb2['ok'])
|
|
1868
|
+
throw new Error(_0x5c2cb2[_0x15ba55(0x277)] ?? _0x15ba55(0x2d8));
|
|
1869
|
+
const _0x26370e = _0x5c2cb2[_0x15ba55(0x172)] === _0x15ba55(_0x16677d._0x34981f) ? _0x15ba55(0x2aa) : _0x15ba55(0x235);
|
|
1870
|
+
return _0x15ba55(_0x16677d._0x337918) + _0x26370e + '.\x20Session\x20ID:\x20' + _0x5c2cb2[_0x15ba55(_0x16677d._0x22230e)] + _0x15ba55(0x2a4) + _0x34bb39[_0x15ba55(_0x16677d._0x2c36cc)];
|
|
1871
|
+
},
|
|
1872
|
+
async 'get_worker_status'(_0x1c4d0a) {
|
|
1873
|
+
const _0x4742b0 = _0x4ff1;
|
|
1874
|
+
if (!_0x4d6661[_0x4742b0(_0x13d6c5._0x4d8875)])
|
|
1875
|
+
return _0x4742b0(0x1f2);
|
|
1876
|
+
const _0x53cf2b = await fetch(_0x4d6661['daemonLocalUrl'] + _0x4742b0(_0x13d6c5._0xc05035) + encodeURIComponent(_0x1c4d0a[_0x4742b0(_0x13d6c5._0x44feee)])), _0x5cb011 = await _0x53cf2b[_0x4742b0(_0x13d6c5._0x3dd377)]();
|
|
1877
|
+
if (!_0x5cb011['ok'])
|
|
1878
|
+
return _0x4742b0(_0x13d6c5._0x460d74) + _0x1c4d0a['work_key'] + _0x4742b0(0x1f4);
|
|
1879
|
+
return _0x4742b0(_0x13d6c5._0x460d74) + _0x1c4d0a[_0x4742b0(_0x13d6c5._0x44feee)] + _0x4742b0(0x29c) + _0x5cb011[_0x4742b0(_0x13d6c5._0x51b48d)];
|
|
1880
|
+
},
|
|
1881
|
+
async 'get_worker_result'(_0x54af7c) {
|
|
1882
|
+
const _0x26e7f7 = _0x4ff1;
|
|
1883
|
+
if (!_0x4d6661[_0x26e7f7(_0x24d144._0x48795e)])
|
|
1884
|
+
return _0x26e7f7(_0x24d144._0x84034c);
|
|
1885
|
+
const _0x158f7b = await fetch(_0x4d6661[_0x26e7f7(0x26e)] + _0x26e7f7(_0x24d144._0x1ca124) + encodeURIComponent(_0x54af7c['work_key'])), _0x5bf3ad = await _0x158f7b[_0x26e7f7(_0x24d144._0x55cb54)]();
|
|
1886
|
+
if (!_0x5bf3ad[_0x26e7f7(_0x24d144._0x359bb8)])
|
|
1887
|
+
return _0x26e7f7(0x1b1) + _0x54af7c['work_key'] + '\x22';
|
|
1888
|
+
return JSON[_0x26e7f7(0x2c7)](_0x5bf3ad[_0x26e7f7(_0x24d144._0x501254)], null, 0x2);
|
|
1889
|
+
},
|
|
1890
|
+
async 'finish_worker'(_0x5d0b57) {
|
|
1891
|
+
const _0x22be02 = _0x4ff1;
|
|
1892
|
+
if (!_0x4d6661['daemonLocalUrl'])
|
|
1893
|
+
return _0x22be02(0x1f2);
|
|
1894
|
+
const _0x3c18db = await fetch(_0x4d6661['daemonLocalUrl'] + _0x22be02(0x283), {
|
|
1895
|
+
'method': _0x22be02(0x2c5),
|
|
1896
|
+
'headers': { 'Content-Type': _0x22be02(0x24d) },
|
|
1897
|
+
'body': JSON[_0x22be02(0x2c7)]({
|
|
1898
|
+
'work_key': _0x5d0b57[_0x22be02(_0x2d9ef3._0x2555ff)],
|
|
1899
|
+
'resume_packet': {
|
|
1900
|
+
'objective': '',
|
|
1901
|
+
'result': _0x5d0b57[_0x22be02(_0x2d9ef3._0x26b77f)],
|
|
1902
|
+
'summary': _0x5d0b57['summary'],
|
|
1903
|
+
'decisions': _0x5d0b57[_0x22be02(_0x2d9ef3._0x4ff4cd)] ?? [],
|
|
1904
|
+
'filesChanged': _0x5d0b57[_0x22be02(_0x2d9ef3._0x359702)] ?? [],
|
|
1905
|
+
'openIssues': _0x5d0b57[_0x22be02(0x25d)] ?? [],
|
|
1906
|
+
'nextSteps': _0x5d0b57['next_steps'] ?? []
|
|
1907
|
+
}
|
|
1908
|
+
})
|
|
1909
|
+
}), _0xe8c5ef = await _0x3c18db[_0x22be02(_0x2d9ef3._0x445256)]();
|
|
1910
|
+
if (!_0xe8c5ef['ok'])
|
|
1911
|
+
throw new Error(_0xe8c5ef[_0x22be02(_0x2d9ef3._0x189011)] ?? 'finish_worker\x20failed');
|
|
1912
|
+
return _0x22be02(0x26f) + _0x5d0b57[_0x22be02(_0x2d9ef3._0x5299a5)] + _0x22be02(0x291) + _0x5d0b57[_0x22be02(_0x2d9ef3._0x26b77f)];
|
|
1913
|
+
},
|
|
1914
|
+
async 'mark_waiting_input'(_0x49d0bc) {
|
|
1915
|
+
const _0xd4d24e = _0x4ff1;
|
|
1916
|
+
if (!_0x4d6661[_0xd4d24e(0x26e)] || !_0x4d6661['agentId'])
|
|
1917
|
+
return _0xd4d24e(_0x55e122._0x184d78);
|
|
1918
|
+
const _0x33bf9a = await fetch(_0x4d6661['daemonLocalUrl'] + '/workers/waiting_input', {
|
|
1919
|
+
'method': _0xd4d24e(0x2c5),
|
|
1920
|
+
'headers': { 'Content-Type': _0xd4d24e(_0x55e122._0x3313dd) },
|
|
1921
|
+
'body': JSON[_0xd4d24e(0x2c7)]({
|
|
1922
|
+
'work_key': _0x49d0bc[_0xd4d24e(0x1f1)],
|
|
1923
|
+
'agent_id': _0x4d6661['agentId']
|
|
1924
|
+
})
|
|
1925
|
+
}), _0x196edf = await _0x33bf9a[_0xd4d24e(0x2ae)]();
|
|
1926
|
+
if (!_0x196edf['ok'])
|
|
1927
|
+
throw new Error(_0x196edf[_0xd4d24e(_0x55e122._0x4e4dd4)] ?? _0xd4d24e(0x20f));
|
|
1928
|
+
return 'Worker\x20\x22' + _0x49d0bc['work_key'] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
|
|
1929
|
+
},
|
|
1930
|
+
async 'escalate_to_main'(_0x2fd53b) {
|
|
1931
|
+
const _0x64bd07 = _0x4ff1;
|
|
1932
|
+
if (!_0x4d6661[_0x64bd07(0x26e)])
|
|
1933
|
+
return _0x64bd07(0x1f2);
|
|
1934
|
+
const _0x5636ef = await fetch(_0x4d6661[_0x64bd07(0x26e)] + _0x64bd07(_0x1596d9._0x31449a), {
|
|
1935
|
+
'method': 'POST',
|
|
1936
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1937
|
+
'body': JSON[_0x64bd07(0x2c7)]({
|
|
1938
|
+
'work_key': _0x2fd53b['work_key'],
|
|
1939
|
+
'reason': _0x2fd53b['reason']
|
|
1940
|
+
})
|
|
1941
|
+
}), _0xd2e174 = await _0x5636ef['json']();
|
|
1942
|
+
if (!_0xd2e174['ok'])
|
|
1943
|
+
throw new Error(_0xd2e174[_0x64bd07(0x277)] ?? _0x64bd07(_0x1596d9._0x1311a9));
|
|
1944
|
+
return _0x64bd07(0x278) + _0x2fd53b['reason'];
|
|
1945
|
+
}
|
|
1946
|
+
};
|
|
1947
|
+
}
|
|
1948
|
+
function textResult(_0x4f7e31, _0x42bd2b = ![]) {
|
|
1949
|
+
const _0x1ac9a6 = _0x84e1c7;
|
|
1950
|
+
return {
|
|
1951
|
+
'content': [{
|
|
1952
|
+
'type': _0x1ac9a6(0x199),
|
|
1953
|
+
'text': _0x4f7e31
|
|
1954
|
+
}],
|
|
1955
|
+
..._0x42bd2b ? { 'isError': !![] } : {}
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
async function registerChatBridgeTools(_0x100860, _0x40bb49, _0xd12731) {
|
|
1959
|
+
const _0x1173b3 = {
|
|
1960
|
+
_0x3d4965: 0x260,
|
|
1961
|
+
_0x50c0d3: 0x234,
|
|
1962
|
+
_0x18d6f2: 0x234,
|
|
1963
|
+
_0x34c3f2: 0x1a6,
|
|
1964
|
+
_0x152d7c: 0x2ca,
|
|
1965
|
+
_0x50500b: 0x288,
|
|
1966
|
+
_0x4afd5d: 0x1a6,
|
|
1967
|
+
_0x56e5f2: 0x193,
|
|
1968
|
+
_0x545458: 0x272,
|
|
1969
|
+
_0x33ed54: 0x1f6,
|
|
1970
|
+
_0x2b54de: 0x218,
|
|
1971
|
+
_0x520bf2: 0x1ea,
|
|
1972
|
+
_0x4c348d: 0x1be,
|
|
1973
|
+
_0x5a24f5: 0x29e,
|
|
1974
|
+
_0x120076: 0x232,
|
|
1975
|
+
_0xd191a: 0x234,
|
|
1976
|
+
_0x57136e: 0x288,
|
|
1977
|
+
_0xb1217e: 0x23e,
|
|
1978
|
+
_0x28beae: 0x288,
|
|
1979
|
+
_0x15925a: 0x1b9,
|
|
1980
|
+
_0x5c5956: 0x271,
|
|
1981
|
+
_0x39e2a2: 0x1f6,
|
|
1982
|
+
_0x2d01b8: 0x197,
|
|
1983
|
+
_0xf078da: 0x1ed,
|
|
1984
|
+
_0x3cc947: 0x1ea,
|
|
1985
|
+
_0xa9320c: 0x287,
|
|
1986
|
+
_0x3fcbfa: 0x2b0,
|
|
1987
|
+
_0x3e25cc: 0x24c,
|
|
1988
|
+
_0x85f55b: 0x234,
|
|
1989
|
+
_0x51351b: 0x234,
|
|
1990
|
+
_0x1a8a28: 0x288,
|
|
1991
|
+
_0x70ad3d: 0x234,
|
|
1992
|
+
_0x409e93: 0x234,
|
|
1993
|
+
_0x30b51a: 0x234,
|
|
1994
|
+
_0x1e21bf: 0x267,
|
|
1995
|
+
_0x1233bf: 0x1c6,
|
|
1996
|
+
_0x268481: 0x1c7,
|
|
1997
|
+
_0x159c6d: 0x28b,
|
|
1998
|
+
_0x1c876b: 0x2c9,
|
|
1999
|
+
_0x1deacf: 0x1d4,
|
|
2000
|
+
_0x3d1bc4: 0x234,
|
|
2001
|
+
_0xf2d26d: 0x232,
|
|
2002
|
+
_0x1aeebd: 0x234,
|
|
2003
|
+
_0x599a9f: 0x288,
|
|
2004
|
+
_0x5b62c6: 0x232,
|
|
2005
|
+
_0x349c9c: 0x1a6,
|
|
2006
|
+
_0x359646: 0x214
|
|
2007
|
+
}, _0x23baca = {
|
|
2008
|
+
_0x94f771: 0x18c,
|
|
2009
|
+
_0x323253: 0x1d8
|
|
2010
|
+
}, _0x5823ba = {
|
|
2011
|
+
_0x4f9eef: 0x26d,
|
|
2012
|
+
_0x318ffe: 0x1d8
|
|
2013
|
+
}, _0x132b03 = { _0x44a71b: 0x187 }, _0x53afb2 = {
|
|
2014
|
+
_0x1e1509: 0x1d8,
|
|
2015
|
+
_0x2bfafa: 0x22f
|
|
2016
|
+
}, _0x43d0cb = { _0x3cc686: 0x1d8 }, _0x545d60 = {
|
|
2017
|
+
_0x281249: 0x24c,
|
|
2018
|
+
_0x53d6fc: 0x2d8
|
|
2019
|
+
}, _0x2839b1 = { _0x51cb79: 0x2ba }, _0x321b93 = {
|
|
2020
|
+
_0x1b58a6: 0x2a8,
|
|
2021
|
+
_0x5f4f36: 0x1d8,
|
|
2022
|
+
_0x4e8000: 0x1c1
|
|
2023
|
+
}, _0x440e8e = { _0x1bd929: 0x203 }, _0x2bb11d = {
|
|
2024
|
+
_0x274988: 0x1bd,
|
|
2025
|
+
_0x64c0: 0x1b4
|
|
2026
|
+
}, _0x191491 = {
|
|
2027
|
+
_0x321470: 0x1d8,
|
|
2028
|
+
_0x58869b: 0x2c0
|
|
2029
|
+
}, _0x3e5701 = { _0x524d0e: 0x1d8 }, _0x584888 = _0x84e1c7, {z: _0x4bfbc5} = await import(_0x584888(_0x1173b3._0x3d4965));
|
|
2030
|
+
_0x100860[_0x584888(0x1a6)](_0x584888(0x1fc), 'Send\x20a\x20message\x20to\x20a\x20channel\x20or\x20DM.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages;\x20thread\x20targets\x20use\x20the\x20same\x20field.', {
|
|
2031
|
+
'target': _0x4bfbc5[_0x584888(_0x1173b3._0x50c0d3)](),
|
|
2032
|
+
'content': _0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)](),
|
|
2033
|
+
'attachment_ids': _0x4bfbc5['array'](_0x4bfbc5[_0x584888(_0x1173b3._0x50c0d3)]())[_0x584888(0x288)]()
|
|
2034
|
+
}, async _0x4dbcc1 => {
|
|
2035
|
+
const _0x2e8d2f = _0x584888;
|
|
2036
|
+
try {
|
|
2037
|
+
return textResult(await _0x40bb49['send_message'](_0x4dbcc1));
|
|
2038
|
+
} catch (_0x492538) {
|
|
2039
|
+
return textResult(_0x492538 instanceof Error ? _0x492538[_0x2e8d2f(_0x3e5701._0x524d0e)] : _0x2e8d2f(0x298), !![]);
|
|
2040
|
+
}
|
|
2041
|
+
}), _0x100860['tool'](_0x584888(0x254), _0x584888(0x20b), {}, async () => {
|
|
2042
|
+
const _0x4b5aa9 = _0x584888;
|
|
2043
|
+
try {
|
|
2044
|
+
return textResult(await _0x40bb49['check_messages']());
|
|
2045
|
+
} catch (_0x44aa3f) {
|
|
2046
|
+
return textResult(_0x44aa3f instanceof Error ? _0x44aa3f[_0x4b5aa9(0x1d8)] : _0x4b5aa9(0x27f), !![]);
|
|
2047
|
+
}
|
|
2048
|
+
}), _0x100860[_0x584888(_0x1173b3._0x34c3f2)](_0x584888(0x2c2), _0x584888(_0x1173b3._0x152d7c), {
|
|
2049
|
+
'channel': _0x4bfbc5[_0x584888(0x234)](),
|
|
2050
|
+
'limit': _0x4bfbc5[_0x584888(0x1b9)]()[_0x584888(0x288)](),
|
|
2051
|
+
'before': _0x4bfbc5[_0x584888(0x1b9)]()['optional'](),
|
|
2052
|
+
'after': _0x4bfbc5[_0x584888(0x1b9)]()[_0x584888(_0x1173b3._0x50500b)]()
|
|
2053
|
+
}, async _0x1b1d7b => {
|
|
2054
|
+
const _0x26859a = _0x584888;
|
|
2055
|
+
try {
|
|
2056
|
+
return textResult(await _0x40bb49[_0x26859a(0x2c2)](_0x1b1d7b));
|
|
2057
|
+
} catch (_0x15bad1) {
|
|
2058
|
+
return textResult(_0x15bad1 instanceof Error ? _0x15bad1[_0x26859a(_0x191491._0x321470)] : _0x26859a(_0x191491._0x58869b), !![]);
|
|
2059
|
+
}
|
|
2060
|
+
}), _0x100860[_0x584888(_0x1173b3._0x4afd5d)](_0x584888(0x1bd), _0x584888(0x20c), {}, async () => {
|
|
2061
|
+
const _0x39da6c = _0x584888;
|
|
2062
|
+
try {
|
|
2063
|
+
return textResult(await _0x40bb49[_0x39da6c(_0x2bb11d._0x274988)]());
|
|
2064
|
+
} catch (_0x2cbfdd) {
|
|
2065
|
+
return textResult(_0x2cbfdd instanceof Error ? _0x2cbfdd[_0x39da6c(0x1d8)] : _0x39da6c(_0x2bb11d._0x64c0), !![]);
|
|
2066
|
+
}
|
|
2067
|
+
}), _0x100860[_0x584888(_0x1173b3._0x34c3f2)](_0x584888(_0x1173b3._0x56e5f2), _0x584888(_0x1173b3._0x545458), {
|
|
2068
|
+
'channel': _0x4bfbc5[_0x584888(0x234)](),
|
|
2069
|
+
'status': _0x4bfbc5[_0x584888(_0x1173b3._0x33ed54)]([
|
|
2070
|
+
_0x584888(0x197),
|
|
2071
|
+
_0x584888(0x1ed),
|
|
2072
|
+
_0x584888(_0x1173b3._0x2b54de),
|
|
2073
|
+
_0x584888(_0x1173b3._0x520bf2)
|
|
2074
|
+
])['optional']()
|
|
2075
|
+
}, async _0x6757d5 => {
|
|
2076
|
+
const _0xae893c = _0x584888;
|
|
2077
|
+
try {
|
|
2078
|
+
return textResult(await _0x40bb49['list_tasks'](_0x6757d5));
|
|
2079
|
+
} catch (_0x7c28ae) {
|
|
2080
|
+
return textResult(_0x7c28ae instanceof Error ? _0x7c28ae[_0xae893c(0x1d8)] : 'list_tasks\x20failed', !![]);
|
|
2081
|
+
}
|
|
2082
|
+
}), _0x100860['tool']('create_tasks', 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
2083
|
+
'channel': _0x4bfbc5[_0x584888(_0x1173b3._0x50c0d3)](),
|
|
2084
|
+
'idempotency_key': _0x4bfbc5[_0x584888(0x234)]()[_0x584888(_0x1173b3._0x50500b)](),
|
|
2085
|
+
'tasks': _0x4bfbc5[_0x584888(0x232)](_0x4bfbc5[_0x584888(0x23e)]({
|
|
2086
|
+
'title': _0x4bfbc5[_0x584888(0x234)](),
|
|
2087
|
+
'description': _0x4bfbc5['string']()['optional'](),
|
|
2088
|
+
'priority': _0x4bfbc5[_0x584888(0x1f6)]([
|
|
2089
|
+
'low',
|
|
2090
|
+
_0x584888(_0x1173b3._0x4c348d),
|
|
2091
|
+
_0x584888(_0x1173b3._0x5a24f5),
|
|
2092
|
+
_0x584888(0x1b7)
|
|
2093
|
+
])[_0x584888(_0x1173b3._0x50500b)]()
|
|
2094
|
+
}))
|
|
2095
|
+
}, async _0x5d12dc => {
|
|
2096
|
+
const _0x2480ae = _0x584888;
|
|
2097
|
+
try {
|
|
2098
|
+
return textResult(await _0x40bb49[_0x2480ae(0x250)](_0x5d12dc));
|
|
2099
|
+
} catch (_0x1c11ad) {
|
|
2100
|
+
return textResult(_0x1c11ad instanceof Error ? _0x1c11ad[_0x2480ae(0x1d8)] : _0x2480ae(0x1f0), !![]);
|
|
2101
|
+
}
|
|
2102
|
+
}), _0x100860[_0x584888(0x1a6)]('claim_tasks', _0x584888(0x233), {
|
|
2103
|
+
'channel': _0x4bfbc5[_0x584888(0x234)](),
|
|
2104
|
+
'task_numbers': _0x4bfbc5[_0x584888(_0x1173b3._0x120076)](_0x4bfbc5['number']())['optional'](),
|
|
2105
|
+
'message_ids': _0x4bfbc5['array'](_0x4bfbc5[_0x584888(_0x1173b3._0xd191a)]())[_0x584888(_0x1173b3._0x57136e)](),
|
|
2106
|
+
'evidence': _0x4bfbc5[_0x584888(0x1d9)](_0x4bfbc5[_0x584888(_0x1173b3._0xd191a)](), _0x4bfbc5[_0x584888(_0x1173b3._0xb1217e)]({
|
|
2107
|
+
'create_thread': _0x4bfbc5[_0x584888(0x188)]()[_0x584888(_0x1173b3._0x28beae)](),
|
|
2108
|
+
'create_task': _0x4bfbc5['unknown']()['optional']()
|
|
2109
|
+
}))[_0x584888(0x288)](),
|
|
2110
|
+
'idempotency_key': _0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)]()['optional']()
|
|
2111
|
+
}, async _0x513f95 => {
|
|
2112
|
+
const _0xdef9c9 = _0x584888;
|
|
2113
|
+
try {
|
|
2114
|
+
return textResult(await _0x40bb49[_0xdef9c9(_0x440e8e._0x1bd929)](_0x513f95));
|
|
2115
|
+
} catch (_0x3bf041) {
|
|
2116
|
+
return textResult(_0x3bf041 instanceof Error ? _0x3bf041['message'] : 'claim_tasks\x20failed', !![]);
|
|
2117
|
+
}
|
|
2118
|
+
}), _0x100860[_0x584888(0x1a6)](_0x584888(0x2a8), _0x584888(0x244), {
|
|
2119
|
+
'channel': _0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)](),
|
|
2120
|
+
'task_number': _0x4bfbc5[_0x584888(_0x1173b3._0x15925a)](),
|
|
2121
|
+
'idempotency_key': _0x4bfbc5['string']()[_0x584888(_0x1173b3._0x57136e)]()
|
|
2122
|
+
}, async _0x3510c5 => {
|
|
2123
|
+
const _0x1eeb09 = _0x584888;
|
|
2124
|
+
try {
|
|
2125
|
+
return textResult(await _0x40bb49[_0x1eeb09(_0x321b93._0x1b58a6)](_0x3510c5));
|
|
2126
|
+
} catch (_0x3de299) {
|
|
2127
|
+
return textResult(_0x3de299 instanceof Error ? _0x3de299[_0x1eeb09(_0x321b93._0x5f4f36)] : _0x1eeb09(_0x321b93._0x4e8000), !![]);
|
|
2128
|
+
}
|
|
2129
|
+
}), _0x100860[_0x584888(0x1a6)](_0x584888(0x2db), _0x584888(_0x1173b3._0x5c5956), {
|
|
2130
|
+
'channel': _0x4bfbc5[_0x584888(0x234)](),
|
|
2131
|
+
'task_number': _0x4bfbc5[_0x584888(0x1b9)](),
|
|
2132
|
+
'status': _0x4bfbc5[_0x584888(_0x1173b3._0x39e2a2)]([
|
|
2133
|
+
_0x584888(_0x1173b3._0x2d01b8),
|
|
2134
|
+
_0x584888(_0x1173b3._0xf078da),
|
|
2135
|
+
_0x584888(_0x1173b3._0x2b54de),
|
|
2136
|
+
_0x584888(_0x1173b3._0x3cc947)
|
|
2137
|
+
]),
|
|
2138
|
+
'idempotency_key': _0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)]()[_0x584888(0x288)]()
|
|
2139
|
+
}, async _0x1bce54 => {
|
|
2140
|
+
const _0x4dda37 = _0x584888;
|
|
2141
|
+
try {
|
|
2142
|
+
return textResult(await _0x40bb49['update_task_status'](_0x1bce54));
|
|
2143
|
+
} catch (_0x2bb809) {
|
|
2144
|
+
return textResult(_0x2bb809 instanceof Error ? _0x2bb809['message'] : _0x4dda37(_0x2839b1._0x51cb79), !![]);
|
|
2145
|
+
}
|
|
2146
|
+
}), _0x100860[_0x584888(_0x1173b3._0x34c3f2)](_0x584888(0x16c), _0x584888(0x23f), {
|
|
2147
|
+
'channel': _0x4bfbc5[_0x584888(_0x1173b3._0x50c0d3)](),
|
|
2148
|
+
'file_path': _0x4bfbc5['string']()
|
|
2149
|
+
}, async _0x5bdf26 => {
|
|
2150
|
+
const _0x9e9133 = _0x584888;
|
|
2151
|
+
try {
|
|
2152
|
+
return textResult(await _0x40bb49[_0x9e9133(0x16c)](_0x5bdf26));
|
|
2153
|
+
} catch (_0xa5afce) {
|
|
2154
|
+
return textResult(_0xa5afce instanceof Error ? _0xa5afce[_0x9e9133(0x1d8)] : 'upload_file\x20failed', !![]);
|
|
2155
|
+
}
|
|
2156
|
+
}), _0x100860['tool'](_0x584888(_0x1173b3._0xa9320c), _0x584888(_0x1173b3._0x3fcbfa), { 'attachment_id': _0x4bfbc5[_0x584888(0x234)]() }, async _0x22440d => {
|
|
2157
|
+
const _0x2b28ef = _0x584888;
|
|
2158
|
+
try {
|
|
2159
|
+
return textResult(await _0x40bb49[_0x2b28ef(0x287)](_0x22440d));
|
|
2160
|
+
} catch (_0x5c964f) {
|
|
2161
|
+
return textResult(_0x5c964f instanceof Error ? _0x5c964f[_0x2b28ef(0x1d8)] : _0x2b28ef(0x165), !![]);
|
|
2162
|
+
}
|
|
2163
|
+
}), _0x100860[_0x584888(0x1a6)](_0x584888(_0x1173b3._0x3e25cc), _0x584888(0x1b0), {
|
|
2164
|
+
'work_key': _0x4bfbc5[_0x584888(_0x1173b3._0x85f55b)](),
|
|
2165
|
+
'thread_target': _0x4bfbc5['string'](),
|
|
2166
|
+
'objective': _0x4bfbc5[_0x584888(_0x1173b3._0x51351b)](),
|
|
2167
|
+
'conclusions': _0x4bfbc5['array'](_0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)]())[_0x584888(0x288)](),
|
|
2168
|
+
'relevant_files': _0x4bfbc5[_0x584888(0x232)](_0x4bfbc5[_0x584888(0x234)]())[_0x584888(_0x1173b3._0x1a8a28)](),
|
|
2169
|
+
'open_questions': _0x4bfbc5['array'](_0x4bfbc5[_0x584888(_0x1173b3._0x70ad3d)]())[_0x584888(_0x1173b3._0x57136e)](),
|
|
2170
|
+
'reply_target': _0x4bfbc5[_0x584888(_0x1173b3._0x409e93)](),
|
|
2171
|
+
'task_id': _0x4bfbc5[_0x584888(_0x1173b3._0x30b51a)]()[_0x584888(0x288)]()
|
|
2172
|
+
}, async _0xa79da2 => {
|
|
2173
|
+
const _0x54b569 = _0x584888;
|
|
2174
|
+
try {
|
|
2175
|
+
return textResult(await _0x40bb49[_0x54b569(_0x545d60._0x281249)](_0xa79da2));
|
|
2176
|
+
} catch (_0x363914) {
|
|
2177
|
+
return textResult(_0x363914 instanceof Error ? _0x363914['message'] : _0x54b569(_0x545d60._0x53d6fc), !![]);
|
|
2178
|
+
}
|
|
2179
|
+
}), _0x100860[_0x584888(_0x1173b3._0x4afd5d)](_0x584888(0x161), _0x584888(0x217), { 'work_key': _0x4bfbc5[_0x584888(0x234)]() }, async _0x19c703 => {
|
|
2180
|
+
const _0x2592b8 = _0x584888;
|
|
2181
|
+
try {
|
|
2182
|
+
return textResult(await _0x40bb49[_0x2592b8(0x161)](_0x19c703));
|
|
2183
|
+
} catch (_0xa33834) {
|
|
2184
|
+
return textResult(_0xa33834 instanceof Error ? _0xa33834[_0x2592b8(_0x43d0cb._0x3cc686)] : 'get_worker_status\x20failed', !![]);
|
|
2185
|
+
}
|
|
2186
|
+
}), _0x100860[_0x584888(0x1a6)](_0x584888(_0x1173b3._0x1e21bf), 'Retrieve\x20the\x20result\x20(resume\x20packet)\x20of\x20a\x20completed\x20worker.', { 'work_key': _0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)]() }, async _0x2d67d1 => {
|
|
2187
|
+
const _0x22aae4 = _0x584888;
|
|
2188
|
+
try {
|
|
2189
|
+
return textResult(await _0x40bb49['get_worker_result'](_0x2d67d1));
|
|
2190
|
+
} catch (_0x441e83) {
|
|
2191
|
+
return textResult(_0x441e83 instanceof Error ? _0x441e83[_0x22aae4(_0x53afb2._0x1e1509)] : _0x22aae4(_0x53afb2._0x2bfafa), !![]);
|
|
2192
|
+
}
|
|
2193
|
+
}), _0x100860[_0x584888(0x1a6)](_0x584888(_0x1173b3._0x1233bf), _0x584888(_0x1173b3._0x268481), {
|
|
2194
|
+
'work_key': _0x4bfbc5[_0x584888(0x234)](),
|
|
2195
|
+
'result': _0x4bfbc5['enum']([
|
|
2196
|
+
_0x584888(_0x1173b3._0x159c6d),
|
|
2197
|
+
_0x584888(_0x1173b3._0x1c876b),
|
|
2198
|
+
_0x584888(_0x1173b3._0x1deacf)
|
|
2199
|
+
]),
|
|
2200
|
+
'summary': _0x4bfbc5[_0x584888(_0x1173b3._0x3d1bc4)](),
|
|
2201
|
+
'decisions': _0x4bfbc5[_0x584888(_0x1173b3._0xf2d26d)](_0x4bfbc5[_0x584888(_0x1173b3._0x51351b)]())[_0x584888(_0x1173b3._0x28beae)](),
|
|
2202
|
+
'files_changed': _0x4bfbc5[_0x584888(_0x1173b3._0xf2d26d)](_0x4bfbc5[_0x584888(_0x1173b3._0x1aeebd)]())['optional'](),
|
|
2203
|
+
'open_issues': _0x4bfbc5[_0x584888(_0x1173b3._0xf2d26d)](_0x4bfbc5[_0x584888(0x234)]())[_0x584888(_0x1173b3._0x599a9f)](),
|
|
2204
|
+
'next_steps': _0x4bfbc5[_0x584888(_0x1173b3._0x5b62c6)](_0x4bfbc5[_0x584888(0x234)]())[_0x584888(0x288)]()
|
|
2205
|
+
}, async _0x39f527 => {
|
|
2206
|
+
const _0x160a73 = _0x584888;
|
|
2207
|
+
try {
|
|
2208
|
+
return textResult(await _0x40bb49['finish_worker'](_0x39f527));
|
|
2209
|
+
} catch (_0x5388cd) {
|
|
2210
|
+
return textResult(_0x5388cd instanceof Error ? _0x5388cd[_0x160a73(0x1d8)] : _0x160a73(_0x132b03._0x44a71b), !![]);
|
|
2211
|
+
}
|
|
2212
|
+
}), _0x100860[_0x584888(_0x1173b3._0x349c9c)](_0x584888(0x26d), _0x584888(_0x1173b3._0x359646), {
|
|
2213
|
+
'work_key': _0x4bfbc5[_0x584888(0x234)](),
|
|
2214
|
+
'reason': _0x4bfbc5[_0x584888(_0x1173b3._0xd191a)]()
|
|
2215
|
+
}, async _0x4da9f4 => {
|
|
2216
|
+
const _0x1548c7 = _0x584888;
|
|
2217
|
+
try {
|
|
2218
|
+
return textResult(await _0x40bb49[_0x1548c7(_0x5823ba._0x4f9eef)](_0x4da9f4));
|
|
2219
|
+
} catch (_0x1b3191) {
|
|
2220
|
+
return textResult(_0x1b3191 instanceof Error ? _0x1b3191[_0x1548c7(_0x5823ba._0x318ffe)] : _0x1548c7(0x25b), !![]);
|
|
2221
|
+
}
|
|
2222
|
+
}), _0xd12731?.[_0x584888(0x1aa)] && _0x100860[_0x584888(_0x1173b3._0x4afd5d)](_0x584888(0x18c), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x4bfbc5['string']() }, async _0x1cbdfb => {
|
|
2223
|
+
const _0x4c3a0d = _0x584888;
|
|
2224
|
+
try {
|
|
2225
|
+
return textResult(await _0x40bb49[_0x4c3a0d(_0x23baca._0x94f771)](_0x1cbdfb));
|
|
2226
|
+
} catch (_0xf6278e) {
|
|
2227
|
+
return textResult(_0xf6278e instanceof Error ? _0xf6278e[_0x4c3a0d(_0x23baca._0x323253)] : _0x4c3a0d(0x20f), !![]);
|
|
2228
|
+
}
|
|
2229
|
+
});
|
|
2230
|
+
}
|
|
2231
|
+
async function createChatBridgeServer(_0x4175d7) {
|
|
2232
|
+
const _0x42d30d = { _0x4e4850: 0x2b7 }, _0xe33b68 = _0x84e1c7, {McpServer: _0x48ebe3} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x393d10 = new _0x48ebe3({
|
|
2233
|
+
'name': _0xe33b68(_0x42d30d._0x4e4850),
|
|
2234
|
+
'version': '0.0.0'
|
|
2235
|
+
}), _0x4fbd59 = createChatBridgeHandlers(_0x4175d7);
|
|
2236
|
+
return await registerChatBridgeTools(_0x393d10, _0x4fbd59, { 'workerMode': _0x4175d7[_0xe33b68(0x1aa)] }), {
|
|
2237
|
+
'handlers': _0x4fbd59,
|
|
2238
|
+
'server': _0x393d10
|
|
2239
|
+
};
|
|
2240
|
+
}
|
|
2241
|
+
function readFlag(_0x2826a5, _0x5e39f7) {
|
|
2242
|
+
const _0xd111b2 = _0x84e1c7, _0x4a5756 = _0x2826a5[_0xd111b2(0x1e0)](_0x5e39f7);
|
|
2243
|
+
if (_0x4a5756 === -0x1)
|
|
2244
|
+
return void 0x0;
|
|
2245
|
+
return _0x2826a5[_0x4a5756 + 0x1];
|
|
2246
|
+
}
|
|
2247
|
+
function parseChatBridgeArgs(_0x5c8bd4) {
|
|
2248
|
+
const _0x35b3ff = {
|
|
2249
|
+
_0x1b1f40: 0x160,
|
|
2250
|
+
_0x167fb9: 0x28f,
|
|
2251
|
+
_0x130ed6: 0x248,
|
|
2252
|
+
_0xca64af: 0x275,
|
|
2253
|
+
_0x49a077: 0x21e,
|
|
2254
|
+
_0x21c1d2: 0x268,
|
|
2255
|
+
_0x4fe2fb: 0x1c4,
|
|
2256
|
+
_0x3651f7: 0x1b5
|
|
2257
|
+
}, _0x1934e5 = _0x84e1c7, _0x35bebf = readFlag(_0x5c8bd4, _0x1934e5(_0x35b3ff._0x1b1f40)), _0x4620d5 = readFlag(_0x5c8bd4, _0x1934e5(_0x35b3ff._0x167fb9)), _0x4ff71c = readFlag(_0x5c8bd4, '--initial-last-seen-seq'), _0x4ac761 = readFlag(_0x5c8bd4, '--server-url') ?? _0x1934e5(0x2b2), _0x57872c = readFlag(_0x5c8bd4, _0x1934e5(0x25f)), _0x4cd4d5 = readFlag(_0x5c8bd4, _0x1934e5(0x1b6)), _0x2929e9 = readFlag(_0x5c8bd4, _0x1934e5(0x1ac)), _0x1a3ffd = readFlag(_0x5c8bd4, _0x1934e5(_0x35b3ff._0x130ed6)), _0x2167f6 = readFlag(_0x5c8bd4, _0x1934e5(0x16a)), _0x5ae19c = _0x5c8bd4[_0x1934e5(_0x35b3ff._0xca64af)](_0x1934e5(_0x35b3ff._0x49a077)), _0x1f23ab = _0x4ff71c === void 0x0 ? void 0x0 : Number[_0x1934e5(_0x35b3ff._0x21c1d2)](_0x4ff71c, 0xa);
|
|
2258
|
+
if (!_0x35bebf)
|
|
2259
|
+
throw new Error('Missing\x20--agent-id');
|
|
2260
|
+
if (!_0x4620d5)
|
|
2261
|
+
throw new Error(_0x1934e5(_0x35b3ff._0x4fe2fb));
|
|
2262
|
+
if (_0x4ff71c !== void 0x0 && (_0x1f23ab === void 0x0 || !Number[_0x1934e5(_0x35b3ff._0x3651f7)](_0x1f23ab) || _0x1f23ab < 0x0))
|
|
2263
|
+
throw new Error(_0x1934e5(0x175));
|
|
2264
|
+
return {
|
|
2265
|
+
'agentId': _0x35bebf,
|
|
2266
|
+
'daemonApiKey': _0x4620d5,
|
|
2267
|
+
'daemonLocalUrl': _0x57872c,
|
|
2268
|
+
'initialLastSeenSeq': _0x1f23ab,
|
|
2269
|
+
'sessionId': _0x4cd4d5,
|
|
2270
|
+
'serverUrl': _0x4ac761,
|
|
2271
|
+
'workerModeEnabled': _0x2929e9 === void 0x0 ? void 0x0 : _0x2929e9 !== _0x1934e5(0x299),
|
|
2272
|
+
'workerSessionId': _0x1a3ffd,
|
|
2273
|
+
'workerThreadTarget': _0x2167f6,
|
|
2274
|
+
'workerMode': _0x5ae19c
|
|
2146
2275
|
};
|
|
2147
|
-
return _0x5c8c();
|
|
2148
2276
|
}
|
|
2149
|
-
async function runChatBridgeCli(
|
|
2150
|
-
const
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
'agentId': _0x21b956[_0x13ce7b(0x1e5)],
|
|
2156
|
-
'attachmentCache': _0x119e6d,
|
|
2157
|
-
'client': _0x5a5406,
|
|
2158
|
-
'daemonLocalUrl': _0x21b956[_0x13ce7b(_0x2f8eeb._0x152adb)],
|
|
2277
|
+
async function runChatBridgeCli(_0x51a88e) {
|
|
2278
|
+
const _0x4f59fa = { _0x566531: 0x179 }, _0x1cd309 = _0x84e1c7, _0x128f91 = parseChatBridgeArgs(_0x51a88e), {StdioServerTransport: _0x20098c} = await import(_0x1cd309(0x229)), _0x437399 = createInternalAgentClient(_0x128f91), _0x4bb48a = createAttachmentCache(), _0x369761 = await createChatBridgeServer({
|
|
2279
|
+
'agentId': _0x128f91['agentId'],
|
|
2280
|
+
'attachmentCache': _0x4bb48a,
|
|
2281
|
+
'client': _0x437399,
|
|
2282
|
+
'daemonLocalUrl': _0x128f91['daemonLocalUrl'],
|
|
2159
2283
|
'uploadPreparer': prepareUploadFile,
|
|
2160
|
-
'workerModeEnabled':
|
|
2161
|
-
'workerMode':
|
|
2284
|
+
'workerModeEnabled': _0x128f91['workerModeEnabled'],
|
|
2285
|
+
'workerMode': _0x128f91[_0x1cd309(0x1aa)]
|
|
2162
2286
|
});
|
|
2163
|
-
await
|
|
2287
|
+
await _0x369761[_0x1cd309(0x1e5)][_0x1cd309(_0x4f59fa._0x566531)](new _0x20098c());
|
|
2164
2288
|
}
|
|
2165
|
-
var executedAsEntry = process[
|
|
2166
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2289
|
+
var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process[_0x84e1c7(0x21f)][0x1])[_0x84e1c7(0x1eb)] : ![];
|
|
2290
|
+
executedAsEntry && await runChatBridgeCli(process['argv'][_0x84e1c7(0x16b)](0x2));
|
|
2167
2291
|
export {
|
|
2168
2292
|
createChatBridgeHandlers,
|
|
2169
2293
|
createChatBridgeServer,
|