@dscord/daemon 0.1.33 → 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 +2132 -2074
- package/dist/index.js +8710 -8610
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, _0x7b9277 = _0x2a13, _0x3ced06 = _0x23e2e2();
|
|
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();
|
|
11
10
|
while (!![]) {
|
|
12
11
|
try {
|
|
13
|
-
const
|
|
14
|
-
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)
|
|
15
14
|
break;
|
|
16
15
|
else
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
16
|
+
_0x5133ac['push'](_0x5133ac['shift']());
|
|
17
|
+
} catch (_0x384bbd) {
|
|
18
|
+
_0x5133ac['push'](_0x5133ac['shift']());
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
|
-
}(
|
|
21
|
+
}(_0x13f9, 0x92a10));
|
|
23
22
|
import { pathToFileURL } from 'node:url';
|
|
24
23
|
import {
|
|
25
24
|
mkdir,
|
|
@@ -28,97 +27,106 @@ import {
|
|
|
28
27
|
stat,
|
|
29
28
|
writeFile
|
|
30
29
|
} from 'node:fs/promises';
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
let
|
|
35
|
-
if (
|
|
36
|
-
var
|
|
37
|
-
const
|
|
38
|
-
let
|
|
39
|
-
for (let
|
|
40
|
-
|
|
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);
|
|
41
40
|
}
|
|
42
|
-
for (let
|
|
43
|
-
|
|
41
|
+
for (let _0x35eb43 = 0x0, _0x57243d = _0x500572['length']; _0x35eb43 < _0x57243d; _0x35eb43++) {
|
|
42
|
+
_0x18e55d += '%' + ('00' + _0x500572['charCodeAt'](_0x35eb43)['toString'](0x10))['slice'](-0x2);
|
|
44
43
|
}
|
|
45
|
-
return decodeURIComponent(
|
|
44
|
+
return decodeURIComponent(_0x18e55d);
|
|
46
45
|
};
|
|
47
|
-
|
|
46
|
+
_0x3954['MDPHxw'] = _0x33a64b, _0x3954['spGBDd'] = {}, _0x3954['YVPcIp'] = !![];
|
|
48
47
|
}
|
|
49
|
-
const
|
|
50
|
-
return !
|
|
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;
|
|
51
50
|
}
|
|
52
51
|
import { homedir } from 'node:os';
|
|
53
|
-
import
|
|
52
|
+
import _0x500572 from 'node:path';
|
|
54
53
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
55
|
-
'.csv':
|
|
56
|
-
'.gif':
|
|
57
|
-
'.jpeg':
|
|
58
|
-
'.jpg':
|
|
59
|
-
'.json':
|
|
60
|
-
'.md':
|
|
61
|
-
'.pdf':
|
|
62
|
-
'.png':
|
|
63
|
-
'.svg':
|
|
64
|
-
'.txt':
|
|
65
|
-
'.webp':
|
|
66
|
-
'.xml':
|
|
67
|
-
'.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)
|
|
68
67
|
};
|
|
69
|
-
function guessContentType(
|
|
70
|
-
const
|
|
71
|
-
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);
|
|
72
71
|
}
|
|
73
|
-
function safeFilename(
|
|
74
|
-
const
|
|
75
|
-
return
|
|
72
|
+
function safeFilename(_0x5a70a1) {
|
|
73
|
+
const _0x61d04b = { _0x36d818: 0x20f }, _0x4bf483 = _0x8261f0;
|
|
74
|
+
return _0x5a70a1[_0x4bf483(_0x61d04b._0x36d818)](/[\\/]/g, '-');
|
|
76
75
|
}
|
|
77
|
-
function extensionFor(
|
|
78
|
-
const
|
|
79
|
-
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';
|
|
80
79
|
}
|
|
81
|
-
async function prepareUploadFile(
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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);
|
|
96
97
|
return {
|
|
97
|
-
'contentBase64':
|
|
98
|
-
'contentType': guessContentType(
|
|
99
|
-
'filename':
|
|
100
|
-
'sizeBytes':
|
|
98
|
+
'contentBase64': _0x401f0b[_0x40a3af(0x12c)](_0x40a3af(_0x4add79._0x11f2de)),
|
|
99
|
+
'contentType': guessContentType(_0x464861),
|
|
100
|
+
'filename': _0x464861,
|
|
101
|
+
'sizeBytes': _0x11e1d5[_0x40a3af(_0x4add79._0x45da4b)]
|
|
101
102
|
};
|
|
102
103
|
}
|
|
103
|
-
function createAttachmentCache(
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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));
|
|
109
117
|
return {
|
|
110
|
-
'cacheDir':
|
|
111
|
-
async 'findCachedPath'(
|
|
112
|
-
const
|
|
113
|
-
await mkdir(
|
|
114
|
-
const
|
|
115
|
-
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;
|
|
116
124
|
},
|
|
117
|
-
async 'save'(
|
|
118
|
-
const
|
|
119
|
-
await mkdir(
|
|
120
|
-
const
|
|
121
|
-
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;
|
|
122
130
|
}
|
|
123
131
|
};
|
|
124
132
|
}
|
|
@@ -126,2208 +134,2258 @@ import {
|
|
|
126
134
|
createHash,
|
|
127
135
|
randomUUID
|
|
128
136
|
} from 'node:crypto';
|
|
129
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
130
|
-
function ensureSegment(
|
|
131
|
-
const
|
|
132
|
-
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'](':'))
|
|
133
141
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
134
|
-
return
|
|
142
|
+
return _0x3c9ef9;
|
|
135
143
|
}
|
|
136
|
-
function parseThreadParts(
|
|
137
|
-
const
|
|
138
|
-
|
|
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)
|
|
139
150
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
140
151
|
return {
|
|
141
|
-
'channelName': ensureSegment(
|
|
142
|
-
'threadShortId':
|
|
152
|
+
'channelName': ensureSegment(_0x49b3d5[0x0] ?? ''),
|
|
153
|
+
'threadShortId': _0x49b3d5[0x1] ? ensureSegment(_0x49b3d5[0x1]) : null
|
|
143
154
|
};
|
|
144
155
|
}
|
|
145
|
-
function parseTarget(
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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)
|
|
154
168
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
if (!
|
|
169
|
+
if (_0x520012[_0x5c728c(0x1b0)]('#')) {
|
|
170
|
+
const _0x4fb3f1 = parseThreadParts(_0x520012['slice'](0x1)), _0x23dc4e = '#' + _0x4fb3f1[_0x5c728c(0x22b)];
|
|
171
|
+
if (!_0x4fb3f1[_0x5c728c(_0x111305._0x54d848)])
|
|
158
172
|
return {
|
|
159
|
-
'channelName':
|
|
160
|
-
'channelTarget':
|
|
161
|
-
'kind':
|
|
162
|
-
'target':
|
|
173
|
+
'channelName': _0x4fb3f1[_0x5c728c(_0x111305._0x5f24c5)],
|
|
174
|
+
'channelTarget': _0x23dc4e,
|
|
175
|
+
'kind': _0x5c728c(0x1a9),
|
|
176
|
+
'target': _0x23dc4e
|
|
163
177
|
};
|
|
164
178
|
return {
|
|
165
|
-
'channelName':
|
|
166
|
-
'channelTarget':
|
|
167
|
-
'kind':
|
|
168
|
-
'target':
|
|
169
|
-
'threadShortId':
|
|
179
|
+
'channelName': _0x4fb3f1['channelName'],
|
|
180
|
+
'channelTarget': _0x23dc4e,
|
|
181
|
+
'kind': 'thread',
|
|
182
|
+
'target': _0x23dc4e + ':' + _0x4fb3f1[_0x5c728c(0x1f8)],
|
|
183
|
+
'threadShortId': _0x4fb3f1[_0x5c728c(0x1f8)]
|
|
170
184
|
};
|
|
171
185
|
}
|
|
172
|
-
if (
|
|
173
|
-
const
|
|
174
|
-
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-'))
|
|
175
189
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
176
|
-
const
|
|
177
|
-
if (!
|
|
190
|
+
const _0x15274f = _0x5c728c(0x1cb) + _0x1b5622[_0x5c728c(0x22b)];
|
|
191
|
+
if (!_0x1b5622[_0x5c728c(0x1f8)])
|
|
178
192
|
return {
|
|
179
|
-
'channelName':
|
|
180
|
-
'channelTarget':
|
|
181
|
-
'kind':
|
|
182
|
-
'target':
|
|
193
|
+
'channelName': _0x1b5622[_0x5c728c(_0x111305._0x394ae0)],
|
|
194
|
+
'channelTarget': _0x15274f,
|
|
195
|
+
'kind': _0x5c728c(_0x111305._0x38eed1),
|
|
196
|
+
'target': _0x15274f
|
|
183
197
|
};
|
|
184
198
|
return {
|
|
185
|
-
'channelName':
|
|
186
|
-
'channelTarget':
|
|
187
|
-
'kind':
|
|
188
|
-
'target':
|
|
189
|
-
'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)]
|
|
190
204
|
};
|
|
191
205
|
}
|
|
192
206
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
193
207
|
}
|
|
194
|
-
function asErrorMessage(
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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;
|
|
199
216
|
}
|
|
200
|
-
function asRecord(
|
|
201
|
-
const
|
|
202
|
-
return typeof
|
|
217
|
+
function asRecord(_0x392e26) {
|
|
218
|
+
const _0x39ed4f = _0x8261f0;
|
|
219
|
+
return typeof _0x392e26 === _0x39ed4f(0x1c1) && _0x392e26 !== null ? _0x392e26 : {};
|
|
203
220
|
}
|
|
204
|
-
function stableStringify(
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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'](',') + '}';
|
|
215
233
|
}
|
|
216
|
-
function createHeaders(
|
|
217
|
-
const
|
|
234
|
+
function createHeaders(_0x525605) {
|
|
235
|
+
const _0x219999 = { _0x38fc36: 0x108 }, _0x1b79ba = _0x8261f0;
|
|
218
236
|
return {
|
|
219
|
-
'Content-Type':
|
|
220
|
-
'x-daemon-api-key':
|
|
237
|
+
'Content-Type': _0x1b79ba(_0x219999._0x38fc36),
|
|
238
|
+
'x-daemon-api-key': _0x525605
|
|
221
239
|
};
|
|
222
240
|
}
|
|
223
|
-
function toHttpBaseUrl(
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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:';
|
|
231
250
|
else
|
|
232
|
-
|
|
233
|
-
return
|
|
251
|
+
_0x27b68a['protocol'] === _0x3691dd(_0x4970b5._0x1ca187) && (_0x27b68a[_0x3691dd(0x27a)] = 'https:');
|
|
252
|
+
return _0x27b68a[_0x3691dd(_0x4970b5._0x211edf)]()[_0x3691dd(_0x4970b5._0x1c92e6)](/\/$/, '');
|
|
234
253
|
}
|
|
235
|
-
function isMentionBoundary(
|
|
236
|
-
|
|
254
|
+
function isMentionBoundary(_0xacf893) {
|
|
255
|
+
const _0x22cfac = { _0x2cd5fb: 0x288 }, _0x111105 = _0x8261f0;
|
|
256
|
+
return !_0xacf893 || /\s|[([{'",。!?、:;]/[_0x111105(_0x22cfac._0x2cd5fb)](_0xacf893);
|
|
237
257
|
}
|
|
238
|
-
function isMentionTerminal(
|
|
239
|
-
const
|
|
240
|
-
return !
|
|
258
|
+
function isMentionTerminal(_0x293c1a) {
|
|
259
|
+
const _0xa8d261 = { _0x43dd8b: 0x288 }, _0x2476d7 = _0x8261f0;
|
|
260
|
+
return !_0x293c1a || /\s|[)\]}'",。!?、:;,.!?]/[_0x2476d7(_0xa8d261._0x43dd8b)](_0x293c1a);
|
|
241
261
|
}
|
|
242
|
-
function buildMatchableEntries(
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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)]
|
|
251
273
|
]) {
|
|
252
|
-
|
|
253
|
-
'matchName':
|
|
254
|
-
'matchNameLower':
|
|
255
|
-
'participantId':
|
|
256
|
-
}),
|
|
257
|
-
'matchName':
|
|
258
|
-
'matchNameLower':
|
|
259
|
-
'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']
|
|
260
282
|
});
|
|
261
283
|
}
|
|
262
|
-
return
|
|
284
|
+
return _0x33f196;
|
|
263
285
|
}
|
|
264
|
-
function extractMentionedParticipantIds(
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
|
|
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]))
|
|
273
298
|
continue;
|
|
274
|
-
const
|
|
275
|
-
const
|
|
276
|
-
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)]))
|
|
277
302
|
return ![];
|
|
278
|
-
return isMentionTerminal(
|
|
303
|
+
return isMentionTerminal(_0x565318[_0x219901['matchName'][_0x185aed(_0x30f455._0x2811e4)]]);
|
|
279
304
|
});
|
|
280
|
-
if (!
|
|
305
|
+
if (!_0x16045a || _0x42c337['has'](_0x16045a[_0x55032d(_0x3f7164._0x3993cb)]))
|
|
281
306
|
continue;
|
|
282
|
-
|
|
307
|
+
_0x42c337[_0x55032d(0x158)](_0x16045a[_0x55032d(_0x3f7164._0x3993cb)]), _0x251086[_0x55032d(_0x3f7164._0x1e67f4)](_0x16045a[_0x55032d(0x15c)]), _0x211459 += _0x16045a[_0x55032d(0x127)][_0x55032d(_0x3f7164._0x18c6e3)];
|
|
283
308
|
}
|
|
284
|
-
return
|
|
309
|
+
return _0x251086;
|
|
285
310
|
}
|
|
286
311
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
287
|
-
function anySignal(...
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
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)]), {
|
|
296
323
|
'once': !![],
|
|
297
|
-
'signal':
|
|
324
|
+
'signal': _0x165ce8[_0x29f1b6(_0x18328e._0x3309ad)]
|
|
298
325
|
});
|
|
299
326
|
}
|
|
300
|
-
return
|
|
327
|
+
return _0x165ce8[_0x29f1b6(0x248)];
|
|
301
328
|
}
|
|
302
|
-
function createInternalAgentClient(
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
},
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
},
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
},
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
},
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
},
|
|
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
|
-
function _0x1b9a49(_0x8d5565) {
|
|
468
|
-
const _0x54bdfd = _0x48bf20, _0x1025d3 = _0x8d5565[_0x54bdfd(_0xafd70b._0x7a64d7)]['headers'][_0x54bdfd(_0xafd70b._0x1f4471)](_0x54bdfd(_0xafd70b._0x352e33)) ?? 'unknown', _0x4ca04a = _0x8d5565[_0x54bdfd(_0xafd70b._0x2a16a2)]['trim']()[_0x54bdfd(_0xafd70b._0x1d6b8c)](/\s+/g, '\x20')[_0x54bdfd(0x298)](0x0, 0x78) || _0x54bdfd(_0xafd70b._0x281d9f);
|
|
469
|
-
return _0x54bdfd(0x22b) + _0x8d5565[_0x54bdfd(_0xafd70b._0x2b8d38)] + _0x54bdfd(0x2a0) + _0x8d5565[_0x54bdfd(_0xafd70b._0x7a64d7)][_0x54bdfd(_0xafd70b._0x3c7292)] + _0x54bdfd(_0xafd70b._0x3cf916) + _0x1025d3 + _0x54bdfd(0x303) + _0x4ca04a + _0x54bdfd(_0xafd70b._0x234e55);
|
|
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);
|
|
470
494
|
}
|
|
471
|
-
async function
|
|
472
|
-
const
|
|
473
|
-
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)]())
|
|
474
498
|
return {};
|
|
475
499
|
try {
|
|
476
|
-
return JSON['parse'](
|
|
500
|
+
return JSON['parse'](_0x10d539);
|
|
477
501
|
} catch {
|
|
478
|
-
throw new Error(
|
|
479
|
-
'bodyText':
|
|
480
|
-
'requestUrl':
|
|
481
|
-
'response':
|
|
502
|
+
throw new Error(_0x3c6330({
|
|
503
|
+
'bodyText': _0x10d539,
|
|
504
|
+
'requestUrl': _0x4c91bd,
|
|
505
|
+
'response': _0x7f31b8
|
|
482
506
|
}));
|
|
483
507
|
}
|
|
484
508
|
}
|
|
485
|
-
function
|
|
486
|
-
const
|
|
487
|
-
if (
|
|
488
|
-
return
|
|
489
|
-
const
|
|
490
|
-
for (const [
|
|
491
|
-
|
|
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);
|
|
492
516
|
}
|
|
493
|
-
const
|
|
494
|
-
...
|
|
517
|
+
const _0x30539c = {
|
|
518
|
+
..._0x37c62f,
|
|
495
519
|
'idempotency_key': void 0x0
|
|
496
|
-
},
|
|
497
|
-
if (
|
|
498
|
-
return
|
|
499
|
-
const
|
|
500
|
-
return
|
|
501
|
-
'expiresAt':
|
|
502
|
-
'value':
|
|
503
|
-
}),
|
|
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;
|
|
504
528
|
}
|
|
505
|
-
async function
|
|
506
|
-
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;
|
|
507
531
|
try {
|
|
508
|
-
const
|
|
509
|
-
...
|
|
510
|
-
'signal':
|
|
511
|
-
}),
|
|
512
|
-
if (!
|
|
513
|
-
throw new Error(asErrorMessage(
|
|
514
|
-
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;
|
|
515
539
|
} finally {
|
|
516
|
-
clearTimeout(
|
|
540
|
+
clearTimeout(_0x306a6d);
|
|
517
541
|
}
|
|
518
542
|
}
|
|
519
|
-
async function
|
|
520
|
-
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;
|
|
521
545
|
try {
|
|
522
|
-
const
|
|
523
|
-
...
|
|
524
|
-
'signal':
|
|
525
|
-
}),
|
|
526
|
-
if (!
|
|
527
|
-
throw new Error(asErrorMessage(
|
|
528
|
-
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;
|
|
529
553
|
} finally {
|
|
530
|
-
clearTimeout(
|
|
554
|
+
clearTimeout(_0x393900);
|
|
531
555
|
}
|
|
532
556
|
}
|
|
533
|
-
async function
|
|
534
|
-
const
|
|
535
|
-
if (!
|
|
557
|
+
async function _0xcc7607(_0x289918) {
|
|
558
|
+
const _0x7ba00d = _0x4505d3;
|
|
559
|
+
if (!_0x39bdd9 || _0x289918 <= _0x1b584f)
|
|
536
560
|
return;
|
|
537
|
-
await
|
|
538
|
-
'body': JSON[
|
|
539
|
-
'headers':
|
|
561
|
+
await _0x4827de('/api/agent-sessions/' + encodeURIComponent(_0x39bdd9) + _0x7ba00d(0x250), {
|
|
562
|
+
'body': JSON[_0x7ba00d(_0x10fddb._0x3840bc)]({ 'lastSeenSeq': _0x289918 }),
|
|
563
|
+
'headers': _0x5600aa,
|
|
540
564
|
'method': 'PATCH'
|
|
541
|
-
}),
|
|
565
|
+
}), _0x1b584f = _0x289918;
|
|
542
566
|
}
|
|
543
|
-
async function
|
|
544
|
-
const
|
|
545
|
-
if (!
|
|
567
|
+
async function _0x1303b4(_0x9dc5ac) {
|
|
568
|
+
const _0x3d4f6a = _0x4505d3;
|
|
569
|
+
if (!_0x2a81b8 || !_0x2b73fb || _0x9dc5ac <= _0x1b584f)
|
|
546
570
|
return;
|
|
547
|
-
const
|
|
548
|
-
'body': JSON[
|
|
549
|
-
'last_seen_seq':
|
|
550
|
-
'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
|
|
551
575
|
}),
|
|
552
576
|
'headers': { 'Content-Type': 'application/json' },
|
|
553
|
-
'method':
|
|
577
|
+
'method': _0x3d4f6a(0x18b)
|
|
554
578
|
});
|
|
555
|
-
if (!
|
|
556
|
-
throw new Error(
|
|
557
|
-
|
|
579
|
+
if (!_0x1193a3['ok'])
|
|
580
|
+
throw new Error('HTTP\x20' + _0x1193a3['status']);
|
|
581
|
+
_0x1b584f = _0x9dc5ac;
|
|
558
582
|
}
|
|
559
|
-
async function
|
|
560
|
-
const
|
|
561
|
-
'body': JSON[
|
|
562
|
-
'headers':
|
|
563
|
-
'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)
|
|
564
588
|
});
|
|
565
589
|
return {
|
|
566
|
-
'channelId':
|
|
567
|
-
'target':
|
|
568
|
-
'task':
|
|
569
|
-
'threadId':
|
|
570
|
-
'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)]
|
|
571
595
|
};
|
|
572
596
|
}
|
|
573
|
-
async function
|
|
574
|
-
const
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
'
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
'
|
|
594
|
-
|
|
595
|
-
|
|
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'] ?? '';
|
|
596
622
|
return {
|
|
597
|
-
'agents':
|
|
598
|
-
'channels':
|
|
599
|
-
'humans':
|
|
600
|
-
'serverId':
|
|
601
|
-
'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
|
|
602
628
|
};
|
|
603
|
-
})()[
|
|
604
|
-
|
|
605
|
-
throw
|
|
606
|
-
}),
|
|
629
|
+
})()[_0x544665(_0x191da9._0x143284)](_0x160286 => {
|
|
630
|
+
_0xf51ee1 = null;
|
|
631
|
+
throw _0x160286;
|
|
632
|
+
}), _0xf51ee1;
|
|
607
633
|
}
|
|
608
|
-
function
|
|
609
|
-
const
|
|
610
|
-
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);
|
|
611
637
|
}
|
|
612
|
-
function
|
|
613
|
-
const
|
|
614
|
-
if (
|
|
615
|
-
return
|
|
616
|
-
if (
|
|
617
|
-
return
|
|
618
|
-
if (
|
|
619
|
-
return
|
|
620
|
-
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)];
|
|
621
647
|
}
|
|
622
|
-
function
|
|
623
|
-
const
|
|
648
|
+
function _0x1d9e41(_0x4ff32c, _0x7396b3) {
|
|
649
|
+
const _0x3cf5d4 = _0x4505d3;
|
|
624
650
|
try {
|
|
625
|
-
const
|
|
626
|
-
if (
|
|
651
|
+
const _0x375025 = parseTarget(_0x4ff32c);
|
|
652
|
+
if (_0x375025[_0x3cf5d4(0x16f)] !== 'thread' || _0x375025[_0x3cf5d4(0x1ed)] !== _0x7396b3['channelTarget'])
|
|
627
653
|
return ![];
|
|
628
|
-
if (
|
|
654
|
+
if (_0x7396b3[_0x3cf5d4(0x114)] != null && _0x375025[_0x3cf5d4(0x1f8)] === 't' + _0x7396b3[_0x3cf5d4(0x114)])
|
|
629
655
|
return !![];
|
|
630
|
-
if (
|
|
631
|
-
return
|
|
632
|
-
if (
|
|
633
|
-
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)]);
|
|
634
660
|
return ![];
|
|
635
661
|
} catch {
|
|
636
662
|
return ![];
|
|
637
663
|
}
|
|
638
664
|
}
|
|
639
|
-
function
|
|
640
|
-
const
|
|
641
|
-
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)] ?? '';
|
|
642
668
|
}
|
|
643
|
-
function
|
|
644
|
-
const
|
|
645
|
-
return
|
|
669
|
+
function _0x274032(_0x56a67d) {
|
|
670
|
+
const _0x5e2ceb = _0x4505d3;
|
|
671
|
+
return _0x56a67d[_0x5e2ceb(_0xcc6baa._0x10713a)]?.[_0x5e2ceb(0x19c)] ?? _0xee3189(_0x56a67d);
|
|
646
672
|
}
|
|
647
|
-
async function
|
|
648
|
-
const
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
const
|
|
654
|
-
'headers':
|
|
655
|
-
'method':
|
|
656
|
-
}),
|
|
657
|
-
'attachments': (
|
|
658
|
-
'filename':
|
|
659
|
-
'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']
|
|
660
686
|
})),
|
|
661
|
-
'content':
|
|
662
|
-
'createdAt':
|
|
663
|
-
'messageId':
|
|
664
|
-
'senderName':
|
|
665
|
-
'senderType':
|
|
666
|
-
'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
|
|
667
693
|
}));
|
|
668
694
|
return {
|
|
669
|
-
'channel':
|
|
670
|
-
'hasMore':
|
|
671
|
-
'messages':
|
|
672
|
-
'nextCursor':
|
|
695
|
+
'channel': _0x376745['channelTarget'],
|
|
696
|
+
'hasMore': _0x444188[_0x7ce485(_0x4b0717._0x47a267)]?.[_0x7ce485(0x12d)] ?? ![],
|
|
697
|
+
'messages': _0x11c3ad,
|
|
698
|
+
'nextCursor': _0x444188[_0x7ce485(0x13d)]?.[_0x7ce485(_0x4b0717._0x3b745c)]
|
|
673
699
|
};
|
|
674
700
|
}
|
|
675
701
|
return {
|
|
676
|
-
async 'sendMessage'(
|
|
677
|
-
const
|
|
678
|
-
'body': JSON[
|
|
679
|
-
'attachment_ids':
|
|
680
|
-
'bodyMarkdown':
|
|
681
|
-
'channelId':
|
|
682
|
-
...
|
|
683
|
-
'threadId':
|
|
684
|
-
...
|
|
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'] } : {}
|
|
685
711
|
}),
|
|
686
|
-
'headers':
|
|
687
|
-
'method':
|
|
712
|
+
'headers': _0x5600aa,
|
|
713
|
+
'method': 'POST'
|
|
688
714
|
});
|
|
689
|
-
return { 'messageId':
|
|
715
|
+
return { 'messageId': _0x181880[_0x332633(_0x59f731._0x50d2d2)]?.['id'] ?? '' };
|
|
690
716
|
},
|
|
691
717
|
async 'listSchedules'() {
|
|
692
|
-
const
|
|
693
|
-
'headers':
|
|
694
|
-
'method':
|
|
718
|
+
const _0x535d65 = _0x4505d3, _0x343e2f = await _0x4827de('/api/internal/schedules', {
|
|
719
|
+
'headers': _0x5600aa,
|
|
720
|
+
'method': _0x535d65(0x27d)
|
|
695
721
|
});
|
|
696
|
-
return
|
|
722
|
+
return _0x343e2f[_0x535d65(_0x581fbc._0x1b11c8)] ?? [];
|
|
697
723
|
},
|
|
698
|
-
async 'claimScheduleRun'(
|
|
699
|
-
const
|
|
700
|
-
'body': JSON[
|
|
701
|
-
'headers':
|
|
702
|
-
'method':
|
|
724
|
+
async 'claimScheduleRun'(_0x4a45bf) {
|
|
725
|
+
const _0x26c417 = _0x4505d3, _0x33645f = await _0x4827de(_0x26c417(0x10f), {
|
|
726
|
+
'body': JSON['stringify'](_0x4a45bf),
|
|
727
|
+
'headers': _0x5600aa,
|
|
728
|
+
'method': 'POST'
|
|
703
729
|
});
|
|
704
|
-
return
|
|
730
|
+
return _0x33645f[_0x26c417(_0x11e327._0x282ef8)] ?? {
|
|
705
731
|
'granted': ![],
|
|
706
732
|
'runId': null,
|
|
707
733
|
'schedule': null,
|
|
708
|
-
'scheduledFor':
|
|
734
|
+
'scheduledFor': _0x4a45bf[_0x26c417(0x1f7)]
|
|
709
735
|
};
|
|
710
736
|
},
|
|
711
|
-
async 'startScheduleRun'(
|
|
712
|
-
const
|
|
713
|
-
'body': JSON[
|
|
714
|
-
'headers':
|
|
715
|
-
'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)
|
|
716
742
|
});
|
|
717
|
-
return
|
|
743
|
+
return _0x2df405['data'] ?? {
|
|
718
744
|
'claimedByDaemonId': '',
|
|
719
|
-
'id':
|
|
745
|
+
'id': _0x207208[_0x356254(_0x243827._0x5719a3)],
|
|
720
746
|
'scheduleId': '',
|
|
721
|
-
'status':
|
|
747
|
+
'status': _0x356254(0x1ef)
|
|
722
748
|
};
|
|
723
749
|
},
|
|
724
|
-
async 'finishScheduleRun'(
|
|
725
|
-
const
|
|
726
|
-
'body': JSON[
|
|
727
|
-
'error':
|
|
728
|
-
'resultJson':
|
|
729
|
-
'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)]
|
|
730
756
|
}),
|
|
731
|
-
'headers':
|
|
732
|
-
'method':
|
|
757
|
+
'headers': _0x5600aa,
|
|
758
|
+
'method': _0x7b02d5(_0x52eb8e._0x530d16)
|
|
733
759
|
});
|
|
734
|
-
return
|
|
760
|
+
return _0x5e9cc7[_0x7b02d5(_0x52eb8e._0x1e4cce)] ?? {
|
|
735
761
|
'nextRunAt': null,
|
|
736
762
|
'run': {
|
|
737
763
|
'claimedByDaemonId': '',
|
|
738
|
-
'id':
|
|
764
|
+
'id': _0x524cc3[_0x7b02d5(_0x52eb8e._0x5f2ed6)],
|
|
739
765
|
'scheduleId': '',
|
|
740
|
-
'status':
|
|
766
|
+
'status': _0x524cc3['status']
|
|
741
767
|
}
|
|
742
768
|
};
|
|
743
769
|
},
|
|
744
|
-
async 'listTasks'(
|
|
745
|
-
const
|
|
746
|
-
return
|
|
747
|
-
'headers':
|
|
748
|
-
'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)
|
|
749
775
|
});
|
|
750
776
|
},
|
|
751
|
-
async 'createTasks'(
|
|
752
|
-
const
|
|
753
|
-
return
|
|
754
|
-
'body': JSON[
|
|
755
|
-
...
|
|
756
|
-
'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)
|
|
757
783
|
}),
|
|
758
|
-
'headers':
|
|
759
|
-
'method':
|
|
784
|
+
'headers': _0x5600aa,
|
|
785
|
+
'method': _0x528d6e(0x18b)
|
|
760
786
|
});
|
|
761
787
|
},
|
|
762
|
-
async 'claimTasks'(
|
|
763
|
-
const
|
|
764
|
-
return
|
|
765
|
-
'body': JSON[
|
|
766
|
-
...
|
|
767
|
-
'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)
|
|
768
794
|
}),
|
|
769
|
-
'headers':
|
|
770
|
-
'method':
|
|
795
|
+
'headers': _0x5600aa,
|
|
796
|
+
'method': _0x3a16e1(_0x1375ee._0x528afb)
|
|
771
797
|
});
|
|
772
798
|
},
|
|
773
|
-
async 'unclaimTask'(
|
|
774
|
-
const
|
|
775
|
-
return
|
|
776
|
-
'body': JSON[
|
|
777
|
-
...
|
|
778
|
-
'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)
|
|
779
805
|
}),
|
|
780
|
-
'headers':
|
|
781
|
-
'method':
|
|
806
|
+
'headers': _0x5600aa,
|
|
807
|
+
'method': 'POST'
|
|
782
808
|
});
|
|
783
809
|
},
|
|
784
|
-
async 'updateTaskStatus'(
|
|
785
|
-
const
|
|
786
|
-
return
|
|
787
|
-
'body': JSON[
|
|
788
|
-
...
|
|
789
|
-
'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)
|
|
790
816
|
}),
|
|
791
|
-
'headers':
|
|
792
|
-
'method':
|
|
817
|
+
'headers': _0x5600aa,
|
|
818
|
+
'method': _0x17adf9(0x18b)
|
|
793
819
|
});
|
|
794
820
|
},
|
|
795
|
-
async 'uploadFile'(
|
|
796
|
-
const
|
|
797
|
-
if (
|
|
798
|
-
throw new Error(
|
|
799
|
-
const
|
|
800
|
-
'body': JSON[
|
|
801
|
-
'channel':
|
|
802
|
-
'contentBase64':
|
|
803
|
-
'contentType':
|
|
804
|
-
'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)]
|
|
805
831
|
}),
|
|
806
|
-
'headers':
|
|
807
|
-
'method':
|
|
832
|
+
'headers': _0x5600aa,
|
|
833
|
+
'method': _0xffdcc7(_0xa881d3._0x3326e5)
|
|
808
834
|
});
|
|
809
835
|
return {
|
|
810
|
-
'attachmentId':
|
|
811
|
-
'filename':
|
|
812
|
-
'sizeBytes':
|
|
836
|
+
'attachmentId': _0x45061b['data']?.['id'] ?? '',
|
|
837
|
+
'filename': _0x45061b[_0xffdcc7(0x26f)]?.['originalFilename'] ?? _0x5c209f[_0xffdcc7(0x1e9)],
|
|
838
|
+
'sizeBytes': _0x45061b['data']?.[_0xffdcc7(_0xa881d3._0x1801ee)] ?? 0x0
|
|
813
839
|
};
|
|
814
840
|
},
|
|
815
|
-
async 'downloadAttachment'(
|
|
816
|
-
const
|
|
817
|
-
'headers':
|
|
818
|
-
'method':
|
|
819
|
-
}),
|
|
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);
|
|
820
846
|
try {
|
|
821
|
-
const
|
|
822
|
-
'headers':
|
|
823
|
-
'method':
|
|
824
|
-
'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)]
|
|
825
851
|
});
|
|
826
|
-
if (!
|
|
827
|
-
throw new Error(
|
|
852
|
+
if (!_0x115134['ok'])
|
|
853
|
+
throw new Error(_0x5ee13b(_0x2fa5e7._0xde7cff) + _0x115134[_0x5ee13b(0x128)]);
|
|
828
854
|
return {
|
|
829
|
-
'contentType':
|
|
830
|
-
'data': Buffer[
|
|
831
|
-
'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)]
|
|
832
858
|
};
|
|
833
859
|
} finally {
|
|
834
|
-
clearTimeout(
|
|
860
|
+
clearTimeout(_0x534a11);
|
|
835
861
|
}
|
|
836
862
|
},
|
|
837
863
|
async 'listServer'() {
|
|
838
|
-
return
|
|
864
|
+
return _0x9385ec({ 'forceRefresh': !![] });
|
|
839
865
|
},
|
|
840
|
-
async 'readHistory'(
|
|
841
|
-
const
|
|
842
|
-
return
|
|
843
|
-
'after':
|
|
844
|
-
'before':
|
|
845
|
-
'channelId':
|
|
846
|
-
'channelTarget':
|
|
847
|
-
'limit':
|
|
848
|
-
'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']
|
|
849
875
|
});
|
|
850
876
|
},
|
|
851
|
-
'resolveTarget':
|
|
877
|
+
'resolveTarget': _0x251db6,
|
|
852
878
|
async 'checkMessages'() {
|
|
853
|
-
const
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
'
|
|
861
|
-
|
|
862
|
-
let _0x41f4b7 = await _0x451dc6(), _0x5653a1 = new Map(_0x41f4b7[_0x1bef5c(0x2ad)][_0x1bef5c(_0x373eb8._0x38a331)](_0xe319d3 => [
|
|
863
|
-
_0xe319d3['id'],
|
|
864
|
-
_0xe319d3
|
|
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
|
|
865
888
|
]));
|
|
866
|
-
const
|
|
867
|
-
const
|
|
868
|
-
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);
|
|
869
892
|
});
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
893
|
+
_0x1a096d && (_0x3e3814 = await _0x9385ec({ 'forceRefresh': !![] }), _0x171f94 = new Map(_0x3e3814['channels'][_0x3ea2fd(_0x5132a9._0x14b974)](_0x4467d5 => [
|
|
894
|
+
_0x4467d5['id'],
|
|
895
|
+
_0x4467d5
|
|
873
896
|
])));
|
|
874
|
-
const
|
|
875
|
-
for (const
|
|
876
|
-
const
|
|
877
|
-
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)
|
|
878
901
|
continue;
|
|
879
|
-
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) ?? {
|
|
880
903
|
'aggregateIds': [],
|
|
881
|
-
'channelId':
|
|
904
|
+
'channelId': _0xd22ba1,
|
|
882
905
|
'entries': new Map(),
|
|
883
|
-
'isThreadReply':
|
|
884
|
-
'rootMessageId':
|
|
885
|
-
'threadNumber':
|
|
886
|
-
'threadId':
|
|
906
|
+
'isThreadReply': _0x1bcdf1,
|
|
907
|
+
'rootMessageId': _0x2ee1a5,
|
|
908
|
+
'threadNumber': _0xe4162f,
|
|
909
|
+
'threadId': _0x1bcdf1 ? _0x49a869 : void 0x0
|
|
887
910
|
};
|
|
888
|
-
|
|
889
|
-
'payloadJson':
|
|
890
|
-
'seq':
|
|
891
|
-
}),
|
|
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);
|
|
892
915
|
}
|
|
893
|
-
const
|
|
894
|
-
for (const
|
|
916
|
+
const _0x386418 = [];
|
|
917
|
+
for (const _0x264127 of _0x578915[_0x3ea2fd(_0x5132a9._0x51e348)]()) {
|
|
895
918
|
const {
|
|
896
|
-
channelId:
|
|
897
|
-
threadId:
|
|
898
|
-
rootMessageId:
|
|
899
|
-
threadNumber:
|
|
900
|
-
aggregateIds:
|
|
901
|
-
isThreadReply:
|
|
902
|
-
entries:
|
|
903
|
-
} =
|
|
904
|
-
'channelTarget':
|
|
905
|
-
'rootMessageId':
|
|
906
|
-
'threadId':
|
|
907
|
-
'threadNumber':
|
|
908
|
-
},
|
|
909
|
-
'channelId':
|
|
910
|
-
'channelTarget':
|
|
911
|
-
'limit': Math[
|
|
912
|
-
'threadId':
|
|
913
|
-
}),
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
])),
|
|
917
|
-
for (const
|
|
918
|
-
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)
|
|
919
942
|
continue;
|
|
920
|
-
const
|
|
921
|
-
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)
|
|
922
945
|
continue;
|
|
923
|
-
const
|
|
924
|
-
if (
|
|
925
|
-
|
|
926
|
-
'attachments':
|
|
927
|
-
'content':
|
|
928
|
-
'createdAt':
|
|
929
|
-
'messageId':
|
|
930
|
-
'senderName':
|
|
931
|
-
'senderType':
|
|
932
|
-
'target':
|
|
933
|
-
...
|
|
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': !![] } : {}
|
|
934
957
|
});
|
|
935
958
|
continue;
|
|
936
959
|
}
|
|
937
|
-
if (
|
|
938
|
-
const
|
|
939
|
-
|
|
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)]({
|
|
940
963
|
'attachments': [],
|
|
941
|
-
'content':
|
|
942
|
-
'createdAt': new Date()[
|
|
943
|
-
'messageId':
|
|
944
|
-
'senderName':
|
|
945
|
-
'senderType':
|
|
946
|
-
'target':
|
|
947
|
-
...
|
|
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': !![] } : {}
|
|
948
971
|
});
|
|
949
972
|
}
|
|
950
973
|
}
|
|
951
974
|
}
|
|
952
|
-
if (
|
|
953
|
-
if (
|
|
954
|
-
await
|
|
975
|
+
if (_0x27a1e3 > 0x0) {
|
|
976
|
+
if (_0x39bdd9)
|
|
977
|
+
await _0xcc7607(_0x27a1e3);
|
|
955
978
|
else
|
|
956
|
-
|
|
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)])));
|
|
957
1477
|
}
|
|
958
|
-
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), !![]);
|
|
959
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
|
|
960
1920
|
};
|
|
961
1921
|
}
|
|
962
|
-
function
|
|
963
|
-
const
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
_0x541790: 0x21f
|
|
968
|
-
}, _0x1565aa = _0x387276, _0x5d7e77 = new Date(_0x5e989b);
|
|
969
|
-
if (Number[_0x1565aa(0x2ba)](_0x5d7e77['getTime']()))
|
|
970
|
-
return _0x5e989b;
|
|
971
|
-
const _0x1b8cb8 = _0x15d775 => String(_0x15d775)['padStart'](0x2, '0');
|
|
972
|
-
return _0x5d7e77[_0x1565aa(_0xcf4f90._0x3f6eea)]() + '-' + _0x1b8cb8(_0x5d7e77[_0x1565aa(_0xcf4f90._0xae2b92)]() + 0x1) + '-' + _0x1b8cb8(_0x5d7e77[_0x1565aa(_0xcf4f90._0x3123dd)]()) + '\x20' + _0x1b8cb8(_0x5d7e77[_0x1565aa(_0xcf4f90._0x541790)]()) + ':' + _0x1b8cb8(_0x5d7e77['getMinutes']()) + ':' + _0x1b8cb8(_0x5d7e77[_0x1565aa(0x2ce)]());
|
|
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];
|
|
973
1927
|
}
|
|
974
|
-
function
|
|
975
|
-
const
|
|
1928
|
+
function _0x13f9() {
|
|
1929
|
+
const _0x41abce = [
|
|
1930
|
+
'6k+35Rgcia',
|
|
1931
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1932
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1933
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1934
|
+
'CNvUBMLUzW',
|
|
1935
|
+
'DgfYz2v0zwq',
|
|
1936
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1937
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1938
|
+
'y29TCgXLDgvK',
|
|
1939
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1940
|
+
'mJG0mtK4nvHxvefyta',
|
|
1941
|
+
'y3jLyxrLzef0',
|
|
1942
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1943
|
+
'DgHYzwfKu2HVCNrjza',
|
|
976
1944
|
'D29YA2vYtw9KzuvUywjSzwq',
|
|
977
|
-
'
|
|
978
|
-
'
|
|
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',
|
|
979
1964
|
'D3nZoG',
|
|
980
|
-
'
|
|
981
|
-
'
|
|
982
|
-
'
|
|
983
|
-
'
|
|
984
|
-
'
|
|
985
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
986
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
987
|
-
'l3rHC2TZl2nSywLT',
|
|
988
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
1965
|
+
'DgL0Bgu',
|
|
1966
|
+
'CMvWBgfJzq',
|
|
1967
|
+
'y2XHAw1uyxnRCW',
|
|
1968
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1969
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
989
1970
|
'CMvZCg9UC2u',
|
|
990
|
-
'
|
|
991
|
-
'
|
|
992
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
993
|
-
'DgfZA3m',
|
|
994
|
-
'yM9KEu1HCMTKB3DU',
|
|
995
|
-
'CM9VDe1LC3nHz2vjza',
|
|
996
|
-
'BgLZDf90yxnRCW',
|
|
997
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
998
|
-
'B3bLBL9PC3n1zxm',
|
|
999
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1000
|
-
'iIbUB3qGzM91BMq',
|
|
1001
|
-
'icHPzdO',
|
|
1971
|
+
'z2v0u2vJB25KCW',
|
|
1972
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1002
1973
|
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1003
|
-
'
|
|
1004
|
-
'
|
|
1005
|
-
'
|
|
1006
|
-
'
|
|
1007
|
-
'
|
|
1008
|
-
'
|
|
1009
|
-
'
|
|
1010
|
-
'
|
|
1011
|
-
'y2XPzw50',
|
|
1012
|
-
'BwLU',
|
|
1013
|
-
'y2HHBM5LBa',
|
|
1014
|
-
'y29UDgvUDejHC2u2na',
|
|
1015
|
-
'B2jQzwn0',
|
|
1974
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1975
|
+
'ig1LC3nHz2vZkqOk',
|
|
1976
|
+
'D29YA19RzxK',
|
|
1977
|
+
'AxnbCNjHEq',
|
|
1978
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1979
|
+
'zgLNzxn0',
|
|
1980
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1981
|
+
'CNvUswq',
|
|
1016
1982
|
'ywDNCMvNyxrLswq',
|
|
1017
|
-
'
|
|
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',
|
|
1018
1996
|
'ywz0zxi',
|
|
1019
|
-
'
|
|
1020
|
-
'
|
|
1021
|
-
'
|
|
1022
|
-
'
|
|
1023
|
-
'
|
|
1024
|
-
'
|
|
1025
|
-
'
|
|
1026
|
-
'
|
|
1027
|
-
'
|
|
1028
|
-
'
|
|
1029
|
-
'
|
|
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',
|
|
1030
2017
|
'DgHYzwfK',
|
|
1031
|
-
'
|
|
1032
|
-
'
|
|
1033
|
-
'
|
|
1034
|
-
'
|
|
1035
|
-
'
|
|
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',
|
|
2051
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
2052
|
+
'AgfZ',
|
|
2053
|
+
'zMLSzxnFy2HHBMDLza',
|
|
2054
|
+
'C2XPy2u',
|
|
2055
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
2056
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
2057
|
+
'BwvZC2fNzq',
|
|
2058
|
+
'zgfLBw9UqxbPs2v5',
|
|
2059
|
+
'y29UDgvUDa',
|
|
2060
|
+
'Aw5JBhvKzxm',
|
|
2061
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
2062
|
+
'zgf0yq',
|
|
2063
|
+
'z2v0vgLTzq',
|
|
2064
|
+
'mtyZmtC3nKfyuLDSDG',
|
|
2065
|
+
'CMvHzeHPC3rVCNK',
|
|
2066
|
+
'ywXS',
|
|
2067
|
+
'ywDLBNrjza',
|
|
2068
|
+
'EM9K',
|
|
2069
|
+
'zxHWAxjLC0f0',
|
|
2070
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
2071
|
+
'yxnPzgu',
|
|
1036
2072
|
'C2vUzgvYvhLWzq',
|
|
1037
|
-
'
|
|
1038
|
-
'
|
|
1039
|
-
'
|
|
1040
|
-
'
|
|
1041
|
-
'
|
|
1042
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1043
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
1044
|
-
'y29TCgXLDgvK',
|
|
1045
|
-
'Dgv4Dc9WBgfPBG',
|
|
1046
|
-
'l3n0yxj0',
|
|
1047
|
-
'CMvZDwX0CW',
|
|
1048
|
-
'ls1Zzxj2zxiTDxjS',
|
|
1049
|
-
'D29YA2vYCW',
|
|
1050
|
-
'zgvSzxrL',
|
|
1051
|
-
'BgLZDf9Zzxj2zxi',
|
|
1052
|
-
'yxr0ywnOBwvUDeLK',
|
|
1053
|
-
'C2vYDMvYvxjS',
|
|
1054
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1055
|
-
'y2HHBM5LBe5HBwu',
|
|
1056
|
-
'Dg9gAxHLza',
|
|
1057
|
-
'zMLSDgvY',
|
|
1058
|
-
'iYmJiefNzw50CW',
|
|
1059
|
-
'C3rVCe1HAw4',
|
|
2073
|
+
'ChjVDg9JB2W',
|
|
2074
|
+
'CgfYC2vjBNq',
|
|
2075
|
+
'zgvZy3jPChrPB24',
|
|
2076
|
+
'r0vu',
|
|
2077
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1060
2078
|
'Bwf4',
|
|
1061
|
-
'
|
|
1062
|
-
'
|
|
1063
|
-
'
|
|
2079
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
2080
|
+
'Dgv4Da',
|
|
2081
|
+
'l3jLy2vPDMu',
|
|
2082
|
+
'kgXLz2fJEsK',
|
|
2083
|
+
'C2vYDMvYvxjS',
|
|
2084
|
+
'DxbSB2fKrMLSzq',
|
|
2085
|
+
'y3jLyxrLx3rHC2TZ',
|
|
2086
|
+
'Aw5FChjVz3jLC3m',
|
|
2087
|
+
'DgvZDa',
|
|
1064
2088
|
'DMLLD19MAwXL',
|
|
1065
|
-
'
|
|
1066
|
-
'
|
|
1067
|
-
'
|
|
1068
|
-
'
|
|
1069
|
-
'
|
|
1070
|
-
'C2vUzgvYtMfTzq',
|
|
2089
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
2090
|
+
'z2v0tw9UDgG',
|
|
2091
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
2092
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
2093
|
+
'l2zPBMLZAa',
|
|
1071
2094
|
'BgLZDfrHC2TZ',
|
|
1072
|
-
'
|
|
2095
|
+
'Dg9ju09tDhjPBMC',
|
|
2096
|
+
'mZGZndG3mMPsv3jRua',
|
|
2097
|
+
'y29UDgvUDfr5Cgu',
|
|
2098
|
+
'CxvLDwvK',
|
|
2099
|
+
'zMLSzv9WyxrO',
|
|
2100
|
+
'ihr5Cgu9ywDLBNq',
|
|
1073
2101
|
'AgvHzgvYCW',
|
|
1074
|
-
'
|
|
1075
|
-
'
|
|
1076
|
-
'
|
|
1077
|
-
'
|
|
2102
|
+
'Dgv4Dc9WBgfPBG',
|
|
2103
|
+
'Dg9VBa',
|
|
2104
|
+
'BwLU',
|
|
2105
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
2106
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
2107
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
2108
|
+
'vgfZAYa',
|
|
1078
2109
|
'yxbWBgLJyxrPB24VANnVBG',
|
|
1079
|
-
'
|
|
1080
|
-
'
|
|
1081
|
-
'
|
|
1082
|
-
'
|
|
1083
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1084
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
2110
|
+
'zgvZDhjVEwvK',
|
|
2111
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
2112
|
+
'DxbKyxrL',
|
|
2113
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1085
2114
|
'CMvZDwX0sNnVBG',
|
|
2115
|
+
'CM9VDe1LC3nHz2vjza',
|
|
2116
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
2117
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
2118
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
2119
|
+
'y2HHBM5LBhm',
|
|
2120
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
2121
|
+
'DgHYzwfKtNvTyMvY',
|
|
2122
|
+
'Cgf5Bg9HzePZB24',
|
|
2123
|
+
'D29YA2vYCW',
|
|
2124
|
+
'xsba',
|
|
2125
|
+
'igLUia',
|
|
2126
|
+
'AgLNAa',
|
|
2127
|
+
'yxr0ywnOBwvUDeLK',
|
|
2128
|
+
'Aw5FCMv2Awv3',
|
|
2129
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
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',
|
|
2146
|
+
'AgfZtw9Yzq',
|
|
2147
|
+
'iYmJiefNzw50CW',
|
|
2148
|
+
'zxH0BMfTzq',
|
|
2149
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
2150
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
2151
|
+
'l3rHC2TZpW',
|
|
1086
2152
|
'DgfZA051BwjLCG',
|
|
1087
|
-
'
|
|
2153
|
+
'zMfPBgvK',
|
|
2154
|
+
'iYmJieH1BwfUCW',
|
|
2155
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
2156
|
+
'yMXVy2TLza',
|
|
2157
|
+
'ig1LC3nHz2u9',
|
|
2158
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
2159
|
+
'ywDLBNq',
|
|
2160
|
+
'pgvTChr5pG',
|
|
2161
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
2162
|
+
'Bwv0yq',
|
|
2163
|
+
'yM9KEu1HCMTKB3DU',
|
|
2164
|
+
'DMLZAwjPBgL0Eq',
|
|
2165
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
2166
|
+
'DxrMoa',
|
|
2167
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
2168
|
+
'DgfYz2v0',
|
|
2169
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
2170
|
+
'zMv0y2HjBxbS',
|
|
2171
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
2172
|
+
'AxngAw5PDgu',
|
|
2173
|
+
'cGOTls0G',
|
|
2174
|
+
'ywz0zxjtzxe',
|
|
2175
|
+
'ywjVCNrLza',
|
|
2176
|
+
'zM9Yy2vszwzYzxnO',
|
|
2177
|
+
'D29YA2vY',
|
|
2178
|
+
'CMvHC29U',
|
|
1088
2179
|
'zMfSC2u',
|
|
1089
|
-
'
|
|
1090
|
-
'
|
|
1091
|
-
'
|
|
1092
|
-
'
|
|
1093
|
-
'
|
|
2180
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
2181
|
+
'nZG3nJjMrKjyrLy',
|
|
2182
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
2183
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
2184
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
2185
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
2186
|
+
'y29UDgvUDejHC2u2na',
|
|
2187
|
+
'vgfZAZOG',
|
|
2188
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
2189
|
+
'ywrK',
|
|
1094
2190
|
'yxjNDG',
|
|
1095
|
-
'
|
|
1096
|
-
'
|
|
1097
|
-
'
|
|
1098
|
-
'
|
|
1099
|
-
'
|
|
1100
|
-
'
|
|
1101
|
-
'
|
|
1102
|
-
'
|
|
1103
|
-
'
|
|
1104
|
-
'
|
|
1105
|
-
'CMvJB3jK',
|
|
1106
|
-
'ndm0mti4merUyM1AsG',
|
|
1107
|
-
'z2v0sg91CNm',
|
|
1108
|
-
'l3jLy2vPDMu',
|
|
1109
|
-
'yM9KEvrLEhq',
|
|
1110
|
-
'zNjVBq',
|
|
1111
|
-
'ue9tva',
|
|
1112
|
-
'ig1ZzZ0',
|
|
1113
|
-
'w3rHCMDLDd0',
|
|
1114
|
-
'zxHWAxjLC0f0',
|
|
1115
|
-
'BMfTzq',
|
|
1116
|
-
'C2nOzwr1BgvKrM9Y',
|
|
1117
|
-
'ChvZAa',
|
|
1118
|
-
'sfruuca',
|
|
1119
|
-
'6k+35Rgcia',
|
|
2191
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
2192
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
2193
|
+
'CgfYDgLJAxbHBNrjza',
|
|
2194
|
+
'DgfZA19Pza',
|
|
2195
|
+
'ihn0yxr1CZ0',
|
|
2196
|
+
'w3nLCt0',
|
|
2197
|
+
'z2v0',
|
|
2198
|
+
'BgvUz3rO',
|
|
2199
|
+
'AM9PBG',
|
|
2200
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1120
2201
|
'DxjNzw50',
|
|
1121
|
-
'
|
|
1122
|
-
'
|
|
1123
|
-
'
|
|
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',
|
|
1124
2215
|
'mc4WlJa',
|
|
1125
|
-
'
|
|
1126
|
-
'
|
|
1127
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
1128
|
-
'Bwf0y2Hoyw1L',
|
|
1129
|
-
'Dg9KBW',
|
|
1130
|
-
'zg9Uzq',
|
|
2216
|
+
'y2HHBM5LBeLK',
|
|
2217
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
1131
2218
|
'DgfYz2v0zwruyxnR',
|
|
1132
|
-
'
|
|
1133
|
-
'
|
|
1134
|
-
'
|
|
1135
|
-
'
|
|
1136
|
-
'
|
|
2219
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
2220
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
2221
|
+
'CMvJB3jK',
|
|
2222
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
2223
|
+
'AhvTyw5Z',
|
|
2224
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
2225
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
2226
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
2227
|
+
'z2v0twLUDxrLCW',
|
|
2228
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
2229
|
+
'l2nVBNrLBNq',
|
|
2230
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
2231
|
+
'lsba',
|
|
2232
|
+
'C2vYDMvY',
|
|
2233
|
+
'y2HHDa',
|
|
2234
|
+
'Aw1Hz2uVCg5N',
|
|
2235
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1137
2236
|
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1138
|
-
'
|
|
1139
|
-
'
|
|
1140
|
-
'
|
|
1141
|
-
'
|
|
1142
|
-
'
|
|
2237
|
+
'CgfYDgLJAxbHBNq',
|
|
2238
|
+
'ywjVCNq',
|
|
2239
|
+
'C2L6zq',
|
|
2240
|
+
'ue9tva',
|
|
2241
|
+
'y29UDgvUDc10ExbL',
|
|
1143
2242
|
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1144
|
-
'
|
|
1145
|
-
'
|
|
1146
|
-
'
|
|
1147
|
-
'y3jLyxrLx3rHC2TZ',
|
|
1148
|
-
'Dw5RBM93BG',
|
|
1149
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1150
|
-
'zgvZDhjVEwvK',
|
|
1151
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1152
|
-
'C3rHCNrLza',
|
|
1153
|
-
'y2HHDa',
|
|
1154
|
-
'z2v0rNvSBfLLyxi',
|
|
1155
|
-
'BNvTyMvY',
|
|
1156
|
-
'mti1nJu2nJrsrNLUsw8',
|
|
1157
|
-
'DgfZA0LK',
|
|
2243
|
+
'ChvIBgLJ',
|
|
2244
|
+
'yMvMB3jL',
|
|
2245
|
+
'BMv4Df9ZDgvWCW',
|
|
1158
2246
|
'DxbSB2fKx2zPBgu',
|
|
1159
|
-
'
|
|
1160
|
-
'
|
|
1161
|
-
'zxjYB3i',
|
|
1162
|
-
'ChjVDg9JB2W',
|
|
1163
|
-
'nJuXmdaYnhrPv0PlyG',
|
|
1164
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1165
|
-
'v29YA2vYici',
|
|
1166
|
-
'mJq4ndGWneXeChbRsq',
|
|
1167
|
-
'BwvKAxvT',
|
|
1168
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
1169
|
-
'zMLSzv9WyxrO',
|
|
1170
|
-
'CMvZDwX0',
|
|
1171
|
-
'CMvXDwvZDfvYBa',
|
|
1172
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1173
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1174
|
-
'w3nLCt0',
|
|
1175
|
-
'DgHYzwfKtNvTyMvY',
|
|
1176
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
1177
|
-
'C3rYAw5NAwz5',
|
|
1178
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
1179
|
-
'C2v0',
|
|
1180
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1181
|
-
'lIbnzxnZywDLieLeoIa',
|
|
1182
|
-
'C3rYAw5N',
|
|
1183
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1184
|
-
'pgvTChr5pG',
|
|
1185
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1186
|
-
'y2HLy2TnzxnZywDLCW',
|
|
1187
|
-
'y3jLyxrLzef0',
|
|
1188
|
-
'y2XHAw1uyxnRCW',
|
|
1189
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1190
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
1191
|
-
'ihr5Cgu9ywDLBNq',
|
|
1192
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1193
|
-
'zxzLBNrtzxe',
|
|
1194
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1195
|
-
'ywDLBNrZ',
|
|
1196
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
2247
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
2248
|
+
'BwvZC2fNzuLK',
|
|
1197
2249
|
'igzHAwXLzdOG',
|
|
1198
|
-
'
|
|
1199
|
-
'
|
|
1200
|
-
'
|
|
1201
|
-
'
|
|
1202
|
-
'
|
|
1203
|
-
'
|
|
1204
|
-
'D3m6',
|
|
1205
|
-
'ywrK',
|
|
1206
|
-
'iJOGC3rHDhvZpq',
|
|
1207
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1208
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1209
|
-
'CxvLDwvK',
|
|
1210
|
-
'zMfPBgvK',
|
|
1211
|
-
'mK1wsLDnyq',
|
|
1212
|
-
'D29YA2vYsgfUzg9MzG',
|
|
1213
|
-
'Aw1Hz2uVANbLzW',
|
|
1214
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
1215
|
-
'zg0T',
|
|
1216
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1217
|
-
'iYmGu2vYDMvYoIa',
|
|
1218
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1219
|
-
'C2vYDMvYtMfTzq',
|
|
1220
|
-
'yxnPzgu',
|
|
1221
|
-
'Aw1Hz2uVD2vICa',
|
|
1222
|
-
'C2LNBMfS',
|
|
1223
|
-
'DxbKyxrL',
|
|
1224
|
-
'y2XHAw1FDgfZA3m',
|
|
1225
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1226
|
-
'CMvZB2X2zvrHCMDLDa',
|
|
2250
|
+
'BgLZDf9Zzxj2zxi',
|
|
2251
|
+
'Dg9mB3DLCKnHC2u',
|
|
2252
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
2253
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
2254
|
+
'B3bLBL9PC3n1zxm',
|
|
2255
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1227
2256
|
'Bg9JywXLq29TCgfYzq',
|
|
1228
|
-
'
|
|
1229
|
-
'
|
|
1230
|
-
'
|
|
1231
|
-
'
|
|
1232
|
-
'
|
|
1233
|
-
'
|
|
1234
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
1235
|
-
'Aw5FChjVz3jLC3m',
|
|
2257
|
+
'BMfTzq',
|
|
2258
|
+
'mtq4mdDizvbqEfC',
|
|
2259
|
+
'ig1ZzZ0',
|
|
2260
|
+
'zgvJAxnPB25Z',
|
|
2261
|
+
'ls1Zzxj2zxiTDxjS',
|
|
2262
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1236
2263
|
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1237
|
-
'
|
|
1238
|
-
'
|
|
1239
|
-
'
|
|
1240
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
1241
|
-
'Dw5JBgfPBvrHC2S',
|
|
1242
|
-
'mZm5ndi1thnUrvvS',
|
|
1243
|
-
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1244
|
-
'yxjYyxLcDwzMzxi',
|
|
1245
|
-
'y2f0y2G',
|
|
1246
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1247
|
-
'vgfZAYa',
|
|
1248
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1249
|
-
'y2HHBM5LBhm',
|
|
1250
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1251
|
-
'A2LUza',
|
|
1252
|
-
'y29UDgvUDc10ExbL',
|
|
1253
|
-
'zg06',
|
|
1254
|
-
'DgfYz2v0',
|
|
1255
|
-
'zgfLBw9UqxbPs2v5',
|
|
1256
|
-
'DMLZAwjPBgL0Eq',
|
|
1257
|
-
'ywDLBNrjza',
|
|
1258
|
-
'CgfYDgLJAxbHBNq',
|
|
1259
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
1260
|
-
'DgfZAW',
|
|
1261
|
-
'l2nVBNrLBNq',
|
|
1262
|
-
'Axnoyu4',
|
|
1263
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1264
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1265
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
1266
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1267
|
-
'zgvZy3jPyMu',
|
|
1268
|
-
'Cgf5Bg9HzePZB24',
|
|
1269
|
-
'AgfZ',
|
|
1270
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1271
|
-
'zMLSzxnFy2HHBMDLza',
|
|
1272
|
-
'ihn0yxr1CZ0',
|
|
1273
|
-
'BM93',
|
|
1274
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1275
|
-
'Bwv0yq',
|
|
1276
|
-
'Dg9mB3DLCKnHC2u',
|
|
1277
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1278
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
1279
|
-
'ywDLBNq',
|
|
1280
|
-
'AhvTyw5Z',
|
|
1281
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1282
|
-
'z2v0u2vJB25KCW',
|
|
1283
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
2264
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
2265
|
+
'C3vTBwfYEq',
|
|
2266
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
1284
2267
|
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1285
|
-
'
|
|
1286
|
-
'
|
|
1287
|
-
'
|
|
1288
|
-
'
|
|
1289
|
-
'BgLTAxq',
|
|
1290
|
-
'C2HHmJu2',
|
|
1291
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
2268
|
+
'C3rVCe1HAw4',
|
|
2269
|
+
'AxnbyNnVBhv0zq',
|
|
2270
|
+
'y2HHBM5LBa',
|
|
2271
|
+
'BgLZDf90yxnRCW',
|
|
1292
2272
|
'yxr0ywnOBwvUDhm',
|
|
1293
|
-
'
|
|
1294
|
-
'
|
|
1295
|
-
'
|
|
1296
|
-
'
|
|
1297
|
-
'
|
|
1298
|
-
'
|
|
1299
|
-
'
|
|
1300
|
-
'
|
|
1301
|
-
'C29YDa',
|
|
1302
|
-
'lsba',
|
|
1303
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
1304
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
1305
|
-
'zw50CMLLCW',
|
|
1306
|
-
'xsba',
|
|
1307
|
-
'ignSywLTzwq',
|
|
1308
|
-
'BwfW',
|
|
1309
|
-
'lNnSB2nR',
|
|
1310
|
-
'y2XHAw0GzMfPBgvK',
|
|
1311
|
-
'Ahr0Chm6',
|
|
1312
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
1313
|
-
'y29UDgvUDa',
|
|
1314
|
-
'zw51Bq',
|
|
1315
|
-
'AxngAw5PDgu',
|
|
1316
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1317
|
-
'ChvIBgLJ',
|
|
1318
|
-
'ywjVCNrLza',
|
|
2273
|
+
'y2HLy2TnzxnZywDLCW',
|
|
2274
|
+
'iYmGu2vYDMvYoIa',
|
|
2275
|
+
'ywDLBNrZ',
|
|
2276
|
+
'DgHYzwfKswq',
|
|
2277
|
+
'C3rHCNrZv2L0Aa',
|
|
2278
|
+
'zgvSzxrL',
|
|
2279
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
2280
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1319
2281
|
'ihrPBwu9',
|
|
1320
|
-
'
|
|
1321
|
-
'
|
|
2282
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
2283
|
+
'BwvTyMvYCW',
|
|
2284
|
+
'DgfZAW',
|
|
2285
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
2286
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
2287
|
+
'zMLUza',
|
|
2288
|
+
'l3nLCNzLCG',
|
|
2289
|
+
'D2fPDgLUz19PBNb1Da',
|
|
2290
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
2291
|
+
'Dg9KBW',
|
|
2292
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
2293
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
2294
|
+
'B2jQzwn0',
|
|
2295
|
+
'C2L6zuj5DgvZ',
|
|
2296
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
2297
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
2298
|
+
'lsaJ',
|
|
2299
|
+
'C2vYDMvYtMfTzq',
|
|
2300
|
+
'iokaLca',
|
|
2301
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
2302
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1322
2303
|
'DgHYzwfKvgfYz2v0',
|
|
1323
|
-
'
|
|
1324
|
-
'
|
|
1325
|
-
'
|
|
1326
|
-
'
|
|
1327
|
-
'
|
|
1328
|
-
'
|
|
1329
|
-
'
|
|
1330
|
-
'
|
|
1331
|
-
'
|
|
1332
|
-
'
|
|
2304
|
+
'zg06',
|
|
2305
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
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',
|
|
1333
2321
|
'C2vX',
|
|
1334
|
-
'
|
|
1335
|
-
'lcbWCMv2Awv3pq',
|
|
1336
|
-
'zgf0yq',
|
|
1337
|
-
'ywjVCNq',
|
|
1338
|
-
'z2v0rgf0zq',
|
|
1339
|
-
'l3DVCMTLCNmVzMLUAxnO',
|
|
1340
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1341
|
-
'Dw5JBgfPBv90yxnR',
|
|
2322
|
+
'y2XHAw0GzMfPBgvK',
|
|
1342
2323
|
'BMv4Den1CNnVCG',
|
|
1343
|
-
'
|
|
1344
|
-
'
|
|
1345
|
-
'
|
|
1346
|
-
'
|
|
1347
|
-
'
|
|
1348
|
-
'
|
|
1349
|
-
'
|
|
1350
|
-
'
|
|
1351
|
-
'
|
|
1352
|
-
'
|
|
1353
|
-
'
|
|
1354
|
-
'
|
|
1355
|
-
'mZyWzvrMAKHg',
|
|
1356
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1357
|
-
'C2vUzf9TzxnZywDL',
|
|
1358
|
-
'C29Tzq',
|
|
1359
|
-
'C2vYDMvY',
|
|
1360
|
-
'zxH0BMfTzq',
|
|
1361
|
-
'ls1Hz2vUDc1Pza',
|
|
1362
|
-
'DgL0Bgu',
|
|
1363
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1364
|
-
'yMvMB3jL',
|
|
1365
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1366
|
-
'AxngAwXL',
|
|
1367
|
-
'AM9PBG',
|
|
1368
|
-
'C3vJy2vZCW',
|
|
1369
|
-
'yMfZzw5HBwu',
|
|
1370
|
-
'igLUia',
|
|
1371
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
1372
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1373
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
1374
|
-
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1375
|
-
'ig1LC3nHz2u9'
|
|
1376
|
-
];
|
|
1377
|
-
_0x334f = function () {
|
|
1378
|
-
return _0x31d7f2;
|
|
1379
|
-
};
|
|
1380
|
-
return _0x334f();
|
|
1381
|
-
}
|
|
1382
|
-
function formatAttachmentSuffix(_0x447779) {
|
|
1383
|
-
const _0x456b2b = { _0x4ced49: 0x311 }, _0x23225f = _0x387276;
|
|
1384
|
-
if (!_0x447779 || _0x447779['length'] === 0x0)
|
|
1385
|
-
return '';
|
|
1386
|
-
return '\x20[' + _0x447779['length'] + _0x23225f(_0x456b2b._0x4ced49) + (_0x447779['length'] > 0x1 ? 's' : '') + ':\x20' + _0x447779['map'](_0xb0ace0 => _0xb0ace0[_0x23225f(0x2d3)] + _0x23225f(0x1b5) + _0xb0ace0['id'] + ')')[_0x23225f(0x323)](',\x20') + _0x23225f(0x23d);
|
|
1387
|
-
}
|
|
1388
|
-
function formatCheckMessages(_0x3038a4) {
|
|
1389
|
-
const _0x2933ae = {
|
|
1390
|
-
_0x21954f: 0x2da,
|
|
1391
|
-
_0xfffbf2: 0x2bc
|
|
1392
|
-
}, _0x53250 = {
|
|
1393
|
-
_0x504471: 0x215,
|
|
1394
|
-
_0x14b712: 0x298,
|
|
1395
|
-
_0x5232a7: 0x2ed
|
|
1396
|
-
}, _0x36336f = _0x387276;
|
|
1397
|
-
if (_0x3038a4[_0x36336f(_0x2933ae._0x21954f)] === 0x0)
|
|
1398
|
-
return _0x36336f(_0x2933ae._0xfffbf2);
|
|
1399
|
-
return _0x3038a4['map'](_0x2c2c38 => {
|
|
1400
|
-
const _0x438971 = _0x36336f, _0x26e7f4 = _0x2c2c38['senderType'] === _0x438971(0x2cb) ? _0x438971(0x273) : '';
|
|
1401
|
-
return _0x438971(0x225) + _0x2c2c38['target'] + _0x438971(0x224) + _0x2c2c38[_0x438971(_0x53250._0x504471)][_0x438971(_0x53250._0x14b712)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x2c2c38[_0x438971(0x26f)]) + _0x26e7f4 + _0x438971(0x2e6) + _0x2c2c38['senderName'] + ':\x20' + _0x2c2c38[_0x438971(_0x53250._0x5232a7)] + formatAttachmentSuffix(_0x2c2c38['attachments']);
|
|
1402
|
-
})['join']('\x0a');
|
|
1403
|
-
}
|
|
1404
|
-
function formatHistory(_0x26cbc9) {
|
|
1405
|
-
const _0x2003e7 = {
|
|
1406
|
-
_0x226fac: 0x323,
|
|
1407
|
-
_0x3d9787: 0x2da,
|
|
1408
|
-
_0x3d56d8: 0x1c1,
|
|
1409
|
-
_0x9e2476: 0x2d9
|
|
1410
|
-
}, _0x21094d = {
|
|
1411
|
-
_0x3643b8: 0x273,
|
|
1412
|
-
_0x21aba5: 0x301,
|
|
1413
|
-
_0x17b5db: 0x215,
|
|
1414
|
-
_0x21eb2e: 0x1fa,
|
|
1415
|
-
_0x20e108: 0x2d8
|
|
1416
|
-
}, _0x4be7e0 = _0x387276;
|
|
1417
|
-
if (_0x26cbc9[_0x4be7e0(0x299)][_0x4be7e0(0x2da)] === 0x0)
|
|
1418
|
-
return _0x4be7e0(0x2f0) + _0x26cbc9[_0x4be7e0(0x1c1)] + _0x4be7e0(0x2bb);
|
|
1419
|
-
const _0x1b495b = _0x26cbc9[_0x4be7e0(0x299)][_0x4be7e0(0x2e8)](_0x49423a => {
|
|
1420
|
-
const _0x3385bd = _0x4be7e0, _0x123bef = _0x49423a[_0x3385bd(0x1d8)] === _0x3385bd(0x2cb) ? _0x3385bd(_0x21094d._0x3643b8) : '';
|
|
1421
|
-
return _0x3385bd(0x262) + _0x49423a[_0x3385bd(_0x21094d._0x21aba5)] + _0x3385bd(0x224) + _0x49423a[_0x3385bd(_0x21094d._0x17b5db)] + '\x20time=' + toLocalTime(_0x49423a[_0x3385bd(0x26f)]) + _0x123bef + ']\x20@' + _0x49423a[_0x3385bd(_0x21094d._0x21eb2e)] + ':\x20' + _0x49423a['content'] + formatAttachmentSuffix(_0x49423a[_0x3385bd(_0x21094d._0x20e108)]);
|
|
1422
|
-
})[_0x4be7e0(_0x2003e7._0x226fac)]('\x0a'), _0x100fd7 = _0x26cbc9[_0x4be7e0(0x1b9)] && _0x26cbc9[_0x4be7e0(0x30a)] ? '\x0a\x0a---\x20' + _0x26cbc9[_0x4be7e0(0x299)][_0x4be7e0(_0x2003e7._0x3d9787)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x26cbc9[_0x4be7e0(0x30a)] + _0x4be7e0(0x26b) : '';
|
|
1423
|
-
return _0x4be7e0(0x2f0) + _0x26cbc9[_0x4be7e0(_0x2003e7._0x3d56d8)] + '\x20(' + _0x26cbc9[_0x4be7e0(0x299)][_0x4be7e0(0x2da)] + _0x4be7e0(_0x2003e7._0x9e2476) + _0x1b495b + _0x100fd7;
|
|
1424
|
-
}
|
|
1425
|
-
function formatServerDirectory(_0x50c2a5) {
|
|
1426
|
-
const _0x498e98 = {
|
|
1427
|
-
_0x2c2f48: 0x2ad,
|
|
1428
|
-
_0xbdb852: 0x2e8,
|
|
1429
|
-
_0x3fddf1: 0x1a2,
|
|
1430
|
-
_0x15ea85: 0x277,
|
|
1431
|
-
_0x3e0a66: 0x2da,
|
|
1432
|
-
_0x1b85c5: 0x2cc,
|
|
1433
|
-
_0x28f1cf: 0x323,
|
|
1434
|
-
_0x686391: 0x1ee
|
|
1435
|
-
}, _0x3bc7ee = _0x387276, _0x11e4cd = _0x50c2a5[_0x3bc7ee(0x2ad)][_0x3bc7ee(0x2da)] > 0x0 ? _0x50c2a5[_0x3bc7ee(_0x498e98._0x2c2f48)][_0x3bc7ee(_0x498e98._0xbdb852)](_0x2532aa => _0x2532aa[_0x3bc7ee(0x1ca)] ? _0x3bc7ee(0x1a1) + _0x2532aa['name'] + _0x3bc7ee(0x217) + _0x2532aa[_0x3bc7ee(0x1ca)] : _0x3bc7ee(0x1a1) + _0x2532aa[_0x3bc7ee(0x227)])[_0x3bc7ee(0x323)]('\x0a') : _0x3bc7ee(_0x498e98._0x3fddf1), _0x10cf87 = _0x50c2a5[_0x3bc7ee(0x277)]['length'] > 0x0 ? _0x50c2a5[_0x3bc7ee(_0x498e98._0x15ea85)]['map'](_0x5865cb => _0x3bc7ee(0x2e2) + _0x5865cb[_0x3bc7ee(0x227)])['join']('\x0a') : _0x3bc7ee(0x1a2), _0xd37f02 = _0x50c2a5['humans'][_0x3bc7ee(_0x498e98._0x3e0a66)] > 0x0 ? _0x50c2a5[_0x3bc7ee(_0x498e98._0x1b85c5)][_0x3bc7ee(0x2e8)](_0x29b902 => _0x3bc7ee(0x2e2) + _0x29b902['name'])[_0x3bc7ee(_0x498e98._0x28f1cf)]('\x0a') : _0x3bc7ee(0x1a2);
|
|
1436
|
-
return [
|
|
1437
|
-
_0x3bc7ee(0x28d) + _0x50c2a5[_0x3bc7ee(0x28f)],
|
|
1438
|
-
'',
|
|
1439
|
-
'###\x20Channels',
|
|
1440
|
-
_0x11e4cd,
|
|
1441
|
-
'',
|
|
1442
|
-
_0x3bc7ee(_0x498e98._0x686391),
|
|
1443
|
-
_0x10cf87,
|
|
1444
|
-
'',
|
|
1445
|
-
'###\x20Humans',
|
|
1446
|
-
_0xd37f02
|
|
1447
|
-
][_0x3bc7ee(0x323)]('\x0a');
|
|
1448
|
-
}
|
|
1449
|
-
function formatUploadResult(_0x3719ed) {
|
|
1450
|
-
const _0x2f52f6 = {
|
|
1451
|
-
_0x1c89b8: 0x21a,
|
|
1452
|
-
_0x863ce8: 0x1ec,
|
|
1453
|
-
_0x2a2b4b: 0x1e8
|
|
1454
|
-
}, _0x129e91 = _0x387276;
|
|
1455
|
-
return _0x129e91(0x327) + _0x3719ed['filename'] + '\x20(' + (_0x3719ed[_0x129e91(_0x2f52f6._0x1c89b8)] / 0x400)[_0x129e91(_0x2f52f6._0x863ce8)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x3719ed[_0x129e91(_0x2f52f6._0x2a2b4b)] + _0x129e91(0x1f6);
|
|
1456
|
-
}
|
|
1457
|
-
function formatViewFileResult(_0x15c7fc, _0x91e774) {
|
|
1458
|
-
const _0x4dc31a = _0x387276;
|
|
1459
|
-
return _0x91e774 ? _0x4dc31a(0x1a6) + _0x15c7fc : _0x4dc31a(0x208) + _0x15c7fc;
|
|
1460
|
-
}
|
|
1461
|
-
function formatTaskList(_0x21cf77, _0x2facc3) {
|
|
1462
|
-
const _0x1d0d43 = { _0x168535: 0x323 }, _0x49d045 = {
|
|
1463
|
-
_0xe03b50: 0x20a,
|
|
1464
|
-
_0x1d7890: 0x2c1
|
|
1465
|
-
}, _0x39d524 = _0x387276;
|
|
1466
|
-
if (_0x21cf77['length'] === 0x0)
|
|
1467
|
-
return _0x39d524(0x2bd);
|
|
1468
|
-
return _0x21cf77[_0x39d524(0x2e8)](_0x42808f => {
|
|
1469
|
-
const _0x3cc363 = _0x39d524, _0x33a3c3 = _0x42808f[_0x3cc363(0x20a)] == null ? _0x3cc363(0x1cb) : '#' + _0x42808f['taskNumber'], _0x241b03 = _0x42808f['messageId'] ? _0x3cc363(0x32b) + _0x42808f['messageId'] : '', _0x231576 = _0x2facc3 && _0x42808f[_0x3cc363(_0x49d045._0xe03b50)] != null && _0x2facc3[_0x3cc363(_0x49d045._0x1d7890)](_0x42808f[_0x3cc363(0x20a)]) ? _0x3cc363(0x1b1) : '';
|
|
1470
|
-
return _0x33a3c3 + '\x20[' + _0x42808f[_0x3cc363(0x246)] + ']\x20' + _0x42808f['title'] + _0x241b03 + _0x231576;
|
|
1471
|
-
})[_0x39d524(_0x1d0d43._0x168535)]('\x0a');
|
|
1472
|
-
}
|
|
1473
|
-
function formatCreatedTasks(_0x51c7cc) {
|
|
1474
|
-
const _0x5b519e = {
|
|
1475
|
-
_0x931197: 0x20a,
|
|
1476
|
-
_0x282400: 0x31e
|
|
1477
|
-
}, _0x23a919 = _0x387276;
|
|
1478
|
-
if (_0x51c7cc['length'] === 0x0)
|
|
1479
|
-
return _0x23a919(0x318);
|
|
1480
|
-
return _0x51c7cc[_0x23a919(0x2e8)](_0x27020d => {
|
|
1481
|
-
const _0x1efc1a = _0x23a919, _0x3cc32b = _0x27020d[_0x1efc1a(0x20a)] == null ? _0x1efc1a(0x1cb) : '#' + _0x27020d[_0x1efc1a(_0x5b519e._0x931197)];
|
|
1482
|
-
return _0x3cc32b + '\x20' + _0x27020d[_0x1efc1a(_0x5b519e._0x282400)] + _0x1efc1a(0x32b) + _0x27020d[_0x1efc1a(0x215)];
|
|
1483
|
-
})[_0x23a919(0x323)]('\x0a');
|
|
1484
|
-
}
|
|
1485
|
-
function formatClaimTaskResults(_0x3931d3) {
|
|
1486
|
-
const _0x2c422e = {
|
|
1487
|
-
_0x1bbbd1: 0x1f9,
|
|
1488
|
-
_0x1b42a4: 0x323
|
|
1489
|
-
}, _0x4ff339 = {
|
|
1490
|
-
_0xa90ab3: 0x1cb,
|
|
1491
|
-
_0x2f8fc1: 0x20a,
|
|
1492
|
-
_0x40b28b: 0x215,
|
|
1493
|
-
_0x57b3b8: 0x32b,
|
|
1494
|
-
_0x39ad9e: 0x215,
|
|
1495
|
-
_0x86b690: 0x1a0,
|
|
1496
|
-
_0x5cffc5: 0x26d,
|
|
1497
|
-
_0x42ba57: 0x1ed,
|
|
1498
|
-
_0x2e19bb: 0x1bb,
|
|
1499
|
-
_0x56fe4c: 0x284,
|
|
1500
|
-
_0x3f9007: 0x2e7,
|
|
1501
|
-
_0x4c4053: 0x215,
|
|
1502
|
-
_0x3636d0: 0x2ea
|
|
1503
|
-
}, _0x3c99d2 = _0x387276;
|
|
1504
|
-
if (_0x3931d3['length'] === 0x0)
|
|
1505
|
-
return _0x3c99d2(_0x2c422e._0x1bbbd1);
|
|
1506
|
-
return _0x3931d3['map'](_0x1658fb => {
|
|
1507
|
-
const _0x428eb8 = _0x3c99d2;
|
|
1508
|
-
if (_0x1658fb[_0x428eb8(0x324)]) {
|
|
1509
|
-
const _0x1f1c2c = _0x1658fb[_0x428eb8(0x20a)] == null ? _0x428eb8(_0x4ff339._0xa90ab3) : '#' + _0x1658fb[_0x428eb8(_0x4ff339._0x2f8fc1)], _0x480df4 = _0x1658fb[_0x428eb8(_0x4ff339._0x40b28b)] ? _0x428eb8(_0x4ff339._0x57b3b8) + _0x1658fb[_0x428eb8(_0x4ff339._0x39ad9e)] : '';
|
|
1510
|
-
if (_0x1658fb[_0x428eb8(0x288)]) {
|
|
1511
|
-
const _0x3e2312 = [
|
|
1512
|
-
'workerHandoff=true',
|
|
1513
|
-
_0x1658fb[_0x428eb8(0x1ef)] ? _0x428eb8(_0x4ff339._0x86b690) : null,
|
|
1514
|
-
_0x1658fb['executionMode'] ? _0x428eb8(0x1ac) + _0x1658fb[_0x428eb8(0x278)] : null,
|
|
1515
|
-
_0x1658fb[_0x428eb8(0x2f6)] ? _0x428eb8(0x23e) + _0x1658fb['threadTarget'] : null,
|
|
1516
|
-
_0x1658fb[_0x428eb8(_0x4ff339._0x5cffc5)] ? _0x428eb8(0x2be) + _0x1658fb['workerDisposition'] : null
|
|
1517
|
-
][_0x428eb8(_0x4ff339._0x42ba57)](Boolean)['join']('\x20');
|
|
1518
|
-
return _0x1f1c2c + _0x428eb8(0x2e7) + _0x480df4 + '\x20' + _0x3e2312 + _0x428eb8(0x321);
|
|
1519
|
-
}
|
|
1520
|
-
const _0x3a07c6 = _0x1658fb[_0x428eb8(_0x4ff339._0x2e19bb)] ? _0x428eb8(_0x4ff339._0x56fe4c) + _0x1658fb['workerHandoffError'] : '';
|
|
1521
|
-
return _0x1f1c2c + _0x428eb8(_0x4ff339._0x3f9007) + _0x480df4 + _0x3a07c6;
|
|
1522
|
-
}
|
|
1523
|
-
const _0x2bc2dd = _0x1658fb[_0x428eb8(0x20a)] == null ? _0x1658fb[_0x428eb8(_0x4ff339._0x4c4053)] ?? _0x428eb8(0x218) : '#' + _0x1658fb[_0x428eb8(0x20a)];
|
|
1524
|
-
return _0x2bc2dd + _0x428eb8(0x279) + (_0x1658fb['reason'] ?? _0x428eb8(_0x4ff339._0x3636d0));
|
|
1525
|
-
})[_0x3c99d2(_0x2c422e._0x1b42a4)]('\x0a');
|
|
1526
|
-
}
|
|
1527
|
-
function formatUnclaimTaskResult(_0x12dc11) {
|
|
1528
|
-
const _0x3c738a = { _0x71bfb6: 0x2c4 }, _0x5136f9 = _0x387276, _0x34fc23 = _0x12dc11[_0x5136f9(0x20a)] == null ? _0x5136f9(0x1cb) : '#' + _0x12dc11[_0x5136f9(0x20a)];
|
|
1529
|
-
return _0x34fc23 + _0x5136f9(_0x3c738a._0x71bfb6) + _0x12dc11[_0x5136f9(0x246)];
|
|
1530
|
-
}
|
|
1531
|
-
function formatUpdateTaskStatusResult(_0x222db5) {
|
|
1532
|
-
const _0x280d0c = {
|
|
1533
|
-
_0xfdad75: 0x1cb,
|
|
1534
|
-
_0x162c83: 0x20a,
|
|
1535
|
-
_0x141880: 0x246
|
|
1536
|
-
}, _0xff3d5 = _0x387276, _0x27e5e3 = _0x222db5[_0xff3d5(0x20a)] == null ? _0xff3d5(_0x280d0c._0xfdad75) : '#' + _0x222db5[_0xff3d5(_0x280d0c._0x162c83)];
|
|
1537
|
-
return _0x27e5e3 + '\x20status=' + _0x222db5[_0xff3d5(_0x280d0c._0x141880)];
|
|
1538
|
-
}
|
|
1539
|
-
function getChatBridgeToolDefinitions() {
|
|
1540
|
-
const _0x30b89b = {
|
|
1541
|
-
_0x152b73: 0x2b7,
|
|
1542
|
-
_0x15882c: 0x302,
|
|
1543
|
-
_0x472134: 0x1b0,
|
|
1544
|
-
_0x2f19c1: 0x247,
|
|
1545
|
-
_0x528b83: 0x1d3,
|
|
1546
|
-
_0x239ad6: 0x2cd
|
|
1547
|
-
}, _0x1eadf7 = _0x387276;
|
|
1548
|
-
return [
|
|
1549
|
-
{ 'name': 'send_message' },
|
|
1550
|
-
{ 'name': _0x1eadf7(_0x30b89b._0x152b73) },
|
|
1551
|
-
{ 'name': _0x1eadf7(_0x30b89b._0x15882c) },
|
|
1552
|
-
{ 'name': 'list_server' },
|
|
1553
|
-
{ 'name': _0x1eadf7(0x252) },
|
|
1554
|
-
{ 'name': _0x1eadf7(0x1f4) },
|
|
1555
|
-
{ 'name': _0x1eadf7(_0x30b89b._0x472134) },
|
|
1556
|
-
{ 'name': _0x1eadf7(_0x30b89b._0x2f19c1) },
|
|
1557
|
-
{ 'name': _0x1eadf7(0x294) },
|
|
1558
|
-
{ 'name': 'unclaim_task' },
|
|
1559
|
-
{ 'name': _0x1eadf7(_0x30b89b._0x528b83) },
|
|
1560
|
-
{ 'name': _0x1eadf7(_0x30b89b._0x239ad6) },
|
|
1561
|
-
{ 'name': 'get_worker_result' },
|
|
1562
|
-
{ 'name': _0x1eadf7(0x266) },
|
|
1563
|
-
{ 'name': _0x1eadf7(0x30f) },
|
|
1564
|
-
{ 'name': _0x1eadf7(0x1aa) }
|
|
2324
|
+
'C2HHmJu2',
|
|
2325
|
+
'mta5mdq5mZfTDLHct3q',
|
|
2326
|
+
'y3jLyxrLvgfZA3m',
|
|
2327
|
+
'zw51Bq',
|
|
2328
|
+
'w3rHCMDLDd0',
|
|
2329
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
2330
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
2331
|
+
'ndG2nta2m3PQAvneyW',
|
|
2332
|
+
'C3rHCNrLza',
|
|
2333
|
+
'ls1ZzxnZAw9UlwLK',
|
|
2334
|
+
'zMLSzw5HBwu',
|
|
2335
|
+
'tM8GBMv3ig1LC3nHz2vZlG'
|
|
1565
2336
|
];
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
const _0x54a05 = { _0x5f981c: 0x314 }, _0x1fadef = {
|
|
1569
|
-
_0x42cb52: 0x28a,
|
|
1570
|
-
_0x13cbfa: 0x223,
|
|
1571
|
-
_0x36f305: 0x315,
|
|
1572
|
-
_0x15b3d1: 0x219
|
|
1573
|
-
}, _0x2006c9 = {
|
|
1574
|
-
_0x144745: 0x2b5,
|
|
1575
|
-
_0x8dfcb5: 0x259
|
|
1576
|
-
}, _0x3fe709 = {
|
|
1577
|
-
_0x28ac9d: 0x328,
|
|
1578
|
-
_0x373594: 0x307,
|
|
1579
|
-
_0x2a6bdd: 0x1b2,
|
|
1580
|
-
_0x10a20e: 0x203
|
|
1581
|
-
}, _0x1b2a4d = {
|
|
1582
|
-
_0x5e24c3: 0x328,
|
|
1583
|
-
_0x1a15d3: 0x28a,
|
|
1584
|
-
_0x2d80ab: 0x23c
|
|
1585
|
-
}, _0x57f7c7 = {
|
|
1586
|
-
_0x16ceed: 0x28a,
|
|
1587
|
-
_0x50ef93: 0x2f8,
|
|
1588
|
-
_0x3a8810: 0x259,
|
|
1589
|
-
_0x5515d2: 0x1b4,
|
|
1590
|
-
_0x27b7f6: 0x239,
|
|
1591
|
-
_0x5d99b3: 0x246
|
|
1592
|
-
}, _0x3e8db2 = {
|
|
1593
|
-
_0x4af242: 0x2de,
|
|
1594
|
-
_0x5e9b88: 0x2db,
|
|
1595
|
-
_0x785fb1: 0x1f8,
|
|
1596
|
-
_0x1cd17e: 0x1a8,
|
|
1597
|
-
_0x2c114c: 0x30e
|
|
1598
|
-
}, _0x2b123d = {
|
|
1599
|
-
_0xd5e1cc: 0x25d,
|
|
1600
|
-
_0x5ad371: 0x1bf,
|
|
1601
|
-
_0xe90be9: 0x1a3
|
|
1602
|
-
}, _0x486cd9 = { _0xfcede2: 0x20b }, _0x5b2603 = { _0x121dcc: 0x1e3 }, _0x3d025c = {
|
|
1603
|
-
_0x5dc067: 0x324,
|
|
1604
|
-
_0x67500: 0x1c1,
|
|
1605
|
-
_0x194979: 0x215,
|
|
1606
|
-
_0x3cdecd: 0x29a,
|
|
1607
|
-
_0x4e916e: 0x231
|
|
1608
|
-
}, _0x51e549 = { _0x385327: 0x1ad }, _0x1cea89 = {
|
|
1609
|
-
_0x5aea71: 0x1bf,
|
|
1610
|
-
_0x26f1c3: 0x1fb,
|
|
1611
|
-
_0x196079: 0x2b5,
|
|
1612
|
-
_0xf1769b: 0x1cf,
|
|
1613
|
-
_0x48b105: 0x281
|
|
1614
|
-
}, _0x4911f3 = { _0x3c9b46: 0x1bf }, _0x45f09a = { _0x539743: 0x26e }, _0x4b45ce = {
|
|
1615
|
-
_0x8888ad: 0x32c,
|
|
1616
|
-
_0x9912ad: 0x1bf,
|
|
1617
|
-
_0x1b7fbb: 0x296,
|
|
1618
|
-
_0x49b47b: 0x2b2,
|
|
1619
|
-
_0x4cf701: 0x2b8,
|
|
1620
|
-
_0x146599: 0x263,
|
|
1621
|
-
_0x582f19: 0x2b2,
|
|
1622
|
-
_0x1018db: 0x244,
|
|
1623
|
-
_0x256765: 0x2ab,
|
|
1624
|
-
_0x2ab92e: 0x200,
|
|
1625
|
-
_0x36a19c: 0x310,
|
|
1626
|
-
_0x390968: 0x2b8,
|
|
1627
|
-
_0x526a06: 0x1d7,
|
|
1628
|
-
_0x36d732: 0x271,
|
|
1629
|
-
_0x3d0799: 0x323,
|
|
1630
|
-
_0x4b3db1: 0x251,
|
|
1631
|
-
_0x1d5615: 0x255,
|
|
1632
|
-
_0x52a855: 0x27d,
|
|
1633
|
-
_0x39af92: 0x326,
|
|
1634
|
-
_0x53e380: 0x2a7,
|
|
1635
|
-
_0x4f305d: 0x285,
|
|
1636
|
-
_0x1d96cc: 0x258,
|
|
1637
|
-
_0x3e8a77: 0x2b4,
|
|
1638
|
-
_0x1b9501: 0x269,
|
|
1639
|
-
_0x45ab72: 0x215
|
|
1640
|
-
}, _0x21dcc5 = {
|
|
1641
|
-
_0x36b2e8: 0x28a,
|
|
1642
|
-
_0x4a4e5b: 0x1b8,
|
|
1643
|
-
_0x2917d6: 0x2b5,
|
|
1644
|
-
_0x43999a: 0x246
|
|
1645
|
-
}, _0x14ba28 = {
|
|
1646
|
-
_0x2f6d72: 0x2b5,
|
|
1647
|
-
_0x3813ff: 0x1e5,
|
|
1648
|
-
_0x105494: 0x246
|
|
1649
|
-
}, _0x31fd5d = {
|
|
1650
|
-
_0x41c9d3: 0x2b5,
|
|
1651
|
-
_0x49afe9: 0x1c1,
|
|
1652
|
-
_0x4f2734: 0x264,
|
|
1653
|
-
_0x1fe00d: 0x263,
|
|
1654
|
-
_0x31c1f6: 0x264,
|
|
1655
|
-
_0x3a0d56: 0x1bd,
|
|
1656
|
-
_0x1d2b8f: 0x20a,
|
|
1657
|
-
_0x563416: 0x225,
|
|
1658
|
-
_0x75ebf4: 0x224,
|
|
1659
|
-
_0x3a1803: 0x215,
|
|
1660
|
-
_0x21abe2: 0x2dd,
|
|
1661
|
-
_0x3990e2: 0x2ed,
|
|
1662
|
-
_0x177e6f: 0x1d7,
|
|
1663
|
-
_0x3a2402: 0x1de,
|
|
1664
|
-
_0x2b4c36: 0x323,
|
|
1665
|
-
_0x144cdb: 0x274,
|
|
1666
|
-
_0x4cb115: 0x223,
|
|
1667
|
-
_0x5134b2: 0x265,
|
|
1668
|
-
_0x1ed121: 0x251,
|
|
1669
|
-
_0xefb83c: 0x20a,
|
|
1670
|
-
_0x43d476: 0x315,
|
|
1671
|
-
_0x2b93e1: 0x255,
|
|
1672
|
-
_0x20ac12: 0x285,
|
|
1673
|
-
_0x156ae5: 0x24c,
|
|
1674
|
-
_0x55a91b: 0x1a4,
|
|
1675
|
-
_0x15c260: 0x27a
|
|
1676
|
-
}, _0x22ff22 = _0x387276;
|
|
1677
|
-
async function _0x3fbce3(_0x472a4d) {
|
|
1678
|
-
const _0x8a599b = _0x2a13;
|
|
1679
|
-
if (!_0xc69eef[_0x8a599b(0x28a)] || !_0xc69eef[_0x8a599b(_0x31fd5d._0x41c9d3)] || _0xc69eef[_0x8a599b(0x1bc)] || _0xc69eef['workerModeEnabled'] !== !![])
|
|
1680
|
-
return null;
|
|
1681
|
-
const _0x884870 = parseTarget(_0x472a4d['channel']);
|
|
1682
|
-
if (_0x884870[_0x8a599b(0x2af)] !== _0x8a599b(_0x31fd5d._0x49afe9))
|
|
1683
|
-
return null;
|
|
1684
|
-
const _0x4dba44 = _0x472a4d[_0x8a599b(0x263)] != null ? _0x884870[_0x8a599b(_0x31fd5d._0x4f2734)] + ':t' + _0x472a4d[_0x8a599b(_0x31fd5d._0x1fe00d)] : _0x884870[_0x8a599b(_0x31fd5d._0x31c1f6)] + ':' + _0x472a4d['messageId'];
|
|
1685
|
-
let _0x5ec620;
|
|
1686
|
-
try {
|
|
1687
|
-
const _0x57e1d4 = await _0xc69eef['client']['readHistory']({
|
|
1688
|
-
'channel': _0x4dba44,
|
|
1689
|
-
'limit': 0x14
|
|
1690
|
-
});
|
|
1691
|
-
_0x5ec620 = _0x57e1d4['messages'][_0x8a599b(_0x31fd5d._0x3a0d56)](_0x1f985c => _0x1f985c[_0x8a599b(0x215)] === _0x472a4d[_0x8a599b(0x215)]);
|
|
1692
|
-
} catch {
|
|
1693
|
-
_0x5ec620 = void 0x0;
|
|
1694
|
-
}
|
|
1695
|
-
const _0x260dcf = _0x472a4d[_0x8a599b(_0x31fd5d._0x1d2b8f)] == null ? '(legacy)' : '#' + _0x472a4d[_0x8a599b(0x20a)], _0x5b4c17 = [
|
|
1696
|
-
_0x8a599b(_0x31fd5d._0x563416) + _0x4dba44 + _0x8a599b(_0x31fd5d._0x75ebf4) + _0x472a4d[_0x8a599b(_0x31fd5d._0x3a1803)][_0x8a599b(0x298)](0x0, 0x8) + _0x8a599b(0x2f3) + new Date()[_0x8a599b(_0x31fd5d._0x21abe2)]() + _0x8a599b(0x276) + _0x260dcf + _0x8a599b(0x27c),
|
|
1697
|
-
'',
|
|
1698
|
-
_0x5ec620 ? 'Root\x20task\x20message:\x0a' + _0x5ec620[_0x8a599b(_0x31fd5d._0x3990e2)] : 'Root\x20task\x20message\x20id:\x20' + _0x472a4d[_0x8a599b(0x215)],
|
|
1699
|
-
'',
|
|
1700
|
-
_0x8a599b(_0x31fd5d._0x177e6f) + _0x4dba44,
|
|
1701
|
-
_0x8a599b(_0x31fd5d._0x3a2402)
|
|
1702
|
-
][_0x8a599b(_0x31fd5d._0x2b4c36)]('\x0a'), _0x1cb9f1 = await fetch(_0xc69eef['daemonLocalUrl'] + _0x8a599b(_0x31fd5d._0x144cdb), {
|
|
1703
|
-
'method': _0x8a599b(_0x31fd5d._0x4cb115),
|
|
1704
|
-
'headers': { 'Content-Type': _0x8a599b(0x202) },
|
|
1705
|
-
'body': JSON[_0x8a599b(_0x31fd5d._0x5134b2)]({
|
|
1706
|
-
'agent_id': _0xc69eef[_0x8a599b(0x2b5)],
|
|
1707
|
-
'thread_target': _0x4dba44,
|
|
1708
|
-
'spawn_packet': {
|
|
1709
|
-
'replyTarget': _0x4dba44,
|
|
1710
|
-
..._0x472a4d[_0x8a599b(0x251)] ? { 'taskId': _0x472a4d[_0x8a599b(_0x31fd5d._0x1ed121)] } : _0x472a4d[_0x8a599b(_0x31fd5d._0xefb83c)] != null ? { 'taskId': _0x8a599b(0x210) + _0x472a4d[_0x8a599b(0x20a)] } : {}
|
|
1711
|
-
},
|
|
1712
|
-
'payload': {
|
|
1713
|
-
'mode': 'user',
|
|
1714
|
-
'text': _0x5b4c17
|
|
1715
|
-
}
|
|
1716
|
-
})
|
|
1717
|
-
}), _0x48681d = await _0x1cb9f1[_0x8a599b(_0x31fd5d._0x43d476)]();
|
|
1718
|
-
if (!_0x48681d['ok'])
|
|
1719
|
-
throw new Error(_0x48681d[_0x8a599b(_0x31fd5d._0x2b93e1)] ?? 'worker\x20handoff\x20failed');
|
|
1720
|
-
return {
|
|
1721
|
-
'stopMain': !![],
|
|
1722
|
-
'threadTarget': _0x4dba44,
|
|
1723
|
-
'workerDisposition': _0x48681d['disposition'] === _0x8a599b(0x285) ? _0x8a599b(_0x31fd5d._0x20ac12) : _0x8a599b(_0x31fd5d._0x156ae5),
|
|
1724
|
-
'workerHandoff': !![],
|
|
1725
|
-
'workerSessionId': _0x48681d[_0x8a599b(_0x31fd5d._0x55a91b)] ?? '',
|
|
1726
|
-
'executionMode': _0x8a599b(_0x31fd5d._0x15c260)
|
|
1727
|
-
};
|
|
1728
|
-
}
|
|
1729
|
-
async function _0x2112b9() {
|
|
1730
|
-
const _0x362aaf = _0x2a13;
|
|
1731
|
-
if (!_0xc69eef[_0x362aaf(0x28a)] || !_0xc69eef[_0x362aaf(_0x14ba28._0x2f6d72)] || _0xc69eef[_0x362aaf(0x1bc)])
|
|
1732
|
-
return null;
|
|
1733
|
-
try {
|
|
1734
|
-
const _0x28fd66 = await fetch(_0xc69eef[_0x362aaf(0x28a)] + _0x362aaf(0x1b8) + encodeURIComponent(_0xc69eef['agentId'])), _0x564ced = await _0x28fd66[_0x362aaf(0x315)]();
|
|
1735
|
-
if (!_0x564ced['ok'])
|
|
1736
|
-
return null;
|
|
1737
|
-
const _0x5ea43b = new Set();
|
|
1738
|
-
for (const _0x4363d9 of _0x564ced[_0x362aaf(_0x14ba28._0x3813ff)]) {
|
|
1739
|
-
_0x4363d9[_0x362aaf(_0x14ba28._0x105494)] !== _0x362aaf(0x24a) && _0x4363d9['thread_target'] && _0x5ea43b['add'](_0x4363d9['thread_target']);
|
|
1740
|
-
}
|
|
1741
|
-
return _0x5ea43b['size'] > 0x0 ? _0x5ea43b : null;
|
|
1742
|
-
} catch {
|
|
1743
|
-
return null;
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
|
-
const _0x333c3c = new Set([
|
|
1747
|
-
_0x22ff22(_0x54a05._0x5f981c),
|
|
1748
|
-
'idle',
|
|
1749
|
-
'waiting_input'
|
|
1750
|
-
]);
|
|
1751
|
-
async function _0x569217() {
|
|
1752
|
-
const _0x328a78 = _0x22ff22;
|
|
1753
|
-
if (!_0xc69eef[_0x328a78(_0x21dcc5._0x36b2e8)] || !_0xc69eef[_0x328a78(0x2b5)] || _0xc69eef[_0x328a78(0x1bc)])
|
|
1754
|
-
return null;
|
|
1755
|
-
try {
|
|
1756
|
-
const _0x5251cc = await fetch(_0xc69eef[_0x328a78(0x28a)] + _0x328a78(_0x21dcc5._0x4a4e5b) + encodeURIComponent(_0xc69eef[_0x328a78(_0x21dcc5._0x2917d6)])), _0x406525 = await _0x5251cc[_0x328a78(0x315)]();
|
|
1757
|
-
if (!_0x406525['ok'])
|
|
1758
|
-
return null;
|
|
1759
|
-
const _0x53e032 = new Set();
|
|
1760
|
-
for (const _0x51df9a of _0x406525['workers']) {
|
|
1761
|
-
_0x333c3c['has'](_0x51df9a[_0x328a78(_0x21dcc5._0x43999a)]) && _0x51df9a[_0x328a78(0x1cf)] && _0x53e032[_0x328a78(0x281)](_0x51df9a['thread_target']);
|
|
1762
|
-
}
|
|
1763
|
-
return _0x53e032[_0x328a78(0x1ab)] > 0x0 ? _0x53e032 : null;
|
|
1764
|
-
} catch {
|
|
1765
|
-
return null;
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
return {
|
|
1769
|
-
async 'send_message'(_0xeec4fc) {
|
|
1770
|
-
const _0x13cfe9 = _0x22ff22;
|
|
1771
|
-
if (!_0xc69eef['workerMode'] && _0xc69eef[_0x13cfe9(_0x4b45ce._0x8888ad)] && _0xc69eef[_0x13cfe9(0x28a)] && _0xc69eef['agentId']) {
|
|
1772
|
-
const _0x1e753c = await _0xc69eef[_0x13cfe9(_0x4b45ce._0x9912ad)][_0x13cfe9(_0x4b45ce._0x1b7fbb)](_0xeec4fc[_0x13cfe9(_0x4b45ce._0x49b47b)]);
|
|
1773
|
-
if (_0x1e753c[_0x13cfe9(0x2b8)] && _0x1e753c[_0x13cfe9(0x244)]) {
|
|
1774
|
-
const _0x1914e9 = _0x1e753c['task']['taskNumber'] != null ? '#' + _0x1e753c[_0x13cfe9(_0x4b45ce._0x4cf701)]['taskNumber'] : _0x13cfe9(0x1cb), _0x509974 = _0x1e753c[_0x13cfe9(_0x4b45ce._0x146599)] != null ? _0x1e753c[_0x13cfe9(_0x4b45ce._0x49b47b)] + ':t' + _0x1e753c[_0x13cfe9(0x263)] : _0x1e753c[_0x13cfe9(_0x4b45ce._0x582f19)] + ':' + _0x1e753c[_0x13cfe9(_0x4b45ce._0x1018db)][_0x13cfe9(0x298)](0x0, 0x8), _0x1d0a0d = await _0x569217();
|
|
1775
|
-
if (_0x1d0a0d?.[_0x13cfe9(0x2c1)](_0x509974))
|
|
1776
|
-
return [
|
|
1777
|
-
_0x13cfe9(_0x4b45ce._0x256765) + _0x1914e9 + _0x13cfe9(0x326) + _0x509974 + _0x13cfe9(0x214),
|
|
1778
|
-
_0x13cfe9(_0x4b45ce._0x2ab92e)
|
|
1779
|
-
][_0x13cfe9(0x323)]('\x0a');
|
|
1780
|
-
const _0x33cf2e = [
|
|
1781
|
-
_0x13cfe9(0x225) + _0x509974 + '\x20msg=handoff\x20time=' + new Date()[_0x13cfe9(0x2dd)]() + _0x13cfe9(_0x4b45ce._0x36a19c),
|
|
1782
|
-
'',
|
|
1783
|
-
_0x13cfe9(0x308) + _0xeec4fc[_0x13cfe9(0x2ed)],
|
|
1784
|
-
'Task:\x20' + _0x1914e9 + '\x20(' + _0x1e753c[_0x13cfe9(_0x4b45ce._0x390968)]['taskId'] + ')',
|
|
1785
|
-
_0x13cfe9(_0x4b45ce._0x526a06) + _0x509974,
|
|
1786
|
-
_0x13cfe9(_0x4b45ce._0x36d732)
|
|
1787
|
-
][_0x13cfe9(_0x4b45ce._0x3d0799)]('\x0a'), _0x2d7c53 = await fetch(_0xc69eef[_0x13cfe9(0x28a)] + _0x13cfe9(0x274), {
|
|
1788
|
-
'method': _0x13cfe9(0x223),
|
|
1789
|
-
'headers': { 'Content-Type': _0x13cfe9(0x202) },
|
|
1790
|
-
'body': JSON['stringify']({
|
|
1791
|
-
'agent_id': _0xc69eef[_0x13cfe9(0x2b5)],
|
|
1792
|
-
'thread_target': _0x509974,
|
|
1793
|
-
'spawn_packet': {
|
|
1794
|
-
'replyTarget': _0x509974,
|
|
1795
|
-
'taskId': _0x1e753c['task'][_0x13cfe9(_0x4b45ce._0x4b3db1)]
|
|
1796
|
-
},
|
|
1797
|
-
'payload': {
|
|
1798
|
-
'mode': _0x13cfe9(0x2ff),
|
|
1799
|
-
'text': _0x33cf2e
|
|
1800
|
-
}
|
|
1801
|
-
})
|
|
1802
|
-
}), _0x12e18e = await _0x2d7c53['json']();
|
|
1803
|
-
if (!_0x12e18e['ok'])
|
|
1804
|
-
throw new Error(_0x12e18e[_0x13cfe9(_0x4b45ce._0x1d5615)] ?? 'enter-handoff\x20failed');
|
|
1805
|
-
return [
|
|
1806
|
-
_0x13cfe9(_0x4b45ce._0x52a855) + _0x1914e9 + _0x13cfe9(_0x4b45ce._0x39af92) + _0x509974 + _0x13cfe9(_0x4b45ce._0x53e380),
|
|
1807
|
-
'Worker\x20' + (_0x12e18e[_0x13cfe9(0x1c7)] === _0x13cfe9(_0x4b45ce._0x4f305d) ? _0x13cfe9(0x285) : 'started') + '.',
|
|
1808
|
-
_0x13cfe9(_0x4b45ce._0x1d96cc)
|
|
1809
|
-
]['join']('\x0a');
|
|
1810
|
-
}
|
|
1811
|
-
}
|
|
1812
|
-
const _0x5155dd = await _0xc69eef[_0x13cfe9(0x1bf)][_0x13cfe9(0x313)]({
|
|
1813
|
-
'attachmentIds': _0xeec4fc[_0x13cfe9(0x2a1)],
|
|
1814
|
-
'content': _0xeec4fc['content'],
|
|
1815
|
-
'target': _0xeec4fc['target'],
|
|
1816
|
-
'visibility': _0xeec4fc[_0x13cfe9(_0x4b45ce._0x3e8a77)]
|
|
1817
|
-
});
|
|
1818
|
-
return _0x13cfe9(0x29b) + _0xeec4fc[_0x13cfe9(0x2b2)] + _0x13cfe9(_0x4b45ce._0x1b9501) + _0x5155dd[_0x13cfe9(_0x4b45ce._0x45ab72)];
|
|
1819
|
-
},
|
|
1820
|
-
async 'check_messages'() {
|
|
1821
|
-
const _0x2ab6d7 = _0x22ff22, _0x4d84f8 = await _0xc69eef[_0x2ab6d7(0x1bf)][_0x2ab6d7(_0x45f09a._0x539743)]();
|
|
1822
|
-
if (!_0xc69eef['workerMode']) {
|
|
1823
|
-
const _0x12b8bb = await _0x2112b9();
|
|
1824
|
-
if (_0x12b8bb)
|
|
1825
|
-
return formatCheckMessages(_0x4d84f8[_0x2ab6d7(0x299)][_0x2ab6d7(0x1ed)](_0x37d04a => !_0x12b8bb[_0x2ab6d7(0x2c1)](_0x37d04a[_0x2ab6d7(0x2b2)])));
|
|
1826
|
-
}
|
|
1827
|
-
return formatCheckMessages(_0x4d84f8[_0x2ab6d7(0x299)]);
|
|
1828
|
-
},
|
|
1829
|
-
async 'read_history'(_0x1e46b7) {
|
|
1830
|
-
const _0x3dc4ab = _0x22ff22, _0x2cb3ef = await _0xc69eef[_0x3dc4ab(0x1bf)][_0x3dc4ab(0x23a)](_0x1e46b7);
|
|
1831
|
-
return formatHistory(_0x2cb3ef);
|
|
1832
|
-
},
|
|
1833
|
-
async 'list_server'() {
|
|
1834
|
-
const _0x3d6591 = _0x22ff22, _0x2ae7b2 = await _0xc69eef[_0x3d6591(_0x4911f3._0x3c9b46)]['listServer']();
|
|
1835
|
-
return formatServerDirectory(_0x2ae7b2);
|
|
1836
|
-
},
|
|
1837
|
-
async 'list_tasks'(_0x4777e3) {
|
|
1838
|
-
const _0x2c4eb5 = _0x22ff22, _0x28fe06 = await _0xc69eef[_0x2c4eb5(_0x1cea89._0x5aea71)][_0x2c4eb5(_0x1cea89._0x26f1c3)](_0x4777e3);
|
|
1839
|
-
let _0x38a8ee;
|
|
1840
|
-
if (_0xc69eef['daemonLocalUrl'] && _0xc69eef['agentId'])
|
|
1841
|
-
try {
|
|
1842
|
-
const _0x7d07b = await fetch(_0xc69eef['daemonLocalUrl'] + '/workers/list?agent_id=' + encodeURIComponent(_0xc69eef[_0x2c4eb5(_0x1cea89._0x196079)])), _0x5edae8 = await _0x7d07b['json']();
|
|
1843
|
-
if (_0x5edae8['ok']) {
|
|
1844
|
-
const _0x1cc780 = _0x4777e3[_0x2c4eb5(0x1c1)] + ':';
|
|
1845
|
-
_0x38a8ee = new Set();
|
|
1846
|
-
for (const _0x2c1580 of _0x5edae8[_0x2c4eb5(0x1e5)]) {
|
|
1847
|
-
if (_0x2c1580[_0x2c4eb5(0x246)] === _0x2c4eb5(0x24a))
|
|
1848
|
-
continue;
|
|
1849
|
-
if (_0x2c1580[_0x2c4eb5(_0x1cea89._0xf1769b)]?.[_0x2c4eb5(0x2fa)](_0x1cc780)) {
|
|
1850
|
-
const _0x10e9bf = _0x2c1580[_0x2c4eb5(0x1cf)][_0x2c4eb5(0x298)](_0x1cc780[_0x2c4eb5(0x2da)]), _0x4999b1 = _0x28fe06[_0x2c4eb5(0x1ad)][_0x2c4eb5(0x1bd)](_0x5a067c => _0x5a067c[_0x2c4eb5(0x215)]?.[_0x2c4eb5(0x2fa)](_0x10e9bf) === !![]);
|
|
1851
|
-
if (_0x4999b1?.['taskNumber'] != null) {
|
|
1852
|
-
_0x38a8ee[_0x2c4eb5(0x281)](_0x4999b1[_0x2c4eb5(0x20a)]);
|
|
1853
|
-
continue;
|
|
1854
|
-
}
|
|
1855
|
-
}
|
|
1856
|
-
if (_0x2c1580[_0x2c4eb5(0x241)]) {
|
|
1857
|
-
const _0x4454ac = _0x28fe06['tasks']['find'](_0x159cc2 => _0x159cc2[_0x2c4eb5(0x251)] === _0x2c1580[_0x2c4eb5(0x241)]);
|
|
1858
|
-
_0x4454ac?.[_0x2c4eb5(0x20a)] != null && _0x38a8ee[_0x2c4eb5(_0x1cea89._0x48b105)](_0x4454ac[_0x2c4eb5(0x20a)]);
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
} catch {
|
|
1863
|
-
}
|
|
1864
|
-
return formatTaskList(_0x28fe06[_0x2c4eb5(0x1ad)], _0x38a8ee);
|
|
1865
|
-
},
|
|
1866
|
-
async 'create_tasks'(_0x1ebd10) {
|
|
1867
|
-
const _0x1f1210 = _0x22ff22, _0x4bec57 = await _0xc69eef[_0x1f1210(0x1bf)]['createTasks'](_0x1ebd10);
|
|
1868
|
-
return formatCreatedTasks(_0x4bec57[_0x1f1210(_0x51e549._0x385327)]);
|
|
1869
|
-
},
|
|
1870
|
-
async 'claim_tasks'(_0x397166) {
|
|
1871
|
-
const _0xa76e26 = _0x22ff22, _0x22fbfe = await _0xc69eef['client'][_0xa76e26(0x270)](_0x397166), _0x6457fe = await Promise[_0xa76e26(0x254)](_0x22fbfe[_0xa76e26(_0x5b2603._0x121dcc)][_0xa76e26(0x2e8)](async _0x21d009 => {
|
|
1872
|
-
const _0x334593 = _0xa76e26;
|
|
1873
|
-
if (!_0x21d009[_0x334593(_0x3d025c._0x5dc067)] || !_0x21d009[_0x334593(0x215)])
|
|
1874
|
-
return _0x21d009;
|
|
1875
|
-
try {
|
|
1876
|
-
const _0x22d10f = await _0x3fbce3({
|
|
1877
|
-
'channel': _0x397166[_0x334593(_0x3d025c._0x67500)],
|
|
1878
|
-
'messageId': _0x21d009[_0x334593(_0x3d025c._0x194979)],
|
|
1879
|
-
'taskId': _0x21d009['taskId'],
|
|
1880
|
-
'taskNumber': _0x21d009['taskNumber'],
|
|
1881
|
-
'threadNumber': _0x21d009[_0x334593(0x263)]
|
|
1882
|
-
});
|
|
1883
|
-
return _0x22d10f ? {
|
|
1884
|
-
..._0x21d009,
|
|
1885
|
-
..._0x22d10f
|
|
1886
|
-
} : _0x21d009;
|
|
1887
|
-
} catch (_0x12adfc) {
|
|
1888
|
-
return {
|
|
1889
|
-
..._0x21d009,
|
|
1890
|
-
'workerHandoffError': _0x12adfc instanceof Error ? _0x12adfc[_0x334593(_0x3d025c._0x3cdecd)] : _0x334593(_0x3d025c._0x4e916e)
|
|
1891
|
-
};
|
|
1892
|
-
}
|
|
1893
|
-
}));
|
|
1894
|
-
return formatClaimTaskResults(_0x6457fe);
|
|
1895
|
-
},
|
|
1896
|
-
async 'unclaim_task'(_0x4e7e81) {
|
|
1897
|
-
const _0x124f6d = _0x22ff22, _0x4da9de = await _0xc69eef['client'][_0x124f6d(0x2a5)](_0x4e7e81);
|
|
1898
|
-
return formatUnclaimTaskResult(_0x4da9de);
|
|
1899
|
-
},
|
|
1900
|
-
async 'update_task_status'(_0x21ebdc) {
|
|
1901
|
-
const _0x135eb0 = _0x22ff22, _0x211c04 = await _0xc69eef['client'][_0x135eb0(_0x486cd9._0xfcede2)](_0x21ebdc);
|
|
1902
|
-
return formatUpdateTaskStatusResult(_0x211c04);
|
|
1903
|
-
},
|
|
1904
|
-
async 'upload_file'(_0x37f17b) {
|
|
1905
|
-
const _0x1a1005 = _0x22ff22, _0x99783a = await _0xc69eef[_0x1a1005(0x2ec)](_0x37f17b[_0x1a1005(_0x2b123d._0xd5e1cc)]), {
|
|
1906
|
-
sizeBytes: _0x2a7ff4,
|
|
1907
|
-
..._0x40ab56
|
|
1908
|
-
} = _0x99783a, _0x1b6141 = await _0xc69eef[_0x1a1005(_0x2b123d._0x5ad371)][_0x1a1005(_0x2b123d._0xe90be9)]({
|
|
1909
|
-
'channel': _0x37f17b['channel'],
|
|
1910
|
-
..._0x40ab56
|
|
1911
|
-
});
|
|
1912
|
-
return formatUploadResult(_0x1b6141);
|
|
1913
|
-
},
|
|
1914
|
-
async 'view_file'(_0x455475) {
|
|
1915
|
-
const _0x43b2ba = _0x22ff22, _0xc1484b = await _0xc69eef[_0x43b2ba(0x2db)][_0x43b2ba(_0x3e8db2._0x4af242)](_0x455475['attachment_id']);
|
|
1916
|
-
if (_0xc1484b)
|
|
1917
|
-
return formatViewFileResult(_0xc1484b, !![]);
|
|
1918
|
-
const _0x4cf70d = await _0xc69eef['client'][_0x43b2ba(0x2c9)](_0x455475['attachment_id']), _0x466a6c = await _0xc69eef[_0x43b2ba(_0x3e8db2._0x5e9b88)][_0x43b2ba(_0x3e8db2._0x785fb1)]({
|
|
1919
|
-
'attachmentId': _0x455475[_0x43b2ba(_0x3e8db2._0x1cd17e)],
|
|
1920
|
-
'contentType': _0x4cf70d['contentType'],
|
|
1921
|
-
'data': _0x4cf70d[_0x43b2ba(0x304)],
|
|
1922
|
-
'originalFilename': _0x4cf70d[_0x43b2ba(_0x3e8db2._0x2c114c)]
|
|
1923
|
-
});
|
|
1924
|
-
return formatViewFileResult(_0x466a6c, ![]);
|
|
1925
|
-
},
|
|
1926
|
-
async 'get_worker_status'(_0x23d19a) {
|
|
1927
|
-
const _0x1b4e92 = _0x22ff22;
|
|
1928
|
-
if (!_0xc69eef[_0x1b4e92(_0x57f7c7._0x16ceed)])
|
|
1929
|
-
return _0x1b4e92(0x328);
|
|
1930
|
-
const _0x206899 = await fetch(_0xc69eef[_0x1b4e92(0x28a)] + _0x1b4e92(_0x57f7c7._0x50ef93) + encodeURIComponent(_0x23d19a['work_key'])), _0x5f2a6b = await _0x206899[_0x1b4e92(0x315)]();
|
|
1931
|
-
if (!_0x5f2a6b['ok'])
|
|
1932
|
-
return _0x1b4e92(_0x57f7c7._0x3a8810) + _0x23d19a[_0x1b4e92(0x239)] + _0x1b4e92(_0x57f7c7._0x5515d2);
|
|
1933
|
-
return 'Worker\x20\x22' + _0x23d19a[_0x1b4e92(_0x57f7c7._0x27b7f6)] + _0x1b4e92(0x282) + _0x5f2a6b[_0x1b4e92(_0x57f7c7._0x5d99b3)];
|
|
1934
|
-
},
|
|
1935
|
-
async 'get_worker_result'(_0x2861b6) {
|
|
1936
|
-
const _0x587772 = _0x22ff22;
|
|
1937
|
-
if (!_0xc69eef[_0x587772(0x28a)])
|
|
1938
|
-
return _0x587772(_0x1b2a4d._0x5e24c3);
|
|
1939
|
-
const _0x44933 = await fetch(_0xc69eef[_0x587772(_0x1b2a4d._0x1a15d3)] + _0x587772(0x2e4) + encodeURIComponent(_0x2861b6['work_key'])), _0x315b2f = await _0x44933['json']();
|
|
1940
|
-
if (!_0x315b2f[_0x587772(_0x1b2a4d._0x2d80ab)])
|
|
1941
|
-
return _0x587772(0x2e0) + _0x2861b6[_0x587772(0x239)] + '\x22';
|
|
1942
|
-
return JSON[_0x587772(0x265)](_0x315b2f['resume_packet'], null, 0x2);
|
|
1943
|
-
},
|
|
1944
|
-
async 'finish_worker'(_0xa38302) {
|
|
1945
|
-
const _0x2125d4 = _0x22ff22;
|
|
1946
|
-
if (!_0xc69eef[_0x2125d4(0x28a)])
|
|
1947
|
-
return _0x2125d4(_0x3fe709._0x28ac9d);
|
|
1948
|
-
const _0x193580 = await fetch(_0xc69eef[_0x2125d4(0x28a)] + _0x2125d4(_0x3fe709._0x373594), {
|
|
1949
|
-
'method': _0x2125d4(0x223),
|
|
1950
|
-
'headers': { 'Content-Type': _0x2125d4(0x202) },
|
|
1951
|
-
'body': JSON[_0x2125d4(0x265)]({
|
|
1952
|
-
'work_key': _0xa38302[_0x2125d4(0x239)],
|
|
1953
|
-
'resume_packet': {
|
|
1954
|
-
'objective': '',
|
|
1955
|
-
'result': _0xa38302[_0x2125d4(0x25e)],
|
|
1956
|
-
'summary': _0xa38302[_0x2125d4(0x1be)],
|
|
1957
|
-
'decisions': _0xa38302['decisions'] ?? [],
|
|
1958
|
-
'filesChanged': _0xa38302[_0x2125d4(0x2c3)] ?? [],
|
|
1959
|
-
'openIssues': _0xa38302[_0x2125d4(_0x3fe709._0x2a6bdd)] ?? [],
|
|
1960
|
-
'nextSteps': _0xa38302[_0x2125d4(_0x3fe709._0x10a20e)] ?? []
|
|
1961
|
-
}
|
|
1962
|
-
})
|
|
1963
|
-
}), _0x423481 = await _0x193580[_0x2125d4(0x315)]();
|
|
1964
|
-
if (!_0x423481['ok'])
|
|
1965
|
-
throw new Error(_0x423481[_0x2125d4(0x255)] ?? _0x2125d4(0x1ea));
|
|
1966
|
-
return _0x2125d4(0x259) + _0xa38302[_0x2125d4(0x239)] + _0x2125d4(0x1b6) + _0xa38302['result'];
|
|
1967
|
-
},
|
|
1968
|
-
async 'mark_waiting_input'(_0x3145d9) {
|
|
1969
|
-
const _0x10d0c4 = _0x22ff22;
|
|
1970
|
-
if (!_0xc69eef[_0x10d0c4(0x28a)] || !_0xc69eef[_0x10d0c4(_0x2006c9._0x144745)])
|
|
1971
|
-
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20or\x20agent\x20ID\x20not\x20configured)';
|
|
1972
|
-
const _0x3f8b72 = await fetch(_0xc69eef[_0x10d0c4(0x28a)] + _0x10d0c4(0x31f), {
|
|
1973
|
-
'method': _0x10d0c4(0x223),
|
|
1974
|
-
'headers': { 'Content-Type': 'application/json' },
|
|
1975
|
-
'body': JSON[_0x10d0c4(0x265)]({
|
|
1976
|
-
'work_key': _0x3145d9[_0x10d0c4(0x239)],
|
|
1977
|
-
'agent_id': _0xc69eef[_0x10d0c4(0x2b5)]
|
|
1978
|
-
})
|
|
1979
|
-
}), _0x419b8c = await _0x3f8b72['json']();
|
|
1980
|
-
if (!_0x419b8c['ok'])
|
|
1981
|
-
throw new Error(_0x419b8c[_0x10d0c4(0x255)] ?? _0x10d0c4(0x19e));
|
|
1982
|
-
return _0x10d0c4(_0x2006c9._0x8dfcb5) + _0x3145d9['work_key'] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
|
|
1983
|
-
},
|
|
1984
|
-
async 'escalate_to_main'(_0x418ca0) {
|
|
1985
|
-
const _0x3fb198 = _0x22ff22;
|
|
1986
|
-
if (!_0xc69eef[_0x3fb198(_0x1fadef._0x42cb52)])
|
|
1987
|
-
return 'Worker\x20features\x20not\x20available';
|
|
1988
|
-
const _0x5a805e = await fetch(_0xc69eef[_0x3fb198(_0x1fadef._0x42cb52)] + _0x3fb198(0x1c8), {
|
|
1989
|
-
'method': _0x3fb198(_0x1fadef._0x13cbfa),
|
|
1990
|
-
'headers': { 'Content-Type': _0x3fb198(0x202) },
|
|
1991
|
-
'body': JSON['stringify']({
|
|
1992
|
-
'work_key': _0x418ca0['work_key'],
|
|
1993
|
-
'reason': _0x418ca0[_0x3fb198(0x219)]
|
|
1994
|
-
})
|
|
1995
|
-
}), _0x16d779 = await _0x5a805e[_0x3fb198(_0x1fadef._0x36f305)]();
|
|
1996
|
-
if (!_0x16d779['ok'])
|
|
1997
|
-
throw new Error(_0x16d779[_0x3fb198(0x255)] ?? _0x3fb198(0x2df));
|
|
1998
|
-
return 'Escalation\x20sent\x20to\x20main\x20agent.\x20Reason:\x20' + _0x418ca0[_0x3fb198(_0x1fadef._0x15b3d1)];
|
|
1999
|
-
}
|
|
2337
|
+
_0x13f9 = function () {
|
|
2338
|
+
return _0x41abce;
|
|
2000
2339
|
};
|
|
2340
|
+
return _0x13f9();
|
|
2001
2341
|
}
|
|
2002
|
-
function
|
|
2003
|
-
const
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
_0x1ce8d6: 0x2f1,
|
|
2017
|
-
_0x5e4931: 0x2bf,
|
|
2018
|
-
_0x64fa61: 0x19d,
|
|
2019
|
-
_0xff677e: 0x24f,
|
|
2020
|
-
_0x3ed479: 0x20d,
|
|
2021
|
-
_0x3594b7: 0x216,
|
|
2022
|
-
_0x4c1969: 0x235,
|
|
2023
|
-
_0x37603a: 0x29f,
|
|
2024
|
-
_0x8bfc5b: 0x26a,
|
|
2025
|
-
_0x497d71: 0x1fe,
|
|
2026
|
-
_0x26ae59: 0x25b,
|
|
2027
|
-
_0x325775: 0x22c,
|
|
2028
|
-
_0x296689: 0x20d,
|
|
2029
|
-
_0x1220db: 0x294,
|
|
2030
|
-
_0x16ba42: 0x2d0,
|
|
2031
|
-
_0x11e571: 0x2a3,
|
|
2032
|
-
_0x3ac6c2: 0x20d,
|
|
2033
|
-
_0x173e18: 0x21d,
|
|
2034
|
-
_0x2997fe: 0x1c3,
|
|
2035
|
-
_0x1bbb29: 0x20d,
|
|
2036
|
-
_0xcf86f2: 0x26a,
|
|
2037
|
-
_0x272d18: 0x20d,
|
|
2038
|
-
_0x9f00c2: 0x233,
|
|
2039
|
-
_0x3c8853: 0x2ee,
|
|
2040
|
-
_0x39b6c9: 0x26a,
|
|
2041
|
-
_0x2d780f: 0x1f4,
|
|
2042
|
-
_0x5eb703: 0x240,
|
|
2043
|
-
_0x187ea5: 0x2cd,
|
|
2044
|
-
_0x5f3d06: 0x1f1,
|
|
2045
|
-
_0x3febbd: 0x216,
|
|
2046
|
-
_0x32f0f4: 0x1cd,
|
|
2047
|
-
_0x2854b0: 0x1e0,
|
|
2048
|
-
_0x3c0801: 0x286,
|
|
2049
|
-
_0x3d6a78: 0x2a3,
|
|
2050
|
-
_0x8a509c: 0x2a3,
|
|
2051
|
-
_0x4beba4: 0x2a3,
|
|
2052
|
-
_0x1f2736: 0x216,
|
|
2053
|
-
_0x452c9e: 0x30f,
|
|
2054
|
-
_0x306f56: 0x295,
|
|
2055
|
-
_0x7ba684: 0x1bc,
|
|
2056
|
-
_0x1aaffe: 0x1aa
|
|
2057
|
-
}, _0x4bc085 = { _0x23e89f: 0x29a }, _0x496473 = {
|
|
2058
|
-
_0xc5cfb: 0x30f,
|
|
2059
|
-
_0x59d88b: 0x29a
|
|
2060
|
-
}, _0x585a9e = { _0x5350e5: 0x29a }, _0x5d1831 = { _0x5ec9ca: 0x29a }, _0x5ccfb5 = {
|
|
2061
|
-
_0x278fb5: 0x252,
|
|
2062
|
-
_0x39750f: 0x29a
|
|
2063
|
-
}, _0x49d6b1 = { _0x3f650f: 0x207 }, _0x35cd20 = {
|
|
2064
|
-
_0x21ee06: 0x309,
|
|
2065
|
-
_0x498b1d: 0x29a,
|
|
2066
|
-
_0x2e4136: 0x213
|
|
2067
|
-
}, _0xee85f4 = {
|
|
2068
|
-
_0x1aecc2: 0x294,
|
|
2069
|
-
_0x14c0e0: 0x268
|
|
2070
|
-
}, _0x4a6736 = {
|
|
2071
|
-
_0x1b5d62: 0x29a,
|
|
2072
|
-
_0x381598: 0x24b
|
|
2073
|
-
}, _0x2768e1 = {
|
|
2074
|
-
_0x2e0eae: 0x29a,
|
|
2075
|
-
_0xa56068: 0x1d0
|
|
2076
|
-
}, _0x265174 = {
|
|
2077
|
-
_0x3dcdab: 0x302,
|
|
2078
|
-
_0x236177: 0x29a,
|
|
2079
|
-
_0x43612a: 0x1d5
|
|
2080
|
-
}, _0x46cbe9 = { _0x49e500: 0x2aa }, _0x4df138 = { _0x515d20: 0x319 }, _0x32b608 = _0x387276, {z: _0x9256f2} = await import('zod');
|
|
2081
|
-
_0x22112a[_0x32b608(_0x22f827._0xe867ae)]('send_message', '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': _0x9256f2[_0x32b608(0x26a)](),
|
|
2083
|
-
'content': _0x9256f2[_0x32b608(0x26a)](),
|
|
2084
|
-
'attachment_ids': _0x9256f2['array'](_0x9256f2[_0x32b608(_0x22f827._0x5513e8)]())['optional'](),
|
|
2085
|
-
'visibility': _0x9256f2['enum']([
|
|
2086
|
-
_0x32b608(_0x22f827._0x1ce8d6),
|
|
2087
|
-
_0x32b608(0x290)
|
|
2088
|
-
])[_0x32b608(0x20d)]()[_0x32b608(_0x22f827._0x5e4931)](_0x32b608(_0x22f827._0x64fa61))
|
|
2089
|
-
}, async _0x82a2d8 => {
|
|
2090
|
-
const _0x1d62fa = _0x32b608;
|
|
2091
|
-
try {
|
|
2092
|
-
return textResult(await _0x21e9c6[_0x1d62fa(_0x4df138._0x515d20)](_0x82a2d8));
|
|
2093
|
-
} catch (_0x479d05) {
|
|
2094
|
-
return textResult(_0x479d05 instanceof Error ? _0x479d05[_0x1d62fa(0x29a)] : 'send_message\x20failed', !![]);
|
|
2095
|
-
}
|
|
2096
|
-
}), _0x22112a[_0x32b608(0x216)]('check_messages', 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2097
|
-
const _0x20a23b = _0x32b608;
|
|
2098
|
-
try {
|
|
2099
|
-
return textResult(await _0x21e9c6['check_messages']());
|
|
2100
|
-
} catch (_0xb71a17) {
|
|
2101
|
-
return textResult(_0xb71a17 instanceof Error ? _0xb71a17['message'] : _0x20a23b(_0x46cbe9._0x49e500), !![]);
|
|
2102
|
-
}
|
|
2103
|
-
}), _0x22112a['tool'](_0x32b608(0x302), _0x32b608(0x1a5), {
|
|
2104
|
-
'channel': _0x9256f2['string'](),
|
|
2105
|
-
'limit': _0x9256f2[_0x32b608(_0x22f827._0xff677e)]()[_0x32b608(0x20d)](),
|
|
2106
|
-
'before': _0x9256f2[_0x32b608(0x24f)]()[_0x32b608(_0x22f827._0x3ed479)](),
|
|
2107
|
-
'after': _0x9256f2[_0x32b608(_0x22f827._0xff677e)]()[_0x32b608(0x20d)]()
|
|
2108
|
-
}, async _0x14daef => {
|
|
2109
|
-
const _0x238f8a = _0x32b608;
|
|
2110
|
-
try {
|
|
2111
|
-
return textResult(await _0x21e9c6[_0x238f8a(_0x265174._0x3dcdab)](_0x14daef));
|
|
2112
|
-
} catch (_0x2deed5) {
|
|
2113
|
-
return textResult(_0x2deed5 instanceof Error ? _0x2deed5[_0x238f8a(_0x265174._0x236177)] : _0x238f8a(_0x265174._0x43612a), !![]);
|
|
2114
|
-
}
|
|
2115
|
-
}), _0x22112a[_0x32b608(_0x22f827._0xe867ae)](_0x32b608(0x1e7), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2116
|
-
const _0x182aae = _0x32b608;
|
|
2117
|
-
try {
|
|
2118
|
-
return textResult(await _0x21e9c6[_0x182aae(0x1e7)]());
|
|
2119
|
-
} catch (_0x5dbf33) {
|
|
2120
|
-
return textResult(_0x5dbf33 instanceof Error ? _0x5dbf33[_0x182aae(_0x2768e1._0x2e0eae)] : _0x182aae(_0x2768e1._0xa56068), !![]);
|
|
2121
|
-
}
|
|
2122
|
-
}), _0x22112a[_0x32b608(_0x22f827._0x3594b7)](_0x32b608(0x1b0), _0x32b608(0x211), {
|
|
2123
|
-
'channel': _0x9256f2[_0x32b608(_0x22f827._0x5513e8)](),
|
|
2124
|
-
'status': _0x9256f2['enum']([
|
|
2125
|
-
_0x32b608(_0x22f827._0x4c1969),
|
|
2126
|
-
_0x32b608(_0x22f827._0x37603a),
|
|
2127
|
-
_0x32b608(0x316),
|
|
2128
|
-
_0x32b608(0x236)
|
|
2129
|
-
])['optional']()
|
|
2130
|
-
}, async _0x37d636 => {
|
|
2131
|
-
const _0x15ff3e = _0x32b608;
|
|
2132
|
-
try {
|
|
2133
|
-
return textResult(await _0x21e9c6['list_tasks'](_0x37d636));
|
|
2134
|
-
} catch (_0x190788) {
|
|
2135
|
-
return textResult(_0x190788 instanceof Error ? _0x190788[_0x15ff3e(_0x4a6736._0x1b5d62)] : _0x15ff3e(_0x4a6736._0x381598), !![]);
|
|
2136
|
-
}
|
|
2137
|
-
}), _0x22112a['tool'](_0x32b608(0x247), 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
2138
|
-
'channel': _0x9256f2[_0x32b608(_0x22f827._0x8bfc5b)](),
|
|
2139
|
-
'idempotency_key': _0x9256f2[_0x32b608(_0x22f827._0x8bfc5b)]()[_0x32b608(_0x22f827._0x3ed479)](),
|
|
2140
|
-
'tasks': _0x9256f2[_0x32b608(0x2a3)](_0x9256f2[_0x32b608(0x1c3)]({
|
|
2141
|
-
'title': _0x9256f2[_0x32b608(0x26a)](),
|
|
2142
|
-
'description': _0x9256f2[_0x32b608(0x26a)]()[_0x32b608(_0x22f827._0x3ed479)](),
|
|
2143
|
-
'priority': _0x9256f2['enum']([
|
|
2144
|
-
_0x32b608(_0x22f827._0x497d71),
|
|
2145
|
-
_0x32b608(_0x22f827._0x26ae59),
|
|
2146
|
-
'high',
|
|
2147
|
-
_0x32b608(_0x22f827._0x325775)
|
|
2148
|
-
])[_0x32b608(_0x22f827._0x296689)]()
|
|
2149
|
-
}))
|
|
2150
|
-
}, async _0x503801 => {
|
|
2151
|
-
const _0x194002 = _0x32b608;
|
|
2152
|
-
try {
|
|
2153
|
-
return textResult(await _0x21e9c6[_0x194002(0x247)](_0x503801));
|
|
2154
|
-
} catch (_0x55e7e7) {
|
|
2155
|
-
return textResult(_0x55e7e7 instanceof Error ? _0x55e7e7[_0x194002(0x29a)] : _0x194002(0x260), !![]);
|
|
2156
|
-
}
|
|
2157
|
-
}), _0x22112a[_0x32b608(0x216)](_0x32b608(_0x22f827._0x1220db), _0x32b608(_0x22f827._0x16ba42), {
|
|
2158
|
-
'channel': _0x9256f2['string'](),
|
|
2159
|
-
'task_numbers': _0x9256f2[_0x32b608(_0x22f827._0x11e571)](_0x9256f2[_0x32b608(_0x22f827._0xff677e)]())[_0x32b608(_0x22f827._0x3ac6c2)](),
|
|
2160
|
-
'message_ids': _0x9256f2['array'](_0x9256f2['string']())[_0x32b608(0x20d)](),
|
|
2161
|
-
'evidence': _0x9256f2[_0x32b608(_0x22f827._0x173e18)](_0x9256f2[_0x32b608(0x26a)](), _0x9256f2[_0x32b608(_0x22f827._0x2997fe)]({
|
|
2162
|
-
'create_thread': _0x9256f2[_0x32b608(0x248)]()[_0x32b608(_0x22f827._0x1bbb29)](),
|
|
2163
|
-
'create_task': _0x9256f2[_0x32b608(0x248)]()['optional']()
|
|
2164
|
-
}))[_0x32b608(0x20d)](),
|
|
2165
|
-
'idempotency_key': _0x9256f2[_0x32b608(_0x22f827._0x8bfc5b)]()[_0x32b608(0x20d)]()
|
|
2166
|
-
}, async _0x1e4ecd => {
|
|
2167
|
-
const _0x26e511 = _0x32b608;
|
|
2168
|
-
try {
|
|
2169
|
-
return textResult(await _0x21e9c6[_0x26e511(_0xee85f4._0x1aecc2)](_0x1e4ecd));
|
|
2170
|
-
} catch (_0xe2f8f5) {
|
|
2171
|
-
return textResult(_0xe2f8f5 instanceof Error ? _0xe2f8f5['message'] : _0x26e511(_0xee85f4._0x14c0e0), !![]);
|
|
2172
|
-
}
|
|
2173
|
-
}), _0x22112a['tool'](_0x32b608(0x309), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.', {
|
|
2174
|
-
'channel': _0x9256f2[_0x32b608(_0x22f827._0xcf86f2)](),
|
|
2175
|
-
'task_number': _0x9256f2[_0x32b608(0x24f)](),
|
|
2176
|
-
'idempotency_key': _0x9256f2['string']()[_0x32b608(_0x22f827._0x272d18)]()
|
|
2177
|
-
}, async _0x4fa87a => {
|
|
2178
|
-
const _0x4021f1 = _0x32b608;
|
|
2179
|
-
try {
|
|
2180
|
-
return textResult(await _0x21e9c6[_0x4021f1(_0x35cd20._0x21ee06)](_0x4fa87a));
|
|
2181
|
-
} catch (_0x4eded2) {
|
|
2182
|
-
return textResult(_0x4eded2 instanceof Error ? _0x4eded2[_0x4021f1(_0x35cd20._0x498b1d)] : _0x4021f1(_0x35cd20._0x2e4136), !![]);
|
|
2183
|
-
}
|
|
2184
|
-
}), _0x22112a[_0x32b608(0x216)]('update_task_status', _0x32b608(_0x22f827._0x9f00c2), {
|
|
2185
|
-
'channel': _0x9256f2[_0x32b608(0x26a)](),
|
|
2186
|
-
'task_number': _0x9256f2[_0x32b608(0x24f)](),
|
|
2187
|
-
'status': _0x9256f2[_0x32b608(_0x22f827._0x3c8853)]([
|
|
2188
|
-
'todo',
|
|
2189
|
-
_0x32b608(0x29f),
|
|
2190
|
-
'in_review',
|
|
2191
|
-
_0x32b608(0x236)
|
|
2192
|
-
]),
|
|
2193
|
-
'idempotency_key': _0x9256f2[_0x32b608(_0x22f827._0x39b6c9)]()[_0x32b608(0x20d)]()
|
|
2194
|
-
}, async _0x2fe56d => {
|
|
2195
|
-
const _0x251388 = _0x32b608;
|
|
2196
|
-
try {
|
|
2197
|
-
return textResult(await _0x21e9c6[_0x251388(0x1d3)](_0x2fe56d));
|
|
2198
|
-
} catch (_0x592d0e) {
|
|
2199
|
-
return textResult(_0x592d0e instanceof Error ? _0x592d0e['message'] : _0x251388(_0x49d6b1._0x3f650f), !![]);
|
|
2200
|
-
}
|
|
2201
|
-
}), _0x22112a['tool'](_0x32b608(0x252), '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': _0x9256f2[_0x32b608(0x26a)](),
|
|
2203
|
-
'file_path': _0x9256f2['string']()
|
|
2204
|
-
}, async _0x47096e => {
|
|
2205
|
-
const _0x523929 = _0x32b608;
|
|
2206
|
-
try {
|
|
2207
|
-
return textResult(await _0x21e9c6[_0x523929(_0x5ccfb5._0x278fb5)](_0x47096e));
|
|
2208
|
-
} catch (_0x335e57) {
|
|
2209
|
-
return textResult(_0x335e57 instanceof Error ? _0x335e57[_0x523929(_0x5ccfb5._0x39750f)] : _0x523929(0x2c6), !![]);
|
|
2210
|
-
}
|
|
2211
|
-
}), _0x22112a[_0x32b608(0x216)](_0x32b608(_0x22f827._0x2d780f), _0x32b608(_0x22f827._0x5eb703), { 'attachment_id': _0x9256f2[_0x32b608(0x26a)]() }, async _0x4b1d44 => {
|
|
2212
|
-
const _0x269992 = _0x32b608;
|
|
2213
|
-
try {
|
|
2214
|
-
return textResult(await _0x21e9c6[_0x269992(0x1f4)](_0x4b1d44));
|
|
2215
|
-
} catch (_0x21538a) {
|
|
2216
|
-
return textResult(_0x21538a instanceof Error ? _0x21538a[_0x269992(_0x5d1831._0x5ec9ca)] : _0x269992(0x2ca), !![]);
|
|
2217
|
-
}
|
|
2218
|
-
}), _0x22112a['tool'](_0x32b608(_0x22f827._0x187ea5), 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x9256f2[_0x32b608(0x26a)]() }, async _0x262cb7 => {
|
|
2219
|
-
const _0x390535 = _0x32b608;
|
|
2220
|
-
try {
|
|
2221
|
-
return textResult(await _0x21e9c6['get_worker_status'](_0x262cb7));
|
|
2222
|
-
} catch (_0x3a239d) {
|
|
2223
|
-
return textResult(_0x3a239d instanceof Error ? _0x3a239d[_0x390535(_0x585a9e._0x5350e5)] : _0x390535(0x243), !![]);
|
|
2224
|
-
}
|
|
2225
|
-
}), _0x22112a['tool'](_0x32b608(0x2fc), _0x32b608(_0x22f827._0x5f3d06), { 'work_key': _0x9256f2['string']() }, async _0x24ddd9 => {
|
|
2226
|
-
const _0x7636b1 = _0x32b608;
|
|
2227
|
-
try {
|
|
2228
|
-
return textResult(await _0x21e9c6['get_worker_result'](_0x24ddd9));
|
|
2229
|
-
} catch (_0x4d2b3d) {
|
|
2230
|
-
return textResult(_0x4d2b3d instanceof Error ? _0x4d2b3d[_0x7636b1(0x29a)] : 'get_worker_result\x20failed', !![]);
|
|
2231
|
-
}
|
|
2232
|
-
}), _0x22112a[_0x32b608(_0x22f827._0x3febbd)]('finish_worker', _0x32b608(_0x22f827._0x32f0f4), {
|
|
2233
|
-
'work_key': _0x9256f2['string'](),
|
|
2234
|
-
'result': _0x9256f2['enum']([
|
|
2235
|
-
_0x32b608(_0x22f827._0x2854b0),
|
|
2236
|
-
'blocked',
|
|
2237
|
-
_0x32b608(_0x22f827._0x3c0801)
|
|
2238
|
-
]),
|
|
2239
|
-
'summary': _0x9256f2[_0x32b608(0x26a)](),
|
|
2240
|
-
'decisions': _0x9256f2[_0x32b608(0x2a3)](_0x9256f2['string']())[_0x32b608(0x20d)](),
|
|
2241
|
-
'files_changed': _0x9256f2[_0x32b608(_0x22f827._0x3d6a78)](_0x9256f2[_0x32b608(_0x22f827._0x39b6c9)]())[_0x32b608(0x20d)](),
|
|
2242
|
-
'open_issues': _0x9256f2[_0x32b608(_0x22f827._0x8a509c)](_0x9256f2['string']())[_0x32b608(0x20d)](),
|
|
2243
|
-
'next_steps': _0x9256f2[_0x32b608(_0x22f827._0x4beba4)](_0x9256f2['string']())[_0x32b608(_0x22f827._0x296689)]()
|
|
2244
|
-
}, async _0x308ef9 => {
|
|
2245
|
-
const _0x1d2401 = _0x32b608;
|
|
2246
|
-
try {
|
|
2247
|
-
return textResult(await _0x21e9c6[_0x1d2401(0x266)](_0x308ef9));
|
|
2248
|
-
} catch (_0xc7c043) {
|
|
2249
|
-
return textResult(_0xc7c043 instanceof Error ? _0xc7c043[_0x1d2401(0x29a)] : _0x1d2401(0x1ea), !![]);
|
|
2250
|
-
}
|
|
2251
|
-
}), _0x22112a[_0x32b608(_0x22f827._0x1f2736)](_0x32b608(_0x22f827._0x452c9e), _0x32b608(_0x22f827._0x306f56), {
|
|
2252
|
-
'work_key': _0x9256f2['string'](),
|
|
2253
|
-
'reason': _0x9256f2[_0x32b608(0x26a)]()
|
|
2254
|
-
}, async _0x473592 => {
|
|
2255
|
-
const _0xae4e04 = _0x32b608;
|
|
2256
|
-
try {
|
|
2257
|
-
return textResult(await _0x21e9c6[_0xae4e04(_0x496473._0xc5cfb)](_0x473592));
|
|
2258
|
-
} catch (_0x27812c) {
|
|
2259
|
-
return textResult(_0x27812c instanceof Error ? _0x27812c[_0xae4e04(_0x496473._0x59d88b)] : 'escalate_to_main\x20failed', !![]);
|
|
2260
|
-
}
|
|
2261
|
-
}), _0x1be2f2?.[_0x32b608(_0x22f827._0x7ba684)] && _0x22112a[_0x32b608(0x216)](_0x32b608(_0x22f827._0x1aaffe), _0x32b608(0x21b), { 'work_key': _0x9256f2[_0x32b608(0x26a)]() }, async _0x40e91a => {
|
|
2262
|
-
const _0x1df5db = _0x32b608;
|
|
2263
|
-
try {
|
|
2264
|
-
return textResult(await _0x21e9c6['mark_waiting_input'](_0x40e91a));
|
|
2265
|
-
} catch (_0x54364c) {
|
|
2266
|
-
return textResult(_0x54364c instanceof Error ? _0x54364c[_0x1df5db(_0x4bc085._0x23e89f)] : _0x1df5db(0x19e), !![]);
|
|
2267
|
-
}
|
|
2268
|
-
});
|
|
2269
|
-
}
|
|
2270
|
-
async function createChatBridgeServer(_0x1dd968) {
|
|
2271
|
-
const _0x81b064 = _0x387276, {McpServer: _0x36e608} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x43768e = new _0x36e608({
|
|
2272
|
-
'name': _0x81b064(0x24d),
|
|
2273
|
-
'version': _0x81b064(0x230)
|
|
2274
|
-
}), _0x5b8e4a = createChatBridgeHandlers(_0x1dd968);
|
|
2275
|
-
return await registerChatBridgeTools(_0x43768e, _0x5b8e4a, { 'workerMode': _0x1dd968[_0x81b064(0x1bc)] }), {
|
|
2276
|
-
'handlers': _0x5b8e4a,
|
|
2277
|
-
'server': _0x43768e
|
|
2278
|
-
};
|
|
2279
|
-
}
|
|
2280
|
-
function readFlag(_0x4ddedd, _0x1e2740) {
|
|
2281
|
-
const _0x3e5abe = { _0x14544e: 0x30b }, _0x1ca15c = _0x387276, _0x1d8685 = _0x4ddedd[_0x1ca15c(_0x3e5abe._0x14544e)](_0x1e2740);
|
|
2282
|
-
if (_0x1d8685 === -0x1)
|
|
2283
|
-
return void 0x0;
|
|
2284
|
-
return _0x4ddedd[_0x1d8685 + 0x1];
|
|
2285
|
-
}
|
|
2286
|
-
function parseChatBridgeArgs(_0x411851) {
|
|
2287
|
-
const _0x770d40 = {
|
|
2288
|
-
_0x5cceba: 0x31d,
|
|
2289
|
-
_0x309aa3: 0x2d2,
|
|
2290
|
-
_0x488c73: 0x2d4,
|
|
2291
|
-
_0x49b9aa: 0x2cf,
|
|
2292
|
-
_0x435711: 0x25c,
|
|
2293
|
-
_0x2032cb: 0x1f2
|
|
2294
|
-
}, _0x5a1c9c = _0x387276, _0x1023a1 = readFlag(_0x411851, _0x5a1c9c(_0x770d40._0x5cceba)), _0x53ad55 = readFlag(_0x411851, _0x5a1c9c(0x2a4)), _0x15c8ae = readFlag(_0x411851, _0x5a1c9c(_0x770d40._0x309aa3)), _0x11c934 = readFlag(_0x411851, _0x5a1c9c(0x1e4)) ?? _0x5a1c9c(_0x770d40._0x488c73), _0x5afaba = readFlag(_0x411851, _0x5a1c9c(0x32a)), _0x4ad3ca = readFlag(_0x411851, '--session-id'), _0x5e0fba = readFlag(_0x411851, '--worker-mode-enabled'), _0x4b7e6c = readFlag(_0x411851, _0x5a1c9c(_0x770d40._0x49b9aa)), _0x47ea42 = readFlag(_0x411851, _0x5a1c9c(_0x770d40._0x435711)), _0x2c85da = _0x411851[_0x5a1c9c(_0x770d40._0x2032cb)](_0x5a1c9c(0x272)), _0x2b37a3 = _0x15c8ae === void 0x0 ? void 0x0 : Number['parseInt'](_0x15c8ae, 0xa);
|
|
2295
|
-
if (!_0x1023a1)
|
|
2296
|
-
throw new Error('Missing\x20--agent-id');
|
|
2297
|
-
if (!_0x53ad55)
|
|
2298
|
-
throw new Error('Missing\x20--daemon-api-key');
|
|
2299
|
-
if (_0x15c8ae !== void 0x0 && (_0x2b37a3 === void 0x0 || !Number[_0x5a1c9c(0x2ef)](_0x2b37a3) || _0x2b37a3 < 0x0))
|
|
2300
|
-
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
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
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
'
|
|
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)],
|
|
2323
2381
|
'uploadPreparer': prepareUploadFile,
|
|
2324
|
-
'workerModeEnabled':
|
|
2325
|
-
'workerMode':
|
|
2382
|
+
'workerModeEnabled': _0x38e206[_0x4eb095(_0x2ba62b._0x2222b0)],
|
|
2383
|
+
'workerMode': _0x38e206[_0x4eb095(_0x2ba62b._0x5d53be)]
|
|
2326
2384
|
});
|
|
2327
|
-
await
|
|
2385
|
+
await _0x1c8b9c[_0x4eb095(_0x2ba62b._0x1c4e76)][_0x4eb095(_0x2ba62b._0x1f551a)](new _0x4a69dc());
|
|
2328
2386
|
}
|
|
2329
|
-
var executedAsEntry = process[
|
|
2330
|
-
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));
|
|
2331
2389
|
export {
|
|
2332
2390
|
createChatBridgeHandlers,
|
|
2333
2391
|
createChatBridgeServer,
|