@dscord/daemon 0.1.32 → 0.1.34
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 +2135 -2074
- package/dist/index.js +9104 -8362
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_0x5269e3: 0x318
|
|
11
|
-
}, _0x489eb6 = _0x4b05, _0x489e0c = _0x52557d();
|
|
1
|
+
const _0x8261f0 = _0x3954;
|
|
2
|
+
(function (_0x5af654, _0x2efe5e) {
|
|
3
|
+
const _0x552320 = {
|
|
4
|
+
_0x5b4162: 0x19d,
|
|
5
|
+
_0x297ece: 0x150,
|
|
6
|
+
_0xa883b3: 0xfb,
|
|
7
|
+
_0x1560ec: 0x1f5,
|
|
8
|
+
_0x481d4e: 0x271
|
|
9
|
+
}, _0x284313 = _0x3954, _0x5133ac = _0x5af654();
|
|
12
10
|
while (!![]) {
|
|
13
11
|
try {
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
12
|
+
const _0x1acb45 = parseInt(_0x284313(_0x552320._0x5b4162)) / 0x1 + -parseInt(_0x284313(0x254)) / 0x2 * (-parseInt(_0x284313(_0x552320._0x297ece)) / 0x3) + parseInt(_0x284313(_0x552320._0xa883b3)) / 0x4 + parseInt(_0x284313(_0x552320._0x1560ec)) / 0x5 + -parseInt(_0x284313(0x165)) / 0x6 * (parseInt(_0x284313(0x1e6)) / 0x7) + parseInt(_0x284313(_0x552320._0x481d4e)) / 0x8 + -parseInt(_0x284313(0x1e0)) / 0x9;
|
|
13
|
+
if (_0x1acb45 === _0x2efe5e)
|
|
16
14
|
break;
|
|
17
15
|
else
|
|
18
|
-
|
|
19
|
-
} catch (
|
|
20
|
-
|
|
16
|
+
_0x5133ac['push'](_0x5133ac['shift']());
|
|
17
|
+
} catch (_0x384bbd) {
|
|
18
|
+
_0x5133ac['push'](_0x5133ac['shift']());
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
|
-
}(
|
|
21
|
+
}(_0x13f9, 0x92a10));
|
|
24
22
|
import { pathToFileURL } from 'node:url';
|
|
25
23
|
import {
|
|
26
24
|
mkdir,
|
|
@@ -29,78 +27,106 @@ import {
|
|
|
29
27
|
stat,
|
|
30
28
|
writeFile
|
|
31
29
|
} from 'node:fs/promises';
|
|
30
|
+
function _0x3954(_0x43c7c1, _0x588229) {
|
|
31
|
+
_0x43c7c1 = _0x43c7c1 - 0xf9;
|
|
32
|
+
const _0x13f940 = _0x13f9();
|
|
33
|
+
let _0x395430 = _0x13f940[_0x43c7c1];
|
|
34
|
+
if (_0x3954['YVPcIp'] === undefined) {
|
|
35
|
+
var _0x33a64b = function (_0x4fccd4) {
|
|
36
|
+
const _0x2cab24 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
37
|
+
let _0x500572 = '', _0x18e55d = '';
|
|
38
|
+
for (let _0x5a70a1 = 0x0, _0x225b16, _0x300ebd, _0xcb9a3f = 0x0; _0x300ebd = _0x4fccd4['charAt'](_0xcb9a3f++); ~_0x300ebd && (_0x225b16 = _0x5a70a1 % 0x4 ? _0x225b16 * 0x40 + _0x300ebd : _0x300ebd, _0x5a70a1++ % 0x4) ? _0x500572 += String['fromCharCode'](0xff & _0x225b16 >> (-0x2 * _0x5a70a1 & 0x6)) : 0x0) {
|
|
39
|
+
_0x300ebd = _0x2cab24['indexOf'](_0x300ebd);
|
|
40
|
+
}
|
|
41
|
+
for (let _0x35eb43 = 0x0, _0x57243d = _0x500572['length']; _0x35eb43 < _0x57243d; _0x35eb43++) {
|
|
42
|
+
_0x18e55d += '%' + ('00' + _0x500572['charCodeAt'](_0x35eb43)['toString'](0x10))['slice'](-0x2);
|
|
43
|
+
}
|
|
44
|
+
return decodeURIComponent(_0x18e55d);
|
|
45
|
+
};
|
|
46
|
+
_0x3954['MDPHxw'] = _0x33a64b, _0x3954['spGBDd'] = {}, _0x3954['YVPcIp'] = !![];
|
|
47
|
+
}
|
|
48
|
+
const _0x44313b = _0x13f940[0x0], _0x2ec557 = _0x43c7c1 + _0x44313b, _0x3d55b2 = _0x3954['spGBDd'][_0x2ec557];
|
|
49
|
+
return !_0x3d55b2 ? (_0x395430 = _0x3954['MDPHxw'](_0x395430), _0x3954['spGBDd'][_0x2ec557] = _0x395430) : _0x395430 = _0x3d55b2, _0x395430;
|
|
50
|
+
}
|
|
32
51
|
import { homedir } from 'node:os';
|
|
33
|
-
import
|
|
52
|
+
import _0x500572 from 'node:path';
|
|
34
53
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
35
|
-
'.csv':
|
|
36
|
-
'.gif':
|
|
37
|
-
'.jpeg':
|
|
38
|
-
'.jpg':
|
|
39
|
-
'.json':
|
|
40
|
-
'.md':
|
|
41
|
-
'.pdf':
|
|
42
|
-
'.png':
|
|
43
|
-
'.svg':
|
|
44
|
-
'.txt':
|
|
45
|
-
'.webp':
|
|
46
|
-
'.xml':
|
|
47
|
-
'.zip':
|
|
54
|
+
'.csv': 'text/csv',
|
|
55
|
+
'.gif': _0x8261f0(0x238),
|
|
56
|
+
'.jpeg': _0x8261f0(0x258),
|
|
57
|
+
'.jpg': _0x8261f0(0x258),
|
|
58
|
+
'.json': 'application/json',
|
|
59
|
+
'.md': _0x8261f0(0x16e),
|
|
60
|
+
'.pdf': _0x8261f0(0x111),
|
|
61
|
+
'.png': _0x8261f0(0x185),
|
|
62
|
+
'.svg': _0x8261f0(0x28c),
|
|
63
|
+
'.txt': _0x8261f0(0x101),
|
|
64
|
+
'.webp': 'image/webp',
|
|
65
|
+
'.xml': 'application/xml',
|
|
66
|
+
'.zip': _0x8261f0(0x176)
|
|
48
67
|
};
|
|
49
|
-
function guessContentType(
|
|
50
|
-
const
|
|
51
|
-
return MIME_BY_EXTENSION[
|
|
68
|
+
function guessContentType(_0x18e55d) {
|
|
69
|
+
const _0x3eee79 = { _0x1b908c: 0x196 }, _0x1820ac = _0x8261f0;
|
|
70
|
+
return MIME_BY_EXTENSION[_0x500572[_0x1820ac(0x12f)](_0x18e55d)[_0x1820ac(_0x3eee79._0x1b908c)]()] ?? _0x1820ac(0x1c0);
|
|
52
71
|
}
|
|
53
|
-
function safeFilename(
|
|
54
|
-
const
|
|
55
|
-
return
|
|
72
|
+
function safeFilename(_0x5a70a1) {
|
|
73
|
+
const _0x61d04b = { _0x36d818: 0x20f }, _0x4bf483 = _0x8261f0;
|
|
74
|
+
return _0x5a70a1[_0x4bf483(_0x61d04b._0x36d818)](/[\\/]/g, '-');
|
|
56
75
|
}
|
|
57
|
-
function extensionFor(
|
|
58
|
-
const
|
|
59
|
-
return
|
|
76
|
+
function extensionFor(_0x225b16) {
|
|
77
|
+
const _0xadd7ea = { _0x36f1a3: 0x25e }, _0x434b3a = _0x8261f0, _0x300ebd = Object[_0x434b3a(_0xadd7ea._0x36f1a3)](MIME_BY_EXTENSION)[_0x434b3a(0x1ba)](([, _0xcb9a3f]) => _0xcb9a3f === _0x225b16);
|
|
78
|
+
return _0x300ebd?.[0x0] ?? '.bin';
|
|
60
79
|
}
|
|
61
|
-
async function prepareUploadFile(
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
if (!
|
|
70
|
-
throw new Error(
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
73
|
-
throw new Error(
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
throw new Error(
|
|
77
|
-
const
|
|
80
|
+
async function prepareUploadFile(_0x35eb43, _0x57243d = {}) {
|
|
81
|
+
const _0x4add79 = {
|
|
82
|
+
_0x4a69e3: 0x21d,
|
|
83
|
+
_0x534008: 0x24a,
|
|
84
|
+
_0x4fc287: 0x23f,
|
|
85
|
+
_0x45da4b: 0x18a,
|
|
86
|
+
_0x11f2de: 0x122
|
|
87
|
+
}, _0x40a3af = _0x8261f0;
|
|
88
|
+
if (!_0x500572[_0x40a3af(0x1a8)](_0x35eb43))
|
|
89
|
+
throw new Error(_0x40a3af(_0x4add79._0x4a69e3));
|
|
90
|
+
const _0x11e1d5 = await stat(_0x35eb43)['catch'](() => null);
|
|
91
|
+
if (!_0x11e1d5 || !_0x11e1d5[_0x40a3af(_0x4add79._0x534008)]())
|
|
92
|
+
throw new Error(_0x40a3af(_0x4add79._0x4fc287) + _0x35eb43);
|
|
93
|
+
const _0x4eb2b8 = _0x57243d['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
94
|
+
if (_0x11e1d5[_0x40a3af(0x18a)] > _0x4eb2b8)
|
|
95
|
+
throw new Error(_0x40a3af(0x201) + _0x11e1d5[_0x40a3af(_0x4add79._0x45da4b)]);
|
|
96
|
+
const _0x401f0b = await readFile(_0x35eb43), _0x464861 = _0x500572[_0x40a3af(0x1d0)](_0x35eb43);
|
|
78
97
|
return {
|
|
79
|
-
'contentBase64':
|
|
80
|
-
'contentType': guessContentType(
|
|
81
|
-
'filename':
|
|
82
|
-
'sizeBytes':
|
|
98
|
+
'contentBase64': _0x401f0b[_0x40a3af(0x12c)](_0x40a3af(_0x4add79._0x11f2de)),
|
|
99
|
+
'contentType': guessContentType(_0x464861),
|
|
100
|
+
'filename': _0x464861,
|
|
101
|
+
'sizeBytes': _0x11e1d5[_0x40a3af(_0x4add79._0x45da4b)]
|
|
83
102
|
};
|
|
84
103
|
}
|
|
85
|
-
function createAttachmentCache(
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
104
|
+
function createAttachmentCache(_0x570c79 = {}) {
|
|
105
|
+
const _0x364aee = {
|
|
106
|
+
_0x3add5f: 0x162,
|
|
107
|
+
_0x482b0c: 0x1ab
|
|
108
|
+
}, _0x329a27 = {
|
|
109
|
+
_0x1aca61: 0x1cd,
|
|
110
|
+
_0xb8dc40: 0x14f,
|
|
111
|
+
_0x38ecc4: 0x162,
|
|
112
|
+
_0x567792: 0x26f
|
|
113
|
+
}, _0x33372e = {
|
|
114
|
+
_0x2a9b01: 0x1ba,
|
|
115
|
+
_0x3628ba: 0x162
|
|
116
|
+
}, _0x4700e1 = _0x8261f0, _0x4a2d96 = _0x570c79['cacheDir'] ?? _0x500572[_0x4700e1(_0x364aee._0x3add5f)](homedir(), '.slock', _0x4700e1(_0x364aee._0x482b0c));
|
|
91
117
|
return {
|
|
92
|
-
'cacheDir':
|
|
93
|
-
async 'findCachedPath'(
|
|
94
|
-
const
|
|
95
|
-
await mkdir(
|
|
96
|
-
const
|
|
97
|
-
return
|
|
118
|
+
'cacheDir': _0x4a2d96,
|
|
119
|
+
async 'findCachedPath'(_0x3a9235) {
|
|
120
|
+
const _0x4184ed = _0x4700e1;
|
|
121
|
+
await mkdir(_0x4a2d96, { 'recursive': !![] });
|
|
122
|
+
const _0x594a9e = await readdir(_0x4a2d96), _0x4c8b18 = _0x594a9e[_0x4184ed(_0x33372e._0x2a9b01)](_0x5c6e95 => _0x5c6e95[_0x4184ed(0x1b0)](_0x3a9235 + '-') || _0x5c6e95['startsWith'](_0x3a9235));
|
|
123
|
+
return _0x4c8b18 ? _0x500572[_0x4184ed(_0x33372e._0x3628ba)](_0x4a2d96, _0x4c8b18) : null;
|
|
98
124
|
},
|
|
99
|
-
async 'save'(
|
|
100
|
-
const
|
|
101
|
-
await mkdir(
|
|
102
|
-
const
|
|
103
|
-
return await writeFile(
|
|
125
|
+
async 'save'(_0x38caf5) {
|
|
126
|
+
const _0x58c165 = _0x4700e1;
|
|
127
|
+
await mkdir(_0x4a2d96, { 'recursive': !![] });
|
|
128
|
+
const _0x42998e = _0x38caf5[_0x58c165(0x14f)]?.[_0x58c165(_0x329a27._0x1aca61)]() ? safeFilename(_0x38caf5[_0x58c165(_0x329a27._0xb8dc40)]) : '' + _0x38caf5[_0x58c165(0x11a)] + extensionFor(_0x38caf5[_0x58c165(0xfc)]), _0x3e2ba8 = _0x500572[_0x58c165(_0x329a27._0x38ecc4)](_0x4a2d96, _0x38caf5['attachmentId'] + '-' + _0x42998e);
|
|
129
|
+
return await writeFile(_0x3e2ba8, _0x38caf5[_0x58c165(_0x329a27._0x567792)]), _0x3e2ba8;
|
|
104
130
|
}
|
|
105
131
|
};
|
|
106
132
|
}
|
|
@@ -108,2223 +134,2258 @@ import {
|
|
|
108
134
|
createHash,
|
|
109
135
|
randomUUID
|
|
110
136
|
} from 'node:crypto';
|
|
111
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
112
|
-
function ensureSegment(
|
|
113
|
-
const
|
|
114
|
-
if (!
|
|
137
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x8261f0(0x125);
|
|
138
|
+
function ensureSegment(_0x13146c) {
|
|
139
|
+
const _0x122eac = _0x8261f0, _0x3c9ef9 = _0x13146c[_0x122eac(0x1cd)]();
|
|
140
|
+
if (!_0x3c9ef9 || _0x3c9ef9['includes'](':'))
|
|
115
141
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
116
|
-
return
|
|
142
|
+
return _0x3c9ef9;
|
|
117
143
|
}
|
|
118
|
-
function parseThreadParts(
|
|
119
|
-
const
|
|
120
|
-
|
|
144
|
+
function parseThreadParts(_0x198102) {
|
|
145
|
+
const _0x29b13a = {
|
|
146
|
+
_0x5bc33a: 0x23a,
|
|
147
|
+
_0x5e1968: 0x161
|
|
148
|
+
}, _0x17dd49 = _0x8261f0, _0x49b3d5 = _0x198102[_0x17dd49(_0x29b13a._0x5bc33a)](':');
|
|
149
|
+
if (_0x49b3d5[_0x17dd49(_0x29b13a._0x5e1968)] < 0x1 || _0x49b3d5['length'] > 0x2)
|
|
121
150
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
122
151
|
return {
|
|
123
|
-
'channelName': ensureSegment(
|
|
124
|
-
'threadShortId':
|
|
152
|
+
'channelName': ensureSegment(_0x49b3d5[0x0] ?? ''),
|
|
153
|
+
'threadShortId': _0x49b3d5[0x1] ? ensureSegment(_0x49b3d5[0x1]) : null
|
|
125
154
|
};
|
|
126
155
|
}
|
|
127
|
-
function parseTarget(
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
156
|
+
function parseTarget(_0x4beb1a) {
|
|
157
|
+
const _0x111305 = {
|
|
158
|
+
_0x54d848: 0x1f8,
|
|
159
|
+
_0x5f24c5: 0x22b,
|
|
160
|
+
_0x611401: 0x1b0,
|
|
161
|
+
_0x16daaf: 0x267,
|
|
162
|
+
_0x45e795: 0x22b,
|
|
163
|
+
_0x394ae0: 0x22b,
|
|
164
|
+
_0x38eed1: 0x1a9,
|
|
165
|
+
_0x4d5fdb: 0x242
|
|
166
|
+
}, _0x5c728c = _0x8261f0, _0x520012 = _0x4beb1a['trim']();
|
|
167
|
+
if (!_0x520012)
|
|
137
168
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
138
|
-
if (
|
|
139
|
-
const
|
|
140
|
-
if (!
|
|
169
|
+
if (_0x520012[_0x5c728c(0x1b0)]('#')) {
|
|
170
|
+
const _0x4fb3f1 = parseThreadParts(_0x520012['slice'](0x1)), _0x23dc4e = '#' + _0x4fb3f1[_0x5c728c(0x22b)];
|
|
171
|
+
if (!_0x4fb3f1[_0x5c728c(_0x111305._0x54d848)])
|
|
141
172
|
return {
|
|
142
|
-
'channelName':
|
|
143
|
-
'channelTarget':
|
|
144
|
-
'kind':
|
|
145
|
-
'target':
|
|
173
|
+
'channelName': _0x4fb3f1[_0x5c728c(_0x111305._0x5f24c5)],
|
|
174
|
+
'channelTarget': _0x23dc4e,
|
|
175
|
+
'kind': _0x5c728c(0x1a9),
|
|
176
|
+
'target': _0x23dc4e
|
|
146
177
|
};
|
|
147
178
|
return {
|
|
148
|
-
'channelName':
|
|
149
|
-
'channelTarget':
|
|
179
|
+
'channelName': _0x4fb3f1['channelName'],
|
|
180
|
+
'channelTarget': _0x23dc4e,
|
|
150
181
|
'kind': 'thread',
|
|
151
|
-
'target':
|
|
152
|
-
'threadShortId':
|
|
182
|
+
'target': _0x23dc4e + ':' + _0x4fb3f1[_0x5c728c(0x1f8)],
|
|
183
|
+
'threadShortId': _0x4fb3f1[_0x5c728c(0x1f8)]
|
|
153
184
|
};
|
|
154
185
|
}
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
if (!
|
|
186
|
+
if (_0x520012[_0x5c728c(_0x111305._0x611401)](_0x5c728c(0x1cb))) {
|
|
187
|
+
const _0x1b5622 = parseThreadParts(_0x520012[_0x5c728c(_0x111305._0x16daaf)](0x3));
|
|
188
|
+
if (!_0x1b5622[_0x5c728c(_0x111305._0x45e795)][_0x5c728c(0x1b0)]('dm-'))
|
|
158
189
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
159
|
-
const
|
|
160
|
-
if (!
|
|
190
|
+
const _0x15274f = _0x5c728c(0x1cb) + _0x1b5622[_0x5c728c(0x22b)];
|
|
191
|
+
if (!_0x1b5622[_0x5c728c(0x1f8)])
|
|
161
192
|
return {
|
|
162
|
-
'channelName':
|
|
163
|
-
'channelTarget':
|
|
164
|
-
'kind':
|
|
165
|
-
'target':
|
|
193
|
+
'channelName': _0x1b5622[_0x5c728c(_0x111305._0x394ae0)],
|
|
194
|
+
'channelTarget': _0x15274f,
|
|
195
|
+
'kind': _0x5c728c(_0x111305._0x38eed1),
|
|
196
|
+
'target': _0x15274f
|
|
166
197
|
};
|
|
167
198
|
return {
|
|
168
|
-
'channelName':
|
|
169
|
-
'channelTarget':
|
|
170
|
-
'kind':
|
|
171
|
-
'target':
|
|
172
|
-
'threadShortId':
|
|
199
|
+
'channelName': _0x1b5622[_0x5c728c(0x22b)],
|
|
200
|
+
'channelTarget': _0x15274f,
|
|
201
|
+
'kind': _0x5c728c(_0x111305._0x4d5fdb),
|
|
202
|
+
'target': _0x15274f + ':' + _0x1b5622[_0x5c728c(_0x111305._0x54d848)],
|
|
203
|
+
'threadShortId': _0x1b5622[_0x5c728c(_0x111305._0x54d848)]
|
|
173
204
|
};
|
|
174
205
|
}
|
|
175
206
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
176
207
|
}
|
|
177
|
-
function asErrorMessage(
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
208
|
+
function asErrorMessage(_0x26f884, _0x805680) {
|
|
209
|
+
const _0x219641 = {
|
|
210
|
+
_0x9e51c7: 0x23b,
|
|
211
|
+
_0x1247d8: 0x1cd
|
|
212
|
+
}, _0x13202c = _0x8261f0;
|
|
213
|
+
if (typeof _0x26f884 === _0x13202c(_0x219641._0x9e51c7) && _0x26f884[_0x13202c(_0x219641._0x1247d8)]())
|
|
214
|
+
return _0x26f884;
|
|
215
|
+
return _0x805680;
|
|
182
216
|
}
|
|
183
|
-
function asRecord(
|
|
184
|
-
const
|
|
185
|
-
return typeof
|
|
217
|
+
function asRecord(_0x392e26) {
|
|
218
|
+
const _0x39ed4f = _0x8261f0;
|
|
219
|
+
return typeof _0x392e26 === _0x39ed4f(0x1c1) && _0x392e26 !== null ? _0x392e26 : {};
|
|
186
220
|
}
|
|
187
|
-
function stableStringify(
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
return '{' + _0x32867b['join'](',') + '}';
|
|
221
|
+
function stableStringify(_0x29949c) {
|
|
222
|
+
const _0x2cee69 = {
|
|
223
|
+
_0x412ae3: 0x1c1,
|
|
224
|
+
_0x10341f: 0x21a,
|
|
225
|
+
_0x367fbf: 0x23e
|
|
226
|
+
}, _0x50aae7 = _0x8261f0;
|
|
227
|
+
if (_0x29949c === null || typeof _0x29949c !== _0x50aae7(_0x2cee69._0x412ae3))
|
|
228
|
+
return JSON[_0x50aae7(0x22e)](_0x29949c);
|
|
229
|
+
if (Array[_0x50aae7(_0x2cee69._0x10341f)](_0x29949c))
|
|
230
|
+
return '[' + _0x29949c[_0x50aae7(0x227)](_0x960be2 => stableStringify(_0x960be2))['join'](',') + ']';
|
|
231
|
+
const _0x28a5b3 = Object['entries'](_0x29949c)['filter'](([, _0x31dde5]) => _0x31dde5 !== void 0x0)[_0x50aae7(_0x2cee69._0x367fbf)](([_0x5e33a3], [_0x211e4c]) => _0x5e33a3[_0x50aae7(0x19b)](_0x211e4c))[_0x50aae7(0x227)](([_0x39fc92, _0x7f10ec]) => JSON[_0x50aae7(0x22e)](_0x39fc92) + ':' + stableStringify(_0x7f10ec));
|
|
232
|
+
return '{' + _0x28a5b3['join'](',') + '}';
|
|
200
233
|
}
|
|
201
|
-
function createHeaders(
|
|
234
|
+
function createHeaders(_0x525605) {
|
|
235
|
+
const _0x219999 = { _0x38fc36: 0x108 }, _0x1b79ba = _0x8261f0;
|
|
202
236
|
return {
|
|
203
|
-
'Content-Type':
|
|
204
|
-
'x-daemon-api-key':
|
|
237
|
+
'Content-Type': _0x1b79ba(_0x219999._0x38fc36),
|
|
238
|
+
'x-daemon-api-key': _0x525605
|
|
205
239
|
};
|
|
206
240
|
}
|
|
207
|
-
function toHttpBaseUrl(
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
_0x12f581[_0x533e0e(0x1c5)] = _0x533e0e(_0x2debac._0x3d6d0a);
|
|
241
|
+
function toHttpBaseUrl(_0x3f6abc) {
|
|
242
|
+
const _0x4970b5 = {
|
|
243
|
+
_0x31cbed: 0x225,
|
|
244
|
+
_0x1ca187: 0x20d,
|
|
245
|
+
_0x211edf: 0x12c,
|
|
246
|
+
_0x1c92e6: 0x20f
|
|
247
|
+
}, _0x3691dd = _0x8261f0, _0x27b68a = new URL(_0x3f6abc);
|
|
248
|
+
if (_0x27b68a['protocol'] === _0x3691dd(_0x4970b5._0x31cbed))
|
|
249
|
+
_0x27b68a['protocol'] = 'http:';
|
|
217
250
|
else
|
|
218
|
-
|
|
219
|
-
return
|
|
251
|
+
_0x27b68a['protocol'] === _0x3691dd(_0x4970b5._0x1ca187) && (_0x27b68a[_0x3691dd(0x27a)] = 'https:');
|
|
252
|
+
return _0x27b68a[_0x3691dd(_0x4970b5._0x211edf)]()[_0x3691dd(_0x4970b5._0x1c92e6)](/\/$/, '');
|
|
220
253
|
}
|
|
221
|
-
function isMentionBoundary(
|
|
222
|
-
|
|
254
|
+
function isMentionBoundary(_0xacf893) {
|
|
255
|
+
const _0x22cfac = { _0x2cd5fb: 0x288 }, _0x111105 = _0x8261f0;
|
|
256
|
+
return !_0xacf893 || /\s|[([{'",。!?、:;]/[_0x111105(_0x22cfac._0x2cd5fb)](_0xacf893);
|
|
223
257
|
}
|
|
224
|
-
function isMentionTerminal(
|
|
225
|
-
const
|
|
226
|
-
return !
|
|
258
|
+
function isMentionTerminal(_0x293c1a) {
|
|
259
|
+
const _0xa8d261 = { _0x43dd8b: 0x288 }, _0x2476d7 = _0x8261f0;
|
|
260
|
+
return !_0x293c1a || /\s|[)\]}'",。!?、:;,.!?]/[_0x2476d7(_0xa8d261._0x43dd8b)](_0x293c1a);
|
|
227
261
|
}
|
|
228
|
-
function buildMatchableEntries(
|
|
229
|
-
const
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
...
|
|
262
|
+
function buildMatchableEntries(_0x26d208) {
|
|
263
|
+
const _0x237415 = {
|
|
264
|
+
_0x44a461: 0x1ae,
|
|
265
|
+
_0x391c8a: 0x17a,
|
|
266
|
+
_0x29d335: 0x229,
|
|
267
|
+
_0x40a61d: 0x19c,
|
|
268
|
+
_0x166c75: 0x197
|
|
269
|
+
}, _0x5c549d = _0x8261f0, _0x33f196 = [];
|
|
270
|
+
for (const _0x2b4dfa of [
|
|
271
|
+
..._0x26d208[_0x5c549d(_0x237415._0x44a461)],
|
|
272
|
+
..._0x26d208[_0x5c549d(_0x237415._0x391c8a)]
|
|
238
273
|
]) {
|
|
239
|
-
|
|
240
|
-
'matchName':
|
|
241
|
-
'matchNameLower':
|
|
242
|
-
'participantId':
|
|
243
|
-
}),
|
|
244
|
-
'matchName':
|
|
245
|
-
'matchNameLower':
|
|
246
|
-
'participantId':
|
|
274
|
+
_0x33f196[_0x5c549d(_0x237415._0x29d335)]({
|
|
275
|
+
'matchName': _0x2b4dfa[_0x5c549d(_0x237415._0x40a61d)],
|
|
276
|
+
'matchNameLower': _0x2b4dfa[_0x5c549d(_0x237415._0x40a61d)]['toLocaleLowerCase'](),
|
|
277
|
+
'participantId': _0x2b4dfa['id']
|
|
278
|
+
}), _0x2b4dfa['id'] !== _0x2b4dfa['name'] && _0x33f196[_0x5c549d(0x229)]({
|
|
279
|
+
'matchName': _0x2b4dfa['id'],
|
|
280
|
+
'matchNameLower': _0x2b4dfa['id'][_0x5c549d(_0x237415._0x166c75)](),
|
|
281
|
+
'participantId': _0x2b4dfa['id']
|
|
247
282
|
});
|
|
248
283
|
}
|
|
249
|
-
return
|
|
284
|
+
return _0x33f196;
|
|
250
285
|
}
|
|
251
|
-
function extractMentionedParticipantIds(
|
|
252
|
-
const
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
},
|
|
261
|
-
for (let
|
|
262
|
-
if (
|
|
286
|
+
function extractMentionedParticipantIds(_0x475b20, _0x3efc10) {
|
|
287
|
+
const _0x3f7164 = {
|
|
288
|
+
_0x110183: 0x1ba,
|
|
289
|
+
_0x3993cb: 0x15c,
|
|
290
|
+
_0x1e67f4: 0x229,
|
|
291
|
+
_0x18c6e3: 0x161
|
|
292
|
+
}, _0x30f455 = {
|
|
293
|
+
_0x2c887a: 0x212,
|
|
294
|
+
_0x2811e4: 0x161
|
|
295
|
+
}, _0x55032d = _0x8261f0, _0x53f335 = buildMatchableEntries(_0x3efc10)['sort']((_0x578bad, _0x51cf0d) => _0x51cf0d[_0x55032d(0x127)][_0x55032d(0x161)] - _0x578bad[_0x55032d(0x127)]['length']), _0x251086 = [], _0x42c337 = new Set();
|
|
296
|
+
for (let _0x211459 = 0x0; _0x211459 < _0x475b20[_0x55032d(0x161)]; _0x211459 += 0x1) {
|
|
297
|
+
if (_0x475b20[_0x211459] !== '@' || !isMentionBoundary(_0x475b20[_0x211459 - 0x1]))
|
|
263
298
|
continue;
|
|
264
|
-
const
|
|
265
|
-
const
|
|
266
|
-
if (!
|
|
299
|
+
const _0x565318 = _0x475b20[_0x55032d(0x267)](_0x211459 + 0x1), _0x5dc5a2 = _0x565318['toLocaleLowerCase'](), _0x16045a = _0x53f335[_0x55032d(_0x3f7164._0x110183)](_0x219901 => {
|
|
300
|
+
const _0x185aed = _0x55032d;
|
|
301
|
+
if (!_0x5dc5a2['startsWith'](_0x219901[_0x185aed(_0x30f455._0x2c887a)]))
|
|
267
302
|
return ![];
|
|
268
|
-
return isMentionTerminal(
|
|
303
|
+
return isMentionTerminal(_0x565318[_0x219901['matchName'][_0x185aed(_0x30f455._0x2811e4)]]);
|
|
269
304
|
});
|
|
270
|
-
if (!
|
|
305
|
+
if (!_0x16045a || _0x42c337['has'](_0x16045a[_0x55032d(_0x3f7164._0x3993cb)]))
|
|
271
306
|
continue;
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
-
return _0x13322a;
|
|
275
|
-
}
|
|
276
|
-
function _0x4b05(_0x4e05fc, _0x5d36cb) {
|
|
277
|
-
_0x4e05fc = _0x4e05fc - 0x19e;
|
|
278
|
-
const _0x4219f7 = _0x4219();
|
|
279
|
-
let _0x4b051e = _0x4219f7[_0x4e05fc];
|
|
280
|
-
if (_0x4b05['RcRXoC'] === undefined) {
|
|
281
|
-
var _0x4ccf8e = function (_0x21c876) {
|
|
282
|
-
const _0x173506 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
283
|
-
let _0x3bda91 = '', _0x3a281c = '';
|
|
284
|
-
for (let _0x2e01d0 = 0x0, _0x5cf71d, _0xe7afb2, _0x13596c = 0x0; _0xe7afb2 = _0x21c876['charAt'](_0x13596c++); ~_0xe7afb2 && (_0x5cf71d = _0x2e01d0 % 0x4 ? _0x5cf71d * 0x40 + _0xe7afb2 : _0xe7afb2, _0x2e01d0++ % 0x4) ? _0x3bda91 += String['fromCharCode'](0xff & _0x5cf71d >> (-0x2 * _0x2e01d0 & 0x6)) : 0x0) {
|
|
285
|
-
_0xe7afb2 = _0x173506['indexOf'](_0xe7afb2);
|
|
286
|
-
}
|
|
287
|
-
for (let _0x5f81ee = 0x0, _0x405c28 = _0x3bda91['length']; _0x5f81ee < _0x405c28; _0x5f81ee++) {
|
|
288
|
-
_0x3a281c += '%' + ('00' + _0x3bda91['charCodeAt'](_0x5f81ee)['toString'](0x10))['slice'](-0x2);
|
|
289
|
-
}
|
|
290
|
-
return decodeURIComponent(_0x3a281c);
|
|
291
|
-
};
|
|
292
|
-
_0x4b05['JiglHC'] = _0x4ccf8e, _0x4b05['vTnDLA'] = {}, _0x4b05['RcRXoC'] = !![];
|
|
307
|
+
_0x42c337[_0x55032d(0x158)](_0x16045a[_0x55032d(_0x3f7164._0x3993cb)]), _0x251086[_0x55032d(_0x3f7164._0x1e67f4)](_0x16045a[_0x55032d(0x15c)]), _0x211459 += _0x16045a[_0x55032d(0x127)][_0x55032d(_0x3f7164._0x18c6e3)];
|
|
293
308
|
}
|
|
294
|
-
|
|
295
|
-
return !_0x2afe13 ? (_0x4b051e = _0x4b05['JiglHC'](_0x4b051e), _0x4b05['vTnDLA'][_0x2d8a02] = _0x4b051e) : _0x4b051e = _0x2afe13, _0x4b051e;
|
|
309
|
+
return _0x251086;
|
|
296
310
|
}
|
|
297
311
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
298
|
-
function anySignal(...
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
312
|
+
function anySignal(..._0x515f07) {
|
|
313
|
+
const _0x18328e = {
|
|
314
|
+
_0x46eeb7: 0x14a,
|
|
315
|
+
_0xef0859: 0x189,
|
|
316
|
+
_0x141705: 0x14d,
|
|
317
|
+
_0x3309ad: 0x248
|
|
318
|
+
}, _0x29f1b6 = _0x8261f0, _0x165ce8 = new AbortController();
|
|
319
|
+
for (const _0x3070a6 of _0x515f07) {
|
|
320
|
+
if (_0x3070a6[_0x29f1b6(_0x18328e._0x46eeb7)])
|
|
321
|
+
return _0x165ce8[_0x29f1b6(_0x18328e._0xef0859)](_0x3070a6[_0x29f1b6(_0x18328e._0x141705)]), _0x165ce8[_0x29f1b6(0x248)];
|
|
322
|
+
_0x3070a6['addEventListener'](_0x29f1b6(0x189), () => _0x165ce8['abort'](_0x3070a6[_0x29f1b6(0x14d)]), {
|
|
304
323
|
'once': !![],
|
|
305
|
-
'signal':
|
|
324
|
+
'signal': _0x165ce8[_0x29f1b6(_0x18328e._0x3309ad)]
|
|
306
325
|
});
|
|
307
326
|
}
|
|
308
|
-
return
|
|
327
|
+
return _0x165ce8[_0x29f1b6(0x248)];
|
|
309
328
|
}
|
|
310
|
-
function createInternalAgentClient(
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
},
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
return _0xc066d1(_0x3d1cfe._0x19945c) + _0x177f67[_0xc066d1(_0x3d1cfe._0x23513d)] + '\x20返回了非\x20JSON\x20响应(status=' + _0x177f67['response'][_0xc066d1(0x212)] + _0xc066d1(_0x3d1cfe._0x558ead) + _0x2b7a24 + ',\x20preview=' + _0x332320 + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
329
|
+
function createInternalAgentClient(_0x121571) {
|
|
330
|
+
const _0x25f50b = {
|
|
331
|
+
_0x31ab9a: 0x145,
|
|
332
|
+
_0x58cdc: 0x23d,
|
|
333
|
+
_0x27d2d9: 0x1cc,
|
|
334
|
+
_0x253853: 0x1cd,
|
|
335
|
+
_0x48fdaa: 0x26b,
|
|
336
|
+
_0x2cc1c3: 0x284
|
|
337
|
+
}, _0x5132a9 = {
|
|
338
|
+
_0x1dcf7c: 0x149,
|
|
339
|
+
_0x4ef980: 0x12c,
|
|
340
|
+
_0x519761: 0x282,
|
|
341
|
+
_0x4a664c: 0x27d,
|
|
342
|
+
_0x2a6b70: 0x26f,
|
|
343
|
+
_0x1bf9b7: 0x243,
|
|
344
|
+
_0x22fa0c: 0x161,
|
|
345
|
+
_0x38bdfc: 0x27f,
|
|
346
|
+
_0x21d1b3: 0x1dc,
|
|
347
|
+
_0x3a2863: 0x22f,
|
|
348
|
+
_0x14b974: 0x227,
|
|
349
|
+
_0x490b75: 0x173,
|
|
350
|
+
_0x3273fb: 0x23b,
|
|
351
|
+
_0x331183: 0x1af,
|
|
352
|
+
_0x4ec557: 0x23b,
|
|
353
|
+
_0x31b2b8: 0x10e,
|
|
354
|
+
_0x14e440: 0x10e,
|
|
355
|
+
_0x547d77: 0x256,
|
|
356
|
+
_0x1f4931: 0x114,
|
|
357
|
+
_0x2b029d: 0x229,
|
|
358
|
+
_0x35c50b: 0x21f,
|
|
359
|
+
_0x1be51d: 0x21f,
|
|
360
|
+
_0x1c2c8f: 0x232,
|
|
361
|
+
_0x51e348: 0x166,
|
|
362
|
+
_0x2a17b3: 0x16f,
|
|
363
|
+
_0x32468b: 0x1f0,
|
|
364
|
+
_0x1afb15: 0x160,
|
|
365
|
+
_0x1d31a6: 0x22f
|
|
366
|
+
}, _0x4d5bbe = { _0x57c178: 0x173 }, _0xda8306 = {
|
|
367
|
+
_0xc6e4c4: 0x22d,
|
|
368
|
+
_0x585592: 0x173,
|
|
369
|
+
_0x1ed814: 0x1d7
|
|
370
|
+
}, _0x2fa5e7 = {
|
|
371
|
+
_0x52dd4b: 0x124,
|
|
372
|
+
_0x37ae2b: 0x27d,
|
|
373
|
+
_0x4135ac: 0x180,
|
|
374
|
+
_0x5b834c: 0x27d,
|
|
375
|
+
_0xde7cff: 0x11e,
|
|
376
|
+
_0x19d442: 0xfc,
|
|
377
|
+
_0x22b55b: 0x160,
|
|
378
|
+
_0x1f7ad0: 0x18c
|
|
379
|
+
}, _0xa881d3 = {
|
|
380
|
+
_0x5b962d: 0x1af,
|
|
381
|
+
_0x550737: 0x22e,
|
|
382
|
+
_0x3326e5: 0x18b,
|
|
383
|
+
_0x1801ee: 0x1c2
|
|
384
|
+
}, _0x3ee0d4 = {
|
|
385
|
+
_0x493454: 0x17c,
|
|
386
|
+
_0x1c5eb3: 0x22e,
|
|
387
|
+
_0x50ff41: 0x16d
|
|
388
|
+
}, _0x34af88 = {
|
|
389
|
+
_0x211e9c: 0x17c,
|
|
390
|
+
_0xa3d51c: 0x274,
|
|
391
|
+
_0x16be3d: 0x152,
|
|
392
|
+
_0x1803d1: 0x22e
|
|
393
|
+
}, _0x1375ee = { _0x528afb: 0x18b }, _0x2f7554 = {
|
|
394
|
+
_0x3c356c: 0x17c,
|
|
395
|
+
_0x10cc26: 0x274,
|
|
396
|
+
_0x46e582: 0x22e
|
|
397
|
+
}, _0x5ee41a = {
|
|
398
|
+
_0x33eb10: 0x232,
|
|
399
|
+
_0x1a9529: 0x1a9,
|
|
400
|
+
_0x3db519: 0x128,
|
|
401
|
+
_0x3d5744: 0x17c,
|
|
402
|
+
_0x3beb2b: 0x132,
|
|
403
|
+
_0x4c6e70: 0x27d
|
|
404
|
+
}, _0x52eb8e = {
|
|
405
|
+
_0x16c5f7: 0x21e,
|
|
406
|
+
_0x1af246: 0x22e,
|
|
407
|
+
_0x21fe20: 0x23c,
|
|
408
|
+
_0x24b330: 0x10d,
|
|
409
|
+
_0x530d16: 0x18b,
|
|
410
|
+
_0x1e4cce: 0x26f,
|
|
411
|
+
_0x5f2ed6: 0x21e
|
|
412
|
+
}, _0x243827 = {
|
|
413
|
+
_0x5d9389: 0x168,
|
|
414
|
+
_0x13927e: 0x22e,
|
|
415
|
+
_0x5719a3: 0x21e
|
|
416
|
+
}, _0x11e327 = { _0x282ef8: 0x26f }, _0x581fbc = { _0x1b11c8: 0x26f }, _0x59f731 = {
|
|
417
|
+
_0x4c9bfa: 0x26d,
|
|
418
|
+
_0x694abe: 0x17c,
|
|
419
|
+
_0x1d5215: 0x173,
|
|
420
|
+
_0x1c135d: 0x161,
|
|
421
|
+
_0x498419: 0x1af,
|
|
422
|
+
_0x50d2d2: 0x26f
|
|
423
|
+
}, _0x4b0717 = {
|
|
424
|
+
_0x24b722: 0x1af,
|
|
425
|
+
_0x1f6918: 0x173,
|
|
426
|
+
_0xec12b1: 0x232,
|
|
427
|
+
_0x35fcc6: 0x27d,
|
|
428
|
+
_0x41f018: 0x227,
|
|
429
|
+
_0x47a267: 0x13d,
|
|
430
|
+
_0x3b745c: 0x243
|
|
431
|
+
}, _0xcc6baa = { _0x10713a: 0x188 }, _0x13044e = {
|
|
432
|
+
_0x17c1e4: 0x200,
|
|
433
|
+
_0x426237: 0x188
|
|
434
|
+
}, _0x5db1aa = {
|
|
435
|
+
_0x314505: 0x10e,
|
|
436
|
+
_0xeaaf80: 0x1f8,
|
|
437
|
+
_0x39a862: 0x1b0,
|
|
438
|
+
_0x267123: 0x1af,
|
|
439
|
+
_0x2eb76f: 0x1af
|
|
440
|
+
}, _0x576e2f = {
|
|
441
|
+
_0x22b285: 0x114,
|
|
442
|
+
_0x3f4ac: 0x1ed,
|
|
443
|
+
_0x11bfef: 0x267,
|
|
444
|
+
_0xd36b51: 0x1ed
|
|
445
|
+
}, _0x37b362 = {
|
|
446
|
+
_0x2319e5: 0x1ae,
|
|
447
|
+
_0x5d3f45: 0x13a,
|
|
448
|
+
_0x29551c: 0x1d6
|
|
449
|
+
}, _0x191da9 = {
|
|
450
|
+
_0x26efbd: 0x14b,
|
|
451
|
+
_0x143284: 0x24e
|
|
452
|
+
}, _0x2604e8 = {
|
|
453
|
+
_0x5a09ab: 0x20c,
|
|
454
|
+
_0x4d68e2: 0x22e,
|
|
455
|
+
_0x1472cf: 0x18b,
|
|
456
|
+
_0x300d73: 0x26f,
|
|
457
|
+
_0x54ae5f: 0x1b7,
|
|
458
|
+
_0x55d530: 0x114
|
|
459
|
+
}, _0x10fddb = { _0x3840bc: 0x22e }, _0x3f1b6e = {
|
|
460
|
+
_0x546f0f: 0x248,
|
|
461
|
+
_0xa58cd4: 0x248,
|
|
462
|
+
_0x1bc8e5: 0x23c,
|
|
463
|
+
_0x53e503: 0x128
|
|
464
|
+
}, _0x3bb67c = {
|
|
465
|
+
_0x359103: 0x248,
|
|
466
|
+
_0xa4693d: 0x204,
|
|
467
|
+
_0xf90f7d: 0x11e
|
|
468
|
+
}, _0x3e0f88 = {
|
|
469
|
+
_0x23aa12: 0x276,
|
|
470
|
+
_0x42d38d: 0x10b,
|
|
471
|
+
_0x3b8125: 0x21c,
|
|
472
|
+
_0x2b6694: 0x262,
|
|
473
|
+
_0x175676: 0x160,
|
|
474
|
+
_0x3909d1: 0x203
|
|
475
|
+
}, _0x1d9c23 = {
|
|
476
|
+
_0x98a454: 0x16b,
|
|
477
|
+
_0x574390: 0x1cd
|
|
478
|
+
}, _0x9629e7 = {
|
|
479
|
+
_0x5b2d80: 0x213,
|
|
480
|
+
_0xc60927: 0x1cd,
|
|
481
|
+
_0x1ae121: 0x13b,
|
|
482
|
+
_0x39df72: 0x1d4,
|
|
483
|
+
_0x5b23c1: 0x1a2,
|
|
484
|
+
_0x2fd177: 0x213,
|
|
485
|
+
_0x3a7fc5: 0x128,
|
|
486
|
+
_0x3bd8d1: 0x217
|
|
487
|
+
}, _0x4505d3 = _0x8261f0, _0x3fc39f = _0x121571[_0x4505d3(_0x25f50b._0x31ab9a)] ?? fetch, _0xe98c44 = _0x121571['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x5a1c75 = typeof _0x121571[_0x4505d3(0x1cc)] === _0x4505d3(_0x25f50b._0x58cdc) && _0x121571['initialLastSeenSeq'] > 0x0 ? _0x121571[_0x4505d3(_0x25f50b._0x27d2d9)] : 0x0, _0x2a81b8 = _0x121571[_0x4505d3(0x1bd)]?.[_0x4505d3(_0x25f50b._0x253853)]() || void 0x0, _0x39bdd9 = _0x121571[_0x4505d3(0x129)]?.['trim']() || void 0x0, _0x43ce73 = _0x121571[_0x4505d3(0x1f9)] === !![], _0x2b73fb = _0x121571[_0x4505d3(0x20b)]?.['trim']() || void 0x0, _0x3f73a8 = _0x121571[_0x4505d3(0x151)]?.[_0x4505d3(0x1cd)]() || void 0x0, _0x5600aa = createHeaders(_0x121571[_0x4505d3(_0x25f50b._0x48fdaa)]), _0x68e384 = toHttpBaseUrl(_0x121571[_0x4505d3(_0x25f50b._0x2cc1c3)]);
|
|
488
|
+
let _0xf51ee1 = null;
|
|
489
|
+
const _0x1b75fa = new Map();
|
|
490
|
+
let _0x263d34 = _0x5a1c75, _0x1b584f = _0x5a1c75;
|
|
491
|
+
function _0x3c6330(_0x34db98) {
|
|
492
|
+
const _0x2ad9fa = _0x4505d3, _0xd7fa94 = _0x34db98[_0x2ad9fa(_0x9629e7._0x5b2d80)][_0x2ad9fa(0x100)][_0x2ad9fa(0x160)](_0x2ad9fa(0x18c)) ?? 'unknown', _0x45e83b = _0x34db98['bodyText'][_0x2ad9fa(_0x9629e7._0xc60927)]()[_0x2ad9fa(0x20f)](/\s+/g, '\x20')[_0x2ad9fa(0x267)](0x0, 0x78) || _0x2ad9fa(_0x9629e7._0x1ae121);
|
|
493
|
+
return _0x2ad9fa(0x1eb) + _0x34db98[_0x2ad9fa(_0x9629e7._0x39df72)] + _0x2ad9fa(_0x9629e7._0x5b23c1) + _0x34db98[_0x2ad9fa(_0x9629e7._0x2fd177)][_0x2ad9fa(_0x9629e7._0x3a7fc5)] + ',\x20content-type=' + _0xd7fa94 + ',\x20preview=' + _0x45e83b + _0x2ad9fa(_0x9629e7._0x3bd8d1);
|
|
476
494
|
}
|
|
477
|
-
async function
|
|
478
|
-
const
|
|
479
|
-
if (!
|
|
495
|
+
async function _0x152a7c(_0x4c91bd, _0x7f31b8) {
|
|
496
|
+
const _0x1cc3c0 = _0x4505d3, _0x10d539 = Buffer['from'](await _0x7f31b8[_0x1cc3c0(_0x1d9c23._0x98a454)]())['toString'](_0x1cc3c0(0x141));
|
|
497
|
+
if (!_0x10d539[_0x1cc3c0(_0x1d9c23._0x574390)]())
|
|
480
498
|
return {};
|
|
481
499
|
try {
|
|
482
|
-
return JSON[
|
|
500
|
+
return JSON['parse'](_0x10d539);
|
|
483
501
|
} catch {
|
|
484
|
-
throw new Error(
|
|
485
|
-
'bodyText':
|
|
486
|
-
'requestUrl':
|
|
487
|
-
'response':
|
|
502
|
+
throw new Error(_0x3c6330({
|
|
503
|
+
'bodyText': _0x10d539,
|
|
504
|
+
'requestUrl': _0x4c91bd,
|
|
505
|
+
'response': _0x7f31b8
|
|
488
506
|
}));
|
|
489
507
|
}
|
|
490
508
|
}
|
|
491
|
-
function
|
|
492
|
-
const
|
|
493
|
-
if (
|
|
494
|
-
return
|
|
495
|
-
const
|
|
496
|
-
for (const [
|
|
497
|
-
|
|
509
|
+
function _0x5dc460(_0x5ce339, _0x37c62f) {
|
|
510
|
+
const _0x313a8c = _0x4505d3, _0x3b1f86 = typeof _0x37c62f[_0x313a8c(0x15a)] === _0x313a8c(0x23b) ? _0x37c62f['idempotency_key'][_0x313a8c(0x1cd)]() : '';
|
|
511
|
+
if (_0x3b1f86)
|
|
512
|
+
return _0x3b1f86;
|
|
513
|
+
const _0x4beec9 = Date[_0x313a8c(0x24d)]();
|
|
514
|
+
for (const [_0x1b6de3, _0x3d34a4] of _0x1b75fa) {
|
|
515
|
+
_0x3d34a4[_0x313a8c(_0x3e0f88._0x23aa12)] <= _0x4beec9 && _0x1b75fa[_0x313a8c(0x1b1)](_0x1b6de3);
|
|
498
516
|
}
|
|
499
|
-
const
|
|
500
|
-
...
|
|
517
|
+
const _0x30539c = {
|
|
518
|
+
..._0x37c62f,
|
|
501
519
|
'idempotency_key': void 0x0
|
|
502
|
-
},
|
|
503
|
-
if (
|
|
504
|
-
return
|
|
505
|
-
const
|
|
506
|
-
return
|
|
507
|
-
'expiresAt':
|
|
508
|
-
'value':
|
|
509
|
-
}),
|
|
520
|
+
}, _0x50ffb7 = createHash(_0x313a8c(0x1df))[_0x313a8c(_0x3e0f88._0x42d38d)](_0x5ce339 + ':' + stableStringify(_0x30539c))[_0x313a8c(_0x3e0f88._0x3b8125)](_0x313a8c(_0x3e0f88._0x2b6694)), _0x1e9d61 = _0x5ce339 + ':' + _0x50ffb7, _0xa08d20 = _0x1b75fa[_0x313a8c(_0x3e0f88._0x175676)](_0x1e9d61);
|
|
521
|
+
if (_0xa08d20)
|
|
522
|
+
return _0xa08d20[_0x313a8c(_0x3e0f88._0x3909d1)];
|
|
523
|
+
const _0x34073a = _0x313a8c(0x169) + _0x5ce339 + ':' + randomUUID();
|
|
524
|
+
return _0x1b75fa[_0x313a8c(0x232)](_0x1e9d61, {
|
|
525
|
+
'expiresAt': _0x4beec9 + 0x5 * 0x3c * 0x3e8,
|
|
526
|
+
'value': _0x34073a
|
|
527
|
+
}), _0x34073a;
|
|
510
528
|
}
|
|
511
|
-
async function
|
|
512
|
-
const
|
|
529
|
+
async function _0x4827de(_0x211cf1, _0x4a6858) {
|
|
530
|
+
const _0x3d471b = _0x4505d3, _0x4429b6 = new AbortController(), _0x306a6d = setTimeout(() => _0x4429b6[_0x3d471b(0x189)](), _0xe98c44), _0x551108 = _0x4a6858?.['signal'] ? anySignal(_0x4a6858['signal'], _0x4429b6[_0x3d471b(0x248)]) : _0x4429b6[_0x3d471b(_0x3bb67c._0x359103)], _0x13a8e3 = '' + _0x68e384 + _0x211cf1;
|
|
513
531
|
try {
|
|
514
|
-
const
|
|
515
|
-
...
|
|
516
|
-
'signal':
|
|
517
|
-
}),
|
|
518
|
-
if (!
|
|
519
|
-
throw new Error(asErrorMessage(
|
|
520
|
-
return
|
|
532
|
+
const _0x5d5aef = await _0x3fc39f(_0x13a8e3, {
|
|
533
|
+
..._0x4a6858,
|
|
534
|
+
'signal': _0x551108
|
|
535
|
+
}), _0x35237d = await _0x152a7c(_0x13a8e3, _0x5d5aef);
|
|
536
|
+
if (!_0x5d5aef['ok'] || _0x35237d[_0x3d471b(_0x3bb67c._0xa4693d)] === ![])
|
|
537
|
+
throw new Error(asErrorMessage(_0x35237d[_0x3d471b(0x23c)], _0x3d471b(_0x3bb67c._0xf90f7d) + _0x5d5aef[_0x3d471b(0x128)]));
|
|
538
|
+
return _0x35237d;
|
|
521
539
|
} finally {
|
|
522
|
-
clearTimeout(
|
|
540
|
+
clearTimeout(_0x306a6d);
|
|
523
541
|
}
|
|
524
542
|
}
|
|
525
|
-
async function
|
|
526
|
-
const
|
|
543
|
+
async function _0x46540b(_0xb4c4fd, _0xd4479c) {
|
|
544
|
+
const _0x33ed85 = _0x4505d3, _0x5f13b6 = new AbortController(), _0x393900 = setTimeout(() => _0x5f13b6['abort'](), _0xe98c44), _0x5bf20d = _0xd4479c?.[_0x33ed85(_0x3f1b6e._0x546f0f)] ? anySignal(_0xd4479c[_0x33ed85(0x248)], _0x5f13b6[_0x33ed85(_0x3f1b6e._0xa58cd4)]) : _0x5f13b6[_0x33ed85(_0x3f1b6e._0xa58cd4)], _0x40e383 = '' + _0x68e384 + _0xb4c4fd;
|
|
527
545
|
try {
|
|
528
|
-
const
|
|
529
|
-
...
|
|
530
|
-
'signal':
|
|
531
|
-
}),
|
|
532
|
-
if (!
|
|
533
|
-
throw new Error(asErrorMessage(
|
|
534
|
-
return
|
|
546
|
+
const _0x3a868f = await _0x3fc39f(_0x40e383, {
|
|
547
|
+
..._0xd4479c,
|
|
548
|
+
'signal': _0x5bf20d
|
|
549
|
+
}), _0x41c666 = await _0x152a7c(_0x40e383, _0x3a868f);
|
|
550
|
+
if (!_0x3a868f['ok'])
|
|
551
|
+
throw new Error(asErrorMessage(_0x41c666[_0x33ed85(_0x3f1b6e._0x1bc8e5)], _0x33ed85(0x11e) + _0x3a868f[_0x33ed85(_0x3f1b6e._0x53e503)]));
|
|
552
|
+
return _0x41c666;
|
|
535
553
|
} finally {
|
|
536
|
-
clearTimeout(
|
|
554
|
+
clearTimeout(_0x393900);
|
|
537
555
|
}
|
|
538
556
|
}
|
|
539
|
-
async function
|
|
540
|
-
const
|
|
541
|
-
if (!
|
|
557
|
+
async function _0xcc7607(_0x289918) {
|
|
558
|
+
const _0x7ba00d = _0x4505d3;
|
|
559
|
+
if (!_0x39bdd9 || _0x289918 <= _0x1b584f)
|
|
542
560
|
return;
|
|
543
|
-
await
|
|
544
|
-
'body': JSON[
|
|
545
|
-
'headers':
|
|
561
|
+
await _0x4827de('/api/agent-sessions/' + encodeURIComponent(_0x39bdd9) + _0x7ba00d(0x250), {
|
|
562
|
+
'body': JSON[_0x7ba00d(_0x10fddb._0x3840bc)]({ 'lastSeenSeq': _0x289918 }),
|
|
563
|
+
'headers': _0x5600aa,
|
|
546
564
|
'method': 'PATCH'
|
|
547
|
-
}),
|
|
565
|
+
}), _0x1b584f = _0x289918;
|
|
548
566
|
}
|
|
549
|
-
async function
|
|
550
|
-
const
|
|
551
|
-
if (!
|
|
567
|
+
async function _0x1303b4(_0x9dc5ac) {
|
|
568
|
+
const _0x3d4f6a = _0x4505d3;
|
|
569
|
+
if (!_0x2a81b8 || !_0x2b73fb || _0x9dc5ac <= _0x1b584f)
|
|
552
570
|
return;
|
|
553
|
-
const
|
|
554
|
-
'body': JSON[
|
|
555
|
-
'last_seen_seq':
|
|
556
|
-
'worker_session_id':
|
|
571
|
+
const _0x1193a3 = await _0x3fc39f(_0x2a81b8 + _0x3d4f6a(0x1a5), {
|
|
572
|
+
'body': JSON[_0x3d4f6a(0x22e)]({
|
|
573
|
+
'last_seen_seq': _0x9dc5ac,
|
|
574
|
+
'worker_session_id': _0x2b73fb
|
|
557
575
|
}),
|
|
558
|
-
'headers': { 'Content-Type':
|
|
559
|
-
'method':
|
|
576
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
577
|
+
'method': _0x3d4f6a(0x18b)
|
|
560
578
|
});
|
|
561
|
-
if (!
|
|
562
|
-
throw new Error(
|
|
563
|
-
|
|
579
|
+
if (!_0x1193a3['ok'])
|
|
580
|
+
throw new Error('HTTP\x20' + _0x1193a3['status']);
|
|
581
|
+
_0x1b584f = _0x9dc5ac;
|
|
564
582
|
}
|
|
565
|
-
async function
|
|
566
|
-
const
|
|
567
|
-
'body': JSON[
|
|
568
|
-
'headers':
|
|
569
|
-
'method':
|
|
583
|
+
async function _0x251db6(_0x690fa8) {
|
|
584
|
+
const _0x145915 = _0x4505d3, _0x19de6f = parseTarget(_0x690fa8), _0x21e6b6 = await _0x4827de(_0x145915(0x17c) + _0x121571['agentId'] + _0x145915(_0x2604e8._0x5a09ab), {
|
|
585
|
+
'body': JSON[_0x145915(_0x2604e8._0x4d68e2)]({ 'target': _0x19de6f[_0x145915(0x143)] }),
|
|
586
|
+
'headers': _0x5600aa,
|
|
587
|
+
'method': _0x145915(_0x2604e8._0x1472cf)
|
|
570
588
|
});
|
|
571
589
|
return {
|
|
572
|
-
'channelId':
|
|
573
|
-
'target':
|
|
574
|
-
'task':
|
|
575
|
-
'threadId':
|
|
576
|
-
'threadNumber':
|
|
590
|
+
'channelId': _0x21e6b6[_0x145915(_0x2604e8._0x300d73)]?.[_0x145915(0x173)] ?? '',
|
|
591
|
+
'target': _0x19de6f['channelTarget'],
|
|
592
|
+
'task': _0x21e6b6['data']?.[_0x145915(_0x2604e8._0x54ae5f)],
|
|
593
|
+
'threadId': _0x21e6b6[_0x145915(_0x2604e8._0x300d73)]?.['threadId'],
|
|
594
|
+
'threadNumber': _0x21e6b6[_0x145915(_0x2604e8._0x300d73)]?.[_0x145915(_0x2604e8._0x55d530)]
|
|
577
595
|
};
|
|
578
596
|
}
|
|
579
|
-
async function
|
|
580
|
-
const
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
597
|
+
async function _0x9385ec(_0x2322a7 = {}) {
|
|
598
|
+
const _0x3daa21 = {
|
|
599
|
+
_0x3c1efe: 0x17c,
|
|
600
|
+
_0x5e0f46: 0x1bb,
|
|
601
|
+
_0x534162: 0x27d,
|
|
602
|
+
_0x21a85b: 0x1b6,
|
|
603
|
+
_0x122243: 0x22f,
|
|
604
|
+
_0x21ee30: 0x22f,
|
|
605
|
+
_0x21065a: 0x183,
|
|
606
|
+
_0x165c1b: 0x112,
|
|
607
|
+
_0x3d2f22: 0x19c
|
|
608
|
+
}, _0x544665 = _0x4505d3;
|
|
609
|
+
if (!_0x2322a7[_0x544665(_0x191da9._0x26efbd)] && _0xf51ee1)
|
|
610
|
+
return _0xf51ee1;
|
|
611
|
+
return _0xf51ee1 = (async () => {
|
|
612
|
+
const _0x490b63 = _0x544665, _0x194304 = await _0x4827de(_0x490b63(_0x3daa21._0x3c1efe) + _0x121571[_0x490b63(0x274)] + _0x490b63(_0x3daa21._0x5e0f46), {
|
|
613
|
+
'headers': _0x5600aa,
|
|
614
|
+
'method': _0x490b63(_0x3daa21._0x534162)
|
|
615
|
+
}), _0x5120fb = _0x194304[_0x490b63(0x26f)]?.[_0x490b63(_0x3daa21._0x21a85b)] ?? [], _0x44b2eb = _0x5120fb[_0x490b63(_0x3daa21._0x122243)](_0x2f94ef => _0x2f94ef[_0x490b63(0x188)]?.[_0x490b63(0x202)] === _0x490b63(0x13a))[_0x490b63(0x227)](_0x2d77b9 => ({
|
|
616
|
+
'id': _0xee3189(_0x2d77b9),
|
|
617
|
+
'name': _0x274032(_0x2d77b9)
|
|
618
|
+
}))[_0x490b63(0x22f)](_0x4d0585 => _0x4d0585['id']), _0x340539 = _0x5120fb[_0x490b63(_0x3daa21._0x21ee30)](_0x48b9ab => _0x48b9ab[_0x490b63(0x188)]?.[_0x490b63(0x202)] !== _0x490b63(0x13a))[_0x490b63(0x227)](_0x29bb5a => ({
|
|
619
|
+
'id': _0xee3189(_0x29bb5a),
|
|
620
|
+
'name': _0x274032(_0x29bb5a)
|
|
621
|
+
}))[_0x490b63(0x22f)](_0x51d38e => _0x51d38e['id']), _0x555ebc = _0x194304[_0x490b63(0x26f)]?.[_0x490b63(_0x3daa21._0x21065a)]['id'] ?? '';
|
|
594
622
|
return {
|
|
595
|
-
'agents':
|
|
596
|
-
'channels':
|
|
597
|
-
'humans':
|
|
598
|
-
'serverId':
|
|
599
|
-
'serverName':
|
|
623
|
+
'agents': _0x44b2eb,
|
|
624
|
+
'channels': _0x194304['data']?.[_0x490b63(_0x3daa21._0x165c1b)] ?? [],
|
|
625
|
+
'humans': _0x340539,
|
|
626
|
+
'serverId': _0x555ebc,
|
|
627
|
+
'serverName': _0x194304['data']?.['server'][_0x490b63(_0x3daa21._0x3d2f22)] ?? _0x555ebc
|
|
600
628
|
};
|
|
601
|
-
})()[
|
|
602
|
-
|
|
603
|
-
throw
|
|
604
|
-
}),
|
|
629
|
+
})()[_0x544665(_0x191da9._0x143284)](_0x160286 => {
|
|
630
|
+
_0xf51ee1 = null;
|
|
631
|
+
throw _0x160286;
|
|
632
|
+
}), _0xf51ee1;
|
|
605
633
|
}
|
|
606
|
-
function
|
|
607
|
-
const
|
|
608
|
-
return
|
|
634
|
+
function _0x2adde2(_0x47d6dd, _0x39cfbd) {
|
|
635
|
+
const _0xce2081 = _0x4505d3;
|
|
636
|
+
return _0x39cfbd[_0xce2081(_0x37b362._0x2319e5)][_0xce2081(0x24f)](_0x3d911f => _0x3d911f['id'] === _0x47d6dd || _0x3d911f[_0xce2081(0x19c)] === _0x47d6dd) ? _0xce2081(_0x37b362._0x5d3f45) : _0xce2081(_0x37b362._0x29551c);
|
|
609
637
|
}
|
|
610
|
-
function
|
|
611
|
-
const
|
|
612
|
-
if (
|
|
613
|
-
return
|
|
614
|
-
if (
|
|
615
|
-
return
|
|
616
|
-
if (
|
|
617
|
-
return
|
|
618
|
-
return
|
|
638
|
+
function _0x48aac5(_0x129a51) {
|
|
639
|
+
const _0x330d3c = _0x4505d3;
|
|
640
|
+
if (_0x129a51[_0x330d3c(_0x576e2f._0x22b285)] != null)
|
|
641
|
+
return _0x129a51[_0x330d3c(_0x576e2f._0x3f4ac)] + ':t' + _0x129a51[_0x330d3c(0x114)];
|
|
642
|
+
if (_0x129a51[_0x330d3c(0x10e)])
|
|
643
|
+
return _0x129a51[_0x330d3c(0x1ed)] + ':' + _0x129a51[_0x330d3c(0x10e)];
|
|
644
|
+
if (_0x129a51[_0x330d3c(0x1af)])
|
|
645
|
+
return _0x129a51[_0x330d3c(_0x576e2f._0x3f4ac)] + ':' + _0x129a51['threadId'][_0x330d3c(_0x576e2f._0x11bfef)](0x0, 0x8);
|
|
646
|
+
return _0x129a51[_0x330d3c(_0x576e2f._0xd36b51)];
|
|
619
647
|
}
|
|
620
|
-
function
|
|
621
|
-
const
|
|
648
|
+
function _0x1d9e41(_0x4ff32c, _0x7396b3) {
|
|
649
|
+
const _0x3cf5d4 = _0x4505d3;
|
|
622
650
|
try {
|
|
623
|
-
const
|
|
624
|
-
if (
|
|
651
|
+
const _0x375025 = parseTarget(_0x4ff32c);
|
|
652
|
+
if (_0x375025[_0x3cf5d4(0x16f)] !== 'thread' || _0x375025[_0x3cf5d4(0x1ed)] !== _0x7396b3['channelTarget'])
|
|
625
653
|
return ![];
|
|
626
|
-
if (
|
|
654
|
+
if (_0x7396b3[_0x3cf5d4(0x114)] != null && _0x375025[_0x3cf5d4(0x1f8)] === 't' + _0x7396b3[_0x3cf5d4(0x114)])
|
|
627
655
|
return !![];
|
|
628
|
-
if (
|
|
629
|
-
return
|
|
630
|
-
if (
|
|
631
|
-
return
|
|
656
|
+
if (_0x7396b3[_0x3cf5d4(_0x5db1aa._0x314505)])
|
|
657
|
+
return _0x375025[_0x3cf5d4(_0x5db1aa._0xeaaf80)] === _0x7396b3[_0x3cf5d4(_0x5db1aa._0x314505)] || _0x7396b3[_0x3cf5d4(_0x5db1aa._0x314505)][_0x3cf5d4(_0x5db1aa._0x39a862)](_0x375025[_0x3cf5d4(_0x5db1aa._0xeaaf80)]);
|
|
658
|
+
if (_0x7396b3[_0x3cf5d4(_0x5db1aa._0x267123)])
|
|
659
|
+
return _0x375025[_0x3cf5d4(0x1f8)] === _0x7396b3[_0x3cf5d4(0x1af)] || _0x7396b3[_0x3cf5d4(_0x5db1aa._0x2eb76f)]['startsWith'](_0x375025[_0x3cf5d4(0x1f8)]);
|
|
632
660
|
return ![];
|
|
633
661
|
} catch {
|
|
634
662
|
return ![];
|
|
635
663
|
}
|
|
636
664
|
}
|
|
637
|
-
function
|
|
638
|
-
const
|
|
639
|
-
return
|
|
665
|
+
function _0xee3189(_0x2c4057) {
|
|
666
|
+
const _0xdec599 = _0x4505d3;
|
|
667
|
+
return _0x2c4057[_0xdec599(_0x13044e._0x17c1e4)]?.[_0xdec599(0x15c)] ?? _0x2c4057[_0xdec599(_0x13044e._0x426237)]?.['id'] ?? _0x2c4057[_0xdec599(0x15c)] ?? '';
|
|
640
668
|
}
|
|
641
|
-
function
|
|
642
|
-
const
|
|
643
|
-
return
|
|
669
|
+
function _0x274032(_0x56a67d) {
|
|
670
|
+
const _0x5e2ceb = _0x4505d3;
|
|
671
|
+
return _0x56a67d[_0x5e2ceb(_0xcc6baa._0x10713a)]?.[_0x5e2ceb(0x19c)] ?? _0xee3189(_0x56a67d);
|
|
644
672
|
}
|
|
645
|
-
async function
|
|
646
|
-
const
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
const
|
|
652
|
-
'headers':
|
|
653
|
-
'method':
|
|
654
|
-
}),
|
|
655
|
-
'attachments': (
|
|
656
|
-
'filename':
|
|
657
|
-
'id':
|
|
673
|
+
async function _0x2f39e8(_0x376745) {
|
|
674
|
+
const _0x7ce485 = _0x4505d3, _0x49fce4 = Math[_0x7ce485(0x103)](_0x376745['limit'] ?? 0x32, 0x64), _0x51ba36 = await _0x9385ec(), _0x4e8812 = new URLSearchParams();
|
|
675
|
+
_0x4e8812['set']('limit', String(_0x49fce4));
|
|
676
|
+
_0x376745[_0x7ce485(0x1af)] ? (_0x4e8812[_0x7ce485(0x232)]('threadId', _0x376745[_0x7ce485(_0x4b0717._0x24b722)]), _0x4e8812[_0x7ce485(0x232)](_0x7ce485(0x173), _0x376745[_0x7ce485(_0x4b0717._0x1f6918)])) : _0x4e8812['set']('channelId', _0x376745['channelId']);
|
|
677
|
+
_0x376745[_0x7ce485(0x18f)] && _0x4e8812[_0x7ce485(0x232)](_0x7ce485(0x243), String(_0x376745[_0x7ce485(0x18f)]));
|
|
678
|
+
_0x376745[_0x7ce485(0x22d)] !== void 0x0 && _0x4e8812[_0x7ce485(_0x4b0717._0xec12b1)](_0x7ce485(0x22d), String(_0x376745[_0x7ce485(0x22d)]));
|
|
679
|
+
const _0x444188 = await _0x4827de(_0x7ce485(0x17c) + _0x121571[_0x7ce485(0x274)] + _0x7ce485(0x245) + _0x4e8812[_0x7ce485(0x12c)](), {
|
|
680
|
+
'headers': _0x5600aa,
|
|
681
|
+
'method': _0x7ce485(_0x4b0717._0x35fcc6)
|
|
682
|
+
}), _0x11c3ad = (_0x444188[_0x7ce485(0x26f)] ?? [])[_0x7ce485(_0x4b0717._0x41f018)](_0x482bad => ({
|
|
683
|
+
'attachments': (_0x482bad[_0x7ce485(0x1ab)] ?? [])['map'](_0x4bdeeb => ({
|
|
684
|
+
'filename': _0x4bdeeb['filename'] ?? _0x4bdeeb['id'],
|
|
685
|
+
'id': _0x4bdeeb['id']
|
|
658
686
|
})),
|
|
659
|
-
'content':
|
|
660
|
-
'createdAt':
|
|
661
|
-
'messageId':
|
|
662
|
-
'senderName':
|
|
663
|
-
'senderType':
|
|
664
|
-
'seq':
|
|
687
|
+
'content': _0x482bad[_0x7ce485(0x13e)] ?? '',
|
|
688
|
+
'createdAt': _0x482bad['createdAt'],
|
|
689
|
+
'messageId': _0x482bad['id'],
|
|
690
|
+
'senderName': _0x482bad[_0x7ce485(0x104)],
|
|
691
|
+
'senderType': _0x2adde2(_0x482bad[_0x7ce485(0x104)], _0x51ba36),
|
|
692
|
+
'seq': _0x482bad['eventSeq'] ?? 0x0
|
|
665
693
|
}));
|
|
666
694
|
return {
|
|
667
|
-
'channel':
|
|
668
|
-
'hasMore':
|
|
669
|
-
'messages':
|
|
670
|
-
'nextCursor':
|
|
695
|
+
'channel': _0x376745['channelTarget'],
|
|
696
|
+
'hasMore': _0x444188[_0x7ce485(_0x4b0717._0x47a267)]?.[_0x7ce485(0x12d)] ?? ![],
|
|
697
|
+
'messages': _0x11c3ad,
|
|
698
|
+
'nextCursor': _0x444188[_0x7ce485(0x13d)]?.[_0x7ce485(_0x4b0717._0x3b745c)]
|
|
671
699
|
};
|
|
672
700
|
}
|
|
673
701
|
return {
|
|
674
|
-
async 'sendMessage'(
|
|
675
|
-
const
|
|
676
|
-
'body': JSON[
|
|
677
|
-
'attachment_ids':
|
|
678
|
-
'bodyMarkdown':
|
|
679
|
-
'channelId':
|
|
680
|
-
...
|
|
681
|
-
'threadId':
|
|
682
|
-
...
|
|
702
|
+
async 'sendMessage'(_0xc752c7) {
|
|
703
|
+
const _0x332633 = _0x4505d3, _0x4aa09e = await _0x251db6(_0xc752c7[_0x332633(0x143)]), _0x36c6f9 = _0xc752c7[_0x332633(0x26c)][_0x332633(_0x59f731._0x4c9bfa)]('@') ? extractMentionedParticipantIds(_0xc752c7[_0x332633(0x26c)], await _0x9385ec()) : [], _0x181880 = await _0x4827de(_0x332633(_0x59f731._0x694abe) + _0x121571[_0x332633(0x274)] + _0x332633(0x22c), {
|
|
704
|
+
'body': JSON[_0x332633(0x22e)]({
|
|
705
|
+
'attachment_ids': _0xc752c7[_0x332633(0x136)],
|
|
706
|
+
'bodyMarkdown': _0xc752c7['content'],
|
|
707
|
+
'channelId': _0x4aa09e[_0x332633(_0x59f731._0x1d5215)],
|
|
708
|
+
..._0x36c6f9[_0x332633(_0x59f731._0x1c135d)] > 0x0 ? { 'mentionedParticipantIds': _0x36c6f9 } : {},
|
|
709
|
+
'threadId': _0x4aa09e[_0x332633(_0x59f731._0x498419)],
|
|
710
|
+
..._0xc752c7[_0x332633(0x13f)] ? { 'visibility': _0xc752c7['visibility'] } : {}
|
|
683
711
|
}),
|
|
684
|
-
'headers':
|
|
685
|
-
'method':
|
|
712
|
+
'headers': _0x5600aa,
|
|
713
|
+
'method': 'POST'
|
|
686
714
|
});
|
|
687
|
-
return { 'messageId':
|
|
715
|
+
return { 'messageId': _0x181880[_0x332633(_0x59f731._0x50d2d2)]?.['id'] ?? '' };
|
|
688
716
|
},
|
|
689
717
|
async 'listSchedules'() {
|
|
690
|
-
const
|
|
691
|
-
'headers':
|
|
692
|
-
'method':
|
|
718
|
+
const _0x535d65 = _0x4505d3, _0x343e2f = await _0x4827de('/api/internal/schedules', {
|
|
719
|
+
'headers': _0x5600aa,
|
|
720
|
+
'method': _0x535d65(0x27d)
|
|
693
721
|
});
|
|
694
|
-
return
|
|
722
|
+
return _0x343e2f[_0x535d65(_0x581fbc._0x1b11c8)] ?? [];
|
|
695
723
|
},
|
|
696
|
-
async 'claimScheduleRun'(
|
|
697
|
-
const
|
|
698
|
-
'body': JSON['stringify'](
|
|
699
|
-
'headers':
|
|
724
|
+
async 'claimScheduleRun'(_0x4a45bf) {
|
|
725
|
+
const _0x26c417 = _0x4505d3, _0x33645f = await _0x4827de(_0x26c417(0x10f), {
|
|
726
|
+
'body': JSON['stringify'](_0x4a45bf),
|
|
727
|
+
'headers': _0x5600aa,
|
|
700
728
|
'method': 'POST'
|
|
701
729
|
});
|
|
702
|
-
return
|
|
730
|
+
return _0x33645f[_0x26c417(_0x11e327._0x282ef8)] ?? {
|
|
703
731
|
'granted': ![],
|
|
704
732
|
'runId': null,
|
|
705
733
|
'schedule': null,
|
|
706
|
-
'scheduledFor':
|
|
734
|
+
'scheduledFor': _0x4a45bf[_0x26c417(0x1f7)]
|
|
707
735
|
};
|
|
708
736
|
},
|
|
709
|
-
async 'startScheduleRun'(
|
|
710
|
-
const
|
|
711
|
-
'body': JSON[
|
|
712
|
-
'headers':
|
|
713
|
-
'method':
|
|
737
|
+
async 'startScheduleRun'(_0x207208) {
|
|
738
|
+
const _0x356254 = _0x4505d3, _0x2df405 = await _0x4827de('/api/internal/schedules/' + encodeURIComponent(_0x207208[_0x356254(0x21e)]) + _0x356254(_0x243827._0x5d9389), {
|
|
739
|
+
'body': JSON[_0x356254(_0x243827._0x13927e)]({}),
|
|
740
|
+
'headers': _0x5600aa,
|
|
741
|
+
'method': _0x356254(0x18b)
|
|
714
742
|
});
|
|
715
|
-
return
|
|
743
|
+
return _0x2df405['data'] ?? {
|
|
716
744
|
'claimedByDaemonId': '',
|
|
717
|
-
'id':
|
|
745
|
+
'id': _0x207208[_0x356254(_0x243827._0x5719a3)],
|
|
718
746
|
'scheduleId': '',
|
|
719
|
-
'status':
|
|
747
|
+
'status': _0x356254(0x1ef)
|
|
720
748
|
};
|
|
721
749
|
},
|
|
722
|
-
async 'finishScheduleRun'(
|
|
723
|
-
const
|
|
724
|
-
'body': JSON[
|
|
725
|
-
'error':
|
|
726
|
-
'resultJson':
|
|
727
|
-
'status':
|
|
750
|
+
async 'finishScheduleRun'(_0x524cc3) {
|
|
751
|
+
const _0x7b02d5 = _0x4505d3, _0x5e9cc7 = await _0x4827de(_0x7b02d5(0x277) + encodeURIComponent(_0x524cc3[_0x7b02d5(_0x52eb8e._0x16c5f7)]) + _0x7b02d5(0x28e), {
|
|
752
|
+
'body': JSON[_0x7b02d5(_0x52eb8e._0x1af246)]({
|
|
753
|
+
'error': _0x524cc3[_0x7b02d5(_0x52eb8e._0x21fe20)],
|
|
754
|
+
'resultJson': _0x524cc3[_0x7b02d5(_0x52eb8e._0x24b330)],
|
|
755
|
+
'status': _0x524cc3[_0x7b02d5(0x128)]
|
|
728
756
|
}),
|
|
729
|
-
'headers':
|
|
730
|
-
'method':
|
|
757
|
+
'headers': _0x5600aa,
|
|
758
|
+
'method': _0x7b02d5(_0x52eb8e._0x530d16)
|
|
731
759
|
});
|
|
732
|
-
return
|
|
760
|
+
return _0x5e9cc7[_0x7b02d5(_0x52eb8e._0x1e4cce)] ?? {
|
|
733
761
|
'nextRunAt': null,
|
|
734
762
|
'run': {
|
|
735
763
|
'claimedByDaemonId': '',
|
|
736
|
-
'id':
|
|
764
|
+
'id': _0x524cc3[_0x7b02d5(_0x52eb8e._0x5f2ed6)],
|
|
737
765
|
'scheduleId': '',
|
|
738
|
-
'status':
|
|
766
|
+
'status': _0x524cc3['status']
|
|
739
767
|
}
|
|
740
768
|
};
|
|
741
769
|
},
|
|
742
|
-
async 'listTasks'(
|
|
743
|
-
const
|
|
744
|
-
return
|
|
745
|
-
'headers':
|
|
746
|
-
'method':
|
|
770
|
+
async 'listTasks'(_0x43e8ba) {
|
|
771
|
+
const _0x204429 = _0x4505d3, _0x244b2e = new URLSearchParams();
|
|
772
|
+
return _0x244b2e[_0x204429(_0x5ee41a._0x33eb10)](_0x204429(_0x5ee41a._0x1a9529), _0x43e8ba[_0x204429(0x1a9)]), _0x43e8ba[_0x204429(_0x5ee41a._0x3db519)] && _0x244b2e[_0x204429(0x232)](_0x204429(_0x5ee41a._0x3db519), _0x43e8ba['status']), _0x46540b(_0x204429(_0x5ee41a._0x3d5744) + _0x121571['agentId'] + _0x204429(_0x5ee41a._0x3beb2b) + _0x244b2e['toString'](), {
|
|
773
|
+
'headers': _0x5600aa,
|
|
774
|
+
'method': _0x204429(_0x5ee41a._0x4c6e70)
|
|
747
775
|
});
|
|
748
776
|
},
|
|
749
|
-
async 'createTasks'(
|
|
750
|
-
const
|
|
751
|
-
return
|
|
752
|
-
'body': JSON[
|
|
753
|
-
...
|
|
754
|
-
'idempotency_key':
|
|
777
|
+
async 'createTasks'(_0x1a4e26) {
|
|
778
|
+
const _0x528d6e = _0x4505d3;
|
|
779
|
+
return _0x46540b(_0x528d6e(_0x2f7554._0x3c356c) + _0x121571[_0x528d6e(_0x2f7554._0x10cc26)] + _0x528d6e(0x207), {
|
|
780
|
+
'body': JSON[_0x528d6e(_0x2f7554._0x46e582)]({
|
|
781
|
+
..._0x1a4e26,
|
|
782
|
+
'idempotency_key': _0x5dc460(_0x528d6e(0x286), _0x1a4e26)
|
|
755
783
|
}),
|
|
756
|
-
'headers':
|
|
757
|
-
'method':
|
|
784
|
+
'headers': _0x5600aa,
|
|
785
|
+
'method': _0x528d6e(0x18b)
|
|
758
786
|
});
|
|
759
787
|
},
|
|
760
|
-
async 'claimTasks'(
|
|
761
|
-
const
|
|
762
|
-
return
|
|
763
|
-
'body': JSON[
|
|
764
|
-
...
|
|
765
|
-
'idempotency_key':
|
|
788
|
+
async 'claimTasks'(_0x254284) {
|
|
789
|
+
const _0x3a16e1 = _0x4505d3;
|
|
790
|
+
return _0x46540b(_0x3a16e1(0x17c) + _0x121571[_0x3a16e1(0x274)] + '/tasks/claim', {
|
|
791
|
+
'body': JSON[_0x3a16e1(0x22e)]({
|
|
792
|
+
..._0x254284,
|
|
793
|
+
'idempotency_key': _0x5dc460('claim_tasks', _0x254284)
|
|
766
794
|
}),
|
|
767
|
-
'headers':
|
|
768
|
-
'method':
|
|
795
|
+
'headers': _0x5600aa,
|
|
796
|
+
'method': _0x3a16e1(_0x1375ee._0x528afb)
|
|
769
797
|
});
|
|
770
798
|
},
|
|
771
|
-
async 'unclaimTask'(
|
|
772
|
-
const
|
|
773
|
-
return
|
|
774
|
-
'body': JSON[
|
|
775
|
-
...
|
|
776
|
-
'idempotency_key':
|
|
799
|
+
async 'unclaimTask'(_0x21b911) {
|
|
800
|
+
const _0x2e8cb8 = _0x4505d3;
|
|
801
|
+
return _0x46540b(_0x2e8cb8(_0x34af88._0x211e9c) + _0x121571[_0x2e8cb8(_0x34af88._0xa3d51c)] + _0x2e8cb8(_0x34af88._0x16be3d), {
|
|
802
|
+
'body': JSON[_0x2e8cb8(_0x34af88._0x1803d1)]({
|
|
803
|
+
..._0x21b911,
|
|
804
|
+
'idempotency_key': _0x5dc460(_0x2e8cb8(0x239), _0x21b911)
|
|
777
805
|
}),
|
|
778
|
-
'headers':
|
|
779
|
-
'method':
|
|
806
|
+
'headers': _0x5600aa,
|
|
807
|
+
'method': 'POST'
|
|
780
808
|
});
|
|
781
809
|
},
|
|
782
|
-
async 'updateTaskStatus'(
|
|
783
|
-
const
|
|
784
|
-
return
|
|
785
|
-
'body': JSON[
|
|
786
|
-
...
|
|
787
|
-
'idempotency_key':
|
|
810
|
+
async 'updateTaskStatus'(_0x2a7fbc) {
|
|
811
|
+
const _0x17adf9 = _0x4505d3;
|
|
812
|
+
return _0x46540b(_0x17adf9(_0x3ee0d4._0x493454) + _0x121571['agentId'] + _0x17adf9(0x1b5), {
|
|
813
|
+
'body': JSON[_0x17adf9(_0x3ee0d4._0x1c5eb3)]({
|
|
814
|
+
..._0x2a7fbc,
|
|
815
|
+
'idempotency_key': _0x5dc460(_0x17adf9(_0x3ee0d4._0x50ff41), _0x2a7fbc)
|
|
788
816
|
}),
|
|
789
|
-
'headers':
|
|
790
|
-
'method':
|
|
817
|
+
'headers': _0x5600aa,
|
|
818
|
+
'method': _0x17adf9(0x18b)
|
|
791
819
|
});
|
|
792
820
|
},
|
|
793
|
-
async 'uploadFile'(
|
|
794
|
-
const
|
|
795
|
-
if (
|
|
796
|
-
throw new Error(
|
|
797
|
-
const
|
|
798
|
-
'body': JSON[
|
|
799
|
-
'channel':
|
|
800
|
-
'contentBase64':
|
|
801
|
-
'contentType':
|
|
802
|
-
'originalFilename':
|
|
821
|
+
async 'uploadFile'(_0x5c209f) {
|
|
822
|
+
const _0xffdcc7 = _0x4505d3, _0xa11469 = await _0x251db6(_0x5c209f['channel']);
|
|
823
|
+
if (_0xa11469[_0xffdcc7(_0xa881d3._0x5b962d)])
|
|
824
|
+
throw new Error(_0xffdcc7(0x26e));
|
|
825
|
+
const _0x45061b = await _0x4827de('/internal/agent/' + _0x121571['agentId'] + '/upload', {
|
|
826
|
+
'body': JSON[_0xffdcc7(_0xa881d3._0x550737)]({
|
|
827
|
+
'channel': _0xa11469[_0xffdcc7(0x143)],
|
|
828
|
+
'contentBase64': _0x5c209f[_0xffdcc7(0x155)],
|
|
829
|
+
'contentType': _0x5c209f['contentType'],
|
|
830
|
+
'originalFilename': _0x5c209f[_0xffdcc7(0x1e9)]
|
|
803
831
|
}),
|
|
804
|
-
'headers':
|
|
805
|
-
'method':
|
|
832
|
+
'headers': _0x5600aa,
|
|
833
|
+
'method': _0xffdcc7(_0xa881d3._0x3326e5)
|
|
806
834
|
});
|
|
807
835
|
return {
|
|
808
|
-
'attachmentId':
|
|
809
|
-
'filename':
|
|
810
|
-
'sizeBytes':
|
|
836
|
+
'attachmentId': _0x45061b['data']?.['id'] ?? '',
|
|
837
|
+
'filename': _0x45061b[_0xffdcc7(0x26f)]?.['originalFilename'] ?? _0x5c209f[_0xffdcc7(0x1e9)],
|
|
838
|
+
'sizeBytes': _0x45061b['data']?.[_0xffdcc7(_0xa881d3._0x1801ee)] ?? 0x0
|
|
811
839
|
};
|
|
812
840
|
},
|
|
813
|
-
async 'downloadAttachment'(
|
|
814
|
-
const
|
|
815
|
-
'headers':
|
|
816
|
-
'method':
|
|
817
|
-
}),
|
|
841
|
+
async 'downloadAttachment'(_0x5e4607) {
|
|
842
|
+
const _0x5ee13b = _0x4505d3, _0x184dfe = await _0x4827de(_0x5ee13b(_0x2fa5e7._0x52dd4b) + _0x5e4607, {
|
|
843
|
+
'headers': _0x5600aa,
|
|
844
|
+
'method': _0x5ee13b(_0x2fa5e7._0x37ae2b)
|
|
845
|
+
}), _0x19eec5 = new AbortController(), _0x534a11 = setTimeout(() => _0x19eec5[_0x5ee13b(0x189)](), _0xe98c44);
|
|
818
846
|
try {
|
|
819
|
-
const
|
|
820
|
-
'headers':
|
|
821
|
-
'method':
|
|
822
|
-
'signal':
|
|
847
|
+
const _0x115134 = await _0x3fc39f(_0x68e384 + '/api/attachments/' + _0x5e4607 + _0x5ee13b(_0x2fa5e7._0x4135ac), {
|
|
848
|
+
'headers': _0x5600aa,
|
|
849
|
+
'method': _0x5ee13b(_0x2fa5e7._0x5b834c),
|
|
850
|
+
'signal': _0x19eec5[_0x5ee13b(0x248)]
|
|
823
851
|
});
|
|
824
|
-
if (!
|
|
825
|
-
throw new Error(
|
|
852
|
+
if (!_0x115134['ok'])
|
|
853
|
+
throw new Error(_0x5ee13b(_0x2fa5e7._0xde7cff) + _0x115134[_0x5ee13b(0x128)]);
|
|
826
854
|
return {
|
|
827
|
-
'contentType':
|
|
828
|
-
'data': Buffer[
|
|
829
|
-
'originalFilename':
|
|
855
|
+
'contentType': _0x184dfe[_0x5ee13b(0x26f)]?.[_0x5ee13b(_0x2fa5e7._0x19d442)] ?? _0x115134[_0x5ee13b(0x100)][_0x5ee13b(_0x2fa5e7._0x22b55b)](_0x5ee13b(_0x2fa5e7._0x1f7ad0)) ?? _0x5ee13b(0x1c0),
|
|
856
|
+
'data': Buffer[_0x5ee13b(0x259)](await _0x115134['arrayBuffer']()),
|
|
857
|
+
'originalFilename': _0x184dfe['data']?.[_0x5ee13b(0x14f)]
|
|
830
858
|
};
|
|
831
859
|
} finally {
|
|
832
|
-
clearTimeout(
|
|
860
|
+
clearTimeout(_0x534a11);
|
|
833
861
|
}
|
|
834
862
|
},
|
|
835
863
|
async 'listServer'() {
|
|
836
|
-
return
|
|
864
|
+
return _0x9385ec({ 'forceRefresh': !![] });
|
|
837
865
|
},
|
|
838
|
-
async 'readHistory'(
|
|
839
|
-
const
|
|
840
|
-
return
|
|
841
|
-
'after':
|
|
842
|
-
'before':
|
|
843
|
-
'channelId':
|
|
844
|
-
'channelTarget':
|
|
845
|
-
'limit':
|
|
846
|
-
'threadId':
|
|
866
|
+
async 'readHistory'(_0x41856f) {
|
|
867
|
+
const _0x4a1577 = _0x4505d3, _0x3120aa = await _0x251db6(_0x41856f['channel']);
|
|
868
|
+
return _0x2f39e8({
|
|
869
|
+
'after': _0x41856f[_0x4a1577(_0xda8306._0xc6e4c4)],
|
|
870
|
+
'before': _0x41856f['before'],
|
|
871
|
+
'channelId': _0x3120aa[_0x4a1577(_0xda8306._0x585592)],
|
|
872
|
+
'channelTarget': _0x3120aa[_0x4a1577(0x143)],
|
|
873
|
+
'limit': _0x41856f[_0x4a1577(_0xda8306._0x1ed814)],
|
|
874
|
+
'threadId': _0x3120aa['threadId']
|
|
847
875
|
});
|
|
848
876
|
},
|
|
849
|
-
'resolveTarget':
|
|
877
|
+
'resolveTarget': _0x251db6,
|
|
850
878
|
async 'checkMessages'() {
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
const
|
|
854
|
-
'headers':
|
|
855
|
-
'method':
|
|
856
|
-
}),
|
|
857
|
-
let
|
|
858
|
-
|
|
859
|
-
|
|
879
|
+
const _0x3ea2fd = _0x4505d3, _0x7ca91 = new URLSearchParams();
|
|
880
|
+
_0x7ca91[_0x3ea2fd(0x232)](_0x3ea2fd(_0x5132a9._0x1dcf7c), String(_0x263d34));
|
|
881
|
+
const _0x178502 = _0x7ca91[_0x3ea2fd(_0x5132a9._0x4ef980)](), _0x450e3f = await _0x4827de('/internal/agent/' + _0x121571['agentId'] + _0x3ea2fd(_0x5132a9._0x519761) + (_0x178502 ? '?' + _0x178502 : ''), {
|
|
882
|
+
'headers': _0x5600aa,
|
|
883
|
+
'method': _0x3ea2fd(_0x5132a9._0x4a664c)
|
|
884
|
+
}), _0x1e2c78 = _0x450e3f[_0x3ea2fd(_0x5132a9._0x2a6b70)] ?? [], _0x1bd91e = _0x450e3f['meta']?.[_0x3ea2fd(_0x5132a9._0x1bf9b7)], _0x27a1e3 = _0x1bd91e !== void 0x0 ? Math[_0x3ea2fd(0x27f)](_0x263d34, _0x1bd91e) : _0x1e2c78[_0x3ea2fd(_0x5132a9._0x22fa0c)] > 0x0 ? Math[_0x3ea2fd(_0x5132a9._0x38bdfc)](_0x263d34, _0x1e2c78[_0x1e2c78[_0x3ea2fd(0x161)] - 0x1][_0x3ea2fd(_0x5132a9._0x21d1b3)]) : _0x263d34, _0x2603f6 = _0x1e2c78[_0x3ea2fd(_0x5132a9._0x3a2863)](_0x460c44 => _0x460c44['aggregateType'] === _0x3ea2fd(0x26a)), _0x374408 = _0x3f73a8 === void 0x0 && _0x43ce73;
|
|
885
|
+
let _0x3e3814 = await _0x9385ec(), _0x171f94 = new Map(_0x3e3814['channels'][_0x3ea2fd(0x227)](_0x73d5f4 => [
|
|
886
|
+
_0x73d5f4['id'],
|
|
887
|
+
_0x73d5f4
|
|
860
888
|
]));
|
|
861
|
-
const
|
|
862
|
-
const
|
|
863
|
-
return Boolean(
|
|
889
|
+
const _0x1a096d = _0x2603f6['some'](_0x3893d6 => {
|
|
890
|
+
const _0x1bc6b6 = _0x3ea2fd, _0x3f6a2f = asRecord(_0x3893d6[_0x1bc6b6(0x115)]), _0x2d445e = typeof _0x3f6a2f?.[_0x1bc6b6(_0x4d5bbe._0x57c178)] === 'string' ? _0x3f6a2f[_0x1bc6b6(_0x4d5bbe._0x57c178)] : '';
|
|
891
|
+
return Boolean(_0x2d445e) && !_0x171f94['has'](_0x2d445e);
|
|
864
892
|
});
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
893
|
+
_0x1a096d && (_0x3e3814 = await _0x9385ec({ 'forceRefresh': !![] }), _0x171f94 = new Map(_0x3e3814['channels'][_0x3ea2fd(_0x5132a9._0x14b974)](_0x4467d5 => [
|
|
894
|
+
_0x4467d5['id'],
|
|
895
|
+
_0x4467d5
|
|
868
896
|
])));
|
|
869
|
-
const
|
|
870
|
-
for (const
|
|
871
|
-
const
|
|
872
|
-
if (!
|
|
897
|
+
const _0x578915 = new Map();
|
|
898
|
+
for (const _0xfe3eec of _0x2603f6) {
|
|
899
|
+
const _0x457461 = asRecord(_0xfe3eec['payloadJson']), _0xd22ba1 = typeof _0x457461[_0x3ea2fd(_0x5132a9._0x490b75)] === _0x3ea2fd(_0x5132a9._0x3273fb) ? _0x457461[_0x3ea2fd(_0x5132a9._0x490b75)] : '';
|
|
900
|
+
if (!_0xd22ba1)
|
|
873
901
|
continue;
|
|
874
|
-
const
|
|
902
|
+
const _0x49a869 = typeof _0x457461[_0x3ea2fd(_0x5132a9._0x331183)] === _0x3ea2fd(_0x5132a9._0x4ec557) ? _0x457461[_0x3ea2fd(0x1af)] : void 0x0, _0x2ee1a5 = typeof _0x457461[_0x3ea2fd(_0x5132a9._0x31b2b8)] === 'string' ? _0x457461[_0x3ea2fd(_0x5132a9._0x14e440)] : void 0x0, _0xe4162f = typeof _0x457461['threadNumber'] === _0x3ea2fd(0x23d) && Number[_0x3ea2fd(_0x5132a9._0x547d77)](_0x457461[_0x3ea2fd(0x114)]) ? _0x457461[_0x3ea2fd(_0x5132a9._0x1f4931)] : void 0x0, _0x1bcdf1 = Boolean(_0x49a869 && (!_0x2ee1a5 || _0xfe3eec[_0x3ea2fd(0x21f)] !== _0x2ee1a5)), _0x39fa3a = _0x1bcdf1 ? _0xd22ba1 + ':' + _0x49a869 : _0xd22ba1, _0x296e25 = _0x578915['get'](_0x39fa3a) ?? {
|
|
875
903
|
'aggregateIds': [],
|
|
876
|
-
'channelId':
|
|
904
|
+
'channelId': _0xd22ba1,
|
|
877
905
|
'entries': new Map(),
|
|
878
|
-
'isThreadReply':
|
|
879
|
-
'rootMessageId':
|
|
880
|
-
'threadNumber':
|
|
881
|
-
'threadId':
|
|
906
|
+
'isThreadReply': _0x1bcdf1,
|
|
907
|
+
'rootMessageId': _0x2ee1a5,
|
|
908
|
+
'threadNumber': _0xe4162f,
|
|
909
|
+
'threadId': _0x1bcdf1 ? _0x49a869 : void 0x0
|
|
882
910
|
};
|
|
883
|
-
|
|
884
|
-
'payloadJson':
|
|
885
|
-
'seq':
|
|
886
|
-
}),
|
|
911
|
+
_0x296e25[_0x3ea2fd(_0x5132a9._0x1f4931)] == null && _0xe4162f != null && (_0x296e25[_0x3ea2fd(0x114)] = _0xe4162f), !_0x296e25[_0x3ea2fd(0x10e)] && _0x2ee1a5 && (_0x296e25[_0x3ea2fd(0x10e)] = _0x2ee1a5), _0x296e25[_0x3ea2fd(0x1fb)][_0x3ea2fd(_0x5132a9._0x2b029d)](_0xfe3eec[_0x3ea2fd(_0x5132a9._0x35c50b)]), _0x296e25['entries']['set'](_0xfe3eec[_0x3ea2fd(_0x5132a9._0x1be51d)], {
|
|
912
|
+
'payloadJson': _0xfe3eec['payloadJson'],
|
|
913
|
+
'seq': _0xfe3eec[_0x3ea2fd(_0x5132a9._0x21d1b3)]
|
|
914
|
+
}), _0x578915[_0x3ea2fd(_0x5132a9._0x1c2c8f)](_0x39fa3a, _0x296e25);
|
|
887
915
|
}
|
|
888
|
-
const
|
|
889
|
-
for (const
|
|
916
|
+
const _0x386418 = [];
|
|
917
|
+
for (const _0x264127 of _0x578915[_0x3ea2fd(_0x5132a9._0x51e348)]()) {
|
|
890
918
|
const {
|
|
891
|
-
channelId:
|
|
892
|
-
threadId:
|
|
893
|
-
rootMessageId:
|
|
894
|
-
threadNumber:
|
|
895
|
-
aggregateIds:
|
|
896
|
-
isThreadReply:
|
|
897
|
-
entries:
|
|
898
|
-
} =
|
|
899
|
-
'channelTarget':
|
|
900
|
-
'rootMessageId':
|
|
901
|
-
'threadId':
|
|
902
|
-
'threadNumber':
|
|
903
|
-
},
|
|
904
|
-
'channelId':
|
|
905
|
-
'channelTarget':
|
|
906
|
-
'limit': Math[
|
|
907
|
-
'threadId':
|
|
908
|
-
}),
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
])),
|
|
912
|
-
for (const
|
|
913
|
-
if (!
|
|
919
|
+
channelId: _0x1ecdca,
|
|
920
|
+
threadId: _0x305749,
|
|
921
|
+
rootMessageId: _0x51fb55,
|
|
922
|
+
threadNumber: _0x9df0b,
|
|
923
|
+
aggregateIds: _0x40ef0f,
|
|
924
|
+
isThreadReply: _0x5d9fd8,
|
|
925
|
+
entries: _0x172a82
|
|
926
|
+
} = _0x264127, _0x4de9a8 = _0x171f94['get'](_0x1ecdca), _0x4efbe9 = _0x4de9a8?.[_0x3ea2fd(0x19c)] ?? _0x1ecdca, _0x18fea2 = _0x4de9a8?.[_0x3ea2fd(_0x5132a9._0x2a17b3)] === 'dm' ? 'dm:' + _0x4efbe9 : '#' + _0x4efbe9, _0x40126f = {
|
|
927
|
+
'channelTarget': _0x18fea2,
|
|
928
|
+
'rootMessageId': _0x51fb55,
|
|
929
|
+
'threadId': _0x305749,
|
|
930
|
+
'threadNumber': _0x9df0b
|
|
931
|
+
}, _0x554d68 = await _0x2f39e8({
|
|
932
|
+
'channelId': _0x1ecdca,
|
|
933
|
+
'channelTarget': _0x18fea2,
|
|
934
|
+
'limit': Math[_0x3ea2fd(0x27f)](_0x40ef0f['length'], 0x32),
|
|
935
|
+
'threadId': _0x305749
|
|
936
|
+
}), _0x146147 = new Map(_0x554d68['messages'][_0x3ea2fd(0x227)](_0x4648ad => [
|
|
937
|
+
_0x4648ad[_0x3ea2fd(0x193)],
|
|
938
|
+
_0x4648ad
|
|
939
|
+
])), _0x370d40 = _0x305749 ? _0x48aac5(_0x40126f) : _0x18fea2, _0x59f7ba = _0x3f73a8 ? _0x5d9fd8 && _0x1d9e41(_0x3f73a8, _0x40126f) : !![], _0x1390e9 = _0x5d9fd8 ? _0x59f7ba && _0x3f73a8 ? _0x3f73a8 : _0x370d40 : _0x18fea2;
|
|
940
|
+
for (const _0x4818a1 of _0x40ef0f) {
|
|
941
|
+
if (!_0x59f7ba)
|
|
914
942
|
continue;
|
|
915
|
-
const
|
|
916
|
-
if (
|
|
943
|
+
const _0x4b4c5f = _0x172a82['get'](_0x4818a1), _0x3fce4d = _0x4b4c5f ? asRecord(_0x4b4c5f['payloadJson']) : void 0x0, _0x123123 = _0x3fce4d?.[_0x3ea2fd(0x206)] === _0x3ea2fd(_0x5132a9._0x32468b);
|
|
944
|
+
if (_0x374408 && _0x123123)
|
|
917
945
|
continue;
|
|
918
|
-
const
|
|
919
|
-
if (
|
|
920
|
-
|
|
921
|
-
'attachments':
|
|
922
|
-
'content':
|
|
923
|
-
'createdAt':
|
|
924
|
-
'messageId':
|
|
925
|
-
'senderName':
|
|
926
|
-
'senderType':
|
|
927
|
-
'target':
|
|
928
|
-
...
|
|
946
|
+
const _0x1bdceb = _0x146147[_0x3ea2fd(_0x5132a9._0x1afb15)](_0x4818a1);
|
|
947
|
+
if (_0x1bdceb) {
|
|
948
|
+
_0x386418[_0x3ea2fd(0x229)]({
|
|
949
|
+
'attachments': _0x1bdceb[_0x3ea2fd(0x1ab)],
|
|
950
|
+
'content': _0x1bdceb[_0x3ea2fd(0x26c)],
|
|
951
|
+
'createdAt': _0x1bdceb[_0x3ea2fd(0x1f6)],
|
|
952
|
+
'messageId': _0x1bdceb[_0x3ea2fd(0x193)],
|
|
953
|
+
'senderName': _0x1bdceb['senderName'],
|
|
954
|
+
'senderType': _0x1bdceb['senderType'],
|
|
955
|
+
'target': _0x1390e9,
|
|
956
|
+
..._0x123123 ? { 'targetedTask': !![] } : {}
|
|
929
957
|
});
|
|
930
958
|
continue;
|
|
931
959
|
}
|
|
932
|
-
if (
|
|
933
|
-
const
|
|
934
|
-
|
|
960
|
+
if (_0x4b4c5f) {
|
|
961
|
+
const _0x435c73 = typeof _0x3fce4d?.['senderParticipantId'] === _0x3ea2fd(0x23b) ? _0x3fce4d['senderParticipantId'] : '', _0x20fae0 = typeof _0x3fce4d?.[_0x3ea2fd(0x13e)] === _0x3ea2fd(_0x5132a9._0x3273fb) ? _0x3fce4d[_0x3ea2fd(0x13e)] : '';
|
|
962
|
+
_0x435c73 && _0x20fae0 && _0x386418[_0x3ea2fd(_0x5132a9._0x2b029d)]({
|
|
935
963
|
'attachments': [],
|
|
936
|
-
'content':
|
|
937
|
-
'createdAt': new Date()[
|
|
938
|
-
'messageId':
|
|
939
|
-
'senderName':
|
|
940
|
-
'senderType':
|
|
941
|
-
'target':
|
|
942
|
-
...
|
|
964
|
+
'content': _0x20fae0,
|
|
965
|
+
'createdAt': new Date()[_0x3ea2fd(0xfa)](),
|
|
966
|
+
'messageId': _0x4818a1,
|
|
967
|
+
'senderName': _0x435c73,
|
|
968
|
+
'senderType': _0x2adde2(_0x435c73, _0x3e3814),
|
|
969
|
+
'target': _0x1390e9,
|
|
970
|
+
..._0x123123 ? { 'targetedTask': !![] } : {}
|
|
943
971
|
});
|
|
944
972
|
}
|
|
945
973
|
}
|
|
946
974
|
}
|
|
947
|
-
if (
|
|
948
|
-
if (
|
|
949
|
-
await
|
|
975
|
+
if (_0x27a1e3 > 0x0) {
|
|
976
|
+
if (_0x39bdd9)
|
|
977
|
+
await _0xcc7607(_0x27a1e3);
|
|
950
978
|
else
|
|
951
|
-
|
|
979
|
+
_0x2b73fb && await _0x1303b4(_0x27a1e3);
|
|
980
|
+
}
|
|
981
|
+
return _0x27a1e3 > _0x263d34 && (_0x263d34 = _0x27a1e3), { 'messages': _0x3f73a8 ? _0x386418 : _0x374408 ? _0x386418[_0x3ea2fd(_0x5132a9._0x1d31a6)](_0x13e095 => _0x13e095[_0x3ea2fd(0x175)] !== !![]) : _0x386418 };
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
}
|
|
985
|
+
function toLocalTime(_0x1cece7) {
|
|
986
|
+
const _0x1d5ffe = {
|
|
987
|
+
_0x2a8d3a: 0x1d9,
|
|
988
|
+
_0x3f498c: 0x270,
|
|
989
|
+
_0x5d7789: 0x17e,
|
|
990
|
+
_0x25cf27: 0x214
|
|
991
|
+
}, _0x55fd5a = _0x8261f0, _0x44fbec = new Date(_0x1cece7);
|
|
992
|
+
if (Number[_0x55fd5a(_0x1d5ffe._0x2a8d3a)](_0x44fbec[_0x55fd5a(_0x1d5ffe._0x3f498c)]()))
|
|
993
|
+
return _0x1cece7;
|
|
994
|
+
const _0x2bc351 = _0x5064f3 => String(_0x5064f3)[_0x55fd5a(0x1cf)](0x2, '0');
|
|
995
|
+
return _0x44fbec['getFullYear']() + '-' + _0x2bc351(_0x44fbec[_0x55fd5a(0x28b)]() + 0x1) + '-' + _0x2bc351(_0x44fbec['getDate']()) + '\x20' + _0x2bc351(_0x44fbec['getHours']()) + ':' + _0x2bc351(_0x44fbec[_0x55fd5a(_0x1d5ffe._0x5d7789)]()) + ':' + _0x2bc351(_0x44fbec[_0x55fd5a(_0x1d5ffe._0x25cf27)]());
|
|
996
|
+
}
|
|
997
|
+
function formatAttachmentSuffix(_0x23c2cc) {
|
|
998
|
+
const _0x43a5be = _0x8261f0;
|
|
999
|
+
if (!_0x23c2cc || _0x23c2cc['length'] === 0x0)
|
|
1000
|
+
return '';
|
|
1001
|
+
return '\x20[' + _0x23c2cc[_0x43a5be(0x161)] + _0x43a5be(0x167) + (_0x23c2cc['length'] > 0x1 ? 's' : '') + ':\x20' + _0x23c2cc['map'](_0xe91161 => _0xe91161[_0x43a5be(0x1e9)] + '\x20(id:' + _0xe91161['id'] + ')')['join'](',\x20') + _0x43a5be(0x187);
|
|
1002
|
+
}
|
|
1003
|
+
function formatCheckMessages(_0x1fd345) {
|
|
1004
|
+
const _0x5f4c66 = {
|
|
1005
|
+
_0x399048: 0x279,
|
|
1006
|
+
_0x56069e: 0xff,
|
|
1007
|
+
_0x253332: 0x1e3,
|
|
1008
|
+
_0x21f91e: 0x143,
|
|
1009
|
+
_0x39fbad: 0x1b4,
|
|
1010
|
+
_0x419b95: 0x26c,
|
|
1011
|
+
_0x1ffa2f: 0x1ab
|
|
1012
|
+
}, _0x2d5caa = _0x8261f0;
|
|
1013
|
+
if (_0x1fd345['length'] === 0x0)
|
|
1014
|
+
return _0x2d5caa(0x1ea);
|
|
1015
|
+
return _0x1fd345[_0x2d5caa(0x227)](_0x128bdb => {
|
|
1016
|
+
const _0x45d7d4 = _0x2d5caa, _0x5bc576 = _0x128bdb[_0x45d7d4(_0x5f4c66._0x399048)] === _0x45d7d4(0x13a) ? _0x45d7d4(_0x5f4c66._0x56069e) : '';
|
|
1017
|
+
return _0x45d7d4(_0x5f4c66._0x253332) + _0x128bdb[_0x45d7d4(_0x5f4c66._0x21f91e)] + '\x20msg=' + _0x128bdb['messageId'][_0x45d7d4(0x267)](0x0, 0x8) + _0x45d7d4(_0x5f4c66._0x39fbad) + toLocalTime(_0x128bdb[_0x45d7d4(0x1f6)]) + _0x5bc576 + _0x45d7d4(0x117) + _0x128bdb['senderName'] + ':\x20' + _0x128bdb[_0x45d7d4(_0x5f4c66._0x419b95)] + formatAttachmentSuffix(_0x128bdb[_0x45d7d4(_0x5f4c66._0x1ffa2f)]);
|
|
1018
|
+
})[_0x2d5caa(0x162)]('\x0a');
|
|
1019
|
+
}
|
|
1020
|
+
function formatHistory(_0x571278) {
|
|
1021
|
+
const _0x353c90 = {
|
|
1022
|
+
_0x1f8cc0: 0x161,
|
|
1023
|
+
_0x3ffc60: 0x1a9,
|
|
1024
|
+
_0x49d4ab: 0x260,
|
|
1025
|
+
_0x309e2f: 0x1d2,
|
|
1026
|
+
_0x92e519: 0x162,
|
|
1027
|
+
_0x1aea10: 0x1d2,
|
|
1028
|
+
_0x3ecaca: 0x1b2,
|
|
1029
|
+
_0x4940b3: 0x1ff,
|
|
1030
|
+
_0x3a57f6: 0x105,
|
|
1031
|
+
_0x55a43d: 0x218
|
|
1032
|
+
}, _0x23635d = {
|
|
1033
|
+
_0x59e4e2: 0x279,
|
|
1034
|
+
_0x4cea55: 0x1dc,
|
|
1035
|
+
_0x215802: 0x193,
|
|
1036
|
+
_0x977d8: 0x1b4,
|
|
1037
|
+
_0x1504c2: 0x1f6,
|
|
1038
|
+
_0x7809b3: 0x117,
|
|
1039
|
+
_0x353f37: 0x237
|
|
1040
|
+
}, _0x55961a = _0x8261f0;
|
|
1041
|
+
if (_0x571278['messages'][_0x55961a(_0x353c90._0x1f8cc0)] === 0x0)
|
|
1042
|
+
return '##\x20Message\x20History\x20for\x20' + _0x571278[_0x55961a(_0x353c90._0x3ffc60)] + _0x55961a(_0x353c90._0x49d4ab);
|
|
1043
|
+
const _0x157d89 = _0x571278[_0x55961a(_0x353c90._0x309e2f)]['map'](_0x4f21d3 => {
|
|
1044
|
+
const _0x1f13a9 = _0x55961a, _0x45434e = _0x4f21d3[_0x1f13a9(_0x23635d._0x59e4e2)] === 'agent' ? _0x1f13a9(0xff) : '';
|
|
1045
|
+
return _0x1f13a9(0x15f) + _0x4f21d3[_0x1f13a9(_0x23635d._0x4cea55)] + _0x1f13a9(0x19e) + _0x4f21d3[_0x1f13a9(_0x23635d._0x215802)] + _0x1f13a9(_0x23635d._0x977d8) + toLocalTime(_0x4f21d3[_0x1f13a9(_0x23635d._0x1504c2)]) + _0x45434e + _0x1f13a9(_0x23635d._0x7809b3) + _0x4f21d3[_0x1f13a9(_0x23635d._0x353f37)] + ':\x20' + _0x4f21d3[_0x1f13a9(0x26c)] + formatAttachmentSuffix(_0x4f21d3[_0x1f13a9(0x1ab)]);
|
|
1046
|
+
})[_0x55961a(_0x353c90._0x92e519)]('\x0a'), _0x1dc6da = _0x571278[_0x55961a(0x12d)] && _0x571278[_0x55961a(0x1de)] ? _0x55961a(0x148) + _0x571278[_0x55961a(_0x353c90._0x1aea10)][_0x55961a(0x161)] + _0x55961a(_0x353c90._0x3ecaca) + _0x571278['nextCursor'] + _0x55961a(_0x353c90._0x4940b3) : '';
|
|
1047
|
+
return _0x55961a(_0x353c90._0x3a57f6) + _0x571278[_0x55961a(_0x353c90._0x3ffc60)] + '\x20(' + _0x571278[_0x55961a(_0x353c90._0x309e2f)]['length'] + _0x55961a(_0x353c90._0x55a43d) + _0x157d89 + _0x1dc6da;
|
|
1048
|
+
}
|
|
1049
|
+
function formatServerDirectory(_0x17b00a) {
|
|
1050
|
+
const _0x3ccbe3 = {
|
|
1051
|
+
_0x31a8f4: 0x161,
|
|
1052
|
+
_0x6e6bbb: 0x231,
|
|
1053
|
+
_0x30af73: 0x1ae,
|
|
1054
|
+
_0x2be21e: 0x227,
|
|
1055
|
+
_0x4bf964: 0x17a,
|
|
1056
|
+
_0x4c6ef5: 0x1c6,
|
|
1057
|
+
_0x1b0036: 0x253,
|
|
1058
|
+
_0x3261cf: 0x12e,
|
|
1059
|
+
_0x4ad42d: 0x162
|
|
1060
|
+
}, _0x224445 = _0x8261f0, _0x5d09e8 = _0x17b00a[_0x224445(0x112)][_0x224445(_0x3ccbe3._0x31a8f4)] > 0x0 ? _0x17b00a[_0x224445(0x112)]['map'](_0x5188e5 => _0x5188e5[_0x224445(0x27c)] ? '-\x20#' + _0x5188e5[_0x224445(0x19c)] + _0x224445(0x1c7) + _0x5188e5[_0x224445(0x27c)] : _0x224445(0x1c5) + _0x5188e5['name'])[_0x224445(0x162)]('\x0a') : _0x224445(_0x3ccbe3._0x6e6bbb), _0x2a37db = _0x17b00a[_0x224445(_0x3ccbe3._0x30af73)][_0x224445(0x161)] > 0x0 ? _0x17b00a['agents'][_0x224445(_0x3ccbe3._0x2be21e)](_0x461b7e => '-\x20@' + _0x461b7e[_0x224445(0x19c)])[_0x224445(0x162)]('\x0a') : _0x224445(0x231), _0x35e28f = _0x17b00a['humans']['length'] > 0x0 ? _0x17b00a[_0x224445(_0x3ccbe3._0x4bf964)][_0x224445(0x227)](_0x34de8d => _0x224445(0x182) + _0x34de8d[_0x224445(0x19c)])['join']('\x0a') : _0x224445(0x231);
|
|
1061
|
+
return [
|
|
1062
|
+
_0x224445(0x1ad) + _0x17b00a[_0x224445(_0x3ccbe3._0x4c6ef5)],
|
|
1063
|
+
'',
|
|
1064
|
+
_0x224445(_0x3ccbe3._0x1b0036),
|
|
1065
|
+
_0x5d09e8,
|
|
1066
|
+
'',
|
|
1067
|
+
_0x224445(_0x3ccbe3._0x3261cf),
|
|
1068
|
+
_0x2a37db,
|
|
1069
|
+
'',
|
|
1070
|
+
_0x224445(0x135),
|
|
1071
|
+
_0x35e28f
|
|
1072
|
+
][_0x224445(_0x3ccbe3._0x4ad42d)]('\x0a');
|
|
1073
|
+
}
|
|
1074
|
+
function formatUploadResult(_0x2d3f19) {
|
|
1075
|
+
const _0x38fef2 = {
|
|
1076
|
+
_0xff9b3a: 0x234,
|
|
1077
|
+
_0x34c10b: 0x11a
|
|
1078
|
+
}, _0x4ffe12 = _0x8261f0;
|
|
1079
|
+
return _0x4ffe12(0x24c) + _0x2d3f19[_0x4ffe12(0x1e9)] + '\x20(' + (_0x2d3f19['sizeBytes'] / 0x400)[_0x4ffe12(_0x38fef2._0xff9b3a)](0x1) + _0x4ffe12(0x221) + _0x2d3f19[_0x4ffe12(_0x38fef2._0x34c10b)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1080
|
+
}
|
|
1081
|
+
function formatViewFileResult(_0x367049, _0x20efd2) {
|
|
1082
|
+
const _0x2d5390 = { _0xee2284: 0x1bf }, _0x411d71 = _0x8261f0;
|
|
1083
|
+
return _0x20efd2 ? _0x411d71(0x269) + _0x367049 : _0x411d71(_0x2d5390._0xee2284) + _0x367049;
|
|
1084
|
+
}
|
|
1085
|
+
function formatTaskList(_0x334bdb, _0x237928) {
|
|
1086
|
+
const _0x49e393 = {
|
|
1087
|
+
_0x1080ed: 0x227,
|
|
1088
|
+
_0x20bdc2: 0x162
|
|
1089
|
+
}, _0x1c3ee0 = {
|
|
1090
|
+
_0x52b35b: 0x193,
|
|
1091
|
+
_0x3dc4a9: 0x265,
|
|
1092
|
+
_0x30d8af: 0x133,
|
|
1093
|
+
_0x201117: 0x128
|
|
1094
|
+
}, _0x3d6175 = _0x8261f0;
|
|
1095
|
+
if (_0x334bdb[_0x3d6175(0x161)] === 0x0)
|
|
1096
|
+
return 'No\x20tasks\x20found.';
|
|
1097
|
+
return _0x334bdb[_0x3d6175(_0x49e393._0x1080ed)](_0x1393c9 => {
|
|
1098
|
+
const _0x5ad28a = _0x3d6175, _0x3d3907 = _0x1393c9[_0x5ad28a(0x133)] == null ? '(legacy)' : '#' + _0x1393c9[_0x5ad28a(0x133)], _0x1082ee = _0x1393c9['messageId'] ? _0x5ad28a(0x138) + _0x1393c9[_0x5ad28a(_0x1c3ee0._0x52b35b)] : '', _0x518452 = _0x237928 && _0x1393c9['taskNumber'] != null && _0x237928[_0x5ad28a(_0x1c3ee0._0x3dc4a9)](_0x1393c9[_0x5ad28a(_0x1c3ee0._0x30d8af)]) ? _0x5ad28a(0x154) : '';
|
|
1099
|
+
return _0x3d3907 + '\x20[' + _0x1393c9[_0x5ad28a(_0x1c3ee0._0x201117)] + ']\x20' + _0x1393c9[_0x5ad28a(0x20e)] + _0x1082ee + _0x518452;
|
|
1100
|
+
})[_0x3d6175(_0x49e393._0x20bdc2)]('\x0a');
|
|
1101
|
+
}
|
|
1102
|
+
function formatCreatedTasks(_0x39f37e) {
|
|
1103
|
+
const _0x2633ef = {
|
|
1104
|
+
_0x4ce7b8: 0x227,
|
|
1105
|
+
_0x7103e4: 0x162
|
|
1106
|
+
}, _0x59dabd = { _0x380867: 0x138 }, _0x2d4c18 = _0x8261f0;
|
|
1107
|
+
if (_0x39f37e['length'] === 0x0)
|
|
1108
|
+
return _0x2d4c18(0x251);
|
|
1109
|
+
return _0x39f37e[_0x2d4c18(_0x2633ef._0x4ce7b8)](_0x4e6661 => {
|
|
1110
|
+
const _0x271f3c = _0x2d4c18, _0x1ababa = _0x4e6661['taskNumber'] == null ? '(legacy)' : '#' + _0x4e6661[_0x271f3c(0x133)];
|
|
1111
|
+
return _0x1ababa + '\x20' + _0x4e6661[_0x271f3c(0x20e)] + _0x271f3c(_0x59dabd._0x380867) + _0x4e6661['messageId'];
|
|
1112
|
+
})[_0x2d4c18(_0x2633ef._0x7103e4)]('\x0a');
|
|
1113
|
+
}
|
|
1114
|
+
function formatClaimTaskResults(_0x809bca) {
|
|
1115
|
+
const _0x492722 = {
|
|
1116
|
+
_0x4e4cbb: 0x161,
|
|
1117
|
+
_0x26445b: 0x162
|
|
1118
|
+
}, _0x421fb5 = {
|
|
1119
|
+
_0x2859d0: 0x204,
|
|
1120
|
+
_0x1d0d0b: 0x283,
|
|
1121
|
+
_0x32440: 0x244,
|
|
1122
|
+
_0x19e0bb: 0x1d8,
|
|
1123
|
+
_0x55a89f: 0x1ca,
|
|
1124
|
+
_0x2d1f8d: 0x170,
|
|
1125
|
+
_0x316b31: 0x10a,
|
|
1126
|
+
_0x2e7b63: 0x10a,
|
|
1127
|
+
_0x1d1e24: 0x22f,
|
|
1128
|
+
_0x1313e2: 0x162,
|
|
1129
|
+
_0x5d533a: 0x25f,
|
|
1130
|
+
_0x4d2aea: 0x133,
|
|
1131
|
+
_0x50bad7: 0x1db,
|
|
1132
|
+
_0x4b5e86: 0x14d
|
|
1133
|
+
}, _0x43ef41 = _0x8261f0;
|
|
1134
|
+
if (_0x809bca[_0x43ef41(_0x492722._0x4e4cbb)] === 0x0)
|
|
1135
|
+
return 'No\x20tasks\x20claimed.';
|
|
1136
|
+
return _0x809bca[_0x43ef41(0x227)](_0xf1e54e => {
|
|
1137
|
+
const _0xa978bf = _0x43ef41;
|
|
1138
|
+
if (_0xf1e54e[_0xa978bf(_0x421fb5._0x2859d0)]) {
|
|
1139
|
+
const _0x2c7766 = _0xf1e54e[_0xa978bf(0x133)] == null ? _0xa978bf(_0x421fb5._0x1d0d0b) : '#' + _0xf1e54e['taskNumber'], _0x4b9dcf = _0xf1e54e['messageId'] ? _0xa978bf(0x138) + _0xf1e54e['messageId'] : '';
|
|
1140
|
+
if (_0xf1e54e['workerHandoff']) {
|
|
1141
|
+
const _0x2de509 = [
|
|
1142
|
+
_0xa978bf(0x224),
|
|
1143
|
+
_0xf1e54e[_0xa978bf(0x1a7)] ? _0xa978bf(0x179) : null,
|
|
1144
|
+
_0xf1e54e[_0xa978bf(_0x421fb5._0x32440)] ? _0xa978bf(_0x421fb5._0x19e0bb) + _0xf1e54e[_0xa978bf(0x244)] : null,
|
|
1145
|
+
_0xf1e54e[_0xa978bf(_0x421fb5._0x55a89f)] ? _0xa978bf(_0x421fb5._0x2d1f8d) + _0xf1e54e[_0xa978bf(0x1ca)] : null,
|
|
1146
|
+
_0xf1e54e[_0xa978bf(_0x421fb5._0x316b31)] ? 'workerDisposition=' + _0xf1e54e[_0xa978bf(_0x421fb5._0x2e7b63)] : null
|
|
1147
|
+
][_0xa978bf(_0x421fb5._0x1d1e24)](Boolean)[_0xa978bf(_0x421fb5._0x1313e2)]('\x20');
|
|
1148
|
+
return _0x2c7766 + _0xa978bf(0x25f) + _0x4b9dcf + '\x20' + _0x2de509 + _0xa978bf(0x215);
|
|
1149
|
+
}
|
|
1150
|
+
const _0x58d1ad = _0xf1e54e['workerHandoffError'] ? '\x20workerHandoff=false\x20error=' + _0xf1e54e[_0xa978bf(0x113)] : '';
|
|
1151
|
+
return _0x2c7766 + _0xa978bf(_0x421fb5._0x5d533a) + _0x4b9dcf + _0x58d1ad;
|
|
1152
|
+
}
|
|
1153
|
+
const _0xe9f7e3 = _0xf1e54e[_0xa978bf(_0x421fb5._0x4d2aea)] == null ? _0xf1e54e['messageId'] ?? _0xa978bf(_0x421fb5._0x50bad7) : '#' + _0xf1e54e[_0xa978bf(0x133)];
|
|
1154
|
+
return _0xe9f7e3 + _0xa978bf(0x194) + (_0xf1e54e[_0xa978bf(_0x421fb5._0x4b5e86)] ?? _0xa978bf(0x1dd));
|
|
1155
|
+
})[_0x43ef41(_0x492722._0x26445b)]('\x0a');
|
|
1156
|
+
}
|
|
1157
|
+
function formatUnclaimTaskResult(_0x2091fc) {
|
|
1158
|
+
const _0x100817 = {
|
|
1159
|
+
_0xe969fb: 0x283,
|
|
1160
|
+
_0x2b718c: 0x15e,
|
|
1161
|
+
_0x2a981a: 0x128
|
|
1162
|
+
}, _0x4c21f3 = _0x8261f0, _0xe2d71f = _0x2091fc[_0x4c21f3(0x133)] == null ? _0x4c21f3(_0x100817._0xe969fb) : '#' + _0x2091fc['taskNumber'];
|
|
1163
|
+
return _0xe2d71f + _0x4c21f3(_0x100817._0x2b718c) + _0x2091fc[_0x4c21f3(_0x100817._0x2a981a)];
|
|
1164
|
+
}
|
|
1165
|
+
function formatUpdateTaskStatusResult(_0x1011d0) {
|
|
1166
|
+
const _0x4e2c0b = {
|
|
1167
|
+
_0x56c77b: 0x15e,
|
|
1168
|
+
_0x1fe77f: 0x128
|
|
1169
|
+
}, _0x522343 = _0x8261f0, _0x224a88 = _0x1011d0[_0x522343(0x133)] == null ? _0x522343(0x283) : '#' + _0x1011d0['taskNumber'];
|
|
1170
|
+
return _0x224a88 + _0x522343(_0x4e2c0b._0x56c77b) + _0x1011d0[_0x522343(_0x4e2c0b._0x1fe77f)];
|
|
1171
|
+
}
|
|
1172
|
+
function getChatBridgeToolDefinitions() {
|
|
1173
|
+
const _0x1f7d26 = {
|
|
1174
|
+
_0x22c14c: 0x20a,
|
|
1175
|
+
_0x67c769: 0x195,
|
|
1176
|
+
_0xe3edba: 0x1aa,
|
|
1177
|
+
_0x26372c: 0x223,
|
|
1178
|
+
_0x856df6: 0x239,
|
|
1179
|
+
_0x34db91: 0x16d,
|
|
1180
|
+
_0x353f6c: 0x17b
|
|
1181
|
+
}, _0x15563b = _0x8261f0;
|
|
1182
|
+
return [
|
|
1183
|
+
{ 'name': _0x15563b(_0x1f7d26._0x22c14c) },
|
|
1184
|
+
{ 'name': 'check_messages' },
|
|
1185
|
+
{ 'name': _0x15563b(0x126) },
|
|
1186
|
+
{ 'name': _0x15563b(_0x1f7d26._0x67c769) },
|
|
1187
|
+
{ 'name': _0x15563b(0x191) },
|
|
1188
|
+
{ 'name': _0x15563b(0x289) },
|
|
1189
|
+
{ 'name': _0x15563b(_0x1f7d26._0xe3edba) },
|
|
1190
|
+
{ 'name': 'create_tasks' },
|
|
1191
|
+
{ 'name': _0x15563b(_0x1f7d26._0x26372c) },
|
|
1192
|
+
{ 'name': _0x15563b(_0x1f7d26._0x856df6) },
|
|
1193
|
+
{ 'name': _0x15563b(_0x1f7d26._0x34db91) },
|
|
1194
|
+
{ 'name': 'get_worker_status' },
|
|
1195
|
+
{ 'name': _0x15563b(0x24b) },
|
|
1196
|
+
{ 'name': _0x15563b(_0x1f7d26._0x353f6c) },
|
|
1197
|
+
{ 'name': 'escalate_to_main' },
|
|
1198
|
+
{ 'name': 'mark_waiting_input' }
|
|
1199
|
+
];
|
|
1200
|
+
}
|
|
1201
|
+
function createChatBridgeHandlers(_0x292e14) {
|
|
1202
|
+
const _0x159c26 = { _0x318953: 0x1bc }, _0x525ad7 = {
|
|
1203
|
+
_0x2b91f9: 0x110,
|
|
1204
|
+
_0x227717: 0x1bd,
|
|
1205
|
+
_0x5eeaa3: 0x219,
|
|
1206
|
+
_0x43e683: 0x14d,
|
|
1207
|
+
_0x5e2709: 0x23c,
|
|
1208
|
+
_0x2317ff: 0x1e5,
|
|
1209
|
+
_0x4a38e4: 0x1f2
|
|
1210
|
+
}, _0x636087 = {
|
|
1211
|
+
_0x324322: 0x1bd,
|
|
1212
|
+
_0x56b637: 0x274,
|
|
1213
|
+
_0xf0dab3: 0x18b,
|
|
1214
|
+
_0x3d687e: 0x219,
|
|
1215
|
+
_0x54b5e4: 0x1c9
|
|
1216
|
+
}, _0x2d725a = {
|
|
1217
|
+
_0x4f7fd2: 0x1bd,
|
|
1218
|
+
_0x46bed9: 0x18b,
|
|
1219
|
+
_0x4ede82: 0x108,
|
|
1220
|
+
_0x11a451: 0x219,
|
|
1221
|
+
_0x148e65: 0x12b,
|
|
1222
|
+
_0x56eb98: 0x1a4,
|
|
1223
|
+
_0x271e3e: 0x266,
|
|
1224
|
+
_0x28eb43: 0x190,
|
|
1225
|
+
_0x5279ee: 0x230,
|
|
1226
|
+
_0x33243f: 0x23c,
|
|
1227
|
+
_0x248b79: 0x205,
|
|
1228
|
+
_0x493da4: 0x216
|
|
1229
|
+
}, _0x2165e6 = {
|
|
1230
|
+
_0x4751c9: 0x110,
|
|
1231
|
+
_0x5d304e: 0x17d,
|
|
1232
|
+
_0x36ea40: 0x219,
|
|
1233
|
+
_0x51c06d: 0x22a
|
|
1234
|
+
}, _0x151d4c = {
|
|
1235
|
+
_0x3a4315: 0x1bd,
|
|
1236
|
+
_0x3a0b3d: 0x11d,
|
|
1237
|
+
_0x2f7eca: 0x219,
|
|
1238
|
+
_0x5ea306: 0x205,
|
|
1239
|
+
_0x2f1f1f: 0x219
|
|
1240
|
+
}, _0xe8603d = {
|
|
1241
|
+
_0x383f84: 0x1fc,
|
|
1242
|
+
_0x22bed8: 0x25a,
|
|
1243
|
+
_0x515722: 0x1b9,
|
|
1244
|
+
_0x5cebb3: 0xfc,
|
|
1245
|
+
_0x383e9b: 0x14f
|
|
1246
|
+
}, _0x1beb17 = {
|
|
1247
|
+
_0x4e8819: 0x257,
|
|
1248
|
+
_0x2e8a51: 0xfe,
|
|
1249
|
+
_0xdfa875: 0x25a,
|
|
1250
|
+
_0x4c832d: 0x285
|
|
1251
|
+
}, _0x49b527 = { _0x4cec75: 0x210 }, _0x59190e = {
|
|
1252
|
+
_0x5eb1b8: 0x193,
|
|
1253
|
+
_0x4f3f8b: 0x228,
|
|
1254
|
+
_0x3946b0: 0x133,
|
|
1255
|
+
_0x501416: 0x26a
|
|
1256
|
+
}, _0x569ee8 = {
|
|
1257
|
+
_0x26bb85: 0x25a,
|
|
1258
|
+
_0x595b4f: 0x1e1
|
|
1259
|
+
}, _0x3b42c5 = {
|
|
1260
|
+
_0xca67f: 0x25a,
|
|
1261
|
+
_0x1cc894: 0x1b0,
|
|
1262
|
+
_0x4d29d1: 0x267,
|
|
1263
|
+
_0x309a71: 0x241,
|
|
1264
|
+
_0x45d1b5: 0x15d,
|
|
1265
|
+
_0x10d474: 0x241,
|
|
1266
|
+
_0x592625: 0x241
|
|
1267
|
+
}, _0x48c171 = { _0x44a178: 0x25a }, _0x28c44c = { _0x4d2822: 0x272 }, _0x308c50 = {
|
|
1268
|
+
_0x5c7761: 0x1d2,
|
|
1269
|
+
_0x1d0c3d: 0x22f
|
|
1270
|
+
}, _0x404b41 = {
|
|
1271
|
+
_0x5aba85: 0x143,
|
|
1272
|
+
_0x577160: 0x1b7,
|
|
1273
|
+
_0x40e909: 0x114,
|
|
1274
|
+
_0x1a2cb5: 0x1af,
|
|
1275
|
+
_0xbe46c: 0x118,
|
|
1276
|
+
_0xe51b12: 0x211,
|
|
1277
|
+
_0x25bc8b: 0x162,
|
|
1278
|
+
_0x28e3e8: 0x1e3,
|
|
1279
|
+
_0x19153b: 0x1a1,
|
|
1280
|
+
_0x498ce9: 0x26c,
|
|
1281
|
+
_0x2598d0: 0x156,
|
|
1282
|
+
_0x3895cc: 0x1b7,
|
|
1283
|
+
_0x33a8d8: 0x21b,
|
|
1284
|
+
_0x4c3b37: 0x1bd,
|
|
1285
|
+
_0x310900: 0x18b,
|
|
1286
|
+
_0x448919: 0x22e,
|
|
1287
|
+
_0x15c6f2: 0x228,
|
|
1288
|
+
_0x179828: 0x230,
|
|
1289
|
+
_0x272a05: 0x23c,
|
|
1290
|
+
_0x44f8ad: 0x1c3,
|
|
1291
|
+
_0x5c3a7f: 0x118,
|
|
1292
|
+
_0x38b1c8: 0x17f,
|
|
1293
|
+
_0x24f121: 0x13f
|
|
1294
|
+
}, _0x21359d = {
|
|
1295
|
+
_0x26b474: 0x1bd,
|
|
1296
|
+
_0x5dc898: 0x1bd,
|
|
1297
|
+
_0x53144f: 0x208,
|
|
1298
|
+
_0xfb8f94: 0x230,
|
|
1299
|
+
_0x1aaf38: 0x265,
|
|
1300
|
+
_0x2591c8: 0x128,
|
|
1301
|
+
_0x5c24c8: 0x261,
|
|
1302
|
+
_0x3d4130: 0x158,
|
|
1303
|
+
_0x4bb150: 0x261
|
|
1304
|
+
}, _0x5bb01c = {
|
|
1305
|
+
_0x529a1f: 0x1bd,
|
|
1306
|
+
_0x220de4: 0x274,
|
|
1307
|
+
_0x46461f: 0x230,
|
|
1308
|
+
_0x29ee1d: 0x128,
|
|
1309
|
+
_0xb5e423: 0x261
|
|
1310
|
+
}, _0xb1e377 = {
|
|
1311
|
+
_0x272573: 0x1a9,
|
|
1312
|
+
_0x53c4cc: 0x16f,
|
|
1313
|
+
_0x4c3c9f: 0x114,
|
|
1314
|
+
_0x1ee3b7: 0x283,
|
|
1315
|
+
_0x546ee0: 0x1e3,
|
|
1316
|
+
_0x51ca05: 0x193,
|
|
1317
|
+
_0x2df59f: 0x267,
|
|
1318
|
+
_0x2b5b4a: 0xfa,
|
|
1319
|
+
_0x3da21b: 0x1c8,
|
|
1320
|
+
_0x42fe25: 0x19a,
|
|
1321
|
+
_0x15e248: 0x162,
|
|
1322
|
+
_0x21c0bd: 0x228,
|
|
1323
|
+
_0x5afa50: 0x133,
|
|
1324
|
+
_0x52b177: 0x23c,
|
|
1325
|
+
_0xbbdb94: 0xfd,
|
|
1326
|
+
_0x56500d: 0x14c
|
|
1327
|
+
}, _0x21bd9d = _0x8261f0;
|
|
1328
|
+
async function _0x5b9e7f(_0x4d77a8) {
|
|
1329
|
+
const _0x30d7b0 = _0x3954;
|
|
1330
|
+
if (!_0x292e14['daemonLocalUrl'] || !_0x292e14[_0x30d7b0(0x274)] || _0x292e14[_0x30d7b0(0x12a)] || _0x292e14[_0x30d7b0(0x1f9)] !== !![])
|
|
1331
|
+
return null;
|
|
1332
|
+
const _0x3f6d99 = parseTarget(_0x4d77a8[_0x30d7b0(_0xb1e377._0x272573)]);
|
|
1333
|
+
if (_0x3f6d99[_0x30d7b0(_0xb1e377._0x53c4cc)] !== _0x30d7b0(_0xb1e377._0x272573))
|
|
1334
|
+
return null;
|
|
1335
|
+
const _0x556df3 = _0x4d77a8[_0x30d7b0(_0xb1e377._0x4c3c9f)] != null ? _0x3f6d99[_0x30d7b0(0x1ed)] + ':t' + _0x4d77a8['threadNumber'] : _0x3f6d99[_0x30d7b0(0x1ed)] + ':' + _0x4d77a8[_0x30d7b0(0x193)];
|
|
1336
|
+
let _0x15a64e;
|
|
1337
|
+
try {
|
|
1338
|
+
const _0x46b834 = await _0x292e14['client']['readHistory']({
|
|
1339
|
+
'channel': _0x556df3,
|
|
1340
|
+
'limit': 0x14
|
|
1341
|
+
});
|
|
1342
|
+
_0x15a64e = _0x46b834[_0x30d7b0(0x1d2)][_0x30d7b0(0x1ba)](_0x17d76e => _0x17d76e['messageId'] === _0x4d77a8['messageId']);
|
|
1343
|
+
} catch {
|
|
1344
|
+
_0x15a64e = void 0x0;
|
|
1345
|
+
}
|
|
1346
|
+
const _0x4079b3 = _0x4d77a8[_0x30d7b0(0x133)] == null ? _0x30d7b0(_0xb1e377._0x1ee3b7) : '#' + _0x4d77a8[_0x30d7b0(0x133)], _0x42f2d4 = [
|
|
1347
|
+
_0x30d7b0(_0xb1e377._0x546ee0) + _0x556df3 + '\x20msg=' + _0x4d77a8[_0x30d7b0(_0xb1e377._0x51ca05)][_0x30d7b0(_0xb1e377._0x2df59f)](0x0, 0x8) + '\x20time=' + new Date()[_0x30d7b0(_0xb1e377._0x2b5b4a)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x4079b3 + _0x30d7b0(_0xb1e377._0x3da21b),
|
|
1348
|
+
'',
|
|
1349
|
+
_0x15a64e ? _0x30d7b0(_0xb1e377._0x42fe25) + _0x15a64e[_0x30d7b0(0x26c)] : _0x30d7b0(0x16a) + _0x4d77a8[_0x30d7b0(_0xb1e377._0x51ca05)],
|
|
1350
|
+
'',
|
|
1351
|
+
_0x30d7b0(0x226) + _0x556df3,
|
|
1352
|
+
_0x30d7b0(0x1ec)
|
|
1353
|
+
][_0x30d7b0(_0xb1e377._0x15e248)]('\x0a'), _0x419601 = await fetch(_0x292e14['daemonLocalUrl'] + _0x30d7b0(0x255), {
|
|
1354
|
+
'method': 'POST',
|
|
1355
|
+
'headers': { 'Content-Type': _0x30d7b0(0x108) },
|
|
1356
|
+
'body': JSON['stringify']({
|
|
1357
|
+
'agent_id': _0x292e14['agentId'],
|
|
1358
|
+
'thread_target': _0x556df3,
|
|
1359
|
+
'spawn_packet': {
|
|
1360
|
+
'replyTarget': _0x556df3,
|
|
1361
|
+
..._0x4d77a8[_0x30d7b0(_0xb1e377._0x21c0bd)] ? { 'taskId': _0x4d77a8[_0x30d7b0(0x228)] } : _0x4d77a8['taskNumber'] != null ? { 'taskId': 'task-' + _0x4d77a8[_0x30d7b0(_0xb1e377._0x5afa50)] } : {}
|
|
1362
|
+
},
|
|
1363
|
+
'payload': {
|
|
1364
|
+
'mode': _0x30d7b0(0x252),
|
|
1365
|
+
'text': _0x42f2d4
|
|
1366
|
+
}
|
|
1367
|
+
})
|
|
1368
|
+
}), _0x58fbff = await _0x419601[_0x30d7b0(0x230)]();
|
|
1369
|
+
if (!_0x58fbff['ok'])
|
|
1370
|
+
throw new Error(_0x58fbff[_0x30d7b0(_0xb1e377._0x52b177)] ?? _0x30d7b0(0x186));
|
|
1371
|
+
return {
|
|
1372
|
+
'stopMain': !![],
|
|
1373
|
+
'threadTarget': _0x556df3,
|
|
1374
|
+
'workerDisposition': _0x58fbff[_0x30d7b0(0x16c)] === _0x30d7b0(0xfd) ? _0x30d7b0(_0xb1e377._0xbbdb94) : _0x30d7b0(0x1e7),
|
|
1375
|
+
'workerHandoff': !![],
|
|
1376
|
+
'workerSessionId': _0x58fbff[_0x30d7b0(0x1a3)] ?? '',
|
|
1377
|
+
'executionMode': _0x30d7b0(_0xb1e377._0x56500d)
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
async function _0x3acf98() {
|
|
1381
|
+
const _0x3f0856 = _0x3954;
|
|
1382
|
+
if (!_0x292e14['daemonLocalUrl'] || !_0x292e14[_0x3f0856(0x274)] || _0x292e14['workerMode'])
|
|
1383
|
+
return null;
|
|
1384
|
+
try {
|
|
1385
|
+
const _0xd2bfa9 = await fetch(_0x292e14[_0x3f0856(_0x5bb01c._0x529a1f)] + _0x3f0856(0x208) + encodeURIComponent(_0x292e14[_0x3f0856(_0x5bb01c._0x220de4)])), _0xaeb29f = await _0xd2bfa9[_0x3f0856(_0x5bb01c._0x46461f)]();
|
|
1386
|
+
if (!_0xaeb29f['ok'])
|
|
1387
|
+
return null;
|
|
1388
|
+
const _0x9fb19e = new Set();
|
|
1389
|
+
for (const _0x192d0a of _0xaeb29f['workers']) {
|
|
1390
|
+
_0x192d0a[_0x3f0856(_0x5bb01c._0x29ee1d)] !== _0x3f0856(0x109) && _0x192d0a[_0x3f0856(_0x5bb01c._0xb5e423)] && _0x9fb19e[_0x3f0856(0x158)](_0x192d0a['thread_target']);
|
|
1391
|
+
}
|
|
1392
|
+
return _0x9fb19e[_0x3f0856(0x18a)] > 0x0 ? _0x9fb19e : null;
|
|
1393
|
+
} catch {
|
|
1394
|
+
return null;
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
const _0x592621 = new Set([
|
|
1398
|
+
_0x21bd9d(0x1ef),
|
|
1399
|
+
'idle',
|
|
1400
|
+
_0x21bd9d(_0x159c26._0x318953)
|
|
1401
|
+
]);
|
|
1402
|
+
async function _0xb15dbf() {
|
|
1403
|
+
const _0x10faff = _0x21bd9d;
|
|
1404
|
+
if (!_0x292e14[_0x10faff(_0x21359d._0x26b474)] || !_0x292e14['agentId'] || _0x292e14[_0x10faff(0x12a)])
|
|
1405
|
+
return null;
|
|
1406
|
+
try {
|
|
1407
|
+
const _0x54488e = await fetch(_0x292e14[_0x10faff(_0x21359d._0x5dc898)] + _0x10faff(_0x21359d._0x53144f) + encodeURIComponent(_0x292e14[_0x10faff(0x274)])), _0x264d49 = await _0x54488e[_0x10faff(_0x21359d._0xfb8f94)]();
|
|
1408
|
+
if (!_0x264d49['ok'])
|
|
1409
|
+
return null;
|
|
1410
|
+
const _0x30cd44 = new Set();
|
|
1411
|
+
for (const _0xd7ef98 of _0x264d49[_0x10faff(0x116)]) {
|
|
1412
|
+
_0x592621[_0x10faff(_0x21359d._0x1aaf38)](_0xd7ef98[_0x10faff(_0x21359d._0x2591c8)]) && _0xd7ef98[_0x10faff(_0x21359d._0x5c24c8)] && _0x30cd44[_0x10faff(_0x21359d._0x3d4130)](_0xd7ef98[_0x10faff(_0x21359d._0x4bb150)]);
|
|
1413
|
+
}
|
|
1414
|
+
return _0x30cd44[_0x10faff(0x18a)] > 0x0 ? _0x30cd44 : null;
|
|
1415
|
+
} catch {
|
|
1416
|
+
return null;
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
return {
|
|
1420
|
+
async 'send_message'(_0x2724b9) {
|
|
1421
|
+
const _0x1668d0 = _0x21bd9d;
|
|
1422
|
+
if (!_0x292e14[_0x1668d0(0x12a)] && _0x292e14['workerModeEnabled'] && _0x292e14[_0x1668d0(0x1bd)] && _0x292e14[_0x1668d0(0x274)]) {
|
|
1423
|
+
const _0x341629 = await _0x292e14[_0x1668d0(0x25a)]['resolveTarget'](_0x2724b9[_0x1668d0(_0x404b41._0x5aba85)]);
|
|
1424
|
+
if (_0x341629['task'] && _0x341629[_0x1668d0(0x1af)]) {
|
|
1425
|
+
const _0x2ae58b = _0x341629[_0x1668d0(_0x404b41._0x577160)][_0x1668d0(0x133)] != null ? '#' + _0x341629['task']['taskNumber'] : '(legacy)', _0x3786bb = _0x341629[_0x1668d0(_0x404b41._0x40e909)] != null ? _0x341629['target'] + ':t' + _0x341629[_0x1668d0(_0x404b41._0x40e909)] : _0x341629['target'] + ':' + _0x341629[_0x1668d0(_0x404b41._0x1a2cb5)]['slice'](0x0, 0x8), _0x16f8c3 = await _0xb15dbf();
|
|
1426
|
+
if (_0x16f8c3?.['has'](_0x3786bb))
|
|
1427
|
+
return [
|
|
1428
|
+
_0x1668d0(0x107) + _0x2ae58b + _0x1668d0(_0x404b41._0xbe46c) + _0x3786bb + _0x1668d0(_0x404b41._0xe51b12),
|
|
1429
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1430
|
+
][_0x1668d0(_0x404b41._0x25bc8b)]('\x0a');
|
|
1431
|
+
const _0x4621f7 = [
|
|
1432
|
+
_0x1668d0(_0x404b41._0x28e3e8) + _0x3786bb + _0x1668d0(_0x404b41._0x19153b) + new Date()[_0x1668d0(0xfa)]() + _0x1668d0(0x236),
|
|
1433
|
+
'',
|
|
1434
|
+
_0x1668d0(0x1fd) + _0x2724b9[_0x1668d0(_0x404b41._0x498ce9)],
|
|
1435
|
+
_0x1668d0(_0x404b41._0x2598d0) + _0x2ae58b + '\x20(' + _0x341629[_0x1668d0(_0x404b41._0x3895cc)]['taskId'] + ')',
|
|
1436
|
+
'Thread\x20target:\x20' + _0x3786bb,
|
|
1437
|
+
_0x1668d0(_0x404b41._0x33a8d8)
|
|
1438
|
+
][_0x1668d0(_0x404b41._0x25bc8b)]('\x0a'), _0x1c8f31 = await fetch(_0x292e14[_0x1668d0(_0x404b41._0x4c3b37)] + '/workers/deliver', {
|
|
1439
|
+
'method': _0x1668d0(_0x404b41._0x310900),
|
|
1440
|
+
'headers': { 'Content-Type': _0x1668d0(0x108) },
|
|
1441
|
+
'body': JSON[_0x1668d0(_0x404b41._0x448919)]({
|
|
1442
|
+
'agent_id': _0x292e14['agentId'],
|
|
1443
|
+
'thread_target': _0x3786bb,
|
|
1444
|
+
'spawn_packet': {
|
|
1445
|
+
'replyTarget': _0x3786bb,
|
|
1446
|
+
'taskId': _0x341629['task'][_0x1668d0(_0x404b41._0x15c6f2)]
|
|
1447
|
+
},
|
|
1448
|
+
'payload': {
|
|
1449
|
+
'mode': _0x1668d0(0x252),
|
|
1450
|
+
'text': _0x4621f7
|
|
1451
|
+
}
|
|
1452
|
+
})
|
|
1453
|
+
}), _0x289694 = await _0x1c8f31[_0x1668d0(_0x404b41._0x179828)]();
|
|
1454
|
+
if (!_0x289694['ok'])
|
|
1455
|
+
throw new Error(_0x289694[_0x1668d0(_0x404b41._0x272a05)] ?? _0x1668d0(0x268));
|
|
1456
|
+
return [
|
|
1457
|
+
_0x1668d0(_0x404b41._0x44f8ad) + _0x2ae58b + _0x1668d0(_0x404b41._0x5c3a7f) + _0x3786bb + '.\x20stopMain=true\x20executionMode=worker',
|
|
1458
|
+
'Worker\x20' + (_0x289694[_0x1668d0(0x16c)] === 'queued' ? 'queued' : 'started') + '.',
|
|
1459
|
+
_0x1668d0(0x146)
|
|
1460
|
+
][_0x1668d0(0x162)]('\x0a');
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
const _0xbd6bb1 = await _0x292e14['client'][_0x1668d0(0x233)]({
|
|
1464
|
+
'attachmentIds': _0x2724b9[_0x1668d0(_0x404b41._0x38b1c8)],
|
|
1465
|
+
'content': _0x2724b9[_0x1668d0(0x26c)],
|
|
1466
|
+
'target': _0x2724b9[_0x1668d0(0x143)],
|
|
1467
|
+
'visibility': _0x2724b9[_0x1668d0(_0x404b41._0x24f121)]
|
|
1468
|
+
});
|
|
1469
|
+
return _0x1668d0(0x220) + _0x2724b9[_0x1668d0(0x143)] + _0x1668d0(0x1fa) + _0xbd6bb1[_0x1668d0(0x193)];
|
|
1470
|
+
},
|
|
1471
|
+
async 'check_messages'() {
|
|
1472
|
+
const _0x3edb32 = _0x21bd9d, _0x40a829 = await _0x292e14[_0x3edb32(0x25a)][_0x3edb32(0x1ac)]();
|
|
1473
|
+
if (!_0x292e14[_0x3edb32(0x12a)]) {
|
|
1474
|
+
const _0x214e26 = await _0x3acf98();
|
|
1475
|
+
if (_0x214e26)
|
|
1476
|
+
return formatCheckMessages(_0x40a829[_0x3edb32(_0x308c50._0x5c7761)][_0x3edb32(_0x308c50._0x1d0c3d)](_0x3a0e54 => !_0x214e26[_0x3edb32(0x265)](_0x3a0e54[_0x3edb32(0x143)])));
|
|
952
1477
|
}
|
|
953
|
-
return
|
|
1478
|
+
return formatCheckMessages(_0x40a829[_0x3edb32(_0x308c50._0x5c7761)]);
|
|
1479
|
+
},
|
|
1480
|
+
async 'read_history'(_0x1959cd) {
|
|
1481
|
+
const _0x47e12e = _0x21bd9d, _0x149764 = await _0x292e14['client'][_0x47e12e(_0x28c44c._0x4d2822)](_0x1959cd);
|
|
1482
|
+
return formatHistory(_0x149764);
|
|
1483
|
+
},
|
|
1484
|
+
async 'list_server'() {
|
|
1485
|
+
const _0x1e3718 = _0x21bd9d, _0x581675 = await _0x292e14[_0x1e3718(_0x48c171._0x44a178)]['listServer']();
|
|
1486
|
+
return formatServerDirectory(_0x581675);
|
|
1487
|
+
},
|
|
1488
|
+
async 'list_tasks'(_0x44af19) {
|
|
1489
|
+
const _0x4ddafc = _0x21bd9d, _0x1a1c36 = await _0x292e14[_0x4ddafc(_0x3b42c5._0xca67f)][_0x4ddafc(0xf9)](_0x44af19);
|
|
1490
|
+
let _0x19cbdc;
|
|
1491
|
+
if (_0x292e14[_0x4ddafc(0x1bd)] && _0x292e14[_0x4ddafc(0x274)])
|
|
1492
|
+
try {
|
|
1493
|
+
const _0xd7957a = await fetch(_0x292e14['daemonLocalUrl'] + _0x4ddafc(0x208) + encodeURIComponent(_0x292e14['agentId'])), _0x3fdc6 = await _0xd7957a[_0x4ddafc(0x230)]();
|
|
1494
|
+
if (_0x3fdc6['ok']) {
|
|
1495
|
+
const _0x26ea5e = _0x44af19['channel'] + ':';
|
|
1496
|
+
_0x19cbdc = new Set();
|
|
1497
|
+
for (const _0x141270 of _0x3fdc6[_0x4ddafc(0x116)]) {
|
|
1498
|
+
if (_0x141270['status'] === _0x4ddafc(0x109))
|
|
1499
|
+
continue;
|
|
1500
|
+
if (_0x141270['thread_target']?.[_0x4ddafc(_0x3b42c5._0x1cc894)](_0x26ea5e)) {
|
|
1501
|
+
const _0x5800af = _0x141270['thread_target'][_0x4ddafc(_0x3b42c5._0x4d29d1)](_0x26ea5e[_0x4ddafc(0x161)]), _0x4263f5 = _0x1a1c36[_0x4ddafc(_0x3b42c5._0x309a71)]['find'](_0x235b58 => _0x235b58['messageId']?.[_0x4ddafc(0x1b0)](_0x5800af) === !![]);
|
|
1502
|
+
if (_0x4263f5?.['taskNumber'] != null) {
|
|
1503
|
+
_0x19cbdc['add'](_0x4263f5[_0x4ddafc(0x133)]);
|
|
1504
|
+
continue;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
if (_0x141270[_0x4ddafc(_0x3b42c5._0x45d1b5)]) {
|
|
1508
|
+
const _0x5d780b = _0x1a1c36[_0x4ddafc(_0x3b42c5._0x10d474)]['find'](_0x3321d4 => _0x3321d4['taskId'] === _0x141270['task_id']);
|
|
1509
|
+
_0x5d780b?.[_0x4ddafc(0x133)] != null && _0x19cbdc['add'](_0x5d780b[_0x4ddafc(0x133)]);
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
} catch {
|
|
1514
|
+
}
|
|
1515
|
+
return formatTaskList(_0x1a1c36[_0x4ddafc(_0x3b42c5._0x592625)], _0x19cbdc);
|
|
1516
|
+
},
|
|
1517
|
+
async 'create_tasks'(_0x3e4a18) {
|
|
1518
|
+
const _0x4b7f36 = _0x21bd9d, _0x12292d = await _0x292e14[_0x4b7f36(_0x569ee8._0x26bb85)][_0x4b7f36(_0x569ee8._0x595b4f)](_0x3e4a18);
|
|
1519
|
+
return formatCreatedTasks(_0x12292d[_0x4b7f36(0x241)]);
|
|
1520
|
+
},
|
|
1521
|
+
async 'claim_tasks'(_0x4bcd1a) {
|
|
1522
|
+
const _0x59abae = _0x21bd9d, _0x2c0f53 = await _0x292e14[_0x59abae(0x25a)][_0x59abae(_0x49b527._0x4cec75)](_0x4bcd1a), _0x52dfef = await Promise[_0x59abae(0x273)](_0x2c0f53['results'][_0x59abae(0x227)](async _0x5dcc7b => {
|
|
1523
|
+
const _0x495b7f = _0x59abae;
|
|
1524
|
+
if (!_0x5dcc7b[_0x495b7f(0x204)] || !_0x5dcc7b[_0x495b7f(_0x59190e._0x5eb1b8)])
|
|
1525
|
+
return _0x5dcc7b;
|
|
1526
|
+
try {
|
|
1527
|
+
const _0x1f3e77 = await _0x5b9e7f({
|
|
1528
|
+
'channel': _0x4bcd1a['channel'],
|
|
1529
|
+
'messageId': _0x5dcc7b[_0x495b7f(0x193)],
|
|
1530
|
+
'taskId': _0x5dcc7b[_0x495b7f(_0x59190e._0x4f3f8b)],
|
|
1531
|
+
'taskNumber': _0x5dcc7b[_0x495b7f(_0x59190e._0x3946b0)],
|
|
1532
|
+
'threadNumber': _0x5dcc7b[_0x495b7f(0x114)]
|
|
1533
|
+
});
|
|
1534
|
+
return _0x1f3e77 ? {
|
|
1535
|
+
..._0x5dcc7b,
|
|
1536
|
+
..._0x1f3e77
|
|
1537
|
+
} : _0x5dcc7b;
|
|
1538
|
+
} catch (_0x445533) {
|
|
1539
|
+
return {
|
|
1540
|
+
..._0x5dcc7b,
|
|
1541
|
+
'workerHandoffError': _0x445533 instanceof Error ? _0x445533[_0x495b7f(_0x59190e._0x501416)] : _0x495b7f(0x186)
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
}));
|
|
1545
|
+
return formatClaimTaskResults(_0x52dfef);
|
|
1546
|
+
},
|
|
1547
|
+
async 'unclaim_task'(_0x1135c9) {
|
|
1548
|
+
const _0x34dfd4 = _0x21bd9d, _0x4533e9 = await _0x292e14[_0x34dfd4(0x25a)][_0x34dfd4(0x1fe)](_0x1135c9);
|
|
1549
|
+
return formatUnclaimTaskResult(_0x4533e9);
|
|
1550
|
+
},
|
|
1551
|
+
async 'update_task_status'(_0x2a5c63) {
|
|
1552
|
+
const _0x9b65cb = _0x21bd9d, _0x49ec87 = await _0x292e14['client'][_0x9b65cb(0x235)](_0x2a5c63);
|
|
1553
|
+
return formatUpdateTaskStatusResult(_0x49ec87);
|
|
1554
|
+
},
|
|
1555
|
+
async 'upload_file'(_0x27eb19) {
|
|
1556
|
+
const _0x55bbe2 = _0x21bd9d, _0x520814 = await _0x292e14[_0x55bbe2(_0x1beb17._0x4e8819)](_0x27eb19[_0x55bbe2(_0x1beb17._0x2e8a51)]), {
|
|
1557
|
+
sizeBytes: _0x54381c,
|
|
1558
|
+
..._0x20462d
|
|
1559
|
+
} = _0x520814, _0x52b781 = await _0x292e14[_0x55bbe2(_0x1beb17._0xdfa875)][_0x55bbe2(_0x1beb17._0x4c832d)]({
|
|
1560
|
+
'channel': _0x27eb19['channel'],
|
|
1561
|
+
..._0x20462d
|
|
1562
|
+
});
|
|
1563
|
+
return formatUploadResult(_0x52b781);
|
|
1564
|
+
},
|
|
1565
|
+
async 'view_file'(_0x1528ec) {
|
|
1566
|
+
const _0x471dfe = _0x21bd9d, _0xd7e217 = await _0x292e14[_0x471dfe(0x1b9)][_0x471dfe(_0xe8603d._0x383f84)](_0x1528ec['attachment_id']);
|
|
1567
|
+
if (_0xd7e217)
|
|
1568
|
+
return formatViewFileResult(_0xd7e217, !![]);
|
|
1569
|
+
const _0x1461d4 = await _0x292e14[_0x471dfe(_0xe8603d._0x22bed8)][_0x471dfe(0x11f)](_0x1528ec['attachment_id']), _0x574a96 = await _0x292e14[_0x471dfe(_0xe8603d._0x515722)]['save']({
|
|
1570
|
+
'attachmentId': _0x1528ec[_0x471dfe(0x153)],
|
|
1571
|
+
'contentType': _0x1461d4[_0x471dfe(_0xe8603d._0x5cebb3)],
|
|
1572
|
+
'data': _0x1461d4['data'],
|
|
1573
|
+
'originalFilename': _0x1461d4[_0x471dfe(_0xe8603d._0x383e9b)]
|
|
1574
|
+
});
|
|
1575
|
+
return formatViewFileResult(_0x574a96, ![]);
|
|
1576
|
+
},
|
|
1577
|
+
async 'get_worker_status'(_0x57ca76) {
|
|
1578
|
+
const _0x594324 = _0x21bd9d;
|
|
1579
|
+
if (!_0x292e14[_0x594324(_0x151d4c._0x3a4315)])
|
|
1580
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1581
|
+
const _0x331d7f = await fetch(_0x292e14[_0x594324(0x1bd)] + _0x594324(_0x151d4c._0x3a0b3d) + encodeURIComponent(_0x57ca76[_0x594324(_0x151d4c._0x2f7eca)])), _0x3d2b1b = await _0x331d7f['json']();
|
|
1582
|
+
if (!_0x3d2b1b['ok'])
|
|
1583
|
+
return _0x594324(0x205) + _0x57ca76[_0x594324(0x219)] + '\x22\x20not\x20found';
|
|
1584
|
+
return _0x594324(_0x151d4c._0x5ea306) + _0x57ca76[_0x594324(_0x151d4c._0x2f1f1f)] + '\x22:\x20status=' + _0x3d2b1b['status'];
|
|
1585
|
+
},
|
|
1586
|
+
async 'get_worker_result'(_0x67c613) {
|
|
1587
|
+
const _0x497b67 = _0x21bd9d;
|
|
1588
|
+
if (!_0x292e14['daemonLocalUrl'])
|
|
1589
|
+
return _0x497b67(_0x2165e6._0x4751c9);
|
|
1590
|
+
const _0x29b87f = await fetch(_0x292e14['daemonLocalUrl'] + _0x497b67(0x1d5) + encodeURIComponent(_0x67c613['work_key'])), _0x254571 = await _0x29b87f[_0x497b67(0x230)]();
|
|
1591
|
+
if (!_0x254571['resume_packet'])
|
|
1592
|
+
return _0x497b67(_0x2165e6._0x5d304e) + _0x67c613[_0x497b67(_0x2165e6._0x36ea40)] + '\x22';
|
|
1593
|
+
return JSON['stringify'](_0x254571[_0x497b67(_0x2165e6._0x51c06d)], null, 0x2);
|
|
1594
|
+
},
|
|
1595
|
+
async 'finish_worker'(_0xf788a3) {
|
|
1596
|
+
const _0x588cb6 = _0x21bd9d;
|
|
1597
|
+
if (!_0x292e14[_0x588cb6(_0x2d725a._0x4f7fd2)])
|
|
1598
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1599
|
+
const _0x4d390c = await fetch(_0x292e14[_0x588cb6(0x1bd)] + _0x588cb6(0x174), {
|
|
1600
|
+
'method': _0x588cb6(_0x2d725a._0x46bed9),
|
|
1601
|
+
'headers': { 'Content-Type': _0x588cb6(_0x2d725a._0x4ede82) },
|
|
1602
|
+
'body': JSON['stringify']({
|
|
1603
|
+
'work_key': _0xf788a3[_0x588cb6(_0x2d725a._0x11a451)],
|
|
1604
|
+
'resume_packet': {
|
|
1605
|
+
'objective': '',
|
|
1606
|
+
'result': _0xf788a3[_0x588cb6(_0x2d725a._0x148e65)],
|
|
1607
|
+
'summary': _0xf788a3[_0x588cb6(_0x2d725a._0x56eb98)],
|
|
1608
|
+
'decisions': _0xf788a3[_0x588cb6(0x19f)] ?? [],
|
|
1609
|
+
'filesChanged': _0xf788a3[_0x588cb6(_0x2d725a._0x271e3e)] ?? [],
|
|
1610
|
+
'openIssues': _0xf788a3[_0x588cb6(0x199)] ?? [],
|
|
1611
|
+
'nextSteps': _0xf788a3[_0x588cb6(_0x2d725a._0x28eb43)] ?? []
|
|
1612
|
+
}
|
|
1613
|
+
})
|
|
1614
|
+
}), _0x5ef67e = await _0x4d390c[_0x588cb6(_0x2d725a._0x5279ee)]();
|
|
1615
|
+
if (!_0x5ef67e['ok'])
|
|
1616
|
+
throw new Error(_0x5ef67e[_0x588cb6(_0x2d725a._0x33243f)] ?? 'finish_worker\x20failed');
|
|
1617
|
+
return _0x588cb6(_0x2d725a._0x248b79) + _0xf788a3[_0x588cb6(_0x2d725a._0x11a451)] + _0x588cb6(_0x2d725a._0x493da4) + _0xf788a3['result'];
|
|
1618
|
+
},
|
|
1619
|
+
async 'mark_waiting_input'(_0x4e0f11) {
|
|
1620
|
+
const _0x47d078 = _0x21bd9d;
|
|
1621
|
+
if (!_0x292e14[_0x47d078(_0x636087._0x324322)] || !_0x292e14[_0x47d078(_0x636087._0x56b637)])
|
|
1622
|
+
return _0x47d078(0x28d);
|
|
1623
|
+
const _0x2ad921 = await fetch(_0x292e14[_0x47d078(0x1bd)] + '/workers/waiting_input', {
|
|
1624
|
+
'method': _0x47d078(_0x636087._0xf0dab3),
|
|
1625
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1626
|
+
'body': JSON[_0x47d078(0x22e)]({
|
|
1627
|
+
'work_key': _0x4e0f11['work_key'],
|
|
1628
|
+
'agent_id': _0x292e14[_0x47d078(0x274)]
|
|
1629
|
+
})
|
|
1630
|
+
}), _0x3ded8f = await _0x2ad921[_0x47d078(0x230)]();
|
|
1631
|
+
if (!_0x3ded8f['ok'])
|
|
1632
|
+
throw new Error(_0x3ded8f[_0x47d078(0x23c)] ?? _0x47d078(0x140));
|
|
1633
|
+
return 'Worker\x20\x22' + _0x4e0f11[_0x47d078(_0x636087._0x3d687e)] + _0x47d078(_0x636087._0x54b5e4);
|
|
1634
|
+
},
|
|
1635
|
+
async 'escalate_to_main'(_0x29b4c5) {
|
|
1636
|
+
const _0x4ff3ab = _0x21bd9d;
|
|
1637
|
+
if (!_0x292e14[_0x4ff3ab(0x1bd)])
|
|
1638
|
+
return _0x4ff3ab(_0x525ad7._0x2b91f9);
|
|
1639
|
+
const _0x5354c3 = await fetch(_0x292e14[_0x4ff3ab(_0x525ad7._0x227717)] + '/workers/escalate', {
|
|
1640
|
+
'method': _0x4ff3ab(0x18b),
|
|
1641
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1642
|
+
'body': JSON[_0x4ff3ab(0x22e)]({
|
|
1643
|
+
'work_key': _0x29b4c5[_0x4ff3ab(_0x525ad7._0x5eeaa3)],
|
|
1644
|
+
'reason': _0x29b4c5[_0x4ff3ab(_0x525ad7._0x43e683)]
|
|
1645
|
+
})
|
|
1646
|
+
}), _0x5f166a = await _0x5354c3[_0x4ff3ab(0x230)]();
|
|
1647
|
+
if (!_0x5f166a['ok'])
|
|
1648
|
+
throw new Error(_0x5f166a[_0x4ff3ab(_0x525ad7._0x5e2709)] ?? _0x4ff3ab(_0x525ad7._0x2317ff));
|
|
1649
|
+
return _0x4ff3ab(_0x525ad7._0x4a38e4) + _0x29b4c5[_0x4ff3ab(0x14d)];
|
|
1650
|
+
}
|
|
1651
|
+
};
|
|
1652
|
+
}
|
|
1653
|
+
function textResult(_0x97d0e9, _0x518256 = ![]) {
|
|
1654
|
+
const _0x3ba914 = { _0x3c045f: 0x281 }, _0x581f18 = _0x8261f0;
|
|
1655
|
+
return {
|
|
1656
|
+
'content': [{
|
|
1657
|
+
'type': _0x581f18(_0x3ba914._0x3c045f),
|
|
1658
|
+
'text': _0x97d0e9
|
|
1659
|
+
}],
|
|
1660
|
+
..._0x518256 ? { 'isError': !![] } : {}
|
|
1661
|
+
};
|
|
1662
|
+
}
|
|
1663
|
+
async function registerChatBridgeTools(_0x2e8512, _0x3ed5b9, _0x1c4186) {
|
|
1664
|
+
const _0xa07e1a = {
|
|
1665
|
+
_0x464721: 0x275,
|
|
1666
|
+
_0x4397c0: 0x102,
|
|
1667
|
+
_0x37fb54: 0x246,
|
|
1668
|
+
_0x490ecb: 0x1ce,
|
|
1669
|
+
_0x2378f1: 0x249,
|
|
1670
|
+
_0x4fd73f: 0x102,
|
|
1671
|
+
_0x5463e3: 0x126,
|
|
1672
|
+
_0x145f5d: 0x23b,
|
|
1673
|
+
_0x391012: 0x1ce,
|
|
1674
|
+
_0x37aa85: 0x102,
|
|
1675
|
+
_0x9cdfdd: 0x23b,
|
|
1676
|
+
_0x108e34: 0x263,
|
|
1677
|
+
_0x43cb95: 0x1ce,
|
|
1678
|
+
_0x10ff6b: 0x246,
|
|
1679
|
+
_0x25591e: 0x1c1,
|
|
1680
|
+
_0xde14b4: 0x23b,
|
|
1681
|
+
_0x213fb2: 0x171,
|
|
1682
|
+
_0x5169d2: 0x1a6,
|
|
1683
|
+
_0x298cee: 0x178,
|
|
1684
|
+
_0xaab893: 0x1c1,
|
|
1685
|
+
_0x1de145: 0x240,
|
|
1686
|
+
_0xf36f37: 0x23b,
|
|
1687
|
+
_0x2ee286: 0x23b,
|
|
1688
|
+
_0x44df8c: 0x23d,
|
|
1689
|
+
_0x609c7f: 0x23d,
|
|
1690
|
+
_0x128dd4: 0x1e2,
|
|
1691
|
+
_0x154244: 0x11b,
|
|
1692
|
+
_0x34b933: 0x130,
|
|
1693
|
+
_0x2c8b81: 0x23b,
|
|
1694
|
+
_0x368100: 0x264,
|
|
1695
|
+
_0x3f4d5a: 0x102,
|
|
1696
|
+
_0x45e682: 0x28a,
|
|
1697
|
+
_0x4783fa: 0x24b,
|
|
1698
|
+
_0x524892: 0x23b,
|
|
1699
|
+
_0x6d31e2: 0x1e4,
|
|
1700
|
+
_0x215edb: 0x1e2,
|
|
1701
|
+
_0x34b6d9: 0x137,
|
|
1702
|
+
_0x4dd06d: 0x134,
|
|
1703
|
+
_0x867b38: 0x23b,
|
|
1704
|
+
_0x394e4e: 0x1ce,
|
|
1705
|
+
_0x198e79: 0x1ce,
|
|
1706
|
+
_0x183a46: 0x23b,
|
|
1707
|
+
_0x567aaf: 0x12a,
|
|
1708
|
+
_0x12df31: 0x1b8
|
|
1709
|
+
}, _0x3ee0e3 = { _0x4e03a4: 0x13c }, _0xb3a833 = { _0x1a6091: 0x1e5 }, _0x580c25 = { _0xf304a1: 0x280 }, _0x517570 = { _0x3d3fea: 0x26a }, _0x4ea78d = { _0x30ff3d: 0x289 }, _0x3044d5 = {
|
|
1710
|
+
_0x4aca42: 0x191,
|
|
1711
|
+
_0x2bf71f: 0x26a
|
|
1712
|
+
}, _0x1d5e63 = {
|
|
1713
|
+
_0x3edf42: 0x239,
|
|
1714
|
+
_0x4dd1d8: 0x26a
|
|
1715
|
+
}, _0x362a4d = { _0x28bf2e: 0x223 }, _0x51714b = {
|
|
1716
|
+
_0x1597ad: 0x26a,
|
|
1717
|
+
_0x7d07ff: 0x131
|
|
1718
|
+
}, _0x5319c7 = { _0x5da0f0: 0x181 }, _0x214591 = {
|
|
1719
|
+
_0x255e28: 0x126,
|
|
1720
|
+
_0x5a607a: 0x26a,
|
|
1721
|
+
_0x111766: 0x163
|
|
1722
|
+
}, _0x2594e4 = { _0x547dc1: 0x26a }, _0x24d0fa = _0x8261f0, {z: _0x11800e} = await import(_0x24d0fa(_0xa07e1a._0x464721));
|
|
1723
|
+
_0x2e8512[_0x24d0fa(_0xa07e1a._0x4397c0)](_0x24d0fa(0x20a), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
|
|
1724
|
+
'target': _0x11800e[_0x24d0fa(0x23b)](),
|
|
1725
|
+
'content': _0x11800e[_0x24d0fa(0x23b)](),
|
|
1726
|
+
'attachment_ids': _0x11800e[_0x24d0fa(_0xa07e1a._0x37fb54)](_0x11800e['string']())[_0x24d0fa(0x1ce)](),
|
|
1727
|
+
'visibility': _0x11800e[_0x24d0fa(0x1e2)]([
|
|
1728
|
+
_0x24d0fa(0x18e),
|
|
1729
|
+
_0x24d0fa(0x278)
|
|
1730
|
+
])[_0x24d0fa(_0xa07e1a._0x490ecb)]()[_0x24d0fa(_0xa07e1a._0x2378f1)]('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
|
|
1731
|
+
}, async _0x253bce => {
|
|
1732
|
+
const _0x460a3b = _0x24d0fa;
|
|
1733
|
+
try {
|
|
1734
|
+
return textResult(await _0x3ed5b9['send_message'](_0x253bce));
|
|
1735
|
+
} catch (_0x1e17d8) {
|
|
1736
|
+
return textResult(_0x1e17d8 instanceof Error ? _0x1e17d8[_0x460a3b(_0x2594e4._0x547dc1)] : _0x460a3b(0x10c), !![]);
|
|
1737
|
+
}
|
|
1738
|
+
}), _0x2e8512[_0x24d0fa(_0xa07e1a._0x4fd73f)](_0x24d0fa(0x1da), _0x24d0fa(0x120), {}, async () => {
|
|
1739
|
+
const _0xc030aa = _0x24d0fa;
|
|
1740
|
+
try {
|
|
1741
|
+
return textResult(await _0x3ed5b9[_0xc030aa(0x1da)]());
|
|
1742
|
+
} catch (_0x20d478) {
|
|
1743
|
+
return textResult(_0x20d478 instanceof Error ? _0x20d478[_0xc030aa(0x26a)] : _0xc030aa(0x25d), !![]);
|
|
1744
|
+
}
|
|
1745
|
+
}), _0x2e8512[_0x24d0fa(_0xa07e1a._0x4397c0)](_0x24d0fa(_0xa07e1a._0x5463e3), _0x24d0fa(0x1c4), {
|
|
1746
|
+
'channel': _0x11800e[_0x24d0fa(_0xa07e1a._0x145f5d)](),
|
|
1747
|
+
'limit': _0x11800e[_0x24d0fa(0x23d)]()[_0x24d0fa(_0xa07e1a._0x490ecb)](),
|
|
1748
|
+
'before': _0x11800e[_0x24d0fa(0x23d)]()['optional'](),
|
|
1749
|
+
'after': _0x11800e[_0x24d0fa(0x23d)]()[_0x24d0fa(_0xa07e1a._0x391012)]()
|
|
1750
|
+
}, async _0x45aa6e => {
|
|
1751
|
+
const _0x18111d = _0x24d0fa;
|
|
1752
|
+
try {
|
|
1753
|
+
return textResult(await _0x3ed5b9[_0x18111d(_0x214591._0x255e28)](_0x45aa6e));
|
|
1754
|
+
} catch (_0x256ac7) {
|
|
1755
|
+
return textResult(_0x256ac7 instanceof Error ? _0x256ac7[_0x18111d(_0x214591._0x5a607a)] : _0x18111d(_0x214591._0x111766), !![]);
|
|
1756
|
+
}
|
|
1757
|
+
}), _0x2e8512[_0x24d0fa(0x102)]('list_server', 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
1758
|
+
const _0x4b6d40 = _0x24d0fa;
|
|
1759
|
+
try {
|
|
1760
|
+
return textResult(await _0x3ed5b9[_0x4b6d40(0x195)]());
|
|
1761
|
+
} catch (_0x1bb227) {
|
|
1762
|
+
return textResult(_0x1bb227 instanceof Error ? _0x1bb227[_0x4b6d40(0x26a)] : _0x4b6d40(_0x5319c7._0x5da0f0), !![]);
|
|
1763
|
+
}
|
|
1764
|
+
}), _0x2e8512[_0x24d0fa(_0xa07e1a._0x37aa85)](_0x24d0fa(0x1aa), 'List\x20tasks\x20in\x20a\x20channel.', {
|
|
1765
|
+
'channel': _0x11800e[_0x24d0fa(_0xa07e1a._0x9cdfdd)](),
|
|
1766
|
+
'status': _0x11800e[_0x24d0fa(0x1e2)]([
|
|
1767
|
+
'todo',
|
|
1768
|
+
_0x24d0fa(0x287),
|
|
1769
|
+
_0x24d0fa(0x11b),
|
|
1770
|
+
_0x24d0fa(_0xa07e1a._0x108e34)
|
|
1771
|
+
])['optional']()
|
|
1772
|
+
}, async _0x183202 => {
|
|
1773
|
+
const _0x124c94 = _0x24d0fa;
|
|
1774
|
+
try {
|
|
1775
|
+
return textResult(await _0x3ed5b9['list_tasks'](_0x183202));
|
|
1776
|
+
} catch (_0x34602e) {
|
|
1777
|
+
return textResult(_0x34602e instanceof Error ? _0x34602e[_0x124c94(_0x51714b._0x1597ad)] : _0x124c94(_0x51714b._0x7d07ff), !![]);
|
|
1778
|
+
}
|
|
1779
|
+
}), _0x2e8512[_0x24d0fa(0x102)](_0x24d0fa(0x286), _0x24d0fa(0x198), {
|
|
1780
|
+
'channel': _0x11800e[_0x24d0fa(0x23b)](),
|
|
1781
|
+
'idempotency_key': _0x11800e[_0x24d0fa(0x23b)]()[_0x24d0fa(_0xa07e1a._0x43cb95)](),
|
|
1782
|
+
'tasks': _0x11800e[_0x24d0fa(_0xa07e1a._0x10ff6b)](_0x11800e[_0x24d0fa(_0xa07e1a._0x25591e)]({
|
|
1783
|
+
'title': _0x11800e[_0x24d0fa(0x23b)](),
|
|
1784
|
+
'description': _0x11800e[_0x24d0fa(_0xa07e1a._0xde14b4)]()['optional'](),
|
|
1785
|
+
'priority': _0x11800e[_0x24d0fa(0x1e2)]([
|
|
1786
|
+
_0x24d0fa(_0xa07e1a._0x213fb2),
|
|
1787
|
+
_0x24d0fa(0x1d3),
|
|
1788
|
+
_0x24d0fa(0x119),
|
|
1789
|
+
_0x24d0fa(0x164)
|
|
1790
|
+
])[_0x24d0fa(_0xa07e1a._0x490ecb)]()
|
|
1791
|
+
}))
|
|
1792
|
+
}, async _0x343ef4 => {
|
|
1793
|
+
const _0x2fe45d = _0x24d0fa;
|
|
1794
|
+
try {
|
|
1795
|
+
return textResult(await _0x3ed5b9[_0x2fe45d(0x286)](_0x343ef4));
|
|
1796
|
+
} catch (_0x4cfad3) {
|
|
1797
|
+
return textResult(_0x4cfad3 instanceof Error ? _0x4cfad3['message'] : 'create_tasks\x20failed', !![]);
|
|
1798
|
+
}
|
|
1799
|
+
}), _0x2e8512['tool'](_0x24d0fa(0x223), _0x24d0fa(_0xa07e1a._0x5169d2), {
|
|
1800
|
+
'channel': _0x11800e['string'](),
|
|
1801
|
+
'task_numbers': _0x11800e[_0x24d0fa(0x246)](_0x11800e['number']())[_0x24d0fa(0x1ce)](),
|
|
1802
|
+
'message_ids': _0x11800e[_0x24d0fa(0x246)](_0x11800e['string']())[_0x24d0fa(_0xa07e1a._0x43cb95)](),
|
|
1803
|
+
'evidence': _0x11800e[_0x24d0fa(_0xa07e1a._0x298cee)](_0x11800e[_0x24d0fa(0x23b)](), _0x11800e[_0x24d0fa(_0xa07e1a._0xaab893)]({
|
|
1804
|
+
'create_thread': _0x11800e[_0x24d0fa(_0xa07e1a._0x1de145)]()[_0x24d0fa(0x1ce)](),
|
|
1805
|
+
'create_task': _0x11800e[_0x24d0fa(_0xa07e1a._0x1de145)]()['optional']()
|
|
1806
|
+
}))['optional'](),
|
|
1807
|
+
'idempotency_key': _0x11800e[_0x24d0fa(_0xa07e1a._0xf36f37)]()['optional']()
|
|
1808
|
+
}, async _0x209440 => {
|
|
1809
|
+
const _0x4dff48 = _0x24d0fa;
|
|
1810
|
+
try {
|
|
1811
|
+
return textResult(await _0x3ed5b9[_0x4dff48(_0x362a4d._0x28bf2e)](_0x209440));
|
|
1812
|
+
} catch (_0x53be20) {
|
|
1813
|
+
return textResult(_0x53be20 instanceof Error ? _0x53be20[_0x4dff48(0x26a)] : _0x4dff48(0x144), !![]);
|
|
1814
|
+
}
|
|
1815
|
+
}), _0x2e8512[_0x24d0fa(0x102)](_0x24d0fa(0x239), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.', {
|
|
1816
|
+
'channel': _0x11800e[_0x24d0fa(_0xa07e1a._0x2ee286)](),
|
|
1817
|
+
'task_number': _0x11800e[_0x24d0fa(_0xa07e1a._0x44df8c)](),
|
|
1818
|
+
'idempotency_key': _0x11800e[_0x24d0fa(0x23b)]()['optional']()
|
|
1819
|
+
}, async _0x43e755 => {
|
|
1820
|
+
const _0x42c3b0 = _0x24d0fa;
|
|
1821
|
+
try {
|
|
1822
|
+
return textResult(await _0x3ed5b9[_0x42c3b0(_0x1d5e63._0x3edf42)](_0x43e755));
|
|
1823
|
+
} catch (_0x1fb15b) {
|
|
1824
|
+
return textResult(_0x1fb15b instanceof Error ? _0x1fb15b[_0x42c3b0(_0x1d5e63._0x4dd1d8)] : _0x42c3b0(0x123), !![]);
|
|
1825
|
+
}
|
|
1826
|
+
}), _0x2e8512['tool'](_0x24d0fa(0x16d), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.', {
|
|
1827
|
+
'channel': _0x11800e[_0x24d0fa(_0xa07e1a._0x145f5d)](),
|
|
1828
|
+
'task_number': _0x11800e[_0x24d0fa(_0xa07e1a._0x609c7f)](),
|
|
1829
|
+
'status': _0x11800e[_0x24d0fa(_0xa07e1a._0x128dd4)]([
|
|
1830
|
+
_0x24d0fa(0x1be),
|
|
1831
|
+
_0x24d0fa(0x287),
|
|
1832
|
+
_0x24d0fa(_0xa07e1a._0x154244),
|
|
1833
|
+
_0x24d0fa(0x263)
|
|
1834
|
+
]),
|
|
1835
|
+
'idempotency_key': _0x11800e['string']()['optional']()
|
|
1836
|
+
}, async _0x58df81 => {
|
|
1837
|
+
const _0x5d03e1 = _0x24d0fa;
|
|
1838
|
+
try {
|
|
1839
|
+
return textResult(await _0x3ed5b9['update_task_status'](_0x58df81));
|
|
1840
|
+
} catch (_0x2d8988) {
|
|
1841
|
+
return textResult(_0x2d8988 instanceof Error ? _0x2d8988['message'] : _0x5d03e1(0x27e), !![]);
|
|
1842
|
+
}
|
|
1843
|
+
}), _0x2e8512[_0x24d0fa(_0xa07e1a._0x4fd73f)](_0x24d0fa(0x191), _0x24d0fa(_0xa07e1a._0x34b933), {
|
|
1844
|
+
'channel': _0x11800e[_0x24d0fa(0x23b)](),
|
|
1845
|
+
'file_path': _0x11800e[_0x24d0fa(_0xa07e1a._0x2c8b81)]()
|
|
1846
|
+
}, async _0x28e1ca => {
|
|
1847
|
+
const _0x5527b6 = _0x24d0fa;
|
|
1848
|
+
try {
|
|
1849
|
+
return textResult(await _0x3ed5b9[_0x5527b6(_0x3044d5._0x4aca42)](_0x28e1ca));
|
|
1850
|
+
} catch (_0x116acb) {
|
|
1851
|
+
return textResult(_0x116acb instanceof Error ? _0x116acb[_0x5527b6(_0x3044d5._0x2bf71f)] : _0x5527b6(0x15b), !![]);
|
|
1852
|
+
}
|
|
1853
|
+
}), _0x2e8512[_0x24d0fa(0x102)](_0x24d0fa(0x289), _0x24d0fa(_0xa07e1a._0x368100), { 'attachment_id': _0x11800e[_0x24d0fa(0x23b)]() }, async _0x129fe1 => {
|
|
1854
|
+
const _0x1a4820 = _0x24d0fa;
|
|
1855
|
+
try {
|
|
1856
|
+
return textResult(await _0x3ed5b9[_0x1a4820(_0x4ea78d._0x30ff3d)](_0x129fe1));
|
|
1857
|
+
} catch (_0x5f1a6a) {
|
|
1858
|
+
return textResult(_0x5f1a6a instanceof Error ? _0x5f1a6a[_0x1a4820(0x26a)] : _0x1a4820(0x247), !![]);
|
|
1859
|
+
}
|
|
1860
|
+
}), _0x2e8512[_0x24d0fa(_0xa07e1a._0x3f4d5a)](_0x24d0fa(0x142), _0x24d0fa(_0xa07e1a._0x45e682), { 'work_key': _0x11800e['string']() }, async _0x495f0a => {
|
|
1861
|
+
const _0x4ba6bb = _0x24d0fa;
|
|
1862
|
+
try {
|
|
1863
|
+
return textResult(await _0x3ed5b9['get_worker_status'](_0x495f0a));
|
|
1864
|
+
} catch (_0x7ea0c) {
|
|
1865
|
+
return textResult(_0x7ea0c instanceof Error ? _0x7ea0c[_0x4ba6bb(_0x517570._0x3d3fea)] : _0x4ba6bb(0x18d), !![]);
|
|
1866
|
+
}
|
|
1867
|
+
}), _0x2e8512[_0x24d0fa(_0xa07e1a._0x4397c0)](_0x24d0fa(_0xa07e1a._0x4783fa), _0x24d0fa(0x177), { 'work_key': _0x11800e[_0x24d0fa(_0xa07e1a._0x524892)]() }, async _0x55891c => {
|
|
1868
|
+
const _0x25a339 = _0x24d0fa;
|
|
1869
|
+
try {
|
|
1870
|
+
return textResult(await _0x3ed5b9['get_worker_result'](_0x55891c));
|
|
1871
|
+
} catch (_0x3fb2a2) {
|
|
1872
|
+
return textResult(_0x3fb2a2 instanceof Error ? _0x3fb2a2['message'] : _0x25a339(0x222), !![]);
|
|
1873
|
+
}
|
|
1874
|
+
}), _0x2e8512[_0x24d0fa(0x102)]('finish_worker', _0x24d0fa(_0xa07e1a._0x6d31e2), {
|
|
1875
|
+
'work_key': _0x11800e['string'](),
|
|
1876
|
+
'result': _0x11800e[_0x24d0fa(_0xa07e1a._0x215edb)]([
|
|
1877
|
+
_0x24d0fa(0x1f3),
|
|
1878
|
+
_0x24d0fa(_0xa07e1a._0x34b6d9),
|
|
1879
|
+
_0x24d0fa(_0xa07e1a._0x4dd06d)
|
|
1880
|
+
]),
|
|
1881
|
+
'summary': _0x11800e[_0x24d0fa(_0xa07e1a._0x867b38)](),
|
|
1882
|
+
'decisions': _0x11800e[_0x24d0fa(_0xa07e1a._0x10ff6b)](_0x11800e[_0x24d0fa(0x23b)]())[_0x24d0fa(0x1ce)](),
|
|
1883
|
+
'files_changed': _0x11800e[_0x24d0fa(0x246)](_0x11800e[_0x24d0fa(0x23b)]())[_0x24d0fa(_0xa07e1a._0x394e4e)](),
|
|
1884
|
+
'open_issues': _0x11800e[_0x24d0fa(_0xa07e1a._0x10ff6b)](_0x11800e[_0x24d0fa(_0xa07e1a._0x867b38)]())[_0x24d0fa(_0xa07e1a._0x198e79)](),
|
|
1885
|
+
'next_steps': _0x11800e['array'](_0x11800e[_0x24d0fa(_0xa07e1a._0x183a46)]())[_0x24d0fa(_0xa07e1a._0x394e4e)]()
|
|
1886
|
+
}, async _0xd277df => {
|
|
1887
|
+
const _0x47bd8a = _0x24d0fa;
|
|
1888
|
+
try {
|
|
1889
|
+
return textResult(await _0x3ed5b9[_0x47bd8a(0x17b)](_0xd277df));
|
|
1890
|
+
} catch (_0x2de70a) {
|
|
1891
|
+
return textResult(_0x2de70a instanceof Error ? _0x2de70a[_0x47bd8a(0x26a)] : _0x47bd8a(_0x580c25._0xf304a1), !![]);
|
|
1892
|
+
}
|
|
1893
|
+
}), _0x2e8512[_0x24d0fa(_0xa07e1a._0x37aa85)]('escalate_to_main', _0x24d0fa(0x157), {
|
|
1894
|
+
'work_key': _0x11800e[_0x24d0fa(_0xa07e1a._0x867b38)](),
|
|
1895
|
+
'reason': _0x11800e[_0x24d0fa(_0xa07e1a._0x867b38)]()
|
|
1896
|
+
}, async _0x416391 => {
|
|
1897
|
+
const _0x111b59 = _0x24d0fa;
|
|
1898
|
+
try {
|
|
1899
|
+
return textResult(await _0x3ed5b9[_0x111b59(0x209)](_0x416391));
|
|
1900
|
+
} catch (_0x29c6aa) {
|
|
1901
|
+
return textResult(_0x29c6aa instanceof Error ? _0x29c6aa[_0x111b59(0x26a)] : _0x111b59(_0xb3a833._0x1a6091), !![]);
|
|
1902
|
+
}
|
|
1903
|
+
}), _0x1c4186?.[_0x24d0fa(_0xa07e1a._0x567aaf)] && _0x2e8512['tool'](_0x24d0fa(0x13c), _0x24d0fa(_0xa07e1a._0x12df31), { 'work_key': _0x11800e[_0x24d0fa(0x23b)]() }, async _0x13abff => {
|
|
1904
|
+
const _0x8e23bf = _0x24d0fa;
|
|
1905
|
+
try {
|
|
1906
|
+
return textResult(await _0x3ed5b9[_0x8e23bf(_0x3ee0e3._0x4e03a4)](_0x13abff));
|
|
1907
|
+
} catch (_0x259aa1) {
|
|
1908
|
+
return textResult(_0x259aa1 instanceof Error ? _0x259aa1['message'] : _0x8e23bf(0x140), !![]);
|
|
954
1909
|
}
|
|
1910
|
+
});
|
|
1911
|
+
}
|
|
1912
|
+
async function createChatBridgeServer(_0x4221e0) {
|
|
1913
|
+
const _0x70a5c2 = { _0x21a5fb: 0x172 }, _0x27b3b6 = _0x8261f0, {McpServer: _0x2ca582} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x5bc582 = new _0x2ca582({
|
|
1914
|
+
'name': _0x27b3b6(0x184),
|
|
1915
|
+
'version': _0x27b3b6(_0x70a5c2._0x21a5fb)
|
|
1916
|
+
}), _0xc07934 = createChatBridgeHandlers(_0x4221e0);
|
|
1917
|
+
return await registerChatBridgeTools(_0x5bc582, _0xc07934, { 'workerMode': _0x4221e0['workerMode'] }), {
|
|
1918
|
+
'handlers': _0xc07934,
|
|
1919
|
+
'server': _0x5bc582
|
|
955
1920
|
};
|
|
956
1921
|
}
|
|
957
|
-
function
|
|
958
|
-
const
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
_0x5acd56: 0x22c
|
|
963
|
-
}, _0x946142 = _0x5c3349, _0x43c83d = new Date(_0x10569c);
|
|
964
|
-
if (Number[_0x946142(_0x430654._0x180c43)](_0x43c83d[_0x946142(_0x430654._0x5e6604)]()))
|
|
965
|
-
return _0x10569c;
|
|
966
|
-
const _0x5ee57a = _0x457ef6 => String(_0x457ef6)[_0x946142(0x1a2)](0x2, '0');
|
|
967
|
-
return _0x43c83d[_0x946142(0x1ab)]() + '-' + _0x5ee57a(_0x43c83d[_0x946142(_0x430654._0x5f1ff4)]() + 0x1) + '-' + _0x5ee57a(_0x43c83d[_0x946142(0x1b1)]()) + '\x20' + _0x5ee57a(_0x43c83d[_0x946142(_0x430654._0x5acd56)]()) + ':' + _0x5ee57a(_0x43c83d['getMinutes']()) + ':' + _0x5ee57a(_0x43c83d[_0x946142(0x206)]());
|
|
1922
|
+
function readFlag(_0x38ce62, _0x4631f7) {
|
|
1923
|
+
const _0xd56d05 = _0x8261f0, _0x30b271 = _0x38ce62[_0xd56d05(0x25c)](_0x4631f7);
|
|
1924
|
+
if (_0x30b271 === -0x1)
|
|
1925
|
+
return void 0x0;
|
|
1926
|
+
return _0x38ce62[_0x30b271 + 0x1];
|
|
968
1927
|
}
|
|
969
|
-
function
|
|
970
|
-
const
|
|
971
|
-
'
|
|
1928
|
+
function _0x13f9() {
|
|
1929
|
+
const _0x41abce = [
|
|
1930
|
+
'6k+35Rgcia',
|
|
1931
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1932
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1933
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1934
|
+
'CNvUBMLUzW',
|
|
1935
|
+
'DgfYz2v0zwq',
|
|
1936
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1937
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
972
1938
|
'y29TCgXLDgvK',
|
|
973
|
-
'
|
|
974
|
-
'
|
|
975
|
-
'
|
|
976
|
-
'
|
|
977
|
-
'
|
|
978
|
-
'
|
|
979
|
-
'
|
|
980
|
-
'
|
|
981
|
-
'
|
|
982
|
-
'
|
|
983
|
-
'
|
|
984
|
-
'
|
|
985
|
-
'
|
|
1939
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1940
|
+
'mJG0mtK4nvHxvefyta',
|
|
1941
|
+
'y3jLyxrLzef0',
|
|
1942
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1943
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1944
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1945
|
+
'lIbnzxnZywDLieLeoIa',
|
|
1946
|
+
'ywDNCMvNyxrLswrZ',
|
|
1947
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
1948
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1949
|
+
'Dw5JBgfPBvrHC2S',
|
|
1950
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1951
|
+
'BwvTyMvY',
|
|
1952
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1953
|
+
'DhLWzq',
|
|
1954
|
+
'DMfSDwu',
|
|
1955
|
+
'C3vJy2vZCW',
|
|
1956
|
+
'v29YA2vYici',
|
|
1957
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1958
|
+
'l3rHC2TZ',
|
|
1959
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1960
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1961
|
+
'C2vUzf9TzxnZywDL',
|
|
1962
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
1963
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1964
|
+
'D3nZoG',
|
|
1965
|
+
'DgL0Bgu',
|
|
1966
|
+
'CMvWBgfJzq',
|
|
1967
|
+
'y2XHAw1uyxnRCW',
|
|
1968
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1969
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1970
|
+
'CMvZCg9UC2u',
|
|
986
1971
|
'z2v0u2vJB25KCW',
|
|
987
|
-
'
|
|
1972
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1973
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1974
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
988
1975
|
'ig1LC3nHz2vZkqOk',
|
|
989
|
-
'
|
|
990
|
-
'
|
|
991
|
-
'
|
|
992
|
-
'
|
|
993
|
-
'
|
|
994
|
-
'
|
|
1976
|
+
'D29YA19RzxK',
|
|
1977
|
+
'AxnbCNjHEq',
|
|
1978
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1979
|
+
'zgLNzxn0',
|
|
1980
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1981
|
+
'CNvUswq',
|
|
1982
|
+
'ywDNCMvNyxrLswq',
|
|
1983
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1984
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
1985
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
1986
|
+
'y2XHAw1FDgfZA3m',
|
|
1987
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1988
|
+
'D3m6',
|
|
1989
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1990
|
+
'BwfW',
|
|
1991
|
+
'DgfZA0LK',
|
|
1992
|
+
'ChvZAa',
|
|
1993
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
1994
|
+
'y2HHBM5LBe5HBwu',
|
|
1995
|
+
'l3nLBMq',
|
|
995
1996
|
'ywz0zxi',
|
|
996
|
-
'
|
|
997
|
-
'
|
|
998
|
-
'
|
|
999
|
-
'
|
|
1000
|
-
'
|
|
1001
|
-
'
|
|
1002
|
-
'
|
|
1003
|
-
'
|
|
1004
|
-
'
|
|
1005
|
-
'
|
|
1006
|
-
'
|
|
1007
|
-
'
|
|
1008
|
-
'
|
|
1009
|
-
'
|
|
1010
|
-
'
|
|
1011
|
-
'
|
|
1012
|
-
'
|
|
1013
|
-
'
|
|
1014
|
-
'
|
|
1015
|
-
'
|
|
1016
|
-
'
|
|
1017
|
-
'
|
|
1997
|
+
'C3rYAw5NAwz5',
|
|
1998
|
+
'zMLSDgvY',
|
|
1999
|
+
'ANnVBG',
|
|
2000
|
+
'kg5VBMuP',
|
|
2001
|
+
'C2v0',
|
|
2002
|
+
'C2vUze1LC3nHz2u',
|
|
2003
|
+
'Dg9gAxHLza',
|
|
2004
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
2005
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
2006
|
+
'C2vUzgvYtMfTzq',
|
|
2007
|
+
'Aw1Hz2uVz2LM',
|
|
2008
|
+
'Dw5JBgfPBv90yxnR',
|
|
2009
|
+
'C3bSAxq',
|
|
2010
|
+
'C3rYAw5N',
|
|
2011
|
+
'zxjYB3i',
|
|
2012
|
+
'BNvTyMvY',
|
|
2013
|
+
'C29YDa',
|
|
2014
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
2015
|
+
'Dw5RBM93BG',
|
|
2016
|
+
'DgfZA3m',
|
|
2017
|
+
'DgHYzwfK',
|
|
2018
|
+
'y3vYC29Y',
|
|
2019
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
2020
|
+
'l2HPC3rVCNK/',
|
|
2021
|
+
'yxjYyxK',
|
|
2022
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
2023
|
+
'C2LNBMfS',
|
|
2024
|
+
'zgvZy3jPyMu',
|
|
2025
|
+
'AxngAwXL',
|
|
2026
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
2027
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
2028
|
+
'BM93',
|
|
2029
|
+
'y2f0y2G',
|
|
2030
|
+
'C29Tzq',
|
|
2031
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
2032
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
2033
|
+
'DxnLCG',
|
|
2034
|
+
'iYmJienOyw5UzwXZ',
|
|
2035
|
+
'ntHgsvr5Agu',
|
|
2036
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
2037
|
+
'AxnjBNrLz2vY',
|
|
2038
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
2039
|
+
'Aw1Hz2uVANbLzW',
|
|
2040
|
+
'zNjVBq',
|
|
2041
|
+
'y2XPzw50',
|
|
2042
|
+
'y29UBMvJDa',
|
|
2043
|
+
'Aw5KzxHpzG',
|
|
2044
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
2045
|
+
'zw50CMLLCW',
|
|
2046
|
+
'ignSywLTzwq',
|
|
2047
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
2048
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
2049
|
+
'Agv4',
|
|
2050
|
+
'zg9Uzq',
|
|
1018
2051
|
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1019
|
-
'
|
|
1020
|
-
'
|
|
1021
|
-
'
|
|
1022
|
-
'
|
|
1023
|
-
'
|
|
1024
|
-
'z2v0sg91CNm',
|
|
2052
|
+
'AgfZ',
|
|
2053
|
+
'zMLSzxnFy2HHBMDLza',
|
|
2054
|
+
'C2XPy2u',
|
|
2055
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
2056
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1025
2057
|
'BwvZC2fNzq',
|
|
1026
|
-
'
|
|
1027
|
-
'
|
|
1028
|
-
'C2f2zq',
|
|
1029
|
-
'iIbUB3qGzM91BMq',
|
|
1030
|
-
'zxjYB3i',
|
|
1031
|
-
'D29YA2vYtw9Kzq',
|
|
2058
|
+
'zgfLBw9UqxbPs2v5',
|
|
2059
|
+
'y29UDgvUDa',
|
|
1032
2060
|
'Aw5JBhvKzxm',
|
|
1033
|
-
'
|
|
2061
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
2062
|
+
'zgf0yq',
|
|
2063
|
+
'z2v0vgLTzq',
|
|
2064
|
+
'mtyZmtC3nKfyuLDSDG',
|
|
2065
|
+
'CMvHzeHPC3rVCNK',
|
|
2066
|
+
'ywXS',
|
|
2067
|
+
'ywDLBNrjza',
|
|
2068
|
+
'EM9K',
|
|
2069
|
+
'zxHWAxjLC0f0',
|
|
2070
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
2071
|
+
'yxnPzgu',
|
|
2072
|
+
'C2vUzgvYvhLWzq',
|
|
2073
|
+
'ChjVDg9JB2W',
|
|
2074
|
+
'CgfYC2vjBNq',
|
|
2075
|
+
'zgvZy3jPChrPB24',
|
|
2076
|
+
'r0vu',
|
|
2077
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
2078
|
+
'Bwf4',
|
|
2079
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
2080
|
+
'Dgv4Da',
|
|
2081
|
+
'l3jLy2vPDMu',
|
|
2082
|
+
'kgXLz2fJEsK',
|
|
2083
|
+
'C2vYDMvYvxjS',
|
|
2084
|
+
'DxbSB2fKrMLSzq',
|
|
2085
|
+
'y3jLyxrLx3rHC2TZ',
|
|
2086
|
+
'Aw5FChjVz3jLC3m',
|
|
2087
|
+
'DgvZDa',
|
|
2088
|
+
'DMLLD19MAwXL',
|
|
2089
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
2090
|
+
'z2v0tw9UDgG',
|
|
2091
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
2092
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
2093
|
+
'l2zPBMLZAa',
|
|
2094
|
+
'BgLZDfrHC2TZ',
|
|
2095
|
+
'Dg9ju09tDhjPBMC',
|
|
2096
|
+
'mZGZndG3mMPsv3jRua',
|
|
2097
|
+
'y29UDgvUDfr5Cgu',
|
|
2098
|
+
'CxvLDwvK',
|
|
1034
2099
|
'zMLSzv9WyxrO',
|
|
1035
|
-
'
|
|
1036
|
-
'
|
|
1037
|
-
'
|
|
1038
|
-
'
|
|
1039
|
-
'CNvUBMLUzW',
|
|
1040
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
1041
|
-
'D3nZoG',
|
|
1042
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1043
|
-
'C3rYAw5N',
|
|
1044
|
-
'zgvSzxrL',
|
|
1045
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
2100
|
+
'ihr5Cgu9ywDLBNq',
|
|
2101
|
+
'AgvHzgvYCW',
|
|
2102
|
+
'Dgv4Dc9WBgfPBG',
|
|
2103
|
+
'Dg9VBa',
|
|
1046
2104
|
'BwLU',
|
|
1047
|
-
'
|
|
1048
|
-
'
|
|
1049
|
-
'
|
|
1050
|
-
'
|
|
1051
|
-
'
|
|
2105
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
2106
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
2107
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
2108
|
+
'vgfZAYa',
|
|
2109
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
2110
|
+
'zgvZDhjVEwvK',
|
|
2111
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
2112
|
+
'DxbKyxrL',
|
|
2113
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
2114
|
+
'CMvZDwX0sNnVBG',
|
|
2115
|
+
'CM9VDe1LC3nHz2vjza',
|
|
2116
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1052
2117
|
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1053
|
-
'
|
|
1054
|
-
'y2HLy2TnzxnZywDLCW',
|
|
1055
|
-
'BgLTAxq',
|
|
1056
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1057
|
-
'zg9Uzq',
|
|
1058
|
-
'y29UDgvUDc10ExbL',
|
|
1059
|
-
'C3rHCNrZv2L0Aa',
|
|
2118
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1060
2119
|
'y2HHBM5LBhm',
|
|
1061
|
-
'
|
|
1062
|
-
'
|
|
1063
|
-
'zw51Bq',
|
|
1064
|
-
'l3jLy2vPDMu',
|
|
1065
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1066
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
1067
|
-
'CNvUswq',
|
|
1068
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
1069
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1070
|
-
'vgfZAYa',
|
|
1071
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1072
|
-
'AhvTyw5Z',
|
|
1073
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1074
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1075
|
-
'Dgv4Dc9JC3y',
|
|
1076
|
-
'C29Tzq',
|
|
1077
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
1078
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1079
|
-
'l3rHC2TZpW',
|
|
1080
|
-
'ywrK',
|
|
1081
|
-
'yxjYyxLcDwzMzxi',
|
|
1082
|
-
'ywjVCNrLza',
|
|
1083
|
-
'yMvMB3jL',
|
|
1084
|
-
'DgfZAW',
|
|
1085
|
-
'zMLSzxnFy2HHBMDLza',
|
|
1086
|
-
'CMvXDwvZDfvYBa',
|
|
1087
|
-
'CMvZB2X2zvrHCMDLDa',
|
|
1088
|
-
'y2XHAw0GzMfPBgvK',
|
|
1089
|
-
'BMv4Df9ZDgvWCW',
|
|
1090
|
-
'mtm0otq0Ce9gq2fZ',
|
|
1091
|
-
'zMv0y2HjBxbS',
|
|
2120
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
2121
|
+
'DgHYzwfKtNvTyMvY',
|
|
1092
2122
|
'Cgf5Bg9HzePZB24',
|
|
1093
|
-
'
|
|
1094
|
-
'C2v0',
|
|
1095
|
-
'AxnjBNrLz2vY',
|
|
2123
|
+
'D29YA2vYCW',
|
|
1096
2124
|
'xsba',
|
|
1097
|
-
'
|
|
1098
|
-
'
|
|
1099
|
-
'
|
|
1100
|
-
'
|
|
1101
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1102
|
-
'yxjNDG',
|
|
1103
|
-
'zgvZy3jPyMu',
|
|
1104
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1105
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1106
|
-
'C2XPy2u',
|
|
1107
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1108
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1109
|
-
'C2vUzgvYtMfTzq',
|
|
1110
|
-
'zgvJAxnPB25Z',
|
|
1111
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1112
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
1113
|
-
'BgLZDf9Zzxj2zxi',
|
|
1114
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1115
|
-
'CgfYDgLJAxbHBNq',
|
|
1116
|
-
'mJu5nta2m3Lis0r4rG',
|
|
1117
|
-
'y2HHBM5LBeLK',
|
|
1118
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
1119
|
-
'CMvWBgfJzq',
|
|
1120
|
-
'zM9Yy2vszwzYzxnO',
|
|
1121
|
-
'AM9PBG',
|
|
1122
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1123
|
-
'zxHWAxjLC0f0',
|
|
1124
|
-
'kg5VBMuP',
|
|
1125
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1126
|
-
'DgHYzwfK',
|
|
1127
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
2125
|
+
'igLUia',
|
|
2126
|
+
'AgLNAa',
|
|
2127
|
+
'yxr0ywnOBwvUDeLK',
|
|
2128
|
+
'Aw5FCMv2Awv3',
|
|
1128
2129
|
'ls13B3jRzxiTBw9Kzq',
|
|
1129
|
-
'
|
|
1130
|
-
'
|
|
1131
|
-
'
|
|
2130
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
2131
|
+
'sfruuca',
|
|
2132
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
2133
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
2134
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
2135
|
+
'yMfZzty0',
|
|
2136
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
2137
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
2138
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
2139
|
+
'CMvHzf9OAxn0B3j5',
|
|
2140
|
+
'Bwf0y2Hoyw1L',
|
|
2141
|
+
'C3rHDhvZ',
|
|
2142
|
+
'C2vZC2LVBKLK',
|
|
2143
|
+
'D29YA2vYtw9Kzq',
|
|
2144
|
+
'CMvZDwX0',
|
|
2145
|
+
'Dg9tDhjPBMC',
|
|
1132
2146
|
'AgfZtw9Yzq',
|
|
1133
|
-
'
|
|
1134
|
-
'
|
|
1135
|
-
'
|
|
1136
|
-
'
|
|
1137
|
-
'
|
|
1138
|
-
'
|
|
2147
|
+
'iYmJiefNzw50CW',
|
|
2148
|
+
'zxH0BMfTzq',
|
|
2149
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
2150
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
2151
|
+
'l3rHC2TZpW',
|
|
2152
|
+
'DgfZA051BwjLCG',
|
|
2153
|
+
'zMfPBgvK',
|
|
2154
|
+
'iYmJieH1BwfUCW',
|
|
2155
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
2156
|
+
'yMXVy2TLza',
|
|
1139
2157
|
'ig1LC3nHz2u9',
|
|
1140
2158
|
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1141
|
-
'
|
|
1142
|
-
'
|
|
1143
|
-
'
|
|
1144
|
-
'
|
|
1145
|
-
'
|
|
1146
|
-
'
|
|
1147
|
-
'
|
|
1148
|
-
'
|
|
1149
|
-
'C2nOzwr1BgvKrM9Y',
|
|
1150
|
-
'DgfZA0LK',
|
|
1151
|
-
'igf0DgfJAg1LBNq',
|
|
1152
|
-
'ue9tva',
|
|
1153
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
1154
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1155
|
-
'C3rVCe1HAw4',
|
|
1156
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1157
|
-
'BwvTyMvYCW',
|
|
1158
|
-
'DgHYzwfKtNvTyMvY',
|
|
1159
|
-
'DgHYzwfKswq',
|
|
1160
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
1161
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
1162
|
-
'mZaYnJK0ogTvCwPdtW',
|
|
1163
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1164
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1165
|
-
'B3b0Aw9UywW',
|
|
1166
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1167
|
-
'lsba',
|
|
2159
|
+
'ywDLBNq',
|
|
2160
|
+
'pgvTChr5pG',
|
|
2161
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
2162
|
+
'Bwv0yq',
|
|
2163
|
+
'yM9KEu1HCMTKB3DU',
|
|
2164
|
+
'DMLZAwjPBgL0Eq',
|
|
2165
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
2166
|
+
'DxrMoa',
|
|
1168
2167
|
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1169
|
-
'
|
|
1170
|
-
'
|
|
1171
|
-
'
|
|
1172
|
-
'
|
|
1173
|
-
'
|
|
1174
|
-
'
|
|
1175
|
-
'
|
|
1176
|
-
'
|
|
1177
|
-
'
|
|
2168
|
+
'DgfYz2v0',
|
|
2169
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
2170
|
+
'zMv0y2HjBxbS',
|
|
2171
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
2172
|
+
'AxngAw5PDgu',
|
|
2173
|
+
'cGOTls0G',
|
|
2174
|
+
'ywz0zxjtzxe',
|
|
2175
|
+
'ywjVCNrLza',
|
|
2176
|
+
'zM9Yy2vszwzYzxnO',
|
|
2177
|
+
'D29YA2vY',
|
|
2178
|
+
'CMvHC29U',
|
|
2179
|
+
'zMfSC2u',
|
|
2180
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
2181
|
+
'nZG3nJjMrKjyrLy',
|
|
2182
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
2183
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
2184
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
2185
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1178
2186
|
'y29UDgvUDejHC2u2na',
|
|
1179
|
-
'
|
|
1180
|
-
'mc4WlJa',
|
|
1181
|
-
'AxnbyNnVBhv0zq',
|
|
1182
|
-
'Bg9JywXLq29TCgfYzq',
|
|
1183
|
-
'pgvTChr5pG',
|
|
1184
|
-
'CMvZDwX0CW',
|
|
1185
|
-
'Dgv4Da',
|
|
1186
|
-
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
1187
|
-
'DgfZA3m',
|
|
1188
|
-
'C3rYAw5NAwz5',
|
|
1189
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1190
|
-
'C2vUzf9TzxnZywDL',
|
|
2187
|
+
'vgfZAZOG',
|
|
1191
2188
|
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1192
|
-
'
|
|
1193
|
-
'
|
|
1194
|
-
'
|
|
1195
|
-
'
|
|
1196
|
-
'igLUia',
|
|
1197
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1198
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1199
|
-
'l3rHC2TZl2nSywLT',
|
|
1200
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1201
|
-
'ywDLBNrjza',
|
|
1202
|
-
'AxngAw5PDgu',
|
|
1203
|
-
'Dg9ju09tDhjPBMC',
|
|
1204
|
-
'yxnPzgu',
|
|
1205
|
-
'DgHYzwfKu2HVCNrjza',
|
|
1206
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1207
|
-
'mKvXDezWCG',
|
|
1208
|
-
'zgLNzxn0',
|
|
1209
|
-
'zxzLBNrtzxe',
|
|
1210
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1211
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1212
|
-
'ywDLBNq',
|
|
1213
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
1214
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1215
|
-
'Aw1Hz2uVANbLzW',
|
|
1216
|
-
'lMjPBG',
|
|
1217
|
-
'y2HHDa',
|
|
1218
|
-
'BMfTzq',
|
|
1219
|
-
'CxvLDwvK',
|
|
1220
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1221
|
-
'C2LNBMfS',
|
|
1222
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
1223
|
-
'ihr5Cgu9ywDLBNq',
|
|
1224
|
-
'nti5oxDutMrmAa',
|
|
1225
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
1226
|
-
'DhLWzq',
|
|
1227
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
1228
|
-
'C2vZC2LVBKLK',
|
|
1229
|
-
'D29YA19RzxK',
|
|
1230
|
-
'BNvTyMvY',
|
|
1231
|
-
'iokaLca',
|
|
1232
|
-
'yxv0BZO',
|
|
1233
|
-
'igzHAwXLzdOG',
|
|
1234
|
-
'z2v0',
|
|
1235
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1236
|
-
'zNjVBq',
|
|
1237
|
-
'DgfZA19Pza',
|
|
1238
|
-
'DxbSB2fKx2zPBgu',
|
|
1239
|
-
'CMvZDwX0sNnVBG',
|
|
1240
|
-
'CMvZDwX0',
|
|
1241
|
-
'l3nLBMq',
|
|
1242
|
-
'DgfZAY0',
|
|
1243
|
-
'Aw1Hz2uVCg5N',
|
|
1244
|
-
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1245
|
-
'y29UDgvUDa',
|
|
1246
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
2189
|
+
'ywrK',
|
|
2190
|
+
'yxjNDG',
|
|
2191
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
2192
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1247
2193
|
'CgfYDgLJAxbHBNrjza',
|
|
1248
|
-
'
|
|
1249
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
1250
|
-
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
1251
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1252
|
-
'zxH0BMfTzq',
|
|
2194
|
+
'DgfZA19Pza',
|
|
1253
2195
|
'ihn0yxr1CZ0',
|
|
1254
|
-
'
|
|
1255
|
-
'
|
|
1256
|
-
'
|
|
1257
|
-
'
|
|
1258
|
-
'
|
|
1259
|
-
'
|
|
1260
|
-
'
|
|
1261
|
-
'
|
|
1262
|
-
'
|
|
1263
|
-
'
|
|
1264
|
-
'
|
|
1265
|
-
'
|
|
1266
|
-
'
|
|
1267
|
-
'
|
|
1268
|
-
'
|
|
1269
|
-
'
|
|
1270
|
-
'
|
|
1271
|
-
'
|
|
1272
|
-
'
|
|
2196
|
+
'w3nLCt0',
|
|
2197
|
+
'z2v0',
|
|
2198
|
+
'BgvUz3rO',
|
|
2199
|
+
'AM9PBG',
|
|
2200
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
2201
|
+
'DxjNzw50',
|
|
2202
|
+
'nM1Jtvbpqq',
|
|
2203
|
+
'DMfSDwvZ',
|
|
2204
|
+
'igf0DgfJAg1LBNq',
|
|
2205
|
+
'l3n0yxj0',
|
|
2206
|
+
'yxv0BZO',
|
|
2207
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
2208
|
+
'yxjYyxLcDwzMzxi',
|
|
2209
|
+
'zgLZCg9ZAxrPB24',
|
|
2210
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
2211
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
2212
|
+
'A2LUza',
|
|
2213
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
2214
|
+
'Bg93',
|
|
2215
|
+
'mc4WlJa',
|
|
2216
|
+
'y2HHBM5LBeLK',
|
|
2217
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
1273
2218
|
'DgfYz2v0zwruyxnR',
|
|
1274
|
-
'
|
|
1275
|
-
'
|
|
1276
|
-
'
|
|
1277
|
-
'
|
|
1278
|
-
'
|
|
1279
|
-
'
|
|
1280
|
-
'
|
|
1281
|
-
'
|
|
1282
|
-
'
|
|
1283
|
-
'CMvHzeHPC3rVCNK',
|
|
1284
|
-
'CgfKu3rHCNq',
|
|
1285
|
-
'ANnVBG',
|
|
1286
|
-
'Dg9tDhjPBMC',
|
|
1287
|
-
'Dgv4Dc9WBgfPBG',
|
|
1288
|
-
'yxjYyxK',
|
|
1289
|
-
'y2f0y2G',
|
|
1290
|
-
'lsaJ',
|
|
1291
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
2219
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
2220
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
2221
|
+
'CMvJB3jK',
|
|
2222
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
2223
|
+
'AhvTyw5Z',
|
|
2224
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
2225
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
2226
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
2227
|
+
'z2v0twLUDxrLCW',
|
|
1292
2228
|
'yxr0ywnOBwvUDf9Pzhm',
|
|
1293
|
-
'
|
|
2229
|
+
'l2nVBNrLBNq',
|
|
2230
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
2231
|
+
'lsba',
|
|
2232
|
+
'C2vYDMvY',
|
|
2233
|
+
'y2HHDa',
|
|
2234
|
+
'Aw1Hz2uVCg5N',
|
|
2235
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
2236
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
2237
|
+
'CgfYDgLJAxbHBNq',
|
|
2238
|
+
'ywjVCNq',
|
|
2239
|
+
'C2L6zq',
|
|
2240
|
+
'ue9tva',
|
|
2241
|
+
'y29UDgvUDc10ExbL',
|
|
2242
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
2243
|
+
'ChvIBgLJ',
|
|
2244
|
+
'yMvMB3jL',
|
|
2245
|
+
'BMv4Df9ZDgvWCW',
|
|
2246
|
+
'DxbSB2fKx2zPBgu',
|
|
2247
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
2248
|
+
'BwvZC2fNzuLK',
|
|
2249
|
+
'igzHAwXLzdOG',
|
|
2250
|
+
'BgLZDf9Zzxj2zxi',
|
|
2251
|
+
'Dg9mB3DLCKnHC2u',
|
|
2252
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
2253
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
2254
|
+
'B3bLBL9PC3n1zxm',
|
|
2255
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
2256
|
+
'Bg9JywXLq29TCgfYzq',
|
|
2257
|
+
'BMfTzq',
|
|
2258
|
+
'mtq4mdDizvbqEfC',
|
|
2259
|
+
'ig1ZzZ0',
|
|
2260
|
+
'zgvJAxnPB25Z',
|
|
2261
|
+
'ls1Zzxj2zxiTDxjS',
|
|
2262
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
2263
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1294
2264
|
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1295
|
-
'
|
|
1296
|
-
'
|
|
1297
|
-
'
|
|
1298
|
-
'
|
|
1299
|
-
'
|
|
2265
|
+
'C3vTBwfYEq',
|
|
2266
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
2267
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
2268
|
+
'C3rVCe1HAw4',
|
|
2269
|
+
'AxnbyNnVBhv0zq',
|
|
2270
|
+
'y2HHBM5LBa',
|
|
2271
|
+
'BgLZDf90yxnRCW',
|
|
2272
|
+
'yxr0ywnOBwvUDhm',
|
|
2273
|
+
'y2HLy2TnzxnZywDLCW',
|
|
2274
|
+
'iYmGu2vYDMvYoIa',
|
|
2275
|
+
'ywDLBNrZ',
|
|
2276
|
+
'DgHYzwfKswq',
|
|
2277
|
+
'C3rHCNrZv2L0Aa',
|
|
2278
|
+
'zgvSzxrL',
|
|
2279
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
2280
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
2281
|
+
'ihrPBwu9',
|
|
2282
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
2283
|
+
'BwvTyMvYCW',
|
|
2284
|
+
'DgfZAW',
|
|
1300
2285
|
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1301
|
-
'
|
|
1302
|
-
'DMLLD19MAwXL',
|
|
1303
|
-
'nJK4nJm2r2D2C21y',
|
|
1304
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
1305
|
-
'l3n0yxj0',
|
|
1306
|
-
'l3DVCMTLCNmVzMLUAxnO',
|
|
1307
|
-
'z2v0tw9UDgG',
|
|
1308
|
-
'y3jLyxrLzef0',
|
|
1309
|
-
'C2L6zuj5DgvZ',
|
|
1310
|
-
'iYmJieH1BwfUCW',
|
|
1311
|
-
'l3vWBg9Hza',
|
|
1312
|
-
'DxrMoa',
|
|
1313
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
2286
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
1314
2287
|
'zMLUza',
|
|
1315
|
-
'
|
|
1316
|
-
'
|
|
1317
|
-
'
|
|
1318
|
-
'
|
|
1319
|
-
'
|
|
1320
|
-
'
|
|
1321
|
-
'
|
|
1322
|
-
'
|
|
1323
|
-
'y29UDgvUDfr5Cgu',
|
|
2288
|
+
'l3nLCNzLCG',
|
|
2289
|
+
'D2fPDgLUz19PBNb1Da',
|
|
2290
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
2291
|
+
'Dg9KBW',
|
|
2292
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
2293
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
2294
|
+
'B2jQzwn0',
|
|
2295
|
+
'C2L6zuj5DgvZ',
|
|
1324
2296
|
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1325
|
-
'
|
|
1326
|
-
'
|
|
1327
|
-
'
|
|
1328
|
-
'
|
|
1329
|
-
'
|
|
1330
|
-
'
|
|
1331
|
-
'icHPzdO',
|
|
1332
|
-
'Bwf0y2Hoyw1L',
|
|
1333
|
-
'cGOTls0G',
|
|
1334
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1335
|
-
'yxr0ywnOBwvUDeLK',
|
|
1336
|
-
'y2XPzw50',
|
|
2297
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
2298
|
+
'lsaJ',
|
|
2299
|
+
'C2vYDMvYtMfTzq',
|
|
2300
|
+
'iokaLca',
|
|
2301
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
2302
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1337
2303
|
'DgHYzwfKvgfYz2v0',
|
|
1338
|
-
'
|
|
2304
|
+
'zg06',
|
|
1339
2305
|
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1340
|
-
'
|
|
1341
|
-
'
|
|
2306
|
+
'DhjPBq',
|
|
2307
|
+
'B3b0Aw9UywW',
|
|
2308
|
+
'CgfKu3rHCNq',
|
|
2309
|
+
'yMfZzw5HBwu',
|
|
2310
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
2311
|
+
'BwvZC2fNzxm',
|
|
2312
|
+
'BwvKAxvT',
|
|
2313
|
+
'CMvXDwvZDfvYBa',
|
|
2314
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
2315
|
+
'AhvTyw4',
|
|
2316
|
+
'BgLTAxq',
|
|
2317
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
2318
|
+
'Axnoyu4',
|
|
2319
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
2320
|
+
'khvUA25VD24P',
|
|
2321
|
+
'C2vX',
|
|
2322
|
+
'y2XHAw0GzMfPBgvK',
|
|
2323
|
+
'BMv4Den1CNnVCG',
|
|
2324
|
+
'C2HHmJu2',
|
|
2325
|
+
'mta5mdq5mZfTDLHct3q',
|
|
2326
|
+
'y3jLyxrLvgfZA3m',
|
|
2327
|
+
'zw51Bq',
|
|
1342
2328
|
'w3rHCMDLDd0',
|
|
1343
|
-
'
|
|
2329
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
2330
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
2331
|
+
'ndG2nta2m3PQAvneyW',
|
|
1344
2332
|
'C3rHCNrLza',
|
|
1345
|
-
'
|
|
1346
|
-
'r0vu',
|
|
2333
|
+
'ls1ZzxnZAw9UlwLK',
|
|
1347
2334
|
'zMLSzw5HBwu',
|
|
1348
|
-
'
|
|
1349
|
-
'yM9KEu1HCMTKB3DU',
|
|
1350
|
-
'ig1ZzZ0',
|
|
1351
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
1352
|
-
'y2XHAw1FDgfZA3m',
|
|
1353
|
-
'l2zPBMLZAa',
|
|
1354
|
-
'DMfSDwu',
|
|
1355
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1356
|
-
'DgL0Bgu',
|
|
1357
|
-
'zgvZy3jPChrPB24',
|
|
1358
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1359
|
-
'yMXVy2TLza',
|
|
1360
|
-
'v29YA2vYici',
|
|
1361
|
-
'AwrSzq',
|
|
1362
|
-
'DxnLCG',
|
|
1363
|
-
'Bwv0yq',
|
|
1364
|
-
'C2vYDMvYvxjS',
|
|
1365
|
-
'A2LUza',
|
|
1366
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1367
|
-
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1368
|
-
'ndiZmti5nu92vLHjta'
|
|
2335
|
+
'tM8GBMv3ig1LC3nHz2vZlG'
|
|
1369
2336
|
];
|
|
1370
|
-
|
|
1371
|
-
return
|
|
2337
|
+
_0x13f9 = function () {
|
|
2338
|
+
return _0x41abce;
|
|
1372
2339
|
};
|
|
1373
|
-
return
|
|
1374
|
-
}
|
|
1375
|
-
function formatAttachmentSuffix(_0x353c61) {
|
|
1376
|
-
const _0x52ca3c = {
|
|
1377
|
-
_0xb89329: 0x29d,
|
|
1378
|
-
_0x9b1358: 0x29d,
|
|
1379
|
-
_0x2be5c0: 0x2ab,
|
|
1380
|
-
_0x4e1682: 0x221,
|
|
1381
|
-
_0x5ebddd: 0x28d
|
|
1382
|
-
}, _0x180a28 = _0x5c3349;
|
|
1383
|
-
if (!_0x353c61 || _0x353c61[_0x180a28(_0x52ca3c._0xb89329)] === 0x0)
|
|
1384
|
-
return '';
|
|
1385
|
-
return '\x20[' + _0x353c61[_0x180a28(_0x52ca3c._0x9b1358)] + _0x180a28(_0x52ca3c._0x2be5c0) + (_0x353c61[_0x180a28(0x29d)] > 0x1 ? 's' : '') + ':\x20' + _0x353c61[_0x180a28(_0x52ca3c._0x4e1682)](_0x271b2e => _0x271b2e[_0x180a28(0x1e1)] + _0x180a28(0x1d1) + _0x271b2e['id'] + ')')[_0x180a28(_0x52ca3c._0x5ebddd)](',\x20') + _0x180a28(0x22e);
|
|
1386
|
-
}
|
|
1387
|
-
function formatCheckMessages(_0x45aaa1) {
|
|
1388
|
-
const _0x549da4 = { _0x192333: 0x28d }, _0x55fc46 = {
|
|
1389
|
-
_0x172549: 0x2e8,
|
|
1390
|
-
_0x4c0f42: 0x314,
|
|
1391
|
-
_0x318141: 0x2bf,
|
|
1392
|
-
_0x15251c: 0x281
|
|
1393
|
-
}, _0x357888 = _0x5c3349;
|
|
1394
|
-
if (_0x45aaa1['length'] === 0x0)
|
|
1395
|
-
return 'No\x20new\x20messages.';
|
|
1396
|
-
return _0x45aaa1['map'](_0x265de4 => {
|
|
1397
|
-
const _0x14448a = _0x4b05, _0x186ce1 = _0x265de4['senderType'] === _0x14448a(_0x55fc46._0x172549) ? _0x14448a(0x2f3) : '';
|
|
1398
|
-
return _0x14448a(0x1dc) + _0x265de4['target'] + '\x20msg=' + _0x265de4[_0x14448a(_0x55fc46._0x4c0f42)][_0x14448a(0x27e)](0x0, 0x8) + _0x14448a(_0x55fc46._0x318141) + toLocalTime(_0x265de4[_0x14448a(0x1ba)]) + _0x186ce1 + ']\x20@' + _0x265de4[_0x14448a(_0x55fc46._0x15251c)] + ':\x20' + _0x265de4['content'] + formatAttachmentSuffix(_0x265de4[_0x14448a(0x22b)]);
|
|
1399
|
-
})[_0x357888(_0x549da4._0x192333)]('\x0a');
|
|
1400
|
-
}
|
|
1401
|
-
function formatHistory(_0x1c221f) {
|
|
1402
|
-
const _0xeabe8 = {
|
|
1403
|
-
_0x1c86ac: 0x221,
|
|
1404
|
-
_0x91ac8b: 0x28d,
|
|
1405
|
-
_0xbe137b: 0x1d3,
|
|
1406
|
-
_0x15dbde: 0x29d,
|
|
1407
|
-
_0x442325: 0x1fc,
|
|
1408
|
-
_0x22abcc: 0x295,
|
|
1409
|
-
_0x4beec6: 0x217,
|
|
1410
|
-
_0x168346: 0x29d,
|
|
1411
|
-
_0x4753a6: 0x208
|
|
1412
|
-
}, _0x13e72d = {
|
|
1413
|
-
_0xfe1dbc: 0x1cc,
|
|
1414
|
-
_0x355d2f: 0x2e8,
|
|
1415
|
-
_0x2332b4: 0x238,
|
|
1416
|
-
_0x2bb261: 0x1ba,
|
|
1417
|
-
_0x733e96: 0x22b
|
|
1418
|
-
}, _0x2038ba = _0x5c3349;
|
|
1419
|
-
if (_0x1c221f['messages'][_0x2038ba(0x29d)] === 0x0)
|
|
1420
|
-
return _0x2038ba(0x217) + _0x1c221f[_0x2038ba(0x1d0)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1421
|
-
const _0xe7ebef = _0x1c221f['messages'][_0x2038ba(_0xeabe8._0x1c86ac)](_0x33eb5e => {
|
|
1422
|
-
const _0x198662 = _0x2038ba, _0x50aff0 = _0x33eb5e[_0x198662(_0x13e72d._0xfe1dbc)] === _0x198662(_0x13e72d._0x355d2f) ? '\x20type=agent' : '';
|
|
1423
|
-
return '[seq=' + _0x33eb5e[_0x198662(_0x13e72d._0x2332b4)] + _0x198662(0x1e4) + _0x33eb5e[_0x198662(0x314)] + _0x198662(0x2bf) + toLocalTime(_0x33eb5e[_0x198662(_0x13e72d._0x2bb261)]) + _0x50aff0 + _0x198662(0x274) + _0x33eb5e['senderName'] + ':\x20' + _0x33eb5e[_0x198662(0x309)] + formatAttachmentSuffix(_0x33eb5e[_0x198662(_0x13e72d._0x733e96)]);
|
|
1424
|
-
})[_0x2038ba(_0xeabe8._0x91ac8b)]('\x0a'), _0x281e9e = _0x1c221f['hasMore'] && _0x1c221f[_0x2038ba(0x249)] ? _0x2038ba(_0xeabe8._0xbe137b) + _0x1c221f[_0x2038ba(0x209)][_0x2038ba(_0xeabe8._0x15dbde)] + _0x2038ba(_0xeabe8._0x442325) + _0x1c221f[_0x2038ba(0x249)] + _0x2038ba(_0xeabe8._0x22abcc) : '';
|
|
1425
|
-
return _0x2038ba(_0xeabe8._0x4beec6) + _0x1c221f[_0x2038ba(0x1d0)] + '\x20(' + _0x1c221f[_0x2038ba(0x209)][_0x2038ba(_0xeabe8._0x168346)] + _0x2038ba(_0xeabe8._0x4753a6) + _0xe7ebef + _0x281e9e;
|
|
1426
|
-
}
|
|
1427
|
-
function formatServerDirectory(_0x44bbf3) {
|
|
1428
|
-
const _0x4b7307 = {
|
|
1429
|
-
_0x2474ad: 0x29d,
|
|
1430
|
-
_0xef8ff4: 0x28d,
|
|
1431
|
-
_0x31db2a: 0x290,
|
|
1432
|
-
_0x3b3e78: 0x25c,
|
|
1433
|
-
_0x596a25: 0x221,
|
|
1434
|
-
_0x1d2dbb: 0x290,
|
|
1435
|
-
_0x1bc155: 0x225,
|
|
1436
|
-
_0x320cd3: 0x28d
|
|
1437
|
-
}, _0x2678aa = _0x5c3349, _0x521087 = _0x44bbf3[_0x2678aa(0x250)][_0x2678aa(_0x4b7307._0x2474ad)] > 0x0 ? _0x44bbf3[_0x2678aa(0x250)]['map'](_0x33f3e9 => _0x33f3e9['description'] ? _0x2678aa(0x1a8) + _0x33f3e9[_0x2678aa(0x2ee)] + _0x2678aa(0x2fb) + _0x33f3e9[_0x2678aa(0x1eb)] : _0x2678aa(0x1a8) + _0x33f3e9['name'])[_0x2678aa(_0x4b7307._0xef8ff4)]('\x0a') : _0x2678aa(0x290), _0x5bbfc8 = _0x44bbf3[_0x2678aa(0x2d7)]['length'] > 0x0 ? _0x44bbf3[_0x2678aa(0x2d7)]['map'](_0x1c3043 => _0x2678aa(0x2bb) + _0x1c3043['name'])['join']('\x0a') : _0x2678aa(_0x4b7307._0x31db2a), _0x5a56db = _0x44bbf3[_0x2678aa(_0x4b7307._0x3b3e78)][_0x2678aa(0x29d)] > 0x0 ? _0x44bbf3[_0x2678aa(_0x4b7307._0x3b3e78)][_0x2678aa(_0x4b7307._0x596a25)](_0xf4f30f => '-\x20@' + _0xf4f30f['name'])['join']('\x0a') : _0x2678aa(_0x4b7307._0x1d2dbb);
|
|
1438
|
-
return [
|
|
1439
|
-
_0x2678aa(0x202) + _0x44bbf3['serverName'],
|
|
1440
|
-
'',
|
|
1441
|
-
'###\x20Channels',
|
|
1442
|
-
_0x521087,
|
|
1443
|
-
'',
|
|
1444
|
-
_0x2678aa(_0x4b7307._0x1bc155),
|
|
1445
|
-
_0x5bbfc8,
|
|
1446
|
-
'',
|
|
1447
|
-
_0x2678aa(0x1bc),
|
|
1448
|
-
_0x5a56db
|
|
1449
|
-
][_0x2678aa(_0x4b7307._0x320cd3)]('\x0a');
|
|
1450
|
-
}
|
|
1451
|
-
function formatUploadResult(_0x1db31b) {
|
|
1452
|
-
const _0x209941 = {
|
|
1453
|
-
_0x37bfe5: 0x23c,
|
|
1454
|
-
_0x98afe7: 0x1e1,
|
|
1455
|
-
_0x44484e: 0x2a8,
|
|
1456
|
-
_0x129cfd: 0x1d5
|
|
1457
|
-
}, _0x48570a = _0x5c3349;
|
|
1458
|
-
return _0x48570a(_0x209941._0x37bfe5) + _0x1db31b[_0x48570a(_0x209941._0x98afe7)] + '\x20(' + (_0x1db31b[_0x48570a(0x1bb)] / 0x400)['toFixed'](0x1) + _0x48570a(_0x209941._0x44484e) + _0x1db31b[_0x48570a(_0x209941._0x129cfd)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1459
|
-
}
|
|
1460
|
-
function formatViewFileResult(_0x2913a9, _0xb8dfcd) {
|
|
1461
|
-
const _0x41d18d = {
|
|
1462
|
-
_0x31341a: 0x204,
|
|
1463
|
-
_0x4c5ac7: 0x20e
|
|
1464
|
-
}, _0x2d44f2 = _0x5c3349;
|
|
1465
|
-
return _0xb8dfcd ? _0x2d44f2(_0x41d18d._0x31341a) + _0x2913a9 : _0x2d44f2(_0x41d18d._0x4c5ac7) + _0x2913a9;
|
|
1466
|
-
}
|
|
1467
|
-
function formatTaskList(_0x2da7ab, _0x1a4d85) {
|
|
1468
|
-
const _0x32a11f = {
|
|
1469
|
-
_0x560d3f: 0x2a4,
|
|
1470
|
-
_0x1b6a4d: 0x28d
|
|
1471
|
-
}, _0x173f27 = {
|
|
1472
|
-
_0x49fbb5: 0x314,
|
|
1473
|
-
_0x292e1f: 0x244,
|
|
1474
|
-
_0xea4625: 0x212,
|
|
1475
|
-
_0x597cb2: 0x1ea
|
|
1476
|
-
}, _0x586a7d = _0x5c3349;
|
|
1477
|
-
if (_0x2da7ab[_0x586a7d(0x29d)] === 0x0)
|
|
1478
|
-
return _0x586a7d(_0x32a11f._0x560d3f);
|
|
1479
|
-
return _0x2da7ab['map'](_0x58c98a => {
|
|
1480
|
-
const _0x46abeb = _0x586a7d, _0x1562fd = _0x58c98a[_0x46abeb(0x244)] == null ? _0x46abeb(0x319) : '#' + _0x58c98a[_0x46abeb(0x244)], _0x5bf03f = _0x58c98a[_0x46abeb(_0x173f27._0x49fbb5)] ? '\x20message=' + _0x58c98a[_0x46abeb(0x314)] : '', _0x1abad1 = _0x1a4d85 && _0x58c98a[_0x46abeb(0x244)] != null && _0x1a4d85[_0x46abeb(0x218)](_0x58c98a[_0x46abeb(_0x173f27._0x292e1f)]) ? _0x46abeb(0x25b) : '';
|
|
1481
|
-
return _0x1562fd + '\x20[' + _0x58c98a[_0x46abeb(_0x173f27._0xea4625)] + ']\x20' + _0x58c98a[_0x46abeb(_0x173f27._0x597cb2)] + _0x5bf03f + _0x1abad1;
|
|
1482
|
-
})[_0x586a7d(_0x32a11f._0x1b6a4d)]('\x0a');
|
|
1483
|
-
}
|
|
1484
|
-
function formatCreatedTasks(_0x5d0881) {
|
|
1485
|
-
const _0x323f21 = {
|
|
1486
|
-
_0x93bf71: 0x244,
|
|
1487
|
-
_0x85c0e0: 0x1ea,
|
|
1488
|
-
_0x2dc4a7: 0x29f
|
|
1489
|
-
}, _0xae67f1 = _0x5c3349;
|
|
1490
|
-
if (_0x5d0881[_0xae67f1(0x29d)] === 0x0)
|
|
1491
|
-
return 'No\x20tasks\x20created.';
|
|
1492
|
-
return _0x5d0881[_0xae67f1(0x221)](_0x482905 => {
|
|
1493
|
-
const _0x30f01f = _0xae67f1, _0x2866a4 = _0x482905[_0x30f01f(0x244)] == null ? _0x30f01f(0x319) : '#' + _0x482905[_0x30f01f(_0x323f21._0x93bf71)];
|
|
1494
|
-
return _0x2866a4 + '\x20' + _0x482905[_0x30f01f(_0x323f21._0x85c0e0)] + _0x30f01f(_0x323f21._0x2dc4a7) + _0x482905['messageId'];
|
|
1495
|
-
})[_0xae67f1(0x28d)]('\x0a');
|
|
1496
|
-
}
|
|
1497
|
-
function formatClaimTaskResults(_0x750163) {
|
|
1498
|
-
const _0x4f11aa = { _0x52d426: 0x29d }, _0x3854bc = {
|
|
1499
|
-
_0x3b6a19: 0x1a9,
|
|
1500
|
-
_0x1c35dc: 0x284,
|
|
1501
|
-
_0x5ea080: 0x1fa,
|
|
1502
|
-
_0x5e3601: 0x1d7,
|
|
1503
|
-
_0x37ea09: 0x31e,
|
|
1504
|
-
_0x376985: 0x20a,
|
|
1505
|
-
_0xb242af: 0x314,
|
|
1506
|
-
_0x28b723: 0x2fd
|
|
1507
|
-
}, _0x51059d = _0x5c3349;
|
|
1508
|
-
if (_0x750163[_0x51059d(_0x4f11aa._0x52d426)] === 0x0)
|
|
1509
|
-
return _0x51059d(0x271);
|
|
1510
|
-
return _0x750163['map'](_0x330866 => {
|
|
1511
|
-
const _0x1b2b40 = _0x51059d;
|
|
1512
|
-
if (_0x330866['success']) {
|
|
1513
|
-
const _0x5b58ad = _0x330866['taskNumber'] == null ? '(legacy)' : '#' + _0x330866['taskNumber'], _0x33fd0d = _0x330866[_0x1b2b40(0x314)] ? _0x1b2b40(0x29f) + _0x330866['messageId'] : '';
|
|
1514
|
-
if (_0x330866['workerHandoff']) {
|
|
1515
|
-
const _0x170feb = [
|
|
1516
|
-
_0x1b2b40(_0x3854bc._0x3b6a19),
|
|
1517
|
-
_0x330866[_0x1b2b40(0x2af)] ? _0x1b2b40(_0x3854bc._0x1c35dc) : null,
|
|
1518
|
-
_0x330866[_0x1b2b40(0x1fa)] ? _0x1b2b40(0x2b7) + _0x330866[_0x1b2b40(_0x3854bc._0x5ea080)] : null,
|
|
1519
|
-
_0x330866[_0x1b2b40(_0x3854bc._0x5e3601)] ? _0x1b2b40(0x30d) + _0x330866['threadTarget'] : null,
|
|
1520
|
-
_0x330866['workerDisposition'] ? _0x1b2b40(0x1f7) + _0x330866['workerDisposition'] : null
|
|
1521
|
-
][_0x1b2b40(_0x3854bc._0x37ea09)](Boolean)['join']('\x20');
|
|
1522
|
-
return _0x5b58ad + _0x1b2b40(0x20a) + _0x33fd0d + '\x20' + _0x170feb + _0x1b2b40(0x1ec);
|
|
1523
|
-
}
|
|
1524
|
-
const _0x2120f5 = _0x330866['workerHandoffError'] ? _0x1b2b40(0x2c4) + _0x330866[_0x1b2b40(0x1c1)] : '';
|
|
1525
|
-
return _0x5b58ad + _0x1b2b40(_0x3854bc._0x376985) + _0x33fd0d + _0x2120f5;
|
|
1526
|
-
}
|
|
1527
|
-
const _0x469958 = _0x330866[_0x1b2b40(0x244)] == null ? _0x330866[_0x1b2b40(_0x3854bc._0xb242af)] ?? '(unknown)' : '#' + _0x330866[_0x1b2b40(0x244)];
|
|
1528
|
-
return _0x469958 + _0x1b2b40(_0x3854bc._0x28b723) + (_0x330866[_0x1b2b40(0x237)] ?? _0x1b2b40(0x26c));
|
|
1529
|
-
})['join']('\x0a');
|
|
1530
|
-
}
|
|
1531
|
-
function formatUnclaimTaskResult(_0x346470) {
|
|
1532
|
-
const _0x12a4db = { _0x144cfb: 0x311 }, _0x5c7b12 = _0x5c3349, _0xa41a3e = _0x346470[_0x5c7b12(0x244)] == null ? _0x5c7b12(0x319) : '#' + _0x346470[_0x5c7b12(0x244)];
|
|
1533
|
-
return _0xa41a3e + _0x5c7b12(_0x12a4db._0x144cfb) + _0x346470[_0x5c7b12(0x212)];
|
|
1534
|
-
}
|
|
1535
|
-
function formatUpdateTaskStatusResult(_0x853f1a) {
|
|
1536
|
-
const _0x637d90 = {
|
|
1537
|
-
_0x2c36b1: 0x244,
|
|
1538
|
-
_0x2d5632: 0x311
|
|
1539
|
-
}, _0x24377c = _0x5c3349, _0x531f5b = _0x853f1a[_0x24377c(_0x637d90._0x2c36b1)] == null ? '(legacy)' : '#' + _0x853f1a[_0x24377c(0x244)];
|
|
1540
|
-
return _0x531f5b + _0x24377c(_0x637d90._0x2d5632) + _0x853f1a[_0x24377c(0x212)];
|
|
1541
|
-
}
|
|
1542
|
-
function getChatBridgeToolDefinitions() {
|
|
1543
|
-
const _0x460697 = {
|
|
1544
|
-
_0x28b4b0: 0x2d2,
|
|
1545
|
-
_0x499d12: 0x2f2,
|
|
1546
|
-
_0x1784a0: 0x2bc,
|
|
1547
|
-
_0x55fdb1: 0x2c0,
|
|
1548
|
-
_0x3b9f9b: 0x241
|
|
1549
|
-
}, _0x4d8adf = _0x5c3349;
|
|
1550
|
-
return [
|
|
1551
|
-
{ 'name': _0x4d8adf(_0x460697._0x28b4b0) },
|
|
1552
|
-
{ 'name': _0x4d8adf(_0x460697._0x499d12) },
|
|
1553
|
-
{ 'name': 'read_history' },
|
|
1554
|
-
{ 'name': 'list_server' },
|
|
1555
|
-
{ 'name': _0x4d8adf(0x302) },
|
|
1556
|
-
{ 'name': _0x4d8adf(0x1b4) },
|
|
1557
|
-
{ 'name': 'list_tasks' },
|
|
1558
|
-
{ 'name': _0x4d8adf(0x1b3) },
|
|
1559
|
-
{ 'name': _0x4d8adf(0x1e6) },
|
|
1560
|
-
{ 'name': _0x4d8adf(0x2a6) },
|
|
1561
|
-
{ 'name': 'update_task_status' },
|
|
1562
|
-
{ 'name': _0x4d8adf(_0x460697._0x1784a0) },
|
|
1563
|
-
{ 'name': 'get_worker_result' },
|
|
1564
|
-
{ 'name': _0x4d8adf(_0x460697._0x55fdb1) },
|
|
1565
|
-
{ 'name': _0x4d8adf(0x1f4) },
|
|
1566
|
-
{ 'name': _0x4d8adf(_0x460697._0x3b9f9b) }
|
|
1567
|
-
];
|
|
1568
|
-
}
|
|
1569
|
-
function createChatBridgeHandlers(_0x21cc16) {
|
|
1570
|
-
const _0x21a67d = {
|
|
1571
|
-
_0x2782e2: 0x1ef,
|
|
1572
|
-
_0x3c564b: 0x316
|
|
1573
|
-
}, _0x28be5c = {
|
|
1574
|
-
_0x129434: 0x248,
|
|
1575
|
-
_0x34e835: 0x1a3
|
|
1576
|
-
}, _0x1a3f2b = {
|
|
1577
|
-
_0x146207: 0x2a3,
|
|
1578
|
-
_0xe376f8: 0x2f9,
|
|
1579
|
-
_0x31e766: 0x2da
|
|
1580
|
-
}, _0x54c0ea = {
|
|
1581
|
-
_0x2d3622: 0x1b8,
|
|
1582
|
-
_0x29a572: 0x2ac,
|
|
1583
|
-
_0x2166d5: 0x282,
|
|
1584
|
-
_0x3a0775: 0x1ee,
|
|
1585
|
-
_0x3574c9: 0x2d9
|
|
1586
|
-
}, _0x39afb5 = {
|
|
1587
|
-
_0x5450b8: 0x2a3,
|
|
1588
|
-
_0x168591: 0x2f9,
|
|
1589
|
-
_0x266317: 0x205,
|
|
1590
|
-
_0x5193b8: 0x323,
|
|
1591
|
-
_0x548aa7: 0x2d0
|
|
1592
|
-
}, _0x365214 = {
|
|
1593
|
-
_0x22f31d: 0x322,
|
|
1594
|
-
_0x2af66b: 0x1a3,
|
|
1595
|
-
_0xa55e71: 0x1ee,
|
|
1596
|
-
_0x2a90c8: 0x2f9,
|
|
1597
|
-
_0x37cc28: 0x2d6,
|
|
1598
|
-
_0x3e0d47: 0x212
|
|
1599
|
-
}, _0x1a6170 = {
|
|
1600
|
-
_0x427a17: 0x1d6,
|
|
1601
|
-
_0x46a61f: 0x255,
|
|
1602
|
-
_0x3fb2d8: 0x224,
|
|
1603
|
-
_0x1767f0: 0x230
|
|
1604
|
-
}, _0x12a2e9 = {
|
|
1605
|
-
_0x32cc80: 0x236,
|
|
1606
|
-
_0xb7b423: 0x203
|
|
1607
|
-
}, _0x141d99 = { _0x2a3664: 0x1d6 }, _0x4a0169 = {
|
|
1608
|
-
_0x21e76b: 0x1d6,
|
|
1609
|
-
_0x495f52: 0x31c,
|
|
1610
|
-
_0x2c61e7: 0x221
|
|
1611
|
-
}, _0x502eb2 = {
|
|
1612
|
-
_0x197948: 0x244,
|
|
1613
|
-
_0x27a07a: 0x2b2
|
|
1614
|
-
}, _0x305b59 = { _0x56c9dc: 0x222 }, _0x4ef646 = {
|
|
1615
|
-
_0x4d819e: 0x1d6,
|
|
1616
|
-
_0x3be9e1: 0x2dd,
|
|
1617
|
-
_0x326508: 0x19e,
|
|
1618
|
-
_0x12ae2a: 0x24f,
|
|
1619
|
-
_0x150fcc: 0x29d,
|
|
1620
|
-
_0x5e8462: 0x244,
|
|
1621
|
-
_0x2b5380: 0x301,
|
|
1622
|
-
_0x3e9ba8: 0x1c0,
|
|
1623
|
-
_0x1f6c1f: 0x244,
|
|
1624
|
-
_0x3c5aec: 0x264,
|
|
1625
|
-
_0x46a50e: 0x2cf
|
|
1626
|
-
}, _0x1f2ea6 = {
|
|
1627
|
-
_0x1fe996: 0x1d6,
|
|
1628
|
-
_0x340b54: 0x1a1
|
|
1629
|
-
}, _0x40f216 = { _0x3b77ec: 0x1d6 }, _0x5a0aec = {
|
|
1630
|
-
_0x463408: 0x233,
|
|
1631
|
-
_0x4af2c0: 0x2a3,
|
|
1632
|
-
_0x16e00a: 0x2dd,
|
|
1633
|
-
_0x4fa8af: 0x26b,
|
|
1634
|
-
_0x1417c8: 0x30c,
|
|
1635
|
-
_0x2d3e15: 0x2b3,
|
|
1636
|
-
_0x279d9c: 0x268,
|
|
1637
|
-
_0x18df33: 0x319,
|
|
1638
|
-
_0xadc0c5: 0x30c,
|
|
1639
|
-
_0x215359: 0x2b3,
|
|
1640
|
-
_0x1dbc48: 0x25a,
|
|
1641
|
-
_0x4b3752: 0x308,
|
|
1642
|
-
_0x30717e: 0x2df,
|
|
1643
|
-
_0x12582c: 0x321,
|
|
1644
|
-
_0x400562: 0x309,
|
|
1645
|
-
_0x46bc8c: 0x268,
|
|
1646
|
-
_0x55ac70: 0x2aa,
|
|
1647
|
-
_0x3d1ed8: 0x2f7,
|
|
1648
|
-
_0x59b2bc: 0x315,
|
|
1649
|
-
_0x1b73df: 0x28d,
|
|
1650
|
-
_0x2090bb: 0x2be,
|
|
1651
|
-
_0x3ad56b: 0x1f0,
|
|
1652
|
-
_0x5192f8: 0x232,
|
|
1653
|
-
_0x146c18: 0x1ca,
|
|
1654
|
-
_0x462b35: 0x2d8,
|
|
1655
|
-
_0x501403: 0x1f5,
|
|
1656
|
-
_0x1e718f: 0x22a,
|
|
1657
|
-
_0x20cb37: 0x2ef,
|
|
1658
|
-
_0x3ca07d: 0x1d6,
|
|
1659
|
-
_0xc5b0c1: 0x30c,
|
|
1660
|
-
_0x3104dd: 0x314
|
|
1661
|
-
}, _0x55c200 = { _0x381bb0: 0x2dd }, _0x1d4339 = {
|
|
1662
|
-
_0x2f30dd: 0x2a3,
|
|
1663
|
-
_0x254080: 0x2dd,
|
|
1664
|
-
_0x2eb9d2: 0x1a3,
|
|
1665
|
-
_0xace8d1: 0x246,
|
|
1666
|
-
_0x2dd878: 0x212,
|
|
1667
|
-
_0x846a03: 0x19e,
|
|
1668
|
-
_0x4c7a76: 0x256,
|
|
1669
|
-
_0x5d5c63: 0x256
|
|
1670
|
-
}, _0x47d466 = {
|
|
1671
|
-
_0x1147f3: 0x2a3,
|
|
1672
|
-
_0x23d385: 0x1d0,
|
|
1673
|
-
_0x5dba1e: 0x1f3,
|
|
1674
|
-
_0x54df83: 0x1b6,
|
|
1675
|
-
_0x273d89: 0x2b2,
|
|
1676
|
-
_0x24b793: 0x1a1,
|
|
1677
|
-
_0xc24c8e: 0x209,
|
|
1678
|
-
_0x224ab1: 0x1dc,
|
|
1679
|
-
_0x59726f: 0x1e4,
|
|
1680
|
-
_0x178310: 0x27e,
|
|
1681
|
-
_0x5414ee: 0x2df,
|
|
1682
|
-
_0x1d1563: 0x2ad,
|
|
1683
|
-
_0x2bcb09: 0x1d4,
|
|
1684
|
-
_0x5b2c12: 0x314,
|
|
1685
|
-
_0x3ba3f9: 0x2ae,
|
|
1686
|
-
_0xe32f16: 0x2ac,
|
|
1687
|
-
_0x192d3f: 0x306,
|
|
1688
|
-
_0x44fa42: 0x244,
|
|
1689
|
-
_0x304cd1: 0x1cd,
|
|
1690
|
-
_0x2691c2: 0x2ef,
|
|
1691
|
-
_0x477f07: 0x1de
|
|
1692
|
-
}, _0x9c3ae1 = _0x5c3349;
|
|
1693
|
-
async function _0x3c871f(_0x2dfb9c) {
|
|
1694
|
-
const _0x279a71 = _0x4b05;
|
|
1695
|
-
if (!_0x21cc16[_0x279a71(_0x47d466._0x1147f3)] || !_0x21cc16[_0x279a71(0x2dd)] || _0x21cc16[_0x279a71(0x233)] || _0x21cc16['workerModeEnabled'] !== !![])
|
|
1696
|
-
return null;
|
|
1697
|
-
const _0x5403ee = parseTarget(_0x2dfb9c[_0x279a71(_0x47d466._0x23d385)]);
|
|
1698
|
-
if (_0x5403ee[_0x279a71(_0x47d466._0x5dba1e)] !== _0x279a71(0x1d0))
|
|
1699
|
-
return null;
|
|
1700
|
-
const _0x4c4b24 = _0x2dfb9c['threadNumber'] != null ? _0x5403ee[_0x279a71(_0x47d466._0x54df83)] + ':t' + _0x2dfb9c[_0x279a71(_0x47d466._0x273d89)] : _0x5403ee['channelTarget'] + ':' + _0x2dfb9c[_0x279a71(0x314)];
|
|
1701
|
-
let _0x5c94c1;
|
|
1702
|
-
try {
|
|
1703
|
-
const _0x5aa9fc = await _0x21cc16['client'][_0x279a71(_0x47d466._0x24b793)]({
|
|
1704
|
-
'channel': _0x4c4b24,
|
|
1705
|
-
'limit': 0x14
|
|
1706
|
-
});
|
|
1707
|
-
_0x5c94c1 = _0x5aa9fc[_0x279a71(_0x47d466._0xc24c8e)]['find'](_0x578020 => _0x578020[_0x279a71(0x314)] === _0x2dfb9c['messageId']);
|
|
1708
|
-
} catch {
|
|
1709
|
-
_0x5c94c1 = void 0x0;
|
|
1710
|
-
}
|
|
1711
|
-
const _0x22e7e7 = _0x2dfb9c[_0x279a71(0x244)] == null ? '(legacy)' : '#' + _0x2dfb9c[_0x279a71(0x244)], _0x3ee1fa = [
|
|
1712
|
-
_0x279a71(_0x47d466._0x224ab1) + _0x4c4b24 + _0x279a71(_0x47d466._0x59726f) + _0x2dfb9c[_0x279a71(0x314)][_0x279a71(_0x47d466._0x178310)](0x0, 0x8) + _0x279a71(0x2bf) + new Date()[_0x279a71(_0x47d466._0x5414ee)]() + _0x279a71(0x283) + _0x22e7e7 + _0x279a71(_0x47d466._0x1d1563),
|
|
1713
|
-
'',
|
|
1714
|
-
_0x5c94c1 ? 'Root\x20task\x20message:\x0a' + _0x5c94c1['content'] : _0x279a71(_0x47d466._0x2bcb09) + _0x2dfb9c[_0x279a71(_0x47d466._0x5b2c12)],
|
|
1715
|
-
'',
|
|
1716
|
-
_0x279a71(0x2f7) + _0x4c4b24,
|
|
1717
|
-
'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
|
|
1718
|
-
]['join']('\x0a'), _0x5d68ef = await fetch(_0x21cc16['daemonLocalUrl'] + _0x279a71(_0x47d466._0x3ba3f9), {
|
|
1719
|
-
'method': _0x279a71(_0x47d466._0xe32f16),
|
|
1720
|
-
'headers': { 'Content-Type': _0x279a71(0x2be) },
|
|
1721
|
-
'body': JSON[_0x279a71(0x2d0)]({
|
|
1722
|
-
'agent_id': _0x21cc16[_0x279a71(0x2dd)],
|
|
1723
|
-
'thread_target': _0x4c4b24,
|
|
1724
|
-
'spawn_packet': {
|
|
1725
|
-
'replyTarget': _0x4c4b24,
|
|
1726
|
-
..._0x2dfb9c['taskId'] ? { 'taskId': _0x2dfb9c['taskId'] } : _0x2dfb9c['taskNumber'] != null ? { 'taskId': _0x279a71(_0x47d466._0x192d3f) + _0x2dfb9c[_0x279a71(_0x47d466._0x44fa42)] } : {}
|
|
1727
|
-
},
|
|
1728
|
-
'payload': {
|
|
1729
|
-
'mode': _0x279a71(0x1f0),
|
|
1730
|
-
'text': _0x3ee1fa
|
|
1731
|
-
}
|
|
1732
|
-
})
|
|
1733
|
-
}), _0x4d1b0c = await _0x5d68ef['json']();
|
|
1734
|
-
if (!_0x4d1b0c['ok'])
|
|
1735
|
-
throw new Error(_0x4d1b0c[_0x279a71(0x232)] ?? _0x279a71(_0x47d466._0x304cd1));
|
|
1736
|
-
return {
|
|
1737
|
-
'stopMain': !![],
|
|
1738
|
-
'threadTarget': _0x4c4b24,
|
|
1739
|
-
'workerDisposition': _0x4d1b0c['disposition'] === _0x279a71(0x2ef) ? _0x279a71(_0x47d466._0x2691c2) : _0x279a71(_0x47d466._0x477f07),
|
|
1740
|
-
'workerHandoff': !![],
|
|
1741
|
-
'workerSessionId': _0x4d1b0c[_0x279a71(0x1ac)] ?? '',
|
|
1742
|
-
'executionMode': _0x279a71(0x210)
|
|
1743
|
-
};
|
|
1744
|
-
}
|
|
1745
|
-
async function _0x3a612f() {
|
|
1746
|
-
const _0x18b9a8 = _0x4b05;
|
|
1747
|
-
if (!_0x21cc16[_0x18b9a8(0x2a3)] || !_0x21cc16['agentId'] || _0x21cc16['workerMode'])
|
|
1748
|
-
return null;
|
|
1749
|
-
try {
|
|
1750
|
-
const _0x3f1bff = await fetch(_0x21cc16[_0x18b9a8(_0x1d4339._0x2f30dd)] + '/workers/list?agent_id=' + encodeURIComponent(_0x21cc16[_0x18b9a8(_0x1d4339._0x254080)])), _0x4daa3d = await _0x3f1bff[_0x18b9a8(_0x1d4339._0x2eb9d2)]();
|
|
1751
|
-
if (!_0x4daa3d['ok'])
|
|
1752
|
-
return null;
|
|
1753
|
-
const _0x1bfe8e = new Set();
|
|
1754
|
-
for (const _0x2ac430 of _0x4daa3d[_0x18b9a8(_0x1d4339._0xace8d1)]) {
|
|
1755
|
-
_0x2ac430[_0x18b9a8(_0x1d4339._0x2dd878)] !== _0x18b9a8(_0x1d4339._0x846a03) && _0x2ac430[_0x18b9a8(_0x1d4339._0x4c7a76)] && _0x1bfe8e[_0x18b9a8(0x264)](_0x2ac430[_0x18b9a8(_0x1d4339._0x5d5c63)]);
|
|
1756
|
-
}
|
|
1757
|
-
return _0x1bfe8e[_0x18b9a8(0x32b)] > 0x0 ? _0x1bfe8e : null;
|
|
1758
|
-
} catch {
|
|
1759
|
-
return null;
|
|
1760
|
-
}
|
|
1761
|
-
}
|
|
1762
|
-
const _0x38f26b = new Set([
|
|
1763
|
-
'running',
|
|
1764
|
-
_0x9c3ae1(_0x21a67d._0x2782e2),
|
|
1765
|
-
_0x9c3ae1(_0x21a67d._0x3c564b)
|
|
1766
|
-
]);
|
|
1767
|
-
async function _0x2ef1f9() {
|
|
1768
|
-
const _0x4146cf = _0x9c3ae1;
|
|
1769
|
-
if (!_0x21cc16[_0x4146cf(0x2a3)] || !_0x21cc16[_0x4146cf(_0x55c200._0x381bb0)] || _0x21cc16['workerMode'])
|
|
1770
|
-
return null;
|
|
1771
|
-
try {
|
|
1772
|
-
const _0x519e3d = await fetch(_0x21cc16[_0x4146cf(0x2a3)] + '/workers/list?agent_id=' + encodeURIComponent(_0x21cc16['agentId'])), _0x205e8a = await _0x519e3d[_0x4146cf(0x1a3)]();
|
|
1773
|
-
if (!_0x205e8a['ok'])
|
|
1774
|
-
return null;
|
|
1775
|
-
const _0x1a5109 = new Set();
|
|
1776
|
-
for (const _0x12d256 of _0x205e8a[_0x4146cf(0x246)]) {
|
|
1777
|
-
_0x38f26b['has'](_0x12d256[_0x4146cf(0x212)]) && _0x12d256['thread_target'] && _0x1a5109['add'](_0x12d256['thread_target']);
|
|
1778
|
-
}
|
|
1779
|
-
return _0x1a5109[_0x4146cf(0x32b)] > 0x0 ? _0x1a5109 : null;
|
|
1780
|
-
} catch {
|
|
1781
|
-
return null;
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
|
-
return {
|
|
1785
|
-
async 'send_message'(_0x1ba882) {
|
|
1786
|
-
const _0x5e3500 = _0x9c3ae1;
|
|
1787
|
-
if (!_0x21cc16[_0x5e3500(_0x5a0aec._0x463408)] && _0x21cc16[_0x5e3500(0x259)] && _0x21cc16[_0x5e3500(_0x5a0aec._0x4af2c0)] && _0x21cc16[_0x5e3500(_0x5a0aec._0x16e00a)]) {
|
|
1788
|
-
const _0x282092 = await _0x21cc16[_0x5e3500(0x1d6)][_0x5e3500(_0x5a0aec._0x4fa8af)](_0x1ba882[_0x5e3500(_0x5a0aec._0x1417c8)]);
|
|
1789
|
-
if (_0x282092['task'] && _0x282092[_0x5e3500(_0x5a0aec._0x2d3e15)]) {
|
|
1790
|
-
const _0x1b769d = _0x282092['task'][_0x5e3500(0x244)] != null ? '#' + _0x282092[_0x5e3500(_0x5a0aec._0x279d9c)]['taskNumber'] : _0x5e3500(_0x5a0aec._0x18df33), _0x5361fc = _0x282092[_0x5e3500(0x2b2)] != null ? _0x282092[_0x5e3500(_0x5a0aec._0xadc0c5)] + ':t' + _0x282092['threadNumber'] : _0x282092['target'] + ':' + _0x282092[_0x5e3500(_0x5a0aec._0x215359)][_0x5e3500(0x27e)](0x0, 0x8), _0x194836 = await _0x2ef1f9();
|
|
1791
|
-
if (_0x194836?.['has'](_0x5361fc))
|
|
1792
|
-
return [
|
|
1793
|
-
_0x5e3500(_0x5a0aec._0x1dbc48) + _0x1b769d + _0x5e3500(0x2d8) + _0x5361fc + _0x5e3500(_0x5a0aec._0x4b3752),
|
|
1794
|
-
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1795
|
-
][_0x5e3500(0x28d)]('\x0a');
|
|
1796
|
-
const _0x205a15 = [
|
|
1797
|
-
_0x5e3500(0x1dc) + _0x5361fc + _0x5e3500(0x2b0) + new Date()[_0x5e3500(_0x5a0aec._0x30717e)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1798
|
-
'',
|
|
1799
|
-
_0x5e3500(_0x5a0aec._0x12582c) + _0x1ba882[_0x5e3500(_0x5a0aec._0x400562)],
|
|
1800
|
-
'Task:\x20' + _0x1b769d + '\x20(' + _0x282092[_0x5e3500(_0x5a0aec._0x46bc8c)][_0x5e3500(_0x5a0aec._0x55ac70)] + ')',
|
|
1801
|
-
_0x5e3500(_0x5a0aec._0x3d1ed8) + _0x5361fc,
|
|
1802
|
-
_0x5e3500(_0x5a0aec._0x59b2bc)
|
|
1803
|
-
][_0x5e3500(_0x5a0aec._0x1b73df)]('\x0a'), _0x401e44 = await fetch(_0x21cc16['daemonLocalUrl'] + _0x5e3500(0x2ae), {
|
|
1804
|
-
'method': _0x5e3500(0x2ac),
|
|
1805
|
-
'headers': { 'Content-Type': _0x5e3500(_0x5a0aec._0x2090bb) },
|
|
1806
|
-
'body': JSON[_0x5e3500(0x2d0)]({
|
|
1807
|
-
'agent_id': _0x21cc16[_0x5e3500(0x2dd)],
|
|
1808
|
-
'thread_target': _0x5361fc,
|
|
1809
|
-
'spawn_packet': {
|
|
1810
|
-
'replyTarget': _0x5361fc,
|
|
1811
|
-
'taskId': _0x282092['task'][_0x5e3500(_0x5a0aec._0x55ac70)]
|
|
1812
|
-
},
|
|
1813
|
-
'payload': {
|
|
1814
|
-
'mode': _0x5e3500(_0x5a0aec._0x3ad56b),
|
|
1815
|
-
'text': _0x205a15
|
|
1816
|
-
}
|
|
1817
|
-
})
|
|
1818
|
-
}), _0x3a801e = await _0x401e44[_0x5e3500(0x1a3)]();
|
|
1819
|
-
if (!_0x3a801e['ok'])
|
|
1820
|
-
throw new Error(_0x3a801e[_0x5e3500(_0x5a0aec._0x5192f8)] ?? _0x5e3500(0x27f));
|
|
1821
|
-
return [
|
|
1822
|
-
_0x5e3500(_0x5a0aec._0x146c18) + _0x1b769d + _0x5e3500(_0x5a0aec._0x462b35) + _0x5361fc + _0x5e3500(_0x5a0aec._0x501403),
|
|
1823
|
-
_0x5e3500(_0x5a0aec._0x1e718f) + (_0x3a801e[_0x5e3500(0x2c5)] === _0x5e3500(_0x5a0aec._0x20cb37) ? _0x5e3500(_0x5a0aec._0x20cb37) : _0x5e3500(0x1de)) + '.',
|
|
1824
|
-
'⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
|
|
1825
|
-
][_0x5e3500(0x28d)]('\x0a');
|
|
1826
|
-
}
|
|
1827
|
-
}
|
|
1828
|
-
const _0x7c3b8e = await _0x21cc16[_0x5e3500(_0x5a0aec._0x3ca07d)][_0x5e3500(0x31a)]({
|
|
1829
|
-
'attachmentIds': _0x1ba882[_0x5e3500(0x1aa)],
|
|
1830
|
-
'content': _0x1ba882['content'],
|
|
1831
|
-
'target': _0x1ba882[_0x5e3500(_0x5a0aec._0xc5b0c1)],
|
|
1832
|
-
'visibility': _0x1ba882[_0x5e3500(0x213)]
|
|
1833
|
-
});
|
|
1834
|
-
return 'Message\x20sent\x20to\x20' + _0x1ba882[_0x5e3500(0x30c)] + _0x5e3500(0x235) + _0x7c3b8e[_0x5e3500(_0x5a0aec._0x3104dd)];
|
|
1835
|
-
},
|
|
1836
|
-
async 'check_messages'() {
|
|
1837
|
-
const _0x2f26ca = _0x9c3ae1, _0x486094 = await _0x21cc16[_0x2f26ca(_0x40f216._0x3b77ec)][_0x2f26ca(0x24a)]();
|
|
1838
|
-
if (!_0x21cc16['workerMode']) {
|
|
1839
|
-
const _0x5a5de8 = await _0x3a612f();
|
|
1840
|
-
if (_0x5a5de8)
|
|
1841
|
-
return formatCheckMessages(_0x486094[_0x2f26ca(0x209)][_0x2f26ca(0x31e)](_0x1548f3 => !_0x5a5de8[_0x2f26ca(0x218)](_0x1548f3[_0x2f26ca(0x30c)])));
|
|
1842
|
-
}
|
|
1843
|
-
return formatCheckMessages(_0x486094[_0x2f26ca(0x209)]);
|
|
1844
|
-
},
|
|
1845
|
-
async 'read_history'(_0x2f6f1e) {
|
|
1846
|
-
const _0x1ec7a0 = _0x9c3ae1, _0x3c8ff2 = await _0x21cc16[_0x1ec7a0(_0x1f2ea6._0x1fe996)][_0x1ec7a0(_0x1f2ea6._0x340b54)](_0x2f6f1e);
|
|
1847
|
-
return formatHistory(_0x3c8ff2);
|
|
1848
|
-
},
|
|
1849
|
-
async 'list_server'() {
|
|
1850
|
-
const _0x2a0631 = _0x9c3ae1, _0x3ca02c = await _0x21cc16[_0x2a0631(0x1d6)][_0x2a0631(0x228)]();
|
|
1851
|
-
return formatServerDirectory(_0x3ca02c);
|
|
1852
|
-
},
|
|
1853
|
-
async 'list_tasks'(_0x3753c1) {
|
|
1854
|
-
const _0x381a63 = _0x9c3ae1, _0x82a623 = await _0x21cc16[_0x381a63(_0x4ef646._0x4d819e)][_0x381a63(0x207)](_0x3753c1);
|
|
1855
|
-
let _0x52b8af;
|
|
1856
|
-
if (_0x21cc16['daemonLocalUrl'] && _0x21cc16[_0x381a63(_0x4ef646._0x3be9e1)])
|
|
1857
|
-
try {
|
|
1858
|
-
const _0x5e0d2d = await fetch(_0x21cc16['daemonLocalUrl'] + '/workers/list?agent_id=' + encodeURIComponent(_0x21cc16[_0x381a63(0x2dd)])), _0x1651ba = await _0x5e0d2d['json']();
|
|
1859
|
-
if (_0x1651ba['ok']) {
|
|
1860
|
-
const _0x36177b = _0x3753c1['channel'] + ':';
|
|
1861
|
-
_0x52b8af = new Set();
|
|
1862
|
-
for (const _0x1e5e6d of _0x1651ba[_0x381a63(0x246)]) {
|
|
1863
|
-
if (_0x1e5e6d['status'] === _0x381a63(_0x4ef646._0x326508))
|
|
1864
|
-
continue;
|
|
1865
|
-
if (_0x1e5e6d[_0x381a63(0x256)]?.[_0x381a63(_0x4ef646._0x12ae2a)](_0x36177b)) {
|
|
1866
|
-
const _0x5b0599 = _0x1e5e6d[_0x381a63(0x256)][_0x381a63(0x27e)](_0x36177b[_0x381a63(_0x4ef646._0x150fcc)]), _0x5e7ff3 = _0x82a623[_0x381a63(0x2cf)]['find'](_0x344c2e => _0x344c2e['messageId']?.[_0x381a63(0x24f)](_0x5b0599) === !![]);
|
|
1867
|
-
if (_0x5e7ff3?.[_0x381a63(_0x4ef646._0x5e8462)] != null) {
|
|
1868
|
-
_0x52b8af[_0x381a63(0x264)](_0x5e7ff3[_0x381a63(_0x4ef646._0x5e8462)]);
|
|
1869
|
-
continue;
|
|
1870
|
-
}
|
|
1871
|
-
}
|
|
1872
|
-
if (_0x1e5e6d[_0x381a63(_0x4ef646._0x2b5380)]) {
|
|
1873
|
-
const _0x14d9e6 = _0x82a623['tasks'][_0x381a63(_0x4ef646._0x3e9ba8)](_0x58ff10 => _0x58ff10['taskId'] === _0x1e5e6d[_0x381a63(0x301)]);
|
|
1874
|
-
_0x14d9e6?.[_0x381a63(_0x4ef646._0x1f6c1f)] != null && _0x52b8af[_0x381a63(_0x4ef646._0x3c5aec)](_0x14d9e6[_0x381a63(0x244)]);
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
}
|
|
1878
|
-
} catch {
|
|
1879
|
-
}
|
|
1880
|
-
return formatTaskList(_0x82a623[_0x381a63(_0x4ef646._0x46a50e)], _0x52b8af);
|
|
1881
|
-
},
|
|
1882
|
-
async 'create_tasks'(_0x212eb3) {
|
|
1883
|
-
const _0x2615f2 = _0x9c3ae1, _0x7fa7cf = await _0x21cc16['client'][_0x2615f2(_0x305b59._0x56c9dc)](_0x212eb3);
|
|
1884
|
-
return formatCreatedTasks(_0x7fa7cf['tasks']);
|
|
1885
|
-
},
|
|
1886
|
-
async 'claim_tasks'(_0x1eafb5) {
|
|
1887
|
-
const _0x2a17f9 = _0x9c3ae1, _0x3b0a26 = await _0x21cc16[_0x2a17f9(_0x4a0169._0x21e76b)][_0x2a17f9(_0x4a0169._0x495f52)](_0x1eafb5), _0x24feae = await Promise['all'](_0x3b0a26[_0x2a17f9(0x2cc)][_0x2a17f9(_0x4a0169._0x2c61e7)](async _0x554a4f => {
|
|
1888
|
-
const _0x4ccf94 = _0x2a17f9;
|
|
1889
|
-
if (!_0x554a4f['success'] || !_0x554a4f['messageId'])
|
|
1890
|
-
return _0x554a4f;
|
|
1891
|
-
try {
|
|
1892
|
-
const _0x490a49 = await _0x3c871f({
|
|
1893
|
-
'channel': _0x1eafb5['channel'],
|
|
1894
|
-
'messageId': _0x554a4f[_0x4ccf94(0x314)],
|
|
1895
|
-
'taskId': _0x554a4f[_0x4ccf94(0x2aa)],
|
|
1896
|
-
'taskNumber': _0x554a4f[_0x4ccf94(_0x502eb2._0x197948)],
|
|
1897
|
-
'threadNumber': _0x554a4f[_0x4ccf94(_0x502eb2._0x27a07a)]
|
|
1898
|
-
});
|
|
1899
|
-
return _0x490a49 ? {
|
|
1900
|
-
..._0x554a4f,
|
|
1901
|
-
..._0x490a49
|
|
1902
|
-
} : _0x554a4f;
|
|
1903
|
-
} catch (_0x982d02) {
|
|
1904
|
-
return {
|
|
1905
|
-
..._0x554a4f,
|
|
1906
|
-
'workerHandoffError': _0x982d02 instanceof Error ? _0x982d02[_0x4ccf94(0x22d)] : 'worker\x20handoff\x20failed'
|
|
1907
|
-
};
|
|
1908
|
-
}
|
|
1909
|
-
}));
|
|
1910
|
-
return formatClaimTaskResults(_0x24feae);
|
|
1911
|
-
},
|
|
1912
|
-
async 'unclaim_task'(_0x1145f5) {
|
|
1913
|
-
const _0x4ee7a2 = _0x9c3ae1, _0x1c6ef0 = await _0x21cc16[_0x4ee7a2(_0x141d99._0x2a3664)]['unclaimTask'](_0x1145f5);
|
|
1914
|
-
return formatUnclaimTaskResult(_0x1c6ef0);
|
|
1915
|
-
},
|
|
1916
|
-
async 'update_task_status'(_0x17e936) {
|
|
1917
|
-
const _0x52ac15 = _0x9c3ae1, _0x45d422 = await _0x21cc16['client'][_0x52ac15(0x2ff)](_0x17e936);
|
|
1918
|
-
return formatUpdateTaskStatusResult(_0x45d422);
|
|
1919
|
-
},
|
|
1920
|
-
async 'upload_file'(_0x3913e3) {
|
|
1921
|
-
const _0x4ff2df = _0x9c3ae1, _0x5cd21f = await _0x21cc16['uploadPreparer'](_0x3913e3[_0x4ff2df(_0x12a2e9._0x32cc80)]), {
|
|
1922
|
-
sizeBytes: _0x39bc23,
|
|
1923
|
-
..._0x24bb85
|
|
1924
|
-
} = _0x5cd21f, _0x1b4ef2 = await _0x21cc16[_0x4ff2df(0x1d6)][_0x4ff2df(_0x12a2e9._0xb7b423)]({
|
|
1925
|
-
'channel': _0x3913e3['channel'],
|
|
1926
|
-
..._0x24bb85
|
|
1927
|
-
});
|
|
1928
|
-
return formatUploadResult(_0x1b4ef2);
|
|
1929
|
-
},
|
|
1930
|
-
async 'view_file'(_0x1c6497) {
|
|
1931
|
-
const _0x5c3322 = _0x9c3ae1, _0x2459a8 = await _0x21cc16[_0x5c3322(0x2d5)]['findCachedPath'](_0x1c6497['attachment_id']);
|
|
1932
|
-
if (_0x2459a8)
|
|
1933
|
-
return formatViewFileResult(_0x2459a8, !![]);
|
|
1934
|
-
const _0x5df540 = await _0x21cc16[_0x5c3322(_0x1a6170._0x427a17)][_0x5c3322(_0x1a6170._0x46a61f)](_0x1c6497[_0x5c3322(_0x1a6170._0x3fb2d8)]), _0x291796 = await _0x21cc16['attachmentCache'][_0x5c3322(_0x1a6170._0x1767f0)]({
|
|
1935
|
-
'attachmentId': _0x1c6497['attachment_id'],
|
|
1936
|
-
'contentType': _0x5df540[_0x5c3322(0x1c9)],
|
|
1937
|
-
'data': _0x5df540['data'],
|
|
1938
|
-
'originalFilename': _0x5df540[_0x5c3322(0x252)]
|
|
1939
|
-
});
|
|
1940
|
-
return formatViewFileResult(_0x291796, ![]);
|
|
1941
|
-
},
|
|
1942
|
-
async 'get_worker_status'(_0x555737) {
|
|
1943
|
-
const _0xbaa30a = _0x9c3ae1;
|
|
1944
|
-
if (!_0x21cc16['daemonLocalUrl'])
|
|
1945
|
-
return _0xbaa30a(0x248);
|
|
1946
|
-
const _0x2b86cd = await fetch(_0x21cc16['daemonLocalUrl'] + _0xbaa30a(_0x365214._0x22f31d) + encodeURIComponent(_0x555737[_0xbaa30a(0x2f9)])), _0x58313e = await _0x2b86cd[_0xbaa30a(_0x365214._0x2af66b)]();
|
|
1947
|
-
if (!_0x58313e['ok'])
|
|
1948
|
-
return _0xbaa30a(0x1ee) + _0x555737['work_key'] + _0xbaa30a(0x231);
|
|
1949
|
-
return _0xbaa30a(_0x365214._0xa55e71) + _0x555737[_0xbaa30a(_0x365214._0x2a90c8)] + _0xbaa30a(_0x365214._0x37cc28) + _0x58313e[_0xbaa30a(_0x365214._0x3e0d47)];
|
|
1950
|
-
},
|
|
1951
|
-
async 'get_worker_result'(_0x3ea0a2) {
|
|
1952
|
-
const _0x1b7372 = _0x9c3ae1;
|
|
1953
|
-
if (!_0x21cc16['daemonLocalUrl'])
|
|
1954
|
-
return _0x1b7372(0x248);
|
|
1955
|
-
const _0x2a26d7 = await fetch(_0x21cc16[_0x1b7372(_0x39afb5._0x5450b8)] + '/workers/result?work_key=' + encodeURIComponent(_0x3ea0a2[_0x1b7372(_0x39afb5._0x168591)])), _0x274cee = await _0x2a26d7[_0x1b7372(0x1a3)]();
|
|
1956
|
-
if (!_0x274cee[_0x1b7372(_0x39afb5._0x266317)])
|
|
1957
|
-
return _0x1b7372(_0x39afb5._0x5193b8) + _0x3ea0a2['work_key'] + '\x22';
|
|
1958
|
-
return JSON[_0x1b7372(_0x39afb5._0x548aa7)](_0x274cee[_0x1b7372(0x205)], null, 0x2);
|
|
1959
|
-
},
|
|
1960
|
-
async 'finish_worker'(_0x5766a2) {
|
|
1961
|
-
const _0x54fce9 = _0x9c3ae1;
|
|
1962
|
-
if (!_0x21cc16[_0x54fce9(0x2a3)])
|
|
1963
|
-
return 'Worker\x20features\x20not\x20available';
|
|
1964
|
-
const _0xd00f54 = await fetch(_0x21cc16[_0x54fce9(0x2a3)] + _0x54fce9(_0x54c0ea._0x2d3622), {
|
|
1965
|
-
'method': _0x54fce9(_0x54c0ea._0x29a572),
|
|
1966
|
-
'headers': { 'Content-Type': _0x54fce9(0x2be) },
|
|
1967
|
-
'body': JSON[_0x54fce9(0x2d0)]({
|
|
1968
|
-
'work_key': _0x5766a2[_0x54fce9(0x2f9)],
|
|
1969
|
-
'resume_packet': {
|
|
1970
|
-
'objective': '',
|
|
1971
|
-
'result': _0x5766a2['result'],
|
|
1972
|
-
'summary': _0x5766a2['summary'],
|
|
1973
|
-
'decisions': _0x5766a2[_0x54fce9(_0x54c0ea._0x2166d5)] ?? [],
|
|
1974
|
-
'filesChanged': _0x5766a2[_0x54fce9(0x269)] ?? [],
|
|
1975
|
-
'openIssues': _0x5766a2['open_issues'] ?? [],
|
|
1976
|
-
'nextSteps': _0x5766a2[_0x54fce9(0x26d)] ?? []
|
|
1977
|
-
}
|
|
1978
|
-
})
|
|
1979
|
-
}), _0x55df29 = await _0xd00f54[_0x54fce9(0x1a3)]();
|
|
1980
|
-
if (!_0x55df29['ok'])
|
|
1981
|
-
throw new Error(_0x55df29['error'] ?? _0x54fce9(0x286));
|
|
1982
|
-
return _0x54fce9(_0x54c0ea._0x3a0775) + _0x5766a2[_0x54fce9(0x2f9)] + _0x54fce9(_0x54c0ea._0x3574c9) + _0x5766a2[_0x54fce9(0x304)];
|
|
1983
|
-
},
|
|
1984
|
-
async 'mark_waiting_input'(_0x3e70e6) {
|
|
1985
|
-
const _0x571f04 = _0x9c3ae1;
|
|
1986
|
-
if (!_0x21cc16[_0x571f04(0x2a3)] || !_0x21cc16['agentId'])
|
|
1987
|
-
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20or\x20agent\x20ID\x20not\x20configured)';
|
|
1988
|
-
const _0x5573e9 = await fetch(_0x21cc16[_0x571f04(_0x1a3f2b._0x146207)] + '/workers/waiting_input', {
|
|
1989
|
-
'method': 'POST',
|
|
1990
|
-
'headers': { 'Content-Type': _0x571f04(0x2be) },
|
|
1991
|
-
'body': JSON['stringify']({
|
|
1992
|
-
'work_key': _0x3e70e6[_0x571f04(_0x1a3f2b._0xe376f8)],
|
|
1993
|
-
'agent_id': _0x21cc16[_0x571f04(0x2dd)]
|
|
1994
|
-
})
|
|
1995
|
-
}), _0x1b0025 = await _0x5573e9[_0x571f04(0x1a3)]();
|
|
1996
|
-
if (!_0x1b0025['ok'])
|
|
1997
|
-
throw new Error(_0x1b0025[_0x571f04(0x232)] ?? 'mark_waiting_input\x20failed');
|
|
1998
|
-
return _0x571f04(0x1ee) + _0x3e70e6[_0x571f04(0x2f9)] + _0x571f04(_0x1a3f2b._0x31e766);
|
|
1999
|
-
},
|
|
2000
|
-
async 'escalate_to_main'(_0x28f116) {
|
|
2001
|
-
const _0x1a0053 = _0x9c3ae1;
|
|
2002
|
-
if (!_0x21cc16[_0x1a0053(0x2a3)])
|
|
2003
|
-
return _0x1a0053(_0x28be5c._0x129434);
|
|
2004
|
-
const _0x1e0e4d = await fetch(_0x21cc16[_0x1a0053(0x2a3)] + _0x1a0053(0x201), {
|
|
2005
|
-
'method': 'POST',
|
|
2006
|
-
'headers': { 'Content-Type': 'application/json' },
|
|
2007
|
-
'body': JSON['stringify']({
|
|
2008
|
-
'work_key': _0x28f116[_0x1a0053(0x2f9)],
|
|
2009
|
-
'reason': _0x28f116['reason']
|
|
2010
|
-
})
|
|
2011
|
-
}), _0x866d64 = await _0x1e0e4d[_0x1a0053(_0x28be5c._0x34e835)]();
|
|
2012
|
-
if (!_0x866d64['ok'])
|
|
2013
|
-
throw new Error(_0x866d64['error'] ?? _0x1a0053(0x324));
|
|
2014
|
-
return _0x1a0053(0x30a) + _0x28f116[_0x1a0053(0x237)];
|
|
2015
|
-
}
|
|
2016
|
-
};
|
|
2017
|
-
}
|
|
2018
|
-
function textResult(_0xb85172, _0x72f064 = ![]) {
|
|
2019
|
-
const _0x1689b8 = { _0xcd058b: 0x2cd }, _0x17abf9 = _0x5c3349;
|
|
2020
|
-
return {
|
|
2021
|
-
'content': [{
|
|
2022
|
-
'type': _0x17abf9(_0x1689b8._0xcd058b),
|
|
2023
|
-
'text': _0xb85172
|
|
2024
|
-
}],
|
|
2025
|
-
..._0x72f064 ? { 'isError': !![] } : {}
|
|
2026
|
-
};
|
|
2027
|
-
}
|
|
2028
|
-
async function registerChatBridgeTools(_0x1d6ab3, _0x253781, _0x5c9d5c) {
|
|
2029
|
-
const _0x90e649 = {
|
|
2030
|
-
_0x232434: 0x20d,
|
|
2031
|
-
_0x1abe8b: 0x2d2,
|
|
2032
|
-
_0x1f7cf7: 0x23f,
|
|
2033
|
-
_0xb85cef: 0x27b,
|
|
2034
|
-
_0x2c6424: 0x20d,
|
|
2035
|
-
_0x4c5f9c: 0x2f2,
|
|
2036
|
-
_0x29593f: 0x21a,
|
|
2037
|
-
_0x797e6e: 0x1c7,
|
|
2038
|
-
_0x3929a9: 0x30f,
|
|
2039
|
-
_0x39a17d: 0x2fa,
|
|
2040
|
-
_0x44c8ce: 0x2b9,
|
|
2041
|
-
_0x31c227: 0x20d,
|
|
2042
|
-
_0x1daa24: 0x2a5,
|
|
2043
|
-
_0x4f942e: 0x29b,
|
|
2044
|
-
_0x5f5a1b: 0x245,
|
|
2045
|
-
_0x3e3613: 0x2b9,
|
|
2046
|
-
_0x37bbae: 0x1b3,
|
|
2047
|
-
_0x4f7ed1: 0x1a6,
|
|
2048
|
-
_0xa646a5: 0x253,
|
|
2049
|
-
_0x5da5a2: 0x1c8,
|
|
2050
|
-
_0x5ec35e: 0x1ce,
|
|
2051
|
-
_0x40ff45: 0x2b9,
|
|
2052
|
-
_0x4621aa: 0x2f0,
|
|
2053
|
-
_0x20670b: 0x23f,
|
|
2054
|
-
_0x496655: 0x2fa,
|
|
2055
|
-
_0xb5392: 0x2b9,
|
|
2056
|
-
_0x468e26: 0x23f,
|
|
2057
|
-
_0x144e6c: 0x214,
|
|
2058
|
-
_0x2036cc: 0x31d,
|
|
2059
|
-
_0x421b8e: 0x2ba,
|
|
2060
|
-
_0x14ec46: 0x23f,
|
|
2061
|
-
_0x4587b1: 0x253,
|
|
2062
|
-
_0x1eff39: 0x24d,
|
|
2063
|
-
_0x153ee3: 0x2b9,
|
|
2064
|
-
_0x40f6cf: 0x23e,
|
|
2065
|
-
_0x45102d: 0x2ce,
|
|
2066
|
-
_0x2552f4: 0x251,
|
|
2067
|
-
_0xaf3344: 0x23a,
|
|
2068
|
-
_0x15cda8: 0x23f,
|
|
2069
|
-
_0x343fe8: 0x2b9,
|
|
2070
|
-
_0x11b243: 0x2b9,
|
|
2071
|
-
_0x397ce6: 0x2b9,
|
|
2072
|
-
_0x38e847: 0x2d3,
|
|
2073
|
-
_0x2ac055: 0x241
|
|
2074
|
-
}, _0x4768bf = { _0x5abec2: 0x22d }, _0x1b3d52 = { _0x589d20: 0x22d }, _0x2d80d6 = { _0x4af849: 0x22d }, _0x6240a5 = {
|
|
2075
|
-
_0x1aa517: 0x22d,
|
|
2076
|
-
_0x13f1cd: 0x2b5
|
|
2077
|
-
}, _0x51c634 = { _0x4af81d: 0x27c }, _0x208d77 = {
|
|
2078
|
-
_0x19c3f4: 0x1e6,
|
|
2079
|
-
_0x3f4bd6: 0x27d
|
|
2080
|
-
}, _0x9dc59d = { _0x3abda6: 0x22d }, _0x30c644 = { _0x547a3a: 0x29a }, _0x86efc9 = { _0x2c5bc1: 0x2d2 }, _0x35208c = _0x5c3349, {z: _0x2ea172} = await import('zod');
|
|
2081
|
-
_0x1d6ab3[_0x35208c(_0x90e649._0x232434)](_0x35208c(_0x90e649._0x1abe8b), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
|
|
2082
|
-
'target': _0x2ea172[_0x35208c(_0x90e649._0x1f7cf7)](),
|
|
2083
|
-
'content': _0x2ea172[_0x35208c(0x23f)](),
|
|
2084
|
-
'attachment_ids': _0x2ea172[_0x35208c(0x1a6)](_0x2ea172['string']())['optional'](),
|
|
2085
|
-
'visibility': _0x2ea172[_0x35208c(0x253)]([
|
|
2086
|
-
'public',
|
|
2087
|
-
_0x35208c(0x2e0)
|
|
2088
|
-
])[_0x35208c(0x2b9)]()[_0x35208c(_0x90e649._0xb85cef)](_0x35208c(0x258))
|
|
2089
|
-
}, async _0x5a8ae3 => {
|
|
2090
|
-
const _0x3a5669 = _0x35208c;
|
|
2091
|
-
try {
|
|
2092
|
-
return textResult(await _0x253781[_0x3a5669(_0x86efc9._0x2c5bc1)](_0x5a8ae3));
|
|
2093
|
-
} catch (_0x4eaafe) {
|
|
2094
|
-
return textResult(_0x4eaafe instanceof Error ? _0x4eaafe['message'] : _0x3a5669(0x1dd), !![]);
|
|
2095
|
-
}
|
|
2096
|
-
}), _0x1d6ab3[_0x35208c(_0x90e649._0x2c6424)](_0x35208c(_0x90e649._0x4c5f9c), _0x35208c(_0x90e649._0x29593f), {}, async () => {
|
|
2097
|
-
const _0x25fd49 = _0x35208c;
|
|
2098
|
-
try {
|
|
2099
|
-
return textResult(await _0x253781['check_messages']());
|
|
2100
|
-
} catch (_0x45f33b) {
|
|
2101
|
-
return textResult(_0x45f33b instanceof Error ? _0x45f33b['message'] : _0x25fd49(_0x30c644._0x547a3a), !![]);
|
|
2102
|
-
}
|
|
2103
|
-
}), _0x1d6ab3[_0x35208c(0x20d)](_0x35208c(_0x90e649._0x797e6e), _0x35208c(_0x90e649._0x3929a9), {
|
|
2104
|
-
'channel': _0x2ea172['string'](),
|
|
2105
|
-
'limit': _0x2ea172[_0x35208c(_0x90e649._0x39a17d)]()[_0x35208c(0x2b9)](),
|
|
2106
|
-
'before': _0x2ea172['number']()[_0x35208c(0x2b9)](),
|
|
2107
|
-
'after': _0x2ea172[_0x35208c(0x2fa)]()[_0x35208c(_0x90e649._0x44c8ce)]()
|
|
2108
|
-
}, async _0x4802f8 => {
|
|
2109
|
-
const _0x337ecf = _0x35208c;
|
|
2110
|
-
try {
|
|
2111
|
-
return textResult(await _0x253781[_0x337ecf(0x1c7)](_0x4802f8));
|
|
2112
|
-
} catch (_0x6e68ed) {
|
|
2113
|
-
return textResult(_0x6e68ed instanceof Error ? _0x6e68ed[_0x337ecf(_0x9dc59d._0x3abda6)] : _0x337ecf(0x21b), !![]);
|
|
2114
|
-
}
|
|
2115
|
-
}), _0x1d6ab3[_0x35208c(_0x90e649._0x31c227)]('list_server', 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2116
|
-
const _0x50274f = _0x35208c;
|
|
2117
|
-
try {
|
|
2118
|
-
return textResult(await _0x253781[_0x50274f(0x285)]());
|
|
2119
|
-
} catch (_0x5922e4) {
|
|
2120
|
-
return textResult(_0x5922e4 instanceof Error ? _0x5922e4[_0x50274f(0x22d)] : _0x50274f(0x291), !![]);
|
|
2121
|
-
}
|
|
2122
|
-
}), _0x1d6ab3['tool'](_0x35208c(_0x90e649._0x1daa24), _0x35208c(0x21e), {
|
|
2123
|
-
'channel': _0x2ea172['string'](),
|
|
2124
|
-
'status': _0x2ea172[_0x35208c(0x253)]([
|
|
2125
|
-
_0x35208c(_0x90e649._0x4f942e),
|
|
2126
|
-
'in_progress',
|
|
2127
|
-
_0x35208c(_0x90e649._0x5f5a1b),
|
|
2128
|
-
'done'
|
|
2129
|
-
])[_0x35208c(_0x90e649._0x3e3613)]()
|
|
2130
|
-
}, async _0x1a3912 => {
|
|
2131
|
-
const _0x10d576 = _0x35208c;
|
|
2132
|
-
try {
|
|
2133
|
-
return textResult(await _0x253781[_0x10d576(0x2a5)](_0x1a3912));
|
|
2134
|
-
} catch (_0x4a3ed1) {
|
|
2135
|
-
return textResult(_0x4a3ed1 instanceof Error ? _0x4a3ed1[_0x10d576(0x22d)] : _0x10d576(0x25d), !![]);
|
|
2136
|
-
}
|
|
2137
|
-
}), _0x1d6ab3[_0x35208c(_0x90e649._0x31c227)](_0x35208c(_0x90e649._0x37bbae), 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
2138
|
-
'channel': _0x2ea172[_0x35208c(0x23f)](),
|
|
2139
|
-
'idempotency_key': _0x2ea172[_0x35208c(0x23f)]()['optional'](),
|
|
2140
|
-
'tasks': _0x2ea172[_0x35208c(_0x90e649._0x4f7ed1)](_0x2ea172['object']({
|
|
2141
|
-
'title': _0x2ea172[_0x35208c(0x23f)](),
|
|
2142
|
-
'description': _0x2ea172[_0x35208c(0x23f)]()[_0x35208c(0x2b9)](),
|
|
2143
|
-
'priority': _0x2ea172[_0x35208c(_0x90e649._0xa646a5)]([
|
|
2144
|
-
_0x35208c(0x2a2),
|
|
2145
|
-
'medium',
|
|
2146
|
-
_0x35208c(_0x90e649._0x5da5a2),
|
|
2147
|
-
_0x35208c(_0x90e649._0x5ec35e)
|
|
2148
|
-
])[_0x35208c(_0x90e649._0x40ff45)]()
|
|
2149
|
-
}))
|
|
2150
|
-
}, async _0x254c8a => {
|
|
2151
|
-
const _0x4c6ca8 = _0x35208c;
|
|
2152
|
-
try {
|
|
2153
|
-
return textResult(await _0x253781[_0x4c6ca8(0x1b3)](_0x254c8a));
|
|
2154
|
-
} catch (_0x5214ac) {
|
|
2155
|
-
return textResult(_0x5214ac instanceof Error ? _0x5214ac[_0x4c6ca8(0x22d)] : _0x4c6ca8(0x2c3), !![]);
|
|
2156
|
-
}
|
|
2157
|
-
}), _0x1d6ab3['tool']('claim_tasks', _0x35208c(_0x90e649._0x4621aa), {
|
|
2158
|
-
'channel': _0x2ea172[_0x35208c(_0x90e649._0x20670b)](),
|
|
2159
|
-
'task_numbers': _0x2ea172[_0x35208c(0x1a6)](_0x2ea172[_0x35208c(_0x90e649._0x496655)]())[_0x35208c(_0x90e649._0xb5392)](),
|
|
2160
|
-
'message_ids': _0x2ea172[_0x35208c(0x1a6)](_0x2ea172[_0x35208c(_0x90e649._0x468e26)]())[_0x35208c(0x2b9)](),
|
|
2161
|
-
'evidence': _0x2ea172[_0x35208c(0x20b)](_0x2ea172[_0x35208c(0x23f)](), _0x2ea172[_0x35208c(_0x90e649._0x144e6c)]({
|
|
2162
|
-
'create_thread': _0x2ea172[_0x35208c(_0x90e649._0x2036cc)]()[_0x35208c(0x2b9)](),
|
|
2163
|
-
'create_task': _0x2ea172[_0x35208c(0x31d)]()[_0x35208c(0x2b9)]()
|
|
2164
|
-
}))[_0x35208c(0x2b9)](),
|
|
2165
|
-
'idempotency_key': _0x2ea172['string']()['optional']()
|
|
2166
|
-
}, async _0x664ea2 => {
|
|
2167
|
-
const _0x4d6c8b = _0x35208c;
|
|
2168
|
-
try {
|
|
2169
|
-
return textResult(await _0x253781[_0x4d6c8b(_0x208d77._0x19c3f4)](_0x664ea2));
|
|
2170
|
-
} catch (_0x178db2) {
|
|
2171
|
-
return textResult(_0x178db2 instanceof Error ? _0x178db2[_0x4d6c8b(0x22d)] : _0x4d6c8b(_0x208d77._0x3f4bd6), !![]);
|
|
2172
|
-
}
|
|
2173
|
-
}), _0x1d6ab3[_0x35208c(0x20d)](_0x35208c(0x2a6), _0x35208c(0x2b4), {
|
|
2174
|
-
'channel': _0x2ea172[_0x35208c(_0x90e649._0x20670b)](),
|
|
2175
|
-
'task_number': _0x2ea172[_0x35208c(0x2fa)](),
|
|
2176
|
-
'idempotency_key': _0x2ea172[_0x35208c(_0x90e649._0x1f7cf7)]()['optional']()
|
|
2177
|
-
}, async _0xda2c51 => {
|
|
2178
|
-
const _0x65c27d = _0x35208c;
|
|
2179
|
-
try {
|
|
2180
|
-
return textResult(await _0x253781[_0x65c27d(0x2a6)](_0xda2c51));
|
|
2181
|
-
} catch (_0x18c335) {
|
|
2182
|
-
return textResult(_0x18c335 instanceof Error ? _0x18c335[_0x65c27d(0x22d)] : _0x65c27d(0x243), !![]);
|
|
2183
|
-
}
|
|
2184
|
-
}), _0x1d6ab3[_0x35208c(_0x90e649._0x232434)](_0x35208c(_0x90e649._0x421b8e), _0x35208c(0x1a0), {
|
|
2185
|
-
'channel': _0x2ea172[_0x35208c(_0x90e649._0x14ec46)](),
|
|
2186
|
-
'task_number': _0x2ea172['number'](),
|
|
2187
|
-
'status': _0x2ea172[_0x35208c(_0x90e649._0x4587b1)]([
|
|
2188
|
-
'todo',
|
|
2189
|
-
'in_progress',
|
|
2190
|
-
_0x35208c(0x245),
|
|
2191
|
-
_0x35208c(_0x90e649._0x1eff39)
|
|
2192
|
-
]),
|
|
2193
|
-
'idempotency_key': _0x2ea172['string']()[_0x35208c(_0x90e649._0x153ee3)]()
|
|
2194
|
-
}, async _0x4768b8 => {
|
|
2195
|
-
const _0x1d2a91 = _0x35208c;
|
|
2196
|
-
try {
|
|
2197
|
-
return textResult(await _0x253781[_0x1d2a91(0x2ba)](_0x4768b8));
|
|
2198
|
-
} catch (_0x9534d0) {
|
|
2199
|
-
return textResult(_0x9534d0 instanceof Error ? _0x9534d0[_0x1d2a91(0x22d)] : _0x1d2a91(_0x51c634._0x4af81d), !![]);
|
|
2200
|
-
}
|
|
2201
|
-
}), _0x1d6ab3[_0x35208c(0x20d)](_0x35208c(0x302), 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
2202
|
-
'channel': _0x2ea172[_0x35208c(0x23f)](),
|
|
2203
|
-
'file_path': _0x2ea172[_0x35208c(_0x90e649._0x20670b)]()
|
|
2204
|
-
}, async _0x14b56f => {
|
|
2205
|
-
const _0x4083c = _0x35208c;
|
|
2206
|
-
try {
|
|
2207
|
-
return textResult(await _0x253781[_0x4083c(0x302)](_0x14b56f));
|
|
2208
|
-
} catch (_0x517c11) {
|
|
2209
|
-
return textResult(_0x517c11 instanceof Error ? _0x517c11['message'] : _0x4083c(0x2b8), !![]);
|
|
2210
|
-
}
|
|
2211
|
-
}), _0x1d6ab3[_0x35208c(0x20d)]('view_file', _0x35208c(0x226), { 'attachment_id': _0x2ea172['string']() }, async _0x4cd7eb => {
|
|
2212
|
-
const _0x1733bb = _0x35208c;
|
|
2213
|
-
try {
|
|
2214
|
-
return textResult(await _0x253781[_0x1733bb(0x1b4)](_0x4cd7eb));
|
|
2215
|
-
} catch (_0x1f59c8) {
|
|
2216
|
-
return textResult(_0x1f59c8 instanceof Error ? _0x1f59c8[_0x1733bb(_0x6240a5._0x1aa517)] : _0x1733bb(_0x6240a5._0x13f1cd), !![]);
|
|
2217
|
-
}
|
|
2218
|
-
}), _0x1d6ab3[_0x35208c(0x20d)]('get_worker_status', _0x35208c(0x219), { 'work_key': _0x2ea172[_0x35208c(0x23f)]() }, async _0x5e3cd1 => {
|
|
2219
|
-
const _0x803813 = _0x35208c;
|
|
2220
|
-
try {
|
|
2221
|
-
return textResult(await _0x253781[_0x803813(0x2bc)](_0x5e3cd1));
|
|
2222
|
-
} catch (_0x11bdee) {
|
|
2223
|
-
return textResult(_0x11bdee instanceof Error ? _0x11bdee[_0x803813(_0x2d80d6._0x4af849)] : _0x803813(0x21c), !![]);
|
|
2224
|
-
}
|
|
2225
|
-
}), _0x1d6ab3['tool'](_0x35208c(_0x90e649._0x40f6cf), _0x35208c(_0x90e649._0x45102d), { 'work_key': _0x2ea172[_0x35208c(_0x90e649._0x14ec46)]() }, async _0x3d0ff7 => {
|
|
2226
|
-
const _0x5c6bc6 = _0x35208c;
|
|
2227
|
-
try {
|
|
2228
|
-
return textResult(await _0x253781['get_worker_result'](_0x3d0ff7));
|
|
2229
|
-
} catch (_0x355c7b) {
|
|
2230
|
-
return textResult(_0x355c7b instanceof Error ? _0x355c7b[_0x5c6bc6(0x22d)] : _0x5c6bc6(0x30e), !![]);
|
|
2231
|
-
}
|
|
2232
|
-
}), _0x1d6ab3[_0x35208c(_0x90e649._0x31c227)]('finish_worker', _0x35208c(_0x90e649._0x2552f4), {
|
|
2233
|
-
'work_key': _0x2ea172[_0x35208c(0x23f)](),
|
|
2234
|
-
'result': _0x2ea172['enum']([
|
|
2235
|
-
_0x35208c(0x1f8),
|
|
2236
|
-
_0x35208c(0x1ed),
|
|
2237
|
-
_0x35208c(_0x90e649._0xaf3344)
|
|
2238
|
-
]),
|
|
2239
|
-
'summary': _0x2ea172[_0x35208c(_0x90e649._0x15cda8)](),
|
|
2240
|
-
'decisions': _0x2ea172[_0x35208c(_0x90e649._0x4f7ed1)](_0x2ea172[_0x35208c(0x23f)]())['optional'](),
|
|
2241
|
-
'files_changed': _0x2ea172[_0x35208c(0x1a6)](_0x2ea172[_0x35208c(_0x90e649._0x14ec46)]())[_0x35208c(_0x90e649._0x343fe8)](),
|
|
2242
|
-
'open_issues': _0x2ea172[_0x35208c(_0x90e649._0x4f7ed1)](_0x2ea172['string']())[_0x35208c(_0x90e649._0x11b243)](),
|
|
2243
|
-
'next_steps': _0x2ea172[_0x35208c(0x1a6)](_0x2ea172['string']())[_0x35208c(_0x90e649._0x397ce6)]()
|
|
2244
|
-
}, async _0x4135c8 => {
|
|
2245
|
-
const _0x129ff7 = _0x35208c;
|
|
2246
|
-
try {
|
|
2247
|
-
return textResult(await _0x253781['finish_worker'](_0x4135c8));
|
|
2248
|
-
} catch (_0x480a08) {
|
|
2249
|
-
return textResult(_0x480a08 instanceof Error ? _0x480a08[_0x129ff7(_0x1b3d52._0x589d20)] : _0x129ff7(0x286), !![]);
|
|
2250
|
-
}
|
|
2251
|
-
}), _0x1d6ab3['tool']('escalate_to_main', _0x35208c(_0x90e649._0x38e847), {
|
|
2252
|
-
'work_key': _0x2ea172['string'](),
|
|
2253
|
-
'reason': _0x2ea172[_0x35208c(0x23f)]()
|
|
2254
|
-
}, async _0x1cf20c => {
|
|
2255
|
-
const _0x23cadc = _0x35208c;
|
|
2256
|
-
try {
|
|
2257
|
-
return textResult(await _0x253781['escalate_to_main'](_0x1cf20c));
|
|
2258
|
-
} catch (_0x2d3407) {
|
|
2259
|
-
return textResult(_0x2d3407 instanceof Error ? _0x2d3407[_0x23cadc(_0x4768bf._0x5abec2)] : 'escalate_to_main\x20failed', !![]);
|
|
2260
|
-
}
|
|
2261
|
-
}), _0x5c9d5c?.['workerMode'] && _0x1d6ab3['tool'](_0x35208c(_0x90e649._0x2ac055), _0x35208c(0x1b2), { 'work_key': _0x2ea172['string']() }, async _0x5e57e3 => {
|
|
2262
|
-
const _0x252fb9 = _0x35208c;
|
|
2263
|
-
try {
|
|
2264
|
-
return textResult(await _0x253781[_0x252fb9(0x241)](_0x5e57e3));
|
|
2265
|
-
} catch (_0x38ac7b) {
|
|
2266
|
-
return textResult(_0x38ac7b instanceof Error ? _0x38ac7b['message'] : _0x252fb9(0x2ea), !![]);
|
|
2267
|
-
}
|
|
2268
|
-
});
|
|
2269
|
-
}
|
|
2270
|
-
async function createChatBridgeServer(_0x1204e5) {
|
|
2271
|
-
const _0x374aad = _0x5c3349, {McpServer: _0xd39b25} = await import(_0x374aad(0x2e6)), _0x43bced = new _0xd39b25({
|
|
2272
|
-
'name': _0x374aad(0x2ed),
|
|
2273
|
-
'version': _0x374aad(0x2c8)
|
|
2274
|
-
}), _0x470a94 = createChatBridgeHandlers(_0x1204e5);
|
|
2275
|
-
return await registerChatBridgeTools(_0x43bced, _0x470a94, { 'workerMode': _0x1204e5[_0x374aad(0x233)] }), {
|
|
2276
|
-
'handlers': _0x470a94,
|
|
2277
|
-
'server': _0x43bced
|
|
2278
|
-
};
|
|
2279
|
-
}
|
|
2280
|
-
function readFlag(_0x2e7862, _0x268a70) {
|
|
2281
|
-
const _0x46aab7 = _0x2e7862['indexOf'](_0x268a70);
|
|
2282
|
-
if (_0x46aab7 === -0x1)
|
|
2283
|
-
return void 0x0;
|
|
2284
|
-
return _0x2e7862[_0x46aab7 + 0x1];
|
|
2340
|
+
return _0x13f9();
|
|
2285
2341
|
}
|
|
2286
|
-
function parseChatBridgeArgs(
|
|
2287
|
-
const
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
throw new Error(_0x399b17(0x2d1));
|
|
2342
|
+
function parseChatBridgeArgs(_0x335cd5) {
|
|
2343
|
+
const _0x388ac1 = {
|
|
2344
|
+
_0x24af5e: 0x1b3,
|
|
2345
|
+
_0x34a734: 0x106,
|
|
2346
|
+
_0x330152: 0x139,
|
|
2347
|
+
_0x372f2e: 0x11c,
|
|
2348
|
+
_0x3168fc: 0x1f1
|
|
2349
|
+
}, _0x5b4ba6 = _0x8261f0, _0x2cab29 = readFlag(_0x335cd5, '--agent-id'), _0x1ffb34 = readFlag(_0x335cd5, _0x5b4ba6(_0x388ac1._0x24af5e)), _0x52df9e = readFlag(_0x335cd5, _0x5b4ba6(_0x388ac1._0x34a734)), _0x28a72d = readFlag(_0x335cd5, _0x5b4ba6(0x1a0)) ?? 'http://localhost:8121', _0x5e831d = readFlag(_0x335cd5, _0x5b4ba6(_0x388ac1._0x330152)), _0x5d99bc = readFlag(_0x335cd5, _0x5b4ba6(0x1e8)), _0x2aa827 = readFlag(_0x335cd5, _0x5b4ba6(0x1f4)), _0x1d167a = readFlag(_0x335cd5, '--worker-session-id'), _0x2eefea = readFlag(_0x335cd5, _0x5b4ba6(0x121)), _0x53aead = _0x335cd5[_0x5b4ba6(0x26d)](_0x5b4ba6(_0x388ac1._0x372f2e)), _0xfa30d4 = _0x52df9e === void 0x0 ? void 0x0 : Number[_0x5b4ba6(0x27b)](_0x52df9e, 0xa);
|
|
2350
|
+
if (!_0x2cab29)
|
|
2351
|
+
throw new Error(_0x5b4ba6(0x1ee));
|
|
2352
|
+
if (!_0x1ffb34)
|
|
2353
|
+
throw new Error(_0x5b4ba6(0x192));
|
|
2354
|
+
if (_0x52df9e !== void 0x0 && (_0xfa30d4 === void 0x0 || !Number[_0x5b4ba6(0x147)](_0xfa30d4) || _0xfa30d4 < 0x0))
|
|
2355
|
+
throw new Error(_0x5b4ba6(_0x388ac1._0x3168fc));
|
|
2301
2356
|
return {
|
|
2302
|
-
'agentId':
|
|
2303
|
-
'daemonApiKey':
|
|
2304
|
-
'daemonLocalUrl':
|
|
2305
|
-
'initialLastSeenSeq':
|
|
2306
|
-
'sessionId':
|
|
2307
|
-
'serverUrl':
|
|
2308
|
-
'workerModeEnabled':
|
|
2309
|
-
'workerSessionId':
|
|
2310
|
-
'workerThreadTarget':
|
|
2311
|
-
'workerMode':
|
|
2357
|
+
'agentId': _0x2cab29,
|
|
2358
|
+
'daemonApiKey': _0x1ffb34,
|
|
2359
|
+
'daemonLocalUrl': _0x5e831d,
|
|
2360
|
+
'initialLastSeenSeq': _0xfa30d4,
|
|
2361
|
+
'sessionId': _0x5d99bc,
|
|
2362
|
+
'serverUrl': _0x28a72d,
|
|
2363
|
+
'workerModeEnabled': _0x2aa827 === void 0x0 ? void 0x0 : _0x2aa827 !== _0x5b4ba6(0x14e),
|
|
2364
|
+
'workerSessionId': _0x1d167a,
|
|
2365
|
+
'workerThreadTarget': _0x2eefea,
|
|
2366
|
+
'workerMode': _0x53aead
|
|
2312
2367
|
};
|
|
2313
2368
|
}
|
|
2314
|
-
async function runChatBridgeCli(
|
|
2315
|
-
const
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2369
|
+
async function runChatBridgeCli(_0x49ec51) {
|
|
2370
|
+
const _0x2ba62b = {
|
|
2371
|
+
_0x535594: 0x274,
|
|
2372
|
+
_0x2222b0: 0x1f9,
|
|
2373
|
+
_0x5d53be: 0x12a,
|
|
2374
|
+
_0x1c4e76: 0x183,
|
|
2375
|
+
_0x1f551a: 0x25b
|
|
2376
|
+
}, _0x4eb095 = _0x8261f0, _0x38e206 = parseChatBridgeArgs(_0x49ec51), {StdioServerTransport: _0x4a69dc} = await import(_0x4eb095(0x1d1)), _0x1aa4ab = createInternalAgentClient(_0x38e206), _0x885623 = createAttachmentCache(), _0x1c8b9c = await createChatBridgeServer({
|
|
2377
|
+
'agentId': _0x38e206[_0x4eb095(_0x2ba62b._0x535594)],
|
|
2378
|
+
'attachmentCache': _0x885623,
|
|
2379
|
+
'client': _0x1aa4ab,
|
|
2380
|
+
'daemonLocalUrl': _0x38e206[_0x4eb095(0x1bd)],
|
|
2320
2381
|
'uploadPreparer': prepareUploadFile,
|
|
2321
|
-
'workerModeEnabled':
|
|
2322
|
-
'workerMode':
|
|
2382
|
+
'workerModeEnabled': _0x38e206[_0x4eb095(_0x2ba62b._0x2222b0)],
|
|
2383
|
+
'workerMode': _0x38e206[_0x4eb095(_0x2ba62b._0x5d53be)]
|
|
2323
2384
|
});
|
|
2324
|
-
await
|
|
2385
|
+
await _0x1c8b9c[_0x4eb095(_0x2ba62b._0x1c4e76)][_0x4eb095(_0x2ba62b._0x1f551a)](new _0x4a69dc());
|
|
2325
2386
|
}
|
|
2326
|
-
var executedAsEntry = process[
|
|
2327
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2387
|
+
var executedAsEntry = process[_0x8261f0(0x159)][0x1] ? import.meta.url === pathToFileURL(process[_0x8261f0(0x159)][0x1])['href'] : ![];
|
|
2388
|
+
executedAsEntry && await runChatBridgeCli(process[_0x8261f0(0x159)]['slice'](0x2));
|
|
2328
2389
|
export {
|
|
2329
2390
|
createChatBridgeHandlers,
|
|
2330
2391
|
createChatBridgeServer,
|