@dscord/daemon 0.1.42 → 0.1.44
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 +2234 -2265
- package/dist/index.js +8604 -8610
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const _0xbabd6a = _0x5296;
|
|
2
|
+
(function (_0x39c19b, _0x37b511) {
|
|
3
|
+
const _0x1bfad2 = {
|
|
4
|
+
_0x1ddb43: 0x20f,
|
|
5
|
+
_0x38b958: 0x20c,
|
|
6
|
+
_0x854fee: 0x198,
|
|
7
|
+
_0x161b86: 0x265
|
|
8
|
+
}, _0x1a5e3c = _0x5296, _0x1e4d39 = _0x39c19b();
|
|
8
9
|
while (!![]) {
|
|
9
10
|
try {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
11
|
+
const _0x5e92ed = -parseInt(_0x1a5e3c(0x2e1)) / 0x1 * (parseInt(_0x1a5e3c(_0x1bfad2._0x1ddb43)) / 0x2) + -parseInt(_0x1a5e3c(0x170)) / 0x3 * (parseInt(_0x1a5e3c(_0x1bfad2._0x38b958)) / 0x4) + -parseInt(_0x1a5e3c(0x1eb)) / 0x5 + -parseInt(_0x1a5e3c(0x250)) / 0x6 * (-parseInt(_0x1a5e3c(0x1b4)) / 0x7) + parseInt(_0x1a5e3c(0x1cb)) / 0x8 * (-parseInt(_0x1a5e3c(_0x1bfad2._0x854fee)) / 0x9) + parseInt(_0x1a5e3c(_0x1bfad2._0x161b86)) / 0xa + parseInt(_0x1a5e3c(0x2d7)) / 0xb;
|
|
12
|
+
if (_0x5e92ed === _0x37b511)
|
|
12
13
|
break;
|
|
13
14
|
else
|
|
14
|
-
|
|
15
|
-
} catch (
|
|
16
|
-
|
|
15
|
+
_0x1e4d39['push'](_0x1e4d39['shift']());
|
|
16
|
+
} catch (_0x3a6a1a) {
|
|
17
|
+
_0x1e4d39['push'](_0x1e4d39['shift']());
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
}(
|
|
20
|
+
}(_0x275c, 0xd7680));
|
|
20
21
|
import { pathToFileURL } from 'node:url';
|
|
21
22
|
import {
|
|
22
23
|
mkdir,
|
|
@@ -26,106 +27,83 @@ import {
|
|
|
26
27
|
writeFile
|
|
27
28
|
} from 'node:fs/promises';
|
|
28
29
|
import { homedir } from 'node:os';
|
|
29
|
-
|
|
30
|
-
_0x196b2f = _0x196b2f - 0x1e9;
|
|
31
|
-
const _0x11ab12 = _0x11ab();
|
|
32
|
-
let _0x101e2f = _0x11ab12[_0x196b2f];
|
|
33
|
-
if (_0x101e['QFYJrw'] === undefined) {
|
|
34
|
-
var _0x34fbb5 = function (_0x4d7719) {
|
|
35
|
-
const _0x2e6339 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
36
|
-
let _0x76e9e3 = '', _0x343a1e = '';
|
|
37
|
-
for (let _0x37bb10 = 0x0, _0x453270, _0x3a6c5a, _0x2c1d26 = 0x0; _0x3a6c5a = _0x4d7719['charAt'](_0x2c1d26++); ~_0x3a6c5a && (_0x453270 = _0x37bb10 % 0x4 ? _0x453270 * 0x40 + _0x3a6c5a : _0x3a6c5a, _0x37bb10++ % 0x4) ? _0x76e9e3 += String['fromCharCode'](0xff & _0x453270 >> (-0x2 * _0x37bb10 & 0x6)) : 0x0) {
|
|
38
|
-
_0x3a6c5a = _0x2e6339['indexOf'](_0x3a6c5a);
|
|
39
|
-
}
|
|
40
|
-
for (let _0x100a9f = 0x0, _0xc45db = _0x76e9e3['length']; _0x100a9f < _0xc45db; _0x100a9f++) {
|
|
41
|
-
_0x343a1e += '%' + ('00' + _0x76e9e3['charCodeAt'](_0x100a9f)['toString'](0x10))['slice'](-0x2);
|
|
42
|
-
}
|
|
43
|
-
return decodeURIComponent(_0x343a1e);
|
|
44
|
-
};
|
|
45
|
-
_0x101e['qMMymZ'] = _0x34fbb5, _0x101e['ucbQvO'] = {}, _0x101e['QFYJrw'] = !![];
|
|
46
|
-
}
|
|
47
|
-
const _0x4748a1 = _0x11ab12[0x0], _0x188612 = _0x196b2f + _0x4748a1, _0x4da77a = _0x101e['ucbQvO'][_0x188612];
|
|
48
|
-
return !_0x4da77a ? (_0x101e2f = _0x101e['qMMymZ'](_0x101e2f), _0x101e['ucbQvO'][_0x188612] = _0x101e2f) : _0x101e2f = _0x4da77a, _0x101e2f;
|
|
49
|
-
}
|
|
50
|
-
import _0x76e9e3 from 'node:path';
|
|
30
|
+
import _0x1c47dc from 'node:path';
|
|
51
31
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
52
|
-
'.csv':
|
|
53
|
-
'.gif':
|
|
54
|
-
'.jpeg':
|
|
55
|
-
'.jpg':
|
|
56
|
-
'.json':
|
|
57
|
-
'.md':
|
|
58
|
-
'.pdf':
|
|
32
|
+
'.csv': _0xbabd6a(0x21b),
|
|
33
|
+
'.gif': _0xbabd6a(0x281),
|
|
34
|
+
'.jpeg': 'image/jpeg',
|
|
35
|
+
'.jpg': _0xbabd6a(0x22f),
|
|
36
|
+
'.json': _0xbabd6a(0x2e2),
|
|
37
|
+
'.md': 'text/markdown',
|
|
38
|
+
'.pdf': _0xbabd6a(0x296),
|
|
59
39
|
'.png': 'image/png',
|
|
60
|
-
'.svg':
|
|
61
|
-
'.txt':
|
|
62
|
-
'.webp':
|
|
63
|
-
'.xml':
|
|
64
|
-
'.zip':
|
|
40
|
+
'.svg': 'image/svg+xml',
|
|
41
|
+
'.txt': 'text/plain',
|
|
42
|
+
'.webp': _0xbabd6a(0x2d9),
|
|
43
|
+
'.xml': _0xbabd6a(0x1d6),
|
|
44
|
+
'.zip': _0xbabd6a(0x239)
|
|
65
45
|
};
|
|
66
|
-
function guessContentType(
|
|
67
|
-
const
|
|
68
|
-
|
|
46
|
+
function guessContentType(_0x3042f6) {
|
|
47
|
+
const _0x4dd2a0 = {
|
|
48
|
+
_0x51ffd9: 0x243,
|
|
49
|
+
_0xe4fe41: 0x2a9
|
|
50
|
+
}, _0x2b497a = _0xbabd6a;
|
|
51
|
+
return MIME_BY_EXTENSION[_0x1c47dc[_0x2b497a(_0x4dd2a0._0x51ffd9)](_0x3042f6)[_0x2b497a(_0x4dd2a0._0xe4fe41)]()] ?? 'application/octet-stream';
|
|
69
52
|
}
|
|
70
|
-
function safeFilename(
|
|
71
|
-
return
|
|
53
|
+
function safeFilename(_0x14e72f) {
|
|
54
|
+
return _0x14e72f['replace'](/[\\/]/g, '-');
|
|
72
55
|
}
|
|
73
|
-
function extensionFor(
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
return
|
|
56
|
+
function extensionFor(_0x58069d) {
|
|
57
|
+
const _0x45f7b1 = {
|
|
58
|
+
_0x39a820: 0x1d9,
|
|
59
|
+
_0x5a5d17: 0x1fa
|
|
60
|
+
}, _0x47f0f9 = _0xbabd6a, _0x4a7b04 = Object[_0x47f0f9(_0x45f7b1._0x39a820)](MIME_BY_EXTENSION)['find'](([, _0x574648]) => _0x574648 === _0x58069d);
|
|
61
|
+
return _0x4a7b04?.[0x0] ?? _0x47f0f9(_0x45f7b1._0x5a5d17);
|
|
79
62
|
}
|
|
80
|
-
async function prepareUploadFile(
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
throw new Error(_0x3de585(_0x560aec._0x19c44f) + _0x3e4e1d[_0x3de585(0x333)]);
|
|
96
|
-
const _0x3d6ce8 = await readFile(_0x100a9f), _0x51248b = _0x76e9e3[_0x3de585(0x34e)](_0x100a9f);
|
|
63
|
+
async function prepareUploadFile(_0x3a0c05, _0xd37dda = {}) {
|
|
64
|
+
const _0x4d0093 = {
|
|
65
|
+
_0x38744f: 0x2b9,
|
|
66
|
+
_0x453015: 0x285,
|
|
67
|
+
_0x322009: 0x263
|
|
68
|
+
}, _0x7eee5a = _0xbabd6a;
|
|
69
|
+
if (!_0x1c47dc['isAbsolute'](_0x3a0c05))
|
|
70
|
+
throw new Error(_0x7eee5a(0x2a0));
|
|
71
|
+
const _0x4fc2c4 = await stat(_0x3a0c05)[_0x7eee5a(_0x4d0093._0x38744f)](() => null);
|
|
72
|
+
if (!_0x4fc2c4 || !_0x4fc2c4['isFile']())
|
|
73
|
+
throw new Error('File\x20not\x20found:\x20' + _0x3a0c05);
|
|
74
|
+
const _0x40cecc = _0xd37dda[_0x7eee5a(_0x4d0093._0x453015)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
75
|
+
if (_0x4fc2c4[_0x7eee5a(0x221)] > _0x40cecc)
|
|
76
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x4fc2c4['size']);
|
|
77
|
+
const _0x49b8eb = await readFile(_0x3a0c05), _0x589243 = _0x1c47dc['basename'](_0x3a0c05);
|
|
97
78
|
return {
|
|
98
|
-
'contentBase64':
|
|
99
|
-
'contentType': guessContentType(
|
|
100
|
-
'filename':
|
|
101
|
-
'sizeBytes':
|
|
79
|
+
'contentBase64': _0x49b8eb[_0x7eee5a(_0x4d0093._0x322009)](_0x7eee5a(0x2b3)),
|
|
80
|
+
'contentType': guessContentType(_0x589243),
|
|
81
|
+
'filename': _0x589243,
|
|
82
|
+
'sizeBytes': _0x4fc2c4['size']
|
|
102
83
|
};
|
|
103
84
|
}
|
|
104
|
-
function createAttachmentCache(
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
},
|
|
113
|
-
_0x1ec386: 0x201,
|
|
114
|
-
_0x5cbd23: 0x274
|
|
115
|
-
}, _0x424ce0 = _0x2d2fb4, _0x55b2dc = _0xc67010[_0x424ce0(_0x5874e4._0x12a987)] ?? _0x76e9e3[_0x424ce0(0x274)](homedir(), _0x424ce0(_0x5874e4._0x203481), _0x424ce0(0x304));
|
|
85
|
+
function createAttachmentCache(_0x4e9b9d = {}) {
|
|
86
|
+
const _0x484a2f = {
|
|
87
|
+
_0x58990a: 0x1fb,
|
|
88
|
+
_0x1c9957: 0x2c6
|
|
89
|
+
}, _0x10ee83 = {
|
|
90
|
+
_0x2a596a: 0x26b,
|
|
91
|
+
_0x415555: 0x2b7,
|
|
92
|
+
_0x4e887e: 0x26b
|
|
93
|
+
}, _0xaf639c = { _0x459fc7: 0x200 }, _0x3fc24f = _0xbabd6a, _0x4c5171 = _0x4e9b9d[_0x3fc24f(_0x484a2f._0x58990a)] ?? _0x1c47dc[_0x3fc24f(0x1d4)](homedir(), _0x3fc24f(_0x484a2f._0x1c9957), 'attachments');
|
|
116
94
|
return {
|
|
117
|
-
'cacheDir':
|
|
118
|
-
async 'findCachedPath'(
|
|
119
|
-
const
|
|
120
|
-
await mkdir(
|
|
121
|
-
const
|
|
122
|
-
return
|
|
95
|
+
'cacheDir': _0x4c5171,
|
|
96
|
+
async 'findCachedPath'(_0x3b2b57) {
|
|
97
|
+
const _0x4b418a = _0x3fc24f;
|
|
98
|
+
await mkdir(_0x4c5171, { 'recursive': !![] });
|
|
99
|
+
const _0x1a520e = await readdir(_0x4c5171), _0x5f56bb = _0x1a520e[_0x4b418a(_0xaf639c._0x459fc7)](_0xa2466b => _0xa2466b[_0x4b418a(0x1e3)](_0x3b2b57 + '-') || _0xa2466b['startsWith'](_0x3b2b57));
|
|
100
|
+
return _0x5f56bb ? _0x1c47dc[_0x4b418a(0x1d4)](_0x4c5171, _0x5f56bb) : null;
|
|
123
101
|
},
|
|
124
|
-
async 'save'(
|
|
125
|
-
const
|
|
126
|
-
await mkdir(
|
|
127
|
-
const
|
|
128
|
-
return await writeFile(
|
|
102
|
+
async 'save'(_0x57148f) {
|
|
103
|
+
const _0x21de18 = _0x3fc24f;
|
|
104
|
+
await mkdir(_0x4c5171, { 'recursive': !![] });
|
|
105
|
+
const _0x287146 = _0x57148f[_0x21de18(0x1b7)]?.['trim']() ? safeFilename(_0x57148f[_0x21de18(0x1b7)]) : '' + _0x57148f[_0x21de18(_0x10ee83._0x2a596a)] + extensionFor(_0x57148f[_0x21de18(_0x10ee83._0x415555)]), _0x34fbd1 = _0x1c47dc['join'](_0x4c5171, _0x57148f[_0x21de18(_0x10ee83._0x4e887e)] + '-' + _0x287146);
|
|
106
|
+
return await writeFile(_0x34fbd1, _0x57148f['data']), _0x34fbd1;
|
|
129
107
|
}
|
|
130
108
|
};
|
|
131
109
|
}
|
|
@@ -134,2232 +112,2223 @@ import {
|
|
|
134
112
|
randomUUID
|
|
135
113
|
} from 'node:crypto';
|
|
136
114
|
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
137
|
-
function ensureSegment(
|
|
138
|
-
const
|
|
139
|
-
if (!
|
|
115
|
+
function ensureSegment(_0x3d150b) {
|
|
116
|
+
const _0x1ac146 = { _0x5cdd27: 0x253 }, _0x2c43fe = _0xbabd6a, _0x74105b = _0x3d150b[_0x2c43fe(0x2ae)]();
|
|
117
|
+
if (!_0x74105b || _0x74105b[_0x2c43fe(_0x1ac146._0x5cdd27)](':'))
|
|
140
118
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
141
|
-
return
|
|
119
|
+
return _0x74105b;
|
|
142
120
|
}
|
|
143
|
-
function parseThreadParts(
|
|
144
|
-
const
|
|
145
|
-
if (
|
|
121
|
+
function parseThreadParts(_0x3d22f9) {
|
|
122
|
+
const _0x168cd3 = { _0x220c02: 0x18c }, _0x156649 = _0xbabd6a, _0x5e0b16 = _0x3d22f9['split'](':');
|
|
123
|
+
if (_0x5e0b16[_0x156649(0x18c)] < 0x1 || _0x5e0b16[_0x156649(_0x168cd3._0x220c02)] > 0x2)
|
|
146
124
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
147
125
|
return {
|
|
148
|
-
'channelName': ensureSegment(
|
|
149
|
-
'threadShortId':
|
|
126
|
+
'channelName': ensureSegment(_0x5e0b16[0x0] ?? ''),
|
|
127
|
+
'threadShortId': _0x5e0b16[0x1] ? ensureSegment(_0x5e0b16[0x1]) : null
|
|
150
128
|
};
|
|
151
129
|
}
|
|
152
|
-
function parseTarget(
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
if (!_0x1379a5)
|
|
130
|
+
function parseTarget(_0x31edee) {
|
|
131
|
+
const _0x476311 = {
|
|
132
|
+
_0x27f462: 0x2ae,
|
|
133
|
+
_0x32dbf2: 0x228,
|
|
134
|
+
_0x451a61: 0x1d5,
|
|
135
|
+
_0x213426: 0x1e3,
|
|
136
|
+
_0x2b1aa4: 0x230,
|
|
137
|
+
_0x4f07e5: 0x1e8,
|
|
138
|
+
_0x233cd0: 0x1f4,
|
|
139
|
+
_0x396b66: 0x1e3,
|
|
140
|
+
_0x4be103: 0x28f,
|
|
141
|
+
_0x3f9782: 0x230,
|
|
142
|
+
_0x455eba: 0x1f4
|
|
143
|
+
}, _0x1dd7b5 = _0xbabd6a, _0xf1a068 = _0x31edee[_0x1dd7b5(_0x476311._0x27f462)]();
|
|
144
|
+
if (!_0xf1a068)
|
|
168
145
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
169
|
-
if (
|
|
170
|
-
const
|
|
171
|
-
if (!
|
|
146
|
+
if (_0xf1a068['startsWith']('#')) {
|
|
147
|
+
const _0x4a71cc = parseThreadParts(_0xf1a068['slice'](0x1)), _0xada33 = '#' + _0x4a71cc[_0x1dd7b5(0x1f4)];
|
|
148
|
+
if (!_0x4a71cc[_0x1dd7b5(0x1d5)])
|
|
172
149
|
return {
|
|
173
|
-
'channelName':
|
|
174
|
-
'channelTarget':
|
|
175
|
-
'kind':
|
|
176
|
-
'target':
|
|
150
|
+
'channelName': _0x4a71cc['channelName'],
|
|
151
|
+
'channelTarget': _0xada33,
|
|
152
|
+
'kind': _0x1dd7b5(0x280),
|
|
153
|
+
'target': _0xada33
|
|
177
154
|
};
|
|
178
155
|
return {
|
|
179
|
-
'channelName':
|
|
180
|
-
'channelTarget':
|
|
181
|
-
'kind':
|
|
182
|
-
'target':
|
|
183
|
-
'threadShortId':
|
|
156
|
+
'channelName': _0x4a71cc[_0x1dd7b5(0x1f4)],
|
|
157
|
+
'channelTarget': _0xada33,
|
|
158
|
+
'kind': _0x1dd7b5(_0x476311._0x32dbf2),
|
|
159
|
+
'target': _0xada33 + ':' + _0x4a71cc['threadShortId'],
|
|
160
|
+
'threadShortId': _0x4a71cc[_0x1dd7b5(_0x476311._0x451a61)]
|
|
184
161
|
};
|
|
185
162
|
}
|
|
186
|
-
if (
|
|
187
|
-
const
|
|
188
|
-
if (!
|
|
163
|
+
if (_0xf1a068[_0x1dd7b5(_0x476311._0x213426)](_0x1dd7b5(_0x476311._0x2b1aa4))) {
|
|
164
|
+
const _0x5197d9 = parseThreadParts(_0xf1a068[_0x1dd7b5(_0x476311._0x4f07e5)](0x3));
|
|
165
|
+
if (!_0x5197d9[_0x1dd7b5(_0x476311._0x233cd0)][_0x1dd7b5(_0x476311._0x396b66)](_0x1dd7b5(_0x476311._0x4be103)))
|
|
189
166
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
167
|
+
const _0x30ebdf = _0x1dd7b5(_0x476311._0x3f9782) + _0x5197d9[_0x1dd7b5(0x1f4)];
|
|
168
|
+
if (!_0x5197d9[_0x1dd7b5(0x1d5)])
|
|
192
169
|
return {
|
|
193
|
-
'channelName':
|
|
194
|
-
'channelTarget':
|
|
195
|
-
'kind':
|
|
196
|
-
'target':
|
|
170
|
+
'channelName': _0x5197d9['channelName'],
|
|
171
|
+
'channelTarget': _0x30ebdf,
|
|
172
|
+
'kind': 'channel',
|
|
173
|
+
'target': _0x30ebdf
|
|
197
174
|
};
|
|
198
175
|
return {
|
|
199
|
-
'channelName':
|
|
200
|
-
'channelTarget':
|
|
201
|
-
'kind':
|
|
202
|
-
'target':
|
|
203
|
-
'threadShortId':
|
|
176
|
+
'channelName': _0x5197d9[_0x1dd7b5(_0x476311._0x455eba)],
|
|
177
|
+
'channelTarget': _0x30ebdf,
|
|
178
|
+
'kind': _0x1dd7b5(0x228),
|
|
179
|
+
'target': _0x30ebdf + ':' + _0x5197d9[_0x1dd7b5(0x1d5)],
|
|
180
|
+
'threadShortId': _0x5197d9[_0x1dd7b5(0x1d5)]
|
|
204
181
|
};
|
|
205
182
|
}
|
|
206
183
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
207
184
|
}
|
|
208
|
-
function asErrorMessage(
|
|
209
|
-
const
|
|
210
|
-
if (typeof
|
|
211
|
-
return
|
|
212
|
-
return
|
|
185
|
+
function asErrorMessage(_0x2ff313, _0x5d4755) {
|
|
186
|
+
const _0x14ff47 = { _0x16f91f: 0x1ff }, _0x5d786e = _0xbabd6a;
|
|
187
|
+
if (typeof _0x2ff313 === _0x5d786e(_0x14ff47._0x16f91f) && _0x2ff313[_0x5d786e(0x2ae)]())
|
|
188
|
+
return _0x2ff313;
|
|
189
|
+
return _0x5d4755;
|
|
213
190
|
}
|
|
214
|
-
function asRecord(
|
|
215
|
-
const
|
|
216
|
-
return typeof
|
|
191
|
+
function asRecord(_0x2219f8) {
|
|
192
|
+
const _0x109d65 = _0xbabd6a;
|
|
193
|
+
return typeof _0x2219f8 === _0x109d65(0x25e) && _0x2219f8 !== null ? _0x2219f8 : {};
|
|
217
194
|
}
|
|
218
|
-
function stableStringify(
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
195
|
+
function stableStringify(_0x1ec4fa) {
|
|
196
|
+
const _0x521710 = {
|
|
197
|
+
_0x2802bb: 0x1d4,
|
|
198
|
+
_0xbe70: 0x1d9,
|
|
199
|
+
_0x2aaf6d: 0x2e9,
|
|
200
|
+
_0x1283b1: 0x1c9,
|
|
201
|
+
_0xba580d: 0x1d4
|
|
202
|
+
}, _0x49518f = _0xbabd6a;
|
|
203
|
+
if (_0x1ec4fa === null || typeof _0x1ec4fa !== 'object')
|
|
204
|
+
return JSON[_0x49518f(0x176)](_0x1ec4fa);
|
|
205
|
+
if (Array['isArray'](_0x1ec4fa))
|
|
206
|
+
return '[' + _0x1ec4fa['map'](_0x62ea76 => stableStringify(_0x62ea76))[_0x49518f(_0x521710._0x2802bb)](',') + ']';
|
|
207
|
+
const _0x4284a8 = Object[_0x49518f(_0x521710._0xbe70)](_0x1ec4fa)[_0x49518f(_0x521710._0x2aaf6d)](([, _0x3f1584]) => _0x3f1584 !== void 0x0)[_0x49518f(_0x521710._0x1283b1)](([_0x4965dd], [_0x12d763]) => _0x4965dd['localeCompare'](_0x12d763))[_0x49518f(0x258)](([_0x6ce211, _0x263913]) => JSON[_0x49518f(0x176)](_0x6ce211) + ':' + stableStringify(_0x263913));
|
|
208
|
+
return '{' + _0x4284a8[_0x49518f(_0x521710._0xba580d)](',') + '}';
|
|
231
209
|
}
|
|
232
|
-
function createHeaders(
|
|
233
|
-
const
|
|
210
|
+
function createHeaders(_0x8061cc) {
|
|
211
|
+
const _0x5a74fe = _0xbabd6a;
|
|
234
212
|
return {
|
|
235
|
-
'Content-Type':
|
|
236
|
-
'x-daemon-api-key':
|
|
213
|
+
'Content-Type': _0x5a74fe(0x2e2),
|
|
214
|
+
'x-daemon-api-key': _0x8061cc
|
|
237
215
|
};
|
|
238
216
|
}
|
|
239
|
-
function toHttpBaseUrl(
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
if (_0x13bd58[_0x53d967(_0x5d87ba._0xe5e17e)] === 'ws:')
|
|
248
|
-
_0x13bd58[_0x53d967(_0x5d87ba._0x2219f4)] = _0x53d967(_0x5d87ba._0x33f533);
|
|
217
|
+
function toHttpBaseUrl(_0x59bc85) {
|
|
218
|
+
const _0x25a3be = {
|
|
219
|
+
_0xca16f2: 0x196,
|
|
220
|
+
_0x55c353: 0x1e2,
|
|
221
|
+
_0x916d6e: 0x1a2
|
|
222
|
+
}, _0x3e5b07 = _0xbabd6a, _0x376e0c = new URL(_0x59bc85);
|
|
223
|
+
if (_0x376e0c[_0x3e5b07(0x196)] === _0x3e5b07(0x246))
|
|
224
|
+
_0x376e0c[_0x3e5b07(_0x25a3be._0xca16f2)] = _0x3e5b07(_0x25a3be._0x55c353);
|
|
249
225
|
else
|
|
250
|
-
|
|
251
|
-
return
|
|
252
|
-
}
|
|
253
|
-
function isMentionBoundary(_0x5959c5) {
|
|
254
|
-
return !_0x5959c5 || /\s|[([{'",。!?、:;]/['test'](_0x5959c5);
|
|
255
|
-
}
|
|
256
|
-
function isMentionTerminal(_0x1171a7) {
|
|
257
|
-
const _0x246fb0 = _0x2d2fb4;
|
|
258
|
-
return !_0x1171a7 || /\s|[)\]}'",。!?、:;,.!?]/[_0x246fb0(0x29a)](_0x1171a7);
|
|
259
|
-
}
|
|
260
|
-
function buildMatchableEntries(_0x3e06a5) {
|
|
261
|
-
const _0x4acc56 = {
|
|
262
|
-
_0x228667: 0x1e9,
|
|
263
|
-
_0x4055d4: 0x2df,
|
|
264
|
-
_0x832769: 0x2e7,
|
|
265
|
-
_0x156fe8: 0x2f0
|
|
266
|
-
}, _0x1ca0c2 = _0x2d2fb4, _0x30178b = [];
|
|
267
|
-
for (const _0x4e23ba of [
|
|
268
|
-
..._0x3e06a5[_0x1ca0c2(_0x4acc56._0x228667)],
|
|
269
|
-
..._0x3e06a5['humans']
|
|
270
|
-
]) {
|
|
271
|
-
_0x30178b[_0x1ca0c2(_0x4acc56._0x4055d4)]({
|
|
272
|
-
'matchName': _0x4e23ba[_0x1ca0c2(_0x4acc56._0x832769)],
|
|
273
|
-
'matchNameLower': _0x4e23ba[_0x1ca0c2(0x2e7)][_0x1ca0c2(0x2f0)](),
|
|
274
|
-
'participantId': _0x4e23ba['id']
|
|
275
|
-
}), _0x4e23ba['id'] !== _0x4e23ba['name'] && _0x30178b['push']({
|
|
276
|
-
'matchName': _0x4e23ba['id'],
|
|
277
|
-
'matchNameLower': _0x4e23ba['id'][_0x1ca0c2(_0x4acc56._0x156fe8)](),
|
|
278
|
-
'participantId': _0x4e23ba['id']
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
return _0x30178b;
|
|
282
|
-
}
|
|
283
|
-
function extractMentionedParticipantIds(_0x2613f3, _0x248c51) {
|
|
284
|
-
const _0x10a8e2 = {
|
|
285
|
-
_0x156294: 0x25e,
|
|
286
|
-
_0x3fda93: 0x33f,
|
|
287
|
-
_0x56a6e3: 0x2ea,
|
|
288
|
-
_0x42f994: 0x2a1,
|
|
289
|
-
_0x579c4d: 0x27b
|
|
290
|
-
}, _0x2d76cc = {
|
|
291
|
-
_0x34b555: 0x266,
|
|
292
|
-
_0x32a469: 0x219
|
|
293
|
-
}, _0x8be4f2 = _0x2d2fb4, _0x474973 = buildMatchableEntries(_0x248c51)[_0x8be4f2(_0x10a8e2._0x156294)]((_0x48998d, _0x10ec6b) => _0x10ec6b[_0x8be4f2(0x211)][_0x8be4f2(0x34b)] - _0x48998d[_0x8be4f2(0x211)][_0x8be4f2(0x34b)]), _0x560650 = [], _0x4692e4 = new Set();
|
|
294
|
-
for (let _0x297f86 = 0x0; _0x297f86 < _0x2613f3['length']; _0x297f86 += 0x1) {
|
|
295
|
-
if (_0x2613f3[_0x297f86] !== '@' || !isMentionBoundary(_0x2613f3[_0x297f86 - 0x1]))
|
|
296
|
-
continue;
|
|
297
|
-
const _0x310b85 = _0x2613f3[_0x8be4f2(_0x10a8e2._0x3fda93)](_0x297f86 + 0x1), _0x35de8a = _0x310b85[_0x8be4f2(0x2f0)](), _0x2264c2 = _0x474973['find'](_0x3fa82d => {
|
|
298
|
-
const _0xf9bbbc = _0x8be4f2;
|
|
299
|
-
if (!_0x35de8a[_0xf9bbbc(_0x2d76cc._0x34b555)](_0x3fa82d[_0xf9bbbc(_0x2d76cc._0x32a469)]))
|
|
300
|
-
return ![];
|
|
301
|
-
return isMentionTerminal(_0x310b85[_0x3fa82d[_0xf9bbbc(0x211)]['length']]);
|
|
302
|
-
});
|
|
303
|
-
if (!_0x2264c2 || _0x4692e4[_0x8be4f2(_0x10a8e2._0x56a6e3)](_0x2264c2['participantId']))
|
|
304
|
-
continue;
|
|
305
|
-
_0x4692e4[_0x8be4f2(_0x10a8e2._0x42f994)](_0x2264c2[_0x8be4f2(_0x10a8e2._0x579c4d)]), _0x560650['push'](_0x2264c2[_0x8be4f2(_0x10a8e2._0x579c4d)]), _0x297f86 += _0x2264c2[_0x8be4f2(0x211)]['length'];
|
|
306
|
-
}
|
|
307
|
-
return _0x560650;
|
|
308
|
-
}
|
|
309
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
310
|
-
function anySignal(..._0x5e6196) {
|
|
311
|
-
const _0xc610b3 = {
|
|
312
|
-
_0x543372: 0x291,
|
|
313
|
-
_0x12a439: 0x33a
|
|
314
|
-
}, _0x465623 = _0x2d2fb4, _0x5a5ba9 = new AbortController();
|
|
315
|
-
for (const _0xfeea10 of _0x5e6196) {
|
|
316
|
-
if (_0xfeea10['aborted'])
|
|
317
|
-
return _0x5a5ba9[_0x465623(_0xc610b3._0x543372)](_0xfeea10[_0x465623(0x2cf)]), _0x5a5ba9[_0x465623(_0xc610b3._0x12a439)];
|
|
318
|
-
_0xfeea10['addEventListener'](_0x465623(0x291), () => _0x5a5ba9[_0x465623(0x291)](_0xfeea10[_0x465623(0x2cf)]), {
|
|
319
|
-
'once': !![],
|
|
320
|
-
'signal': _0x5a5ba9[_0x465623(_0xc610b3._0x12a439)]
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
return _0x5a5ba9[_0x465623(0x33a)];
|
|
324
|
-
}
|
|
325
|
-
function createInternalAgentClient(_0x2805d5) {
|
|
326
|
-
const _0x2b39be = {
|
|
327
|
-
_0x3e6ac4: 0x340,
|
|
328
|
-
_0xb3b98: 0x222,
|
|
329
|
-
_0x43fab6: 0x2fa
|
|
330
|
-
}, _0x4a34c6 = {
|
|
331
|
-
_0x2afd91: 0x249,
|
|
332
|
-
_0x9fa3c: 0x2a9,
|
|
333
|
-
_0x382185: 0x1fc,
|
|
334
|
-
_0x517cdc: 0x250,
|
|
335
|
-
_0xf5ba45: 0x277,
|
|
336
|
-
_0x583ed6: 0x369,
|
|
337
|
-
_0x1a47cf: 0x265,
|
|
338
|
-
_0x4cc23e: 0x224,
|
|
339
|
-
_0x2cc2d2: 0x34b,
|
|
340
|
-
_0x4b36a8: 0x214,
|
|
341
|
-
_0x5d76f9: 0x1ef,
|
|
342
|
-
_0x1899cf: 0x2c6,
|
|
343
|
-
_0x141de3: 0x30b,
|
|
344
|
-
_0x54d603: 0x293,
|
|
345
|
-
_0x36f940: 0x2a5,
|
|
346
|
-
_0x47728e: 0x28e,
|
|
347
|
-
_0x53ef4f: 0x2a5,
|
|
348
|
-
_0x1de2e1: 0x28e,
|
|
349
|
-
_0x5869e9: 0x26d,
|
|
350
|
-
_0x15f8fc: 0x28b,
|
|
351
|
-
_0x572fab: 0x248,
|
|
352
|
-
_0x31e2e9: 0x28e,
|
|
353
|
-
_0x3afce4: 0x248,
|
|
354
|
-
_0x43f076: 0x34a,
|
|
355
|
-
_0x45bfb1: 0x214,
|
|
356
|
-
_0x5956e4: 0x249,
|
|
357
|
-
_0x500d29: 0x2b7,
|
|
358
|
-
_0x3f1048: 0x295,
|
|
359
|
-
_0x175605: 0x224,
|
|
360
|
-
_0x7aba5b: 0x27e,
|
|
361
|
-
_0x2cf8f6: 0x26f,
|
|
362
|
-
_0x3bfb4b: 0x295,
|
|
363
|
-
_0x267c0d: 0x29c,
|
|
364
|
-
_0x5cc2ce: 0x2c0,
|
|
365
|
-
_0xddbe66: 0x2e2,
|
|
366
|
-
_0x3efa26: 0x25c
|
|
367
|
-
}, _0x17d241 = {
|
|
368
|
-
_0x37c35a: 0x365,
|
|
369
|
-
_0x487301: 0x341,
|
|
370
|
-
_0x50cea9: 0x293
|
|
371
|
-
}, _0x332201 = {
|
|
372
|
-
_0x298fcb: 0x277,
|
|
373
|
-
_0x4ce009: 0x1fe,
|
|
374
|
-
_0x2bac49: 0x339,
|
|
375
|
-
_0x5d0a21: 0x295,
|
|
376
|
-
_0x5c7330: 0x326,
|
|
377
|
-
_0x2ac55d: 0x268
|
|
378
|
-
}, _0x1dbdd3 = {
|
|
379
|
-
_0x5216bb: 0x365,
|
|
380
|
-
_0x241345: 0x1fc,
|
|
381
|
-
_0x9499c3: 0x286,
|
|
382
|
-
_0x181de7: 0x1fd,
|
|
383
|
-
_0xc30bde: 0x2f3,
|
|
384
|
-
_0x4378bd: 0x328,
|
|
385
|
-
_0x23c4ac: 0x369,
|
|
386
|
-
_0x48f350: 0x369,
|
|
387
|
-
_0x168fd9: 0x2c1
|
|
388
|
-
}, _0x5018c5 = { _0x2798ad: 0x250 }, _0x5391cd = {
|
|
389
|
-
_0x436d7f: 0x1fc,
|
|
390
|
-
_0x4a150d: 0x250
|
|
391
|
-
}, _0x4ac3f2 = {
|
|
392
|
-
_0x573fda: 0x229,
|
|
393
|
-
_0x16415f: 0x1ed
|
|
394
|
-
}, _0x4a9a9e = {
|
|
395
|
-
_0x17112e: 0x1fc,
|
|
396
|
-
_0x1e202e: 0x250,
|
|
397
|
-
_0x52cc81: 0x308
|
|
398
|
-
}, _0x292e33 = {
|
|
399
|
-
_0x1a570c: 0x365,
|
|
400
|
-
_0x2a24c3: 0x1fc,
|
|
401
|
-
_0x220c58: 0x259,
|
|
402
|
-
_0x4d5d17: 0x277
|
|
403
|
-
}, _0x8601f5 = {
|
|
404
|
-
_0x4b3e1f: 0x253,
|
|
405
|
-
_0x399197: 0x2b4,
|
|
406
|
-
_0x5d428c: 0x32c
|
|
407
|
-
}, _0x558ce1 = {
|
|
408
|
-
_0x3783f2: 0x253,
|
|
409
|
-
_0x261ecd: 0x2a2,
|
|
410
|
-
_0x265338: 0x286,
|
|
411
|
-
_0x4793f9: 0x369,
|
|
412
|
-
_0x51d372: 0x253
|
|
413
|
-
}, _0x538e0d = { _0x5e13a6: 0x2cb }, _0x51511d = { _0x32e89b: 0x28a }, _0x480263 = {
|
|
414
|
-
_0x855ff0: 0x1fd,
|
|
415
|
-
_0x351d98: 0x239,
|
|
416
|
-
_0x577a02: 0x1fc,
|
|
417
|
-
_0x183feb: 0x250,
|
|
418
|
-
_0x59bd41: 0x2e5,
|
|
419
|
-
_0xb4a82b: 0x361,
|
|
420
|
-
_0x1a1044: 0x30b,
|
|
421
|
-
_0x418ae7: 0x34b
|
|
422
|
-
}, _0x416b8d = {
|
|
423
|
-
_0x55fd97: 0x26e,
|
|
424
|
-
_0x591b4e: 0x249,
|
|
425
|
-
_0x117c11: 0x293,
|
|
426
|
-
_0x1a9cb4: 0x293,
|
|
427
|
-
_0x54c902: 0x30b,
|
|
428
|
-
_0x492f8f: 0x249,
|
|
429
|
-
_0x2ddf4d: 0x315,
|
|
430
|
-
_0x5e388a: 0x315,
|
|
431
|
-
_0x31ff99: 0x1fc,
|
|
432
|
-
_0x34ff04: 0x1ec,
|
|
433
|
-
_0x568daa: 0x369,
|
|
434
|
-
_0x387d8f: 0x281,
|
|
435
|
-
_0x2c91e5: 0x332
|
|
436
|
-
}, _0x558bce = { _0xf13cc3: 0x27b }, _0x4cd787 = {
|
|
437
|
-
_0x384100: 0x281,
|
|
438
|
-
_0x28ded2: 0x28e,
|
|
439
|
-
_0x3efcdc: 0x260,
|
|
440
|
-
_0x595acb: 0x293,
|
|
441
|
-
_0x4064e2: 0x260
|
|
442
|
-
}, _0x2f78fe = {
|
|
443
|
-
_0x1e2e8e: 0x26d,
|
|
444
|
-
_0x594d07: 0x281,
|
|
445
|
-
_0x29fc93: 0x28e,
|
|
446
|
-
_0x4574c7: 0x293,
|
|
447
|
-
_0x3d1563: 0x281,
|
|
448
|
-
_0x365cd2: 0x33f,
|
|
449
|
-
_0x3a3184: 0x281
|
|
450
|
-
}, _0x186488 = {
|
|
451
|
-
_0x29e830: 0x23e,
|
|
452
|
-
_0x5816a0: 0x352
|
|
453
|
-
}, _0xb6ae38 = {
|
|
454
|
-
_0x38b2ce: 0x369,
|
|
455
|
-
_0x10b15a: 0x21f,
|
|
456
|
-
_0x2c720b: 0x27e,
|
|
457
|
-
_0x47d38f: 0x1ef,
|
|
458
|
-
_0x5e1c77: 0x369,
|
|
459
|
-
_0xb73ad6: 0x34d,
|
|
460
|
-
_0x27bb4c: 0x2f4
|
|
461
|
-
}, _0x4174cd = {
|
|
462
|
-
_0x543fb3: 0x2d6,
|
|
463
|
-
_0x3595a8: 0x363,
|
|
464
|
-
_0x5e5117: 0x369,
|
|
465
|
-
_0x50c9a8: 0x369,
|
|
466
|
-
_0x364e76: 0x26d
|
|
467
|
-
}, _0xcaf13f = {
|
|
468
|
-
_0x498d86: 0x286,
|
|
469
|
-
_0x871932: 0x208,
|
|
470
|
-
_0x48153a: 0x1fe
|
|
471
|
-
}, _0x58844e = {
|
|
472
|
-
_0x44dd62: 0x26a,
|
|
473
|
-
_0xaafffb: 0x20a
|
|
474
|
-
}, _0x5f2073 = {
|
|
475
|
-
_0x2b3b31: 0x2d5,
|
|
476
|
-
_0x54f817: 0x208,
|
|
477
|
-
_0x2d7cbb: 0x1fe
|
|
478
|
-
}, _0x21f38d = {
|
|
479
|
-
_0x1c5e52: 0x33a,
|
|
480
|
-
_0x19bedc: 0x33a,
|
|
481
|
-
_0x495bb7: 0x33a,
|
|
482
|
-
_0x356df6: 0x21b,
|
|
483
|
-
_0x3ccb8c: 0x2d5,
|
|
484
|
-
_0x3c2b9b: 0x208
|
|
485
|
-
}, _0x30b41e = {
|
|
486
|
-
_0x4c3077: 0x2e1,
|
|
487
|
-
_0x4d8d17: 0x280,
|
|
488
|
-
_0x47dbf1: 0x2b9,
|
|
489
|
-
_0x37772d: 0x278,
|
|
490
|
-
_0x5e1127: 0x249
|
|
491
|
-
}, _0x214928 = {
|
|
492
|
-
_0xda973d: 0x2ab,
|
|
493
|
-
_0x2ea7c0: 0x349
|
|
494
|
-
}, _0x10451a = {
|
|
495
|
-
_0x51e9fd: 0x339,
|
|
496
|
-
_0x3dc59a: 0x25d,
|
|
497
|
-
_0x227dfc: 0x322,
|
|
498
|
-
_0x2b8ece: 0x362,
|
|
499
|
-
_0x234777: 0x302,
|
|
500
|
-
_0xc09020: 0x33f,
|
|
501
|
-
_0x3fdb3e: 0x1eb,
|
|
502
|
-
_0x25ebd1: 0x2e0
|
|
503
|
-
}, _0x521ea7 = _0x2d2fb4, _0x30d87c = _0x2805d5[_0x521ea7(0x23d)] ?? fetch, _0x50df63 = _0x2805d5[_0x521ea7(0x228)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x579b40 = typeof _0x2805d5[_0x521ea7(_0x2b39be._0x3e6ac4)] === _0x521ea7(0x28b) && _0x2805d5[_0x521ea7(0x340)] > 0x0 ? _0x2805d5[_0x521ea7(0x340)] : 0x0, _0x4ce33a = _0x2805d5[_0x521ea7(0x231)]?.[_0x521ea7(0x302)]() || void 0x0, _0x343f7c = _0x2805d5[_0x521ea7(_0x2b39be._0xb3b98)]?.[_0x521ea7(0x302)]() || void 0x0, _0x3211ee = _0x2805d5[_0x521ea7(0x267)] === !![], _0x3b4ad0 = _0x2805d5[_0x521ea7(0x2f8)]?.['trim']() || void 0x0, _0x56a32d = _0x2805d5['workerThreadTarget']?.[_0x521ea7(0x302)]() || void 0x0, _0x1c43d2 = createHeaders(_0x2805d5['daemonApiKey']), _0x425b5f = toHttpBaseUrl(_0x2805d5[_0x521ea7(_0x2b39be._0x43fab6)]);
|
|
504
|
-
let _0x48840d = null;
|
|
505
|
-
const _0x471597 = new Map();
|
|
506
|
-
let _0x1ddb77 = _0x579b40, _0x533bdb = _0x579b40;
|
|
507
|
-
function _0x4d1901(_0x4777fe) {
|
|
508
|
-
const _0x2bd0fa = _0x521ea7, _0x59b025 = _0x4777fe['response'][_0x2bd0fa(_0x10451a._0x51e9fd)][_0x2bd0fa(0x295)](_0x2bd0fa(_0x10451a._0x3dc59a)) ?? _0x2bd0fa(_0x10451a._0x227dfc), _0x49c52b = _0x4777fe[_0x2bd0fa(_0x10451a._0x2b8ece)][_0x2bd0fa(_0x10451a._0x234777)]()['replace'](/\s+/g, '\x20')[_0x2bd0fa(_0x10451a._0xc09020)](0x0, 0x78) || '<empty>';
|
|
509
|
-
return _0x2bd0fa(0x23c) + _0x4777fe[_0x2bd0fa(_0x10451a._0x3fdb3e)] + _0x2bd0fa(0x1f7) + _0x4777fe[_0x2bd0fa(_0x10451a._0x25ebd1)]['status'] + ',\x20content-type=' + _0x59b025 + _0x2bd0fa(0x212) + _0x49c52b + _0x2bd0fa(0x2a7);
|
|
510
|
-
}
|
|
511
|
-
async function _0x454aa0(_0xae3183, _0x98866b) {
|
|
512
|
-
const _0x476380 = _0x521ea7, _0x50b63d = Buffer[_0x476380(0x326)](await _0x98866b[_0x476380(0x347)]())['toString'](_0x476380(_0x214928._0xda973d));
|
|
513
|
-
if (!_0x50b63d['trim']())
|
|
514
|
-
return {};
|
|
515
|
-
try {
|
|
516
|
-
return JSON[_0x476380(_0x214928._0x2ea7c0)](_0x50b63d);
|
|
517
|
-
} catch {
|
|
518
|
-
throw new Error(_0x4d1901({
|
|
519
|
-
'bodyText': _0x50b63d,
|
|
520
|
-
'requestUrl': _0xae3183,
|
|
521
|
-
'response': _0x98866b
|
|
522
|
-
}));
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
function _0x4fb46f(_0x4996cc, _0xd619c2) {
|
|
526
|
-
const _0x2eaafd = _0x521ea7, _0x293bf9 = typeof _0xd619c2['idempotency_key'] === _0x2eaafd(0x2a5) ? _0xd619c2['idempotency_key'][_0x2eaafd(0x302)]() : '';
|
|
527
|
-
if (_0x293bf9)
|
|
528
|
-
return _0x293bf9;
|
|
529
|
-
const _0x5cca09 = Date['now']();
|
|
530
|
-
for (const [_0x520428, _0x559e17] of _0x471597) {
|
|
531
|
-
_0x559e17[_0x2eaafd(0x1ea)] <= _0x5cca09 && _0x471597['delete'](_0x520428);
|
|
532
|
-
}
|
|
533
|
-
const _0x389eb6 = {
|
|
534
|
-
..._0xd619c2,
|
|
535
|
-
'idempotency_key': void 0x0
|
|
536
|
-
}, _0x5c7298 = createHash(_0x2eaafd(_0x30b41e._0x4c3077))[_0x2eaafd(_0x30b41e._0x4d8d17)](_0x4996cc + ':' + stableStringify(_0x389eb6))['digest'](_0x2eaafd(0x300)), _0x32a56e = _0x4996cc + ':' + _0x5c7298, _0xc31772 = _0x471597['get'](_0x32a56e);
|
|
537
|
-
if (_0xc31772)
|
|
538
|
-
return _0xc31772[_0x2eaafd(_0x30b41e._0x47dbf1)];
|
|
539
|
-
const _0x4b4c34 = _0x2eaafd(_0x30b41e._0x37772d) + _0x4996cc + ':' + randomUUID();
|
|
540
|
-
return _0x471597[_0x2eaafd(_0x30b41e._0x5e1127)](_0x32a56e, {
|
|
541
|
-
'expiresAt': _0x5cca09 + 0x5 * 0x3c * 0x3e8,
|
|
542
|
-
'value': _0x4b4c34
|
|
543
|
-
}), _0x4b4c34;
|
|
544
|
-
}
|
|
545
|
-
async function _0x401cce(_0x571743, _0x30adf7) {
|
|
546
|
-
const _0x338d7c = _0x521ea7, _0x9c065b = new AbortController(), _0x2ffbc3 = setTimeout(() => _0x9c065b[_0x338d7c(0x291)](), _0x50df63), _0x1630ce = _0x30adf7?.[_0x338d7c(_0x21f38d._0x1c5e52)] ? anySignal(_0x30adf7[_0x338d7c(0x33a)], _0x9c065b[_0x338d7c(_0x21f38d._0x19bedc)]) : _0x9c065b[_0x338d7c(_0x21f38d._0x495bb7)], _0xc85d0d = '' + _0x425b5f + _0x571743;
|
|
547
|
-
try {
|
|
548
|
-
const _0x40c4ea = await _0x30d87c(_0xc85d0d, {
|
|
549
|
-
..._0x30adf7,
|
|
550
|
-
'signal': _0x1630ce
|
|
551
|
-
}), _0xdcf03a = await _0x454aa0(_0xc85d0d, _0x40c4ea);
|
|
552
|
-
if (!_0x40c4ea['ok'] || _0xdcf03a[_0x338d7c(_0x21f38d._0x356df6)] === ![])
|
|
553
|
-
throw new Error(asErrorMessage(_0xdcf03a[_0x338d7c(_0x21f38d._0x3ccb8c)], _0x338d7c(_0x21f38d._0x3c2b9b) + _0x40c4ea[_0x338d7c(0x1fe)]));
|
|
554
|
-
return _0xdcf03a;
|
|
555
|
-
} finally {
|
|
556
|
-
clearTimeout(_0x2ffbc3);
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
async function _0x166648(_0x1b1fdc, _0x1cbcb5) {
|
|
560
|
-
const _0x53bd0e = _0x521ea7, _0x15d522 = new AbortController(), _0x20a9c8 = setTimeout(() => _0x15d522['abort'](), _0x50df63), _0x2f07c1 = _0x1cbcb5?.['signal'] ? anySignal(_0x1cbcb5[_0x53bd0e(0x33a)], _0x15d522['signal']) : _0x15d522['signal'], _0x31e5fb = '' + _0x425b5f + _0x1b1fdc;
|
|
561
|
-
try {
|
|
562
|
-
const _0x56d002 = await _0x30d87c(_0x31e5fb, {
|
|
563
|
-
..._0x1cbcb5,
|
|
564
|
-
'signal': _0x2f07c1
|
|
565
|
-
}), _0x48ee6e = await _0x454aa0(_0x31e5fb, _0x56d002);
|
|
566
|
-
if (!_0x56d002['ok'])
|
|
567
|
-
throw new Error(asErrorMessage(_0x48ee6e[_0x53bd0e(_0x5f2073._0x2b3b31)], _0x53bd0e(_0x5f2073._0x54f817) + _0x56d002[_0x53bd0e(_0x5f2073._0x2d7cbb)]));
|
|
568
|
-
return _0x48ee6e;
|
|
569
|
-
} finally {
|
|
570
|
-
clearTimeout(_0x20a9c8);
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
async function _0x26688c(_0x1d112f) {
|
|
574
|
-
const _0x453d17 = _0x521ea7;
|
|
575
|
-
if (!_0x343f7c || _0x1d112f <= _0x533bdb)
|
|
576
|
-
return;
|
|
577
|
-
await _0x401cce(_0x453d17(_0x58844e._0x44dd62) + encodeURIComponent(_0x343f7c) + _0x453d17(_0x58844e._0xaafffb), {
|
|
578
|
-
'body': JSON['stringify']({ 'lastSeenSeq': _0x1d112f }),
|
|
579
|
-
'headers': _0x1c43d2,
|
|
580
|
-
'method': _0x453d17(0x2ce)
|
|
581
|
-
}), _0x533bdb = _0x1d112f;
|
|
582
|
-
}
|
|
583
|
-
async function _0x563125(_0x3cd930) {
|
|
584
|
-
const _0x16cb24 = _0x521ea7;
|
|
585
|
-
if (!_0x4ce33a || !_0x3b4ad0 || _0x3cd930 <= _0x533bdb)
|
|
586
|
-
return;
|
|
587
|
-
const _0x4032f3 = await _0x30d87c(_0x4ce33a + _0x16cb24(0x28f), {
|
|
588
|
-
'body': JSON[_0x16cb24(_0xcaf13f._0x498d86)]({
|
|
589
|
-
'last_seen_seq': _0x3cd930,
|
|
590
|
-
'worker_session_id': _0x3b4ad0
|
|
591
|
-
}),
|
|
592
|
-
'headers': { 'Content-Type': _0x16cb24(0x2a6) },
|
|
593
|
-
'method': _0x16cb24(0x1ed)
|
|
594
|
-
});
|
|
595
|
-
if (!_0x4032f3['ok'])
|
|
596
|
-
throw new Error(_0x16cb24(_0xcaf13f._0x871932) + _0x4032f3[_0x16cb24(_0xcaf13f._0x48153a)]);
|
|
597
|
-
_0x533bdb = _0x3cd930;
|
|
598
|
-
}
|
|
599
|
-
async function _0x4fee2c(_0x4399af) {
|
|
600
|
-
const _0x56feee = _0x521ea7, _0x20e2cd = parseTarget(_0x4399af), _0x4d4090 = await _0x401cce(_0x56feee(0x1fc) + _0x2805d5[_0x56feee(0x250)] + _0x56feee(_0x4174cd._0x543fb3), {
|
|
601
|
-
'body': JSON[_0x56feee(0x286)]({ 'target': _0x20e2cd['target'] }),
|
|
602
|
-
'headers': _0x1c43d2,
|
|
603
|
-
'method': _0x56feee(0x1ed)
|
|
604
|
-
});
|
|
605
|
-
return {
|
|
606
|
-
'channelId': _0x4d4090[_0x56feee(0x369)]?.[_0x56feee(0x30b)] ?? '',
|
|
607
|
-
'target': _0x20e2cd[_0x56feee(0x281)],
|
|
608
|
-
'task': _0x4d4090[_0x56feee(0x369)]?.[_0x56feee(_0x4174cd._0x3595a8)],
|
|
609
|
-
'threadId': _0x4d4090[_0x56feee(_0x4174cd._0x5e5117)]?.[_0x56feee(0x293)],
|
|
610
|
-
'threadNumber': _0x4d4090[_0x56feee(_0x4174cd._0x50c9a8)]?.[_0x56feee(_0x4174cd._0x364e76)]
|
|
611
|
-
};
|
|
612
|
-
}
|
|
613
|
-
async function _0x552e56(_0x49445b = {}) {
|
|
614
|
-
const _0x28604e = _0x521ea7;
|
|
615
|
-
if (!_0x49445b[_0x28604e(_0x186488._0x29e830)] && _0x48840d)
|
|
616
|
-
return _0x48840d;
|
|
617
|
-
return _0x48840d = (async () => {
|
|
618
|
-
const _0x23ff44 = _0x28604e, _0x5c303c = await _0x401cce('/internal/agent/' + _0x2805d5[_0x23ff44(0x250)] + _0x23ff44(0x1f5), {
|
|
619
|
-
'headers': _0x1c43d2,
|
|
620
|
-
'method': _0x23ff44(0x277)
|
|
621
|
-
}), _0x226d16 = _0x5c303c[_0x23ff44(_0xb6ae38._0x38b2ce)]?.[_0x23ff44(_0xb6ae38._0x10b15a)] ?? [], _0x507b19 = _0x226d16['filter'](_0x4568bb => _0x4568bb['participant']?.[_0x23ff44(0x1fa)] === _0x23ff44(0x207))[_0x23ff44(_0xb6ae38._0x2c720b)](_0x5ef60f => ({
|
|
622
|
-
'id': _0x52dc7b(_0x5ef60f),
|
|
623
|
-
'name': _0x9dfb00(_0x5ef60f)
|
|
624
|
-
}))[_0x23ff44(0x1ef)](_0x48b4a8 => _0x48b4a8['id']), _0x20ca8e = _0x226d16[_0x23ff44(_0xb6ae38._0x47d38f)](_0x4e507 => _0x4e507[_0x23ff44(0x26c)]?.[_0x23ff44(0x1fa)] !== _0x23ff44(0x207))[_0x23ff44(0x27e)](_0x68aec9 => ({
|
|
625
|
-
'id': _0x52dc7b(_0x68aec9),
|
|
626
|
-
'name': _0x9dfb00(_0x68aec9)
|
|
627
|
-
}))['filter'](_0x56e663 => _0x56e663['id']), _0x5437fe = _0x5c303c[_0x23ff44(0x369)]?.[_0x23ff44(0x2f4)]['id'] ?? '';
|
|
628
|
-
return {
|
|
629
|
-
'agents': _0x507b19,
|
|
630
|
-
'channels': _0x5c303c[_0x23ff44(_0xb6ae38._0x5e1c77)]?.[_0x23ff44(_0xb6ae38._0xb73ad6)] ?? [],
|
|
631
|
-
'humans': _0x20ca8e,
|
|
632
|
-
'serverId': _0x5437fe,
|
|
633
|
-
'serverName': _0x5c303c[_0x23ff44(_0xb6ae38._0x5e1c77)]?.[_0x23ff44(_0xb6ae38._0x27bb4c)][_0x23ff44(0x2e7)] ?? _0x5437fe
|
|
634
|
-
};
|
|
635
|
-
})()[_0x28604e(_0x186488._0x5816a0)](_0x3768ad => {
|
|
636
|
-
_0x48840d = null;
|
|
637
|
-
throw _0x3768ad;
|
|
638
|
-
}), _0x48840d;
|
|
639
|
-
}
|
|
640
|
-
function _0x36bf2f(_0x5b14fc, _0x370895) {
|
|
641
|
-
const _0x471c25 = _0x521ea7;
|
|
642
|
-
return _0x370895['agents']['some'](_0x5116e1 => _0x5116e1['id'] === _0x5b14fc || _0x5116e1[_0x471c25(0x2e7)] === _0x5b14fc) ? _0x471c25(0x207) : 'human';
|
|
643
|
-
}
|
|
644
|
-
function _0xf96b98(_0x15ea66) {
|
|
645
|
-
const _0x501a41 = _0x521ea7;
|
|
646
|
-
if (_0x15ea66[_0x501a41(_0x2f78fe._0x1e2e8e)] != null)
|
|
647
|
-
return _0x15ea66[_0x501a41(_0x2f78fe._0x594d07)] + ':t' + _0x15ea66[_0x501a41(_0x2f78fe._0x1e2e8e)];
|
|
648
|
-
if (_0x15ea66[_0x501a41(_0x2f78fe._0x29fc93)])
|
|
649
|
-
return _0x15ea66[_0x501a41(0x281)] + ':' + _0x15ea66['rootMessageId'];
|
|
650
|
-
if (_0x15ea66[_0x501a41(_0x2f78fe._0x4574c7)])
|
|
651
|
-
return _0x15ea66[_0x501a41(_0x2f78fe._0x3d1563)] + ':' + _0x15ea66[_0x501a41(0x293)][_0x501a41(_0x2f78fe._0x365cd2)](0x0, 0x8);
|
|
652
|
-
return _0x15ea66[_0x501a41(_0x2f78fe._0x3a3184)];
|
|
653
|
-
}
|
|
654
|
-
function _0x5fc82a(_0x46533d, _0x1e1b8a) {
|
|
655
|
-
const _0x29d03e = _0x521ea7;
|
|
656
|
-
try {
|
|
657
|
-
const _0x19697a = parseTarget(_0x46533d);
|
|
658
|
-
if (_0x19697a['kind'] !== 'thread' || _0x19697a[_0x29d03e(_0x4cd787._0x384100)] !== _0x1e1b8a['channelTarget'])
|
|
659
|
-
return ![];
|
|
660
|
-
if (_0x1e1b8a[_0x29d03e(0x26d)] != null && _0x19697a[_0x29d03e(0x260)] === 't' + _0x1e1b8a[_0x29d03e(0x26d)])
|
|
661
|
-
return !![];
|
|
662
|
-
if (_0x1e1b8a[_0x29d03e(_0x4cd787._0x28ded2)])
|
|
663
|
-
return _0x19697a['threadShortId'] === _0x1e1b8a[_0x29d03e(0x28e)] || _0x1e1b8a[_0x29d03e(0x28e)]['startsWith'](_0x19697a[_0x29d03e(_0x4cd787._0x3efcdc)]);
|
|
664
|
-
if (_0x1e1b8a[_0x29d03e(_0x4cd787._0x595acb)])
|
|
665
|
-
return _0x19697a[_0x29d03e(_0x4cd787._0x4064e2)] === _0x1e1b8a['threadId'] || _0x1e1b8a['threadId']['startsWith'](_0x19697a['threadShortId']);
|
|
666
|
-
return ![];
|
|
667
|
-
} catch {
|
|
668
|
-
return ![];
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
function _0x52dc7b(_0x48852d) {
|
|
672
|
-
const _0x124760 = _0x521ea7;
|
|
673
|
-
return _0x48852d[_0x124760(0x2c8)]?.['participantId'] ?? _0x48852d[_0x124760(0x26c)]?.['id'] ?? _0x48852d[_0x124760(_0x558bce._0xf13cc3)] ?? '';
|
|
674
|
-
}
|
|
675
|
-
function _0x9dfb00(_0xec3dec) {
|
|
676
|
-
const _0x616736 = _0x521ea7;
|
|
677
|
-
return _0xec3dec[_0x616736(0x26c)]?.['name'] ?? _0x52dc7b(_0xec3dec);
|
|
678
|
-
}
|
|
679
|
-
async function _0x28c072(_0x558451) {
|
|
680
|
-
const _0x3781f1 = _0x521ea7, _0x31a99b = Math[_0x3781f1(_0x416b8d._0x55fd97)](_0x558451[_0x3781f1(0x341)] ?? 0x32, 0x64), _0x12c5e8 = await _0x552e56(), _0x412f25 = new URLSearchParams();
|
|
681
|
-
_0x412f25[_0x3781f1(_0x416b8d._0x591b4e)](_0x3781f1(0x341), String(_0x31a99b));
|
|
682
|
-
_0x558451['threadId'] ? (_0x412f25[_0x3781f1(0x249)](_0x3781f1(_0x416b8d._0x117c11), _0x558451[_0x3781f1(_0x416b8d._0x1a9cb4)]), _0x412f25[_0x3781f1(0x249)](_0x3781f1(0x30b), _0x558451[_0x3781f1(_0x416b8d._0x54c902)])) : _0x412f25[_0x3781f1(_0x416b8d._0x492f8f)]('channelId', _0x558451[_0x3781f1(0x30b)]);
|
|
683
|
-
_0x558451[_0x3781f1(_0x416b8d._0x2ddf4d)] && _0x412f25[_0x3781f1(_0x416b8d._0x591b4e)]('cursor', String(_0x558451[_0x3781f1(_0x416b8d._0x5e388a)]));
|
|
684
|
-
_0x558451[_0x3781f1(0x371)] !== void 0x0 && _0x412f25[_0x3781f1(0x249)](_0x3781f1(0x371), String(_0x558451['after']));
|
|
685
|
-
const _0x2a71b = await _0x401cce(_0x3781f1(_0x416b8d._0x31ff99) + _0x2805d5[_0x3781f1(0x250)] + _0x3781f1(_0x416b8d._0x34ff04) + _0x412f25['toString'](), {
|
|
686
|
-
'headers': _0x1c43d2,
|
|
687
|
-
'method': 'GET'
|
|
688
|
-
}), _0x386009 = (_0x2a71b[_0x3781f1(_0x416b8d._0x568daa)] ?? [])['map'](_0x140c15 => ({
|
|
689
|
-
'attachments': (_0x140c15[_0x3781f1(0x304)] ?? [])[_0x3781f1(0x27e)](_0x1390c3 => ({
|
|
690
|
-
'filename': _0x1390c3[_0x3781f1(0x269)] ?? _0x1390c3['id'],
|
|
691
|
-
'id': _0x1390c3['id']
|
|
692
|
-
})),
|
|
693
|
-
'content': _0x140c15[_0x3781f1(0x2e2)] ?? '',
|
|
694
|
-
'createdAt': _0x140c15[_0x3781f1(0x29c)],
|
|
695
|
-
..._0x140c15[_0x3781f1(0x2b2)] && _0x140c15[_0x3781f1(0x2b2)] !== 'chat' ? { 'kind': _0x140c15[_0x3781f1(0x2b2)] } : {},
|
|
696
|
-
'messageId': _0x140c15['id'],
|
|
697
|
-
'senderName': _0x140c15[_0x3781f1(0x27a)],
|
|
698
|
-
'senderType': _0x36bf2f(_0x140c15[_0x3781f1(0x27a)], _0x12c5e8),
|
|
699
|
-
'seq': _0x140c15[_0x3781f1(0x358)] ?? 0x0
|
|
700
|
-
}));
|
|
701
|
-
return {
|
|
702
|
-
'channel': _0x558451[_0x3781f1(_0x416b8d._0x387d8f)],
|
|
703
|
-
'hasMore': _0x2a71b[_0x3781f1(0x332)]?.[_0x3781f1(0x204)] ?? ![],
|
|
704
|
-
'messages': _0x386009,
|
|
705
|
-
'nextCursor': _0x2a71b[_0x3781f1(_0x416b8d._0x2c91e5)]?.[_0x3781f1(0x265)]
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
return {
|
|
709
|
-
async 'sendMessage'(_0x53ca15) {
|
|
710
|
-
const _0x3dbe12 = _0x521ea7, _0x32e925 = await _0x4fee2c(_0x53ca15[_0x3dbe12(_0x480263._0x855ff0)]), _0x146ffa = _0x53ca15['content'][_0x3dbe12(0x2ad)]('@') ? extractMentionedParticipantIds(_0x53ca15[_0x3dbe12(_0x480263._0x351d98)], await _0x552e56()) : [], _0xcdda96 = await _0x401cce(_0x3dbe12(_0x480263._0x577a02) + _0x2805d5[_0x3dbe12(_0x480263._0x183feb)] + _0x3dbe12(_0x480263._0x59bd41), {
|
|
711
|
-
'body': JSON[_0x3dbe12(0x286)]({
|
|
712
|
-
'attachment_ids': _0x53ca15[_0x3dbe12(_0x480263._0xb4a82b)],
|
|
713
|
-
'bodyMarkdown': _0x53ca15[_0x3dbe12(_0x480263._0x351d98)],
|
|
714
|
-
'channelId': _0x32e925[_0x3dbe12(_0x480263._0x1a1044)],
|
|
715
|
-
..._0x146ffa[_0x3dbe12(_0x480263._0x418ae7)] > 0x0 ? { 'mentionedParticipantIds': _0x146ffa } : {},
|
|
716
|
-
'threadId': _0x32e925['threadId'],
|
|
717
|
-
..._0x53ca15[_0x3dbe12(0x22a)] ? { 'visibility': _0x53ca15['visibility'] } : {}
|
|
718
|
-
}),
|
|
719
|
-
'headers': _0x1c43d2,
|
|
720
|
-
'method': _0x3dbe12(0x1ed)
|
|
721
|
-
});
|
|
722
|
-
return { 'messageId': _0xcdda96['data']?.['id'] ?? '' };
|
|
723
|
-
},
|
|
724
|
-
async 'listSchedules'() {
|
|
725
|
-
const _0x5afc4b = _0x521ea7, _0x4ee35c = await _0x401cce(_0x5afc4b(_0x51511d._0x32e89b), {
|
|
726
|
-
'headers': _0x1c43d2,
|
|
727
|
-
'method': _0x5afc4b(0x277)
|
|
728
|
-
});
|
|
729
|
-
return _0x4ee35c[_0x5afc4b(0x369)] ?? [];
|
|
730
|
-
},
|
|
731
|
-
async 'claimScheduleRun'(_0x4601b6) {
|
|
732
|
-
const _0x8a51e9 = _0x521ea7, _0x54ffd6 = await _0x401cce(_0x8a51e9(_0x538e0d._0x5e13a6), {
|
|
733
|
-
'body': JSON['stringify'](_0x4601b6),
|
|
734
|
-
'headers': _0x1c43d2,
|
|
735
|
-
'method': _0x8a51e9(0x1ed)
|
|
736
|
-
});
|
|
737
|
-
return _0x54ffd6[_0x8a51e9(0x369)] ?? {
|
|
738
|
-
'granted': ![],
|
|
739
|
-
'runId': null,
|
|
740
|
-
'schedule': null,
|
|
741
|
-
'scheduledFor': _0x4601b6[_0x8a51e9(0x283)]
|
|
742
|
-
};
|
|
743
|
-
},
|
|
744
|
-
async 'startScheduleRun'(_0x2c8d2a) {
|
|
745
|
-
const _0x5449ec = _0x521ea7, _0x562acf = await _0x401cce(_0x5449ec(0x299) + encodeURIComponent(_0x2c8d2a[_0x5449ec(_0x558ce1._0x3783f2)]) + _0x5449ec(_0x558ce1._0x261ecd), {
|
|
746
|
-
'body': JSON[_0x5449ec(_0x558ce1._0x265338)]({}),
|
|
747
|
-
'headers': _0x1c43d2,
|
|
748
|
-
'method': _0x5449ec(0x1ed)
|
|
749
|
-
});
|
|
750
|
-
return _0x562acf[_0x5449ec(_0x558ce1._0x4793f9)] ?? {
|
|
751
|
-
'claimedByDaemonId': '',
|
|
752
|
-
'id': _0x2c8d2a[_0x5449ec(_0x558ce1._0x51d372)],
|
|
753
|
-
'scheduleId': '',
|
|
754
|
-
'status': 'running'
|
|
755
|
-
};
|
|
756
|
-
},
|
|
757
|
-
async 'finishScheduleRun'(_0x278f44) {
|
|
758
|
-
const _0x41aec8 = _0x521ea7, _0x36b87b = await _0x401cce('/api/internal/schedules/' + encodeURIComponent(_0x278f44[_0x41aec8(_0x8601f5._0x4b3e1f)]) + _0x41aec8(_0x8601f5._0x399197), {
|
|
759
|
-
'body': JSON['stringify']({
|
|
760
|
-
'error': _0x278f44[_0x41aec8(0x2d5)],
|
|
761
|
-
'resultJson': _0x278f44[_0x41aec8(_0x8601f5._0x5d428c)],
|
|
762
|
-
'status': _0x278f44['status']
|
|
763
|
-
}),
|
|
764
|
-
'headers': _0x1c43d2,
|
|
765
|
-
'method': 'POST'
|
|
766
|
-
});
|
|
767
|
-
return _0x36b87b[_0x41aec8(0x369)] ?? {
|
|
768
|
-
'nextRunAt': null,
|
|
769
|
-
'run': {
|
|
770
|
-
'claimedByDaemonId': '',
|
|
771
|
-
'id': _0x278f44['runId'],
|
|
772
|
-
'scheduleId': '',
|
|
773
|
-
'status': _0x278f44['status']
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
},
|
|
777
|
-
async 'listTasks'(_0xe4a6c3) {
|
|
778
|
-
const _0x3dccb3 = _0x521ea7, _0x1809f6 = new URLSearchParams();
|
|
779
|
-
return _0x1809f6['set'](_0x3dccb3(0x365), _0xe4a6c3[_0x3dccb3(_0x292e33._0x1a570c)]), _0xe4a6c3['status'] && _0x1809f6['set']('status', _0xe4a6c3[_0x3dccb3(0x1fe)]), _0x166648(_0x3dccb3(_0x292e33._0x2a24c3) + _0x2805d5[_0x3dccb3(0x250)] + _0x3dccb3(_0x292e33._0x220c58) + _0x1809f6[_0x3dccb3(0x2a9)](), {
|
|
780
|
-
'headers': _0x1c43d2,
|
|
781
|
-
'method': _0x3dccb3(_0x292e33._0x4d5d17)
|
|
782
|
-
});
|
|
783
|
-
},
|
|
784
|
-
async 'createTasks'(_0xaef246) {
|
|
785
|
-
const _0x429d8b = _0x521ea7;
|
|
786
|
-
return _0x166648(_0x429d8b(_0x4a9a9e._0x17112e) + _0x2805d5[_0x429d8b(_0x4a9a9e._0x1e202e)] + '/tasks', {
|
|
787
|
-
'body': JSON['stringify']({
|
|
788
|
-
..._0xaef246,
|
|
789
|
-
'idempotency_key': _0x4fb46f(_0x429d8b(_0x4a9a9e._0x52cc81), _0xaef246)
|
|
790
|
-
}),
|
|
791
|
-
'headers': _0x1c43d2,
|
|
792
|
-
'method': _0x429d8b(0x1ed)
|
|
793
|
-
});
|
|
794
|
-
},
|
|
795
|
-
async 'claimTasks'(_0xa3e653) {
|
|
796
|
-
const _0x16dd48 = _0x521ea7;
|
|
797
|
-
return _0x166648('/internal/agent/' + _0x2805d5['agentId'] + _0x16dd48(_0x4ac3f2._0x573fda), {
|
|
798
|
-
'body': JSON[_0x16dd48(0x286)]({
|
|
799
|
-
..._0xa3e653,
|
|
800
|
-
'idempotency_key': _0x4fb46f(_0x16dd48(0x2d4), _0xa3e653)
|
|
801
|
-
}),
|
|
802
|
-
'headers': _0x1c43d2,
|
|
803
|
-
'method': _0x16dd48(_0x4ac3f2._0x16415f)
|
|
804
|
-
});
|
|
805
|
-
},
|
|
806
|
-
async 'unclaimTask'(_0x341d9c) {
|
|
807
|
-
const _0xd5a96a = _0x521ea7;
|
|
808
|
-
return _0x166648(_0xd5a96a(_0x5391cd._0x436d7f) + _0x2805d5[_0xd5a96a(_0x5391cd._0x4a150d)] + _0xd5a96a(0x32b), {
|
|
809
|
-
'body': JSON[_0xd5a96a(0x286)]({
|
|
810
|
-
..._0x341d9c,
|
|
811
|
-
'idempotency_key': _0x4fb46f(_0xd5a96a(0x30a), _0x341d9c)
|
|
812
|
-
}),
|
|
813
|
-
'headers': _0x1c43d2,
|
|
814
|
-
'method': _0xd5a96a(0x1ed)
|
|
815
|
-
});
|
|
816
|
-
},
|
|
817
|
-
async 'updateTaskStatus'(_0x129730) {
|
|
818
|
-
const _0x49ee54 = _0x521ea7;
|
|
819
|
-
return _0x166648(_0x49ee54(0x1fc) + _0x2805d5[_0x49ee54(_0x5018c5._0x2798ad)] + _0x49ee54(0x35f), {
|
|
820
|
-
'body': JSON['stringify']({
|
|
821
|
-
..._0x129730,
|
|
822
|
-
'idempotency_key': _0x4fb46f(_0x49ee54(0x2dd), _0x129730)
|
|
823
|
-
}),
|
|
824
|
-
'headers': _0x1c43d2,
|
|
825
|
-
'method': _0x49ee54(0x1ed)
|
|
826
|
-
});
|
|
827
|
-
},
|
|
828
|
-
async 'uploadFile'(_0x2e8c91) {
|
|
829
|
-
const _0x5b0564 = _0x521ea7, _0x5137ce = await _0x4fee2c(_0x2e8c91[_0x5b0564(_0x1dbdd3._0x5216bb)]);
|
|
830
|
-
if (_0x5137ce[_0x5b0564(0x293)])
|
|
831
|
-
throw new Error(_0x5b0564(0x2f2));
|
|
832
|
-
const _0x244829 = await _0x401cce(_0x5b0564(_0x1dbdd3._0x241345) + _0x2805d5[_0x5b0564(0x250)] + _0x5b0564(0x262), {
|
|
833
|
-
'body': JSON[_0x5b0564(_0x1dbdd3._0x9499c3)]({
|
|
834
|
-
'channel': _0x5137ce[_0x5b0564(_0x1dbdd3._0x181de7)],
|
|
835
|
-
'contentBase64': _0x2e8c91[_0x5b0564(_0x1dbdd3._0xc30bde)],
|
|
836
|
-
'contentType': _0x2e8c91[_0x5b0564(_0x1dbdd3._0x4378bd)],
|
|
837
|
-
'originalFilename': _0x2e8c91[_0x5b0564(0x269)]
|
|
838
|
-
}),
|
|
839
|
-
'headers': _0x1c43d2,
|
|
840
|
-
'method': 'POST'
|
|
841
|
-
});
|
|
842
|
-
return {
|
|
843
|
-
'attachmentId': _0x244829[_0x5b0564(_0x1dbdd3._0x23c4ac)]?.['id'] ?? '',
|
|
844
|
-
'filename': _0x244829['data']?.[_0x5b0564(0x268)] ?? _0x2e8c91['filename'],
|
|
845
|
-
'sizeBytes': _0x244829[_0x5b0564(_0x1dbdd3._0x48f350)]?.[_0x5b0564(_0x1dbdd3._0x168fd9)] ?? 0x0
|
|
846
|
-
};
|
|
847
|
-
},
|
|
848
|
-
async 'downloadAttachment'(_0x1e73e0) {
|
|
849
|
-
const _0xf8a82a = _0x521ea7, _0x5508ca = await _0x401cce('/api/attachments/' + _0x1e73e0, {
|
|
850
|
-
'headers': _0x1c43d2,
|
|
851
|
-
'method': 'GET'
|
|
852
|
-
}), _0x45da3d = new AbortController(), _0x375473 = setTimeout(() => _0x45da3d[_0xf8a82a(0x291)](), _0x50df63);
|
|
853
|
-
try {
|
|
854
|
-
const _0x1b50f6 = await _0x30d87c(_0x425b5f + '/api/attachments/' + _0x1e73e0 + _0xf8a82a(0x20c), {
|
|
855
|
-
'headers': _0x1c43d2,
|
|
856
|
-
'method': _0xf8a82a(_0x332201._0x298fcb),
|
|
857
|
-
'signal': _0x45da3d[_0xf8a82a(0x33a)]
|
|
858
|
-
});
|
|
859
|
-
if (!_0x1b50f6['ok'])
|
|
860
|
-
throw new Error('HTTP\x20' + _0x1b50f6[_0xf8a82a(_0x332201._0x4ce009)]);
|
|
861
|
-
return {
|
|
862
|
-
'contentType': _0x5508ca[_0xf8a82a(0x369)]?.[_0xf8a82a(0x328)] ?? _0x1b50f6[_0xf8a82a(_0x332201._0x2bac49)][_0xf8a82a(_0x332201._0x5d0a21)]('content-type') ?? 'application/octet-stream',
|
|
863
|
-
'data': Buffer[_0xf8a82a(_0x332201._0x5c7330)](await _0x1b50f6['arrayBuffer']()),
|
|
864
|
-
'originalFilename': _0x5508ca[_0xf8a82a(0x369)]?.[_0xf8a82a(_0x332201._0x2ac55d)]
|
|
865
|
-
};
|
|
866
|
-
} finally {
|
|
867
|
-
clearTimeout(_0x375473);
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
async 'listServer'() {
|
|
871
|
-
return _0x552e56({ 'forceRefresh': !![] });
|
|
872
|
-
},
|
|
873
|
-
async 'readHistory'(_0x1a8b18) {
|
|
874
|
-
const _0x193991 = _0x521ea7, _0x530235 = await _0x4fee2c(_0x1a8b18[_0x193991(_0x17d241._0x37c35a)]);
|
|
875
|
-
return _0x28c072({
|
|
876
|
-
'after': _0x1a8b18['after'],
|
|
877
|
-
'before': _0x1a8b18[_0x193991(0x315)],
|
|
878
|
-
'channelId': _0x530235['channelId'],
|
|
879
|
-
'channelTarget': _0x530235['target'],
|
|
880
|
-
'limit': _0x1a8b18[_0x193991(_0x17d241._0x487301)],
|
|
881
|
-
'threadId': _0x530235[_0x193991(_0x17d241._0x50cea9)]
|
|
882
|
-
});
|
|
883
|
-
},
|
|
884
|
-
'resolveTarget': _0x4fee2c,
|
|
885
|
-
async 'checkMessages'() {
|
|
886
|
-
const _0x25748d = { _0x4b88c7: 0x34a }, _0x13bfa3 = _0x521ea7, _0x55eabd = new URLSearchParams();
|
|
887
|
-
_0x55eabd[_0x13bfa3(_0x4a34c6._0x2afd91)](_0x13bfa3(0x263), String(_0x1ddb77));
|
|
888
|
-
const _0x5ea965 = _0x55eabd[_0x13bfa3(_0x4a34c6._0x9fa3c)](), _0x1e18dd = await _0x401cce(_0x13bfa3(_0x4a34c6._0x382185) + _0x2805d5[_0x13bfa3(_0x4a34c6._0x517cdc)] + _0x13bfa3(0x270) + (_0x5ea965 ? '?' + _0x5ea965 : ''), {
|
|
889
|
-
'headers': _0x1c43d2,
|
|
890
|
-
'method': _0x13bfa3(_0x4a34c6._0xf5ba45)
|
|
891
|
-
}), _0x531a6f = _0x1e18dd[_0x13bfa3(_0x4a34c6._0x583ed6)] ?? [], _0x2d770f = _0x1e18dd[_0x13bfa3(0x332)]?.[_0x13bfa3(_0x4a34c6._0x1a47cf)], _0x2c9d8a = _0x2d770f !== void 0x0 ? Math['max'](_0x1ddb77, _0x2d770f) : _0x531a6f['length'] > 0x0 ? Math[_0x13bfa3(_0x4a34c6._0x4cc23e)](_0x1ddb77, _0x531a6f[_0x531a6f[_0x13bfa3(_0x4a34c6._0x2cc2d2)] - 0x1][_0x13bfa3(_0x4a34c6._0x4b36a8)]) : _0x1ddb77, _0x4190e6 = _0x531a6f[_0x13bfa3(_0x4a34c6._0x5d76f9)](_0x141851 => _0x141851['aggregateType'] === _0x13bfa3(0x27c)), _0x122a87 = _0x56a32d === void 0x0 && _0x3211ee;
|
|
892
|
-
let _0x372ce7 = await _0x552e56(), _0x15813b = new Map(_0x372ce7['channels']['map'](_0x23eebc => [
|
|
893
|
-
_0x23eebc['id'],
|
|
894
|
-
_0x23eebc
|
|
895
|
-
]));
|
|
896
|
-
const _0x7601dd = _0x4190e6[_0x13bfa3(_0x4a34c6._0x1899cf)](_0x1d7a03 => {
|
|
897
|
-
const _0x34e69a = _0x13bfa3, _0x3d938a = asRecord(_0x1d7a03[_0x34e69a(_0x25748d._0x4b88c7)]), _0x1d18e7 = typeof _0x3d938a?.[_0x34e69a(0x30b)] === _0x34e69a(0x2a5) ? _0x3d938a['channelId'] : '';
|
|
898
|
-
return Boolean(_0x1d18e7) && !_0x15813b[_0x34e69a(0x2ea)](_0x1d18e7);
|
|
899
|
-
});
|
|
900
|
-
_0x7601dd && (_0x372ce7 = await _0x552e56({ 'forceRefresh': !![] }), _0x15813b = new Map(_0x372ce7[_0x13bfa3(0x34d)]['map'](_0x4c0642 => [
|
|
901
|
-
_0x4c0642['id'],
|
|
902
|
-
_0x4c0642
|
|
903
|
-
])));
|
|
904
|
-
const _0x1146c7 = new Map();
|
|
905
|
-
for (const _0xc9fcf0 of _0x4190e6) {
|
|
906
|
-
const _0x13f821 = asRecord(_0xc9fcf0[_0x13bfa3(0x34a)]), _0x42d783 = typeof _0x13f821['channelId'] === _0x13bfa3(0x2a5) ? _0x13f821[_0x13bfa3(_0x4a34c6._0x141de3)] : '';
|
|
907
|
-
if (!_0x42d783)
|
|
908
|
-
continue;
|
|
909
|
-
const _0x29c8e1 = typeof _0x13f821[_0x13bfa3(_0x4a34c6._0x54d603)] === _0x13bfa3(_0x4a34c6._0x36f940) ? _0x13f821[_0x13bfa3(0x293)] : void 0x0, _0x49858c = typeof _0x13f821[_0x13bfa3(_0x4a34c6._0x47728e)] === _0x13bfa3(_0x4a34c6._0x53ef4f) ? _0x13f821[_0x13bfa3(_0x4a34c6._0x1de2e1)] : void 0x0, _0x269091 = typeof _0x13f821[_0x13bfa3(_0x4a34c6._0x5869e9)] === _0x13bfa3(_0x4a34c6._0x15f8fc) && Number['isInteger'](_0x13f821[_0x13bfa3(_0x4a34c6._0x5869e9)]) ? _0x13f821[_0x13bfa3(_0x4a34c6._0x5869e9)] : void 0x0, _0x44c953 = Boolean(_0x29c8e1 && (!_0x49858c || _0xc9fcf0[_0x13bfa3(_0x4a34c6._0x572fab)] !== _0x49858c)), _0x36fedc = _0x44c953 ? _0x42d783 + ':' + _0x29c8e1 : _0x42d783, _0x4573f0 = _0x1146c7[_0x13bfa3(0x295)](_0x36fedc) ?? {
|
|
910
|
-
'aggregateIds': [],
|
|
911
|
-
'channelId': _0x42d783,
|
|
912
|
-
'entries': new Map(),
|
|
913
|
-
'isThreadReply': _0x44c953,
|
|
914
|
-
'rootMessageId': _0x49858c,
|
|
915
|
-
'threadNumber': _0x269091,
|
|
916
|
-
'threadId': _0x44c953 ? _0x29c8e1 : void 0x0
|
|
917
|
-
};
|
|
918
|
-
_0x4573f0['threadNumber'] == null && _0x269091 != null && (_0x4573f0['threadNumber'] = _0x269091), !_0x4573f0['rootMessageId'] && _0x49858c && (_0x4573f0[_0x13bfa3(_0x4a34c6._0x31e2e9)] = _0x49858c), _0x4573f0[_0x13bfa3(0x2a3)]['push'](_0xc9fcf0[_0x13bfa3(0x248)]), _0x4573f0['entries'][_0x13bfa3(0x249)](_0xc9fcf0[_0x13bfa3(_0x4a34c6._0x3afce4)], {
|
|
919
|
-
'payloadJson': _0xc9fcf0[_0x13bfa3(_0x4a34c6._0x43f076)],
|
|
920
|
-
'seq': _0xc9fcf0[_0x13bfa3(_0x4a34c6._0x45bfb1)]
|
|
921
|
-
}), _0x1146c7[_0x13bfa3(_0x4a34c6._0x5956e4)](_0x36fedc, _0x4573f0);
|
|
922
|
-
}
|
|
923
|
-
const _0x4b5ff3 = [];
|
|
924
|
-
for (const _0x1df363 of _0x1146c7[_0x13bfa3(_0x4a34c6._0x500d29)]()) {
|
|
925
|
-
const {
|
|
926
|
-
channelId: _0x1e4bc4,
|
|
927
|
-
threadId: _0x363cdd,
|
|
928
|
-
rootMessageId: _0x388a31,
|
|
929
|
-
threadNumber: _0x212dd5,
|
|
930
|
-
aggregateIds: _0x4e277e,
|
|
931
|
-
isThreadReply: _0x312a44,
|
|
932
|
-
entries: _0x22b557
|
|
933
|
-
} = _0x1df363, _0x2445f0 = _0x15813b[_0x13bfa3(_0x4a34c6._0x3f1048)](_0x1e4bc4), _0x386ab1 = _0x2445f0?.[_0x13bfa3(0x2e7)] ?? _0x1e4bc4, _0x529f63 = _0x2445f0?.['kind'] === 'dm' ? _0x13bfa3(0x242) + _0x386ab1 : '#' + _0x386ab1, _0x209903 = {
|
|
934
|
-
'channelTarget': _0x529f63,
|
|
935
|
-
'rootMessageId': _0x388a31,
|
|
936
|
-
'threadId': _0x363cdd,
|
|
937
|
-
'threadNumber': _0x212dd5
|
|
938
|
-
}, _0x337d9b = await _0x28c072({
|
|
939
|
-
'channelId': _0x1e4bc4,
|
|
940
|
-
'channelTarget': _0x529f63,
|
|
941
|
-
'limit': Math[_0x13bfa3(_0x4a34c6._0x175605)](_0x4e277e[_0x13bfa3(0x34b)], 0x32),
|
|
942
|
-
'threadId': _0x363cdd
|
|
943
|
-
}), _0x2a923d = new Map(_0x337d9b[_0x13bfa3(0x2ca)][_0x13bfa3(_0x4a34c6._0x7aba5b)](_0x5c0af4 => [
|
|
944
|
-
_0x5c0af4[_0x13bfa3(0x35c)],
|
|
945
|
-
_0x5c0af4
|
|
946
|
-
])), _0x38ca74 = _0x363cdd ? _0xf96b98(_0x209903) : _0x529f63, _0x298954 = _0x56a32d ? _0x312a44 && _0x5fc82a(_0x56a32d, _0x209903) : !![], _0x5856fc = _0x312a44 ? _0x298954 && _0x56a32d ? _0x56a32d : _0x38ca74 : _0x529f63;
|
|
947
|
-
for (const _0x4b8d22 of _0x4e277e) {
|
|
948
|
-
if (!_0x298954)
|
|
949
|
-
continue;
|
|
950
|
-
const _0x29f2c3 = _0x22b557[_0x13bfa3(0x295)](_0x4b8d22), _0x4e77f7 = _0x29f2c3 ? asRecord(_0x29f2c3[_0x13bfa3(0x34a)]) : void 0x0, _0x270b0e = _0x4e77f7?.[_0x13bfa3(_0x4a34c6._0x2cf8f6)] === 'targeted';
|
|
951
|
-
if (_0x122a87 && _0x270b0e)
|
|
952
|
-
continue;
|
|
953
|
-
const _0x552eb7 = _0x2a923d[_0x13bfa3(_0x4a34c6._0x3bfb4b)](_0x4b8d22);
|
|
954
|
-
if (_0x552eb7) {
|
|
955
|
-
_0x4b5ff3[_0x13bfa3(0x2df)]({
|
|
956
|
-
'attachments': _0x552eb7[_0x13bfa3(0x304)],
|
|
957
|
-
'content': _0x552eb7['content'],
|
|
958
|
-
'createdAt': _0x552eb7[_0x13bfa3(_0x4a34c6._0x267c0d)],
|
|
959
|
-
..._0x552eb7['kind'] ? { 'kind': _0x552eb7['kind'] } : {},
|
|
960
|
-
'messageId': _0x552eb7[_0x13bfa3(0x35c)],
|
|
961
|
-
'senderName': _0x552eb7[_0x13bfa3(_0x4a34c6._0x5cc2ce)],
|
|
962
|
-
'senderType': _0x552eb7['senderType'],
|
|
963
|
-
'target': _0x5856fc,
|
|
964
|
-
..._0x270b0e ? { 'targetedTask': !![] } : {}
|
|
965
|
-
});
|
|
966
|
-
continue;
|
|
967
|
-
}
|
|
968
|
-
if (_0x29f2c3) {
|
|
969
|
-
const _0x36207e = typeof _0x4e77f7?.[_0x13bfa3(0x27a)] === _0x13bfa3(0x2a5) ? _0x4e77f7['senderParticipantId'] : '', _0x523e12 = typeof _0x4e77f7?.[_0x13bfa3(_0x4a34c6._0xddbe66)] === _0x13bfa3(0x2a5) ? _0x4e77f7['bodyMarkdown'] : '', _0x2ff627 = typeof _0x4e77f7?.[_0x13bfa3(0x2b2)] === _0x13bfa3(0x2a5) && _0x4e77f7[_0x13bfa3(0x2b2)] !== _0x13bfa3(_0x4a34c6._0x3efa26) ? _0x4e77f7[_0x13bfa3(0x2b2)] : void 0x0;
|
|
970
|
-
_0x36207e && _0x523e12 && _0x4b5ff3[_0x13bfa3(0x2df)]({
|
|
971
|
-
'attachments': [],
|
|
972
|
-
'content': _0x523e12,
|
|
973
|
-
'createdAt': new Date()['toISOString'](),
|
|
974
|
-
..._0x2ff627 ? { 'kind': _0x2ff627 } : {},
|
|
975
|
-
'messageId': _0x4b8d22,
|
|
976
|
-
'senderName': _0x36207e,
|
|
977
|
-
'senderType': _0x36bf2f(_0x36207e, _0x372ce7),
|
|
978
|
-
'target': _0x5856fc,
|
|
979
|
-
..._0x270b0e ? { 'targetedTask': !![] } : {}
|
|
980
|
-
});
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
if (_0x2c9d8a > 0x0) {
|
|
985
|
-
if (_0x343f7c)
|
|
986
|
-
await _0x26688c(_0x2c9d8a);
|
|
987
|
-
else
|
|
988
|
-
_0x3b4ad0 && await _0x563125(_0x2c9d8a);
|
|
989
|
-
}
|
|
990
|
-
return _0x2c9d8a > _0x1ddb77 && (_0x1ddb77 = _0x2c9d8a), { 'messages': _0x56a32d ? _0x4b5ff3 : _0x122a87 ? _0x4b5ff3[_0x13bfa3(_0x4a34c6._0x5d76f9)](_0x23647e => _0x23647e['targetedTask'] !== !![]) : _0x4b5ff3 };
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
|
-
function toLocalTime(_0x136fe5) {
|
|
995
|
-
const _0x523c29 = {
|
|
996
|
-
_0x3ebc66: 0x1fb,
|
|
997
|
-
_0x2b1c50: 0x2ba
|
|
998
|
-
}, _0x13fa5f = _0x2d2fb4, _0x1d2abb = new Date(_0x136fe5);
|
|
999
|
-
if (Number[_0x13fa5f(0x25a)](_0x1d2abb[_0x13fa5f(0x2f7)]()))
|
|
1000
|
-
return _0x136fe5;
|
|
1001
|
-
const _0xec8866 = _0xd9293a => String(_0xd9293a)[_0x13fa5f(0x23a)](0x2, '0');
|
|
1002
|
-
return _0x1d2abb['getFullYear']() + '-' + _0xec8866(_0x1d2abb[_0x13fa5f(_0x523c29._0x3ebc66)]() + 0x1) + '-' + _0xec8866(_0x1d2abb[_0x13fa5f(0x225)]()) + '\x20' + _0xec8866(_0x1d2abb[_0x13fa5f(_0x523c29._0x2b1c50)]()) + ':' + _0xec8866(_0x1d2abb[_0x13fa5f(0x29b)]()) + ':' + _0xec8866(_0x1d2abb['getSeconds']());
|
|
226
|
+
_0x376e0c[_0x3e5b07(_0x25a3be._0xca16f2)] === _0x3e5b07(_0x25a3be._0x916d6e) && (_0x376e0c['protocol'] = _0x3e5b07(0x28e));
|
|
227
|
+
return _0x376e0c['toString']()['replace'](/\/$/, '');
|
|
1003
228
|
}
|
|
1004
|
-
function
|
|
1005
|
-
const
|
|
1006
|
-
|
|
1007
|
-
_0x1e1f60: 0x230,
|
|
1008
|
-
_0x238b81: 0x27e,
|
|
1009
|
-
_0x682edb: 0x274
|
|
1010
|
-
}, _0x345969 = _0x2d2fb4;
|
|
1011
|
-
if (!_0x42492e || _0x42492e[_0x345969(_0x32f0e7._0x373a9c)] === 0x0)
|
|
1012
|
-
return '';
|
|
1013
|
-
return '\x20[' + _0x42492e[_0x345969(0x34b)] + _0x345969(_0x32f0e7._0x1e1f60) + (_0x42492e[_0x345969(0x34b)] > 0x1 ? 's' : '') + ':\x20' + _0x42492e[_0x345969(_0x32f0e7._0x238b81)](_0x5537ee => _0x5537ee[_0x345969(0x269)] + _0x345969(0x29e) + _0x5537ee['id'] + ')')[_0x345969(_0x32f0e7._0x682edb)](',\x20') + _0x345969(0x350);
|
|
1014
|
-
}
|
|
1015
|
-
function formatCheckMessages(_0x4e4944) {
|
|
1016
|
-
const _0x3b9f4d = {
|
|
1017
|
-
_0x337458: 0x273,
|
|
1018
|
-
_0x3f4109: 0x2f6,
|
|
1019
|
-
_0x2524bc: 0x2b2,
|
|
1020
|
-
_0x48e4f7: 0x25c,
|
|
1021
|
-
_0x3fe08c: 0x2b2,
|
|
1022
|
-
_0x7038a5: 0x29c
|
|
1023
|
-
}, _0x2ef557 = _0x2d2fb4;
|
|
1024
|
-
if (_0x4e4944[_0x2ef557(0x34b)] === 0x0)
|
|
1025
|
-
return _0x2ef557(0x213);
|
|
1026
|
-
return _0x4e4944['map'](_0x21c165 => {
|
|
1027
|
-
const _0x5e7d6e = _0x2ef557, _0x49c770 = _0x21c165[_0x5e7d6e(_0x3b9f4d._0x337458)] === _0x5e7d6e(0x207) ? _0x5e7d6e(_0x3b9f4d._0x3f4109) : '', _0x5abe71 = _0x21c165[_0x5e7d6e(0x2b2)] && _0x21c165[_0x5e7d6e(_0x3b9f4d._0x2524bc)] !== _0x5e7d6e(_0x3b9f4d._0x48e4f7) ? _0x5e7d6e(0x370) + _0x21c165[_0x5e7d6e(_0x3b9f4d._0x3fe08c)] : '';
|
|
1028
|
-
return '[target=' + _0x21c165[_0x5e7d6e(0x1fd)] + '\x20msg=' + _0x21c165[_0x5e7d6e(0x35c)][_0x5e7d6e(0x33f)](0x0, 0x8) + _0x5e7d6e(0x30f) + toLocalTime(_0x21c165[_0x5e7d6e(_0x3b9f4d._0x7038a5)]) + _0x49c770 + _0x5abe71 + _0x5e7d6e(0x210) + _0x21c165[_0x5e7d6e(0x2c0)] + ':\x20' + _0x21c165[_0x5e7d6e(0x239)] + formatAttachmentSuffix(_0x21c165['attachments']);
|
|
1029
|
-
})[_0x2ef557(0x274)]('\x0a');
|
|
1030
|
-
}
|
|
1031
|
-
function formatHistory(_0x1b3482) {
|
|
1032
|
-
const _0x1d5e9d = {
|
|
1033
|
-
_0x43cc06: 0x365,
|
|
1034
|
-
_0x18a130: 0x2ca,
|
|
1035
|
-
_0x45eb40: 0x27e,
|
|
1036
|
-
_0x54cadf: 0x274,
|
|
1037
|
-
_0x13f9f7: 0x204,
|
|
1038
|
-
_0x249d82: 0x2ae,
|
|
1039
|
-
_0x3cce1a: 0x2ca,
|
|
1040
|
-
_0x1a42c0: 0x34b,
|
|
1041
|
-
_0xf42d25: 0x2aa,
|
|
1042
|
-
_0x51964e: 0x298
|
|
1043
|
-
}, _0x3f5519 = {
|
|
1044
|
-
_0x2aff44: 0x207,
|
|
1045
|
-
_0x196906: 0x2b2,
|
|
1046
|
-
_0x515640: 0x25c,
|
|
1047
|
-
_0x3271a7: 0x30f,
|
|
1048
|
-
_0x4ef128: 0x210,
|
|
1049
|
-
_0x23ab0b: 0x2c0,
|
|
1050
|
-
_0x5848b4: 0x239,
|
|
1051
|
-
_0x3a2ce9: 0x304
|
|
1052
|
-
}, _0xf48b90 = _0x2d2fb4;
|
|
1053
|
-
if (_0x1b3482['messages'][_0xf48b90(0x34b)] === 0x0)
|
|
1054
|
-
return '##\x20Message\x20History\x20for\x20' + _0x1b3482[_0xf48b90(_0x1d5e9d._0x43cc06)] + _0xf48b90(0x235);
|
|
1055
|
-
const _0x1f185e = _0x1b3482[_0xf48b90(_0x1d5e9d._0x18a130)][_0xf48b90(_0x1d5e9d._0x45eb40)](_0x4984d8 => {
|
|
1056
|
-
const _0x42ccda = _0xf48b90, _0x51b4d2 = _0x4984d8[_0x42ccda(0x273)] === _0x42ccda(_0x3f5519._0x2aff44) ? '\x20type=agent' : '', _0x88d45b = _0x4984d8[_0x42ccda(0x2b2)] && _0x4984d8[_0x42ccda(_0x3f5519._0x196906)] !== _0x42ccda(_0x3f5519._0x515640) ? _0x42ccda(0x370) + _0x4984d8[_0x42ccda(_0x3f5519._0x196906)] : '';
|
|
1057
|
-
return '[seq=' + _0x4984d8['seq'] + _0x42ccda(0x2d1) + _0x4984d8[_0x42ccda(0x35c)] + _0x42ccda(_0x3f5519._0x3271a7) + toLocalTime(_0x4984d8[_0x42ccda(0x29c)]) + _0x51b4d2 + _0x88d45b + _0x42ccda(_0x3f5519._0x4ef128) + _0x4984d8[_0x42ccda(_0x3f5519._0x23ab0b)] + ':\x20' + _0x4984d8[_0x42ccda(_0x3f5519._0x5848b4)] + formatAttachmentSuffix(_0x4984d8[_0x42ccda(_0x3f5519._0x3a2ce9)]);
|
|
1058
|
-
})[_0xf48b90(_0x1d5e9d._0x54cadf)]('\x0a'), _0x797888 = _0x1b3482[_0xf48b90(_0x1d5e9d._0x13f9f7)] && _0x1b3482[_0xf48b90(_0x1d5e9d._0x249d82)] ? _0xf48b90(0x2f1) + _0x1b3482[_0xf48b90(_0x1d5e9d._0x3cce1a)][_0xf48b90(_0x1d5e9d._0x1a42c0)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x1b3482[_0xf48b90(0x2ae)] + _0xf48b90(_0x1d5e9d._0xf42d25) : '';
|
|
1059
|
-
return '##\x20Message\x20History\x20for\x20' + _0x1b3482[_0xf48b90(0x365)] + '\x20(' + _0x1b3482['messages'][_0xf48b90(0x34b)] + _0xf48b90(_0x1d5e9d._0x51964e) + _0x1f185e + _0x797888;
|
|
1060
|
-
}
|
|
1061
|
-
function formatServerDirectory(_0x471280) {
|
|
1062
|
-
const _0x1d9611 = {
|
|
1063
|
-
_0x4a8adc: 0x34d,
|
|
1064
|
-
_0x21f184: 0x2de,
|
|
1065
|
-
_0x1123f6: 0x1e9,
|
|
1066
|
-
_0x56435d: 0x34b,
|
|
1067
|
-
_0xe6855d: 0x27e,
|
|
1068
|
-
_0xb5bd78: 0x309,
|
|
1069
|
-
_0x395cd1: 0x316
|
|
1070
|
-
}, _0x30b2a2 = _0x2d2fb4, _0x175f7b = _0x471280[_0x30b2a2(_0x1d9611._0x4a8adc)]['length'] > 0x0 ? _0x471280['channels']['map'](_0x2d24e9 => _0x2d24e9[_0x30b2a2(0x2d2)] ? _0x30b2a2(0x25b) + _0x2d24e9[_0x30b2a2(0x2e7)] + '\x20—\x20' + _0x2d24e9[_0x30b2a2(0x2d2)] : _0x30b2a2(0x25b) + _0x2d24e9[_0x30b2a2(0x2e7)])[_0x30b2a2(0x274)]('\x0a') : _0x30b2a2(_0x1d9611._0x21f184), _0x3dbf60 = _0x471280[_0x30b2a2(_0x1d9611._0x1123f6)][_0x30b2a2(0x34b)] > 0x0 ? _0x471280['agents']['map'](_0x4f55eb => _0x30b2a2(0x1f2) + _0x4f55eb[_0x30b2a2(0x2e7)])['join']('\x0a') : '(none)', _0x30bd1b = _0x471280[_0x30b2a2(0x2e3)][_0x30b2a2(_0x1d9611._0x56435d)] > 0x0 ? _0x471280[_0x30b2a2(0x2e3)][_0x30b2a2(_0x1d9611._0xe6855d)](_0x378ce2 => _0x30b2a2(0x1f2) + _0x378ce2['name'])[_0x30b2a2(0x274)]('\x0a') : _0x30b2a2(0x2de);
|
|
1071
|
-
return [
|
|
1072
|
-
_0x30b2a2(_0x1d9611._0xb5bd78) + _0x471280[_0x30b2a2(0x314)],
|
|
1073
|
-
'',
|
|
1074
|
-
_0x30b2a2(_0x1d9611._0x395cd1),
|
|
1075
|
-
_0x175f7b,
|
|
1076
|
-
'',
|
|
1077
|
-
'###\x20Agents',
|
|
1078
|
-
_0x3dbf60,
|
|
1079
|
-
'',
|
|
1080
|
-
'###\x20Humans',
|
|
1081
|
-
_0x30bd1b
|
|
1082
|
-
][_0x30b2a2(0x274)]('\x0a');
|
|
1083
|
-
}
|
|
1084
|
-
function formatUploadResult(_0x3bdc20) {
|
|
1085
|
-
const _0x154278 = {
|
|
1086
|
-
_0x561346: 0x269,
|
|
1087
|
-
_0x5d4b67: 0x348
|
|
1088
|
-
}, _0x50bac3 = _0x2d2fb4;
|
|
1089
|
-
return _0x50bac3(0x2e9) + _0x3bdc20[_0x50bac3(_0x154278._0x561346)] + '\x20(' + (_0x3bdc20[_0x50bac3(0x2c1)] / 0x400)[_0x50bac3(_0x154278._0x5d4b67)](0x1) + _0x50bac3(0x24a) + _0x3bdc20['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1090
|
-
}
|
|
1091
|
-
function formatViewFileResult(_0xfc866e, _0x2075f7) {
|
|
1092
|
-
const _0xc40e87 = _0x2d2fb4;
|
|
1093
|
-
return _0x2075f7 ? _0xc40e87(0x21e) + _0xfc866e : _0xc40e87(0x233) + _0xfc866e;
|
|
1094
|
-
}
|
|
1095
|
-
function formatTaskList(_0x16df4d, _0x5a2657) {
|
|
1096
|
-
const _0x52a633 = { _0xe21dde: 0x27e }, _0x397ebf = {
|
|
1097
|
-
_0x20ab87: 0x366,
|
|
1098
|
-
_0x548f89: 0x35c,
|
|
1099
|
-
_0x8352f8: 0x2ea
|
|
1100
|
-
}, _0x5f501f = _0x2d2fb4;
|
|
1101
|
-
if (_0x16df4d['length'] === 0x0)
|
|
1102
|
-
return 'No\x20tasks\x20found.';
|
|
1103
|
-
return _0x16df4d[_0x5f501f(_0x52a633._0xe21dde)](_0x10d0a6 => {
|
|
1104
|
-
const _0x1b4454 = _0x5f501f, _0xf2fe8e = _0x10d0a6['taskNumber'] == null ? '(legacy)' : '#' + _0x10d0a6[_0x1b4454(0x2cd)], _0x14665f = _0x10d0a6['messageId'] ? _0x1b4454(_0x397ebf._0x20ab87) + _0x10d0a6[_0x1b4454(_0x397ebf._0x548f89)] : '', _0x4a7913 = _0x5a2657 && _0x10d0a6['taskNumber'] != null && _0x5a2657[_0x1b4454(_0x397ebf._0x8352f8)](_0x10d0a6['taskNumber']) ? _0x1b4454(0x33c) : '';
|
|
1105
|
-
return _0xf2fe8e + '\x20[' + _0x10d0a6[_0x1b4454(0x1fe)] + ']\x20' + _0x10d0a6[_0x1b4454(0x2fd)] + _0x14665f + _0x4a7913;
|
|
1106
|
-
})[_0x5f501f(0x274)]('\x0a');
|
|
1107
|
-
}
|
|
1108
|
-
function formatCreatedTasks(_0x322690) {
|
|
1109
|
-
const _0x3721e3 = {
|
|
1110
|
-
_0x362dd6: 0x34b,
|
|
1111
|
-
_0x35be9d: 0x1f4,
|
|
1112
|
-
_0x4ad9a5: 0x27e
|
|
1113
|
-
}, _0x256373 = {
|
|
1114
|
-
_0x56f211: 0x2cd,
|
|
1115
|
-
_0x28f365: 0x2fd
|
|
1116
|
-
}, _0x285a8a = _0x2d2fb4;
|
|
1117
|
-
if (_0x322690[_0x285a8a(_0x3721e3._0x362dd6)] === 0x0)
|
|
1118
|
-
return _0x285a8a(_0x3721e3._0x35be9d);
|
|
1119
|
-
return _0x322690[_0x285a8a(_0x3721e3._0x4ad9a5)](_0x14b18c => {
|
|
1120
|
-
const _0x6427e6 = _0x285a8a, _0x332054 = _0x14b18c[_0x6427e6(_0x256373._0x56f211)] == null ? _0x6427e6(0x2a0) : '#' + _0x14b18c[_0x6427e6(_0x256373._0x56f211)];
|
|
1121
|
-
return _0x332054 + '\x20' + _0x14b18c[_0x6427e6(_0x256373._0x28f365)] + _0x6427e6(0x366) + _0x14b18c[_0x6427e6(0x35c)];
|
|
1122
|
-
})[_0x285a8a(0x274)]('\x0a');
|
|
1123
|
-
}
|
|
1124
|
-
function formatClaimTaskResults(_0x2b8981) {
|
|
1125
|
-
const _0x3645b0 = { _0x46e85c: 0x274 }, _0x2094cb = {
|
|
1126
|
-
_0x43a829: 0x21b,
|
|
1127
|
-
_0x5d4a9d: 0x35c,
|
|
1128
|
-
_0x33028f: 0x2eb,
|
|
1129
|
-
_0xb5499: 0x252,
|
|
1130
|
-
_0x8513d4: 0x24d,
|
|
1131
|
-
_0x4e2c5f: 0x35a,
|
|
1132
|
-
_0x1ee531: 0x303,
|
|
1133
|
-
_0x328d7b: 0x2d8,
|
|
1134
|
-
_0x40f8df: 0x275
|
|
1135
|
-
}, _0x2ce2fb = _0x2d2fb4;
|
|
1136
|
-
if (_0x2b8981[_0x2ce2fb(0x34b)] === 0x0)
|
|
1137
|
-
return _0x2ce2fb(0x30d);
|
|
1138
|
-
return _0x2b8981['map'](_0x327c23 => {
|
|
1139
|
-
const _0x24b8f2 = _0x2ce2fb;
|
|
1140
|
-
if (_0x327c23[_0x24b8f2(_0x2094cb._0x43a829)]) {
|
|
1141
|
-
const _0x265481 = _0x327c23['taskNumber'] == null ? _0x24b8f2(0x2a0) : '#' + _0x327c23[_0x24b8f2(0x2cd)], _0x42c45f = _0x327c23[_0x24b8f2(_0x2094cb._0x5d4a9d)] ? _0x24b8f2(0x366) + _0x327c23[_0x24b8f2(0x35c)] : '';
|
|
1142
|
-
if (_0x327c23[_0x24b8f2(_0x2094cb._0x33028f)]) {
|
|
1143
|
-
const _0x29f7cd = [
|
|
1144
|
-
_0x24b8f2(0x209),
|
|
1145
|
-
_0x327c23[_0x24b8f2(_0x2094cb._0xb5499)] ? _0x24b8f2(_0x2094cb._0x8513d4) : null,
|
|
1146
|
-
_0x327c23[_0x24b8f2(0x2bb)] ? 'executionMode=' + _0x327c23[_0x24b8f2(0x2bb)] : null,
|
|
1147
|
-
_0x327c23[_0x24b8f2(0x20b)] ? _0x24b8f2(_0x2094cb._0x4e2c5f) + _0x327c23[_0x24b8f2(0x20b)] : null,
|
|
1148
|
-
_0x327c23[_0x24b8f2(0x31d)] ? _0x24b8f2(_0x2094cb._0x1ee531) + _0x327c23[_0x24b8f2(0x31d)] : null
|
|
1149
|
-
][_0x24b8f2(0x1ef)](Boolean)[_0x24b8f2(0x274)]('\x20');
|
|
1150
|
-
return _0x265481 + _0x24b8f2(_0x2094cb._0x328d7b) + _0x42c45f + '\x20' + _0x29f7cd + _0x24b8f2(0x24b);
|
|
1151
|
-
}
|
|
1152
|
-
const _0x16ea37 = _0x327c23[_0x24b8f2(0x325)] ? _0x24b8f2(0x330) + _0x327c23['workerHandoffError'] : '';
|
|
1153
|
-
return _0x265481 + '\x20claimed' + _0x42c45f + _0x16ea37;
|
|
1154
|
-
}
|
|
1155
|
-
const _0x3558a2 = _0x327c23[_0x24b8f2(0x2cd)] == null ? _0x327c23['messageId'] ?? _0x24b8f2(0x301) : '#' + _0x327c23['taskNumber'];
|
|
1156
|
-
return _0x3558a2 + '\x20failed:\x20' + (_0x327c23[_0x24b8f2(0x2cf)] ?? _0x24b8f2(_0x2094cb._0x40f8df));
|
|
1157
|
-
})[_0x2ce2fb(_0x3645b0._0x46e85c)]('\x0a');
|
|
1158
|
-
}
|
|
1159
|
-
function formatUnclaimTaskResult(_0x28950c) {
|
|
1160
|
-
const _0x159951 = {
|
|
1161
|
-
_0x257b2f: 0x2a0,
|
|
1162
|
-
_0x19ab0f: 0x2cd
|
|
1163
|
-
}, _0x5d479e = _0x2d2fb4, _0x51d3ca = _0x28950c['taskNumber'] == null ? _0x5d479e(_0x159951._0x257b2f) : '#' + _0x28950c[_0x5d479e(_0x159951._0x19ab0f)];
|
|
1164
|
-
return _0x51d3ca + _0x5d479e(0x2e8) + _0x28950c['status'];
|
|
1165
|
-
}
|
|
1166
|
-
function formatUpdateTaskStatusResult(_0x18c5cb) {
|
|
1167
|
-
const _0x42ec0c = {
|
|
1168
|
-
_0x51b6bf: 0x2cd,
|
|
1169
|
-
_0x44c051: 0x2a0,
|
|
1170
|
-
_0x2e5d5b: 0x2e8
|
|
1171
|
-
}, _0x968ff0 = _0x2d2fb4, _0x16e5bd = _0x18c5cb[_0x968ff0(_0x42ec0c._0x51b6bf)] == null ? _0x968ff0(_0x42ec0c._0x44c051) : '#' + _0x18c5cb['taskNumber'];
|
|
1172
|
-
return _0x16e5bd + _0x968ff0(_0x42ec0c._0x2e5d5b) + _0x18c5cb['status'];
|
|
1173
|
-
}
|
|
1174
|
-
function getChatBridgeToolDefinitions() {
|
|
1175
|
-
const _0x58bd1d = {
|
|
1176
|
-
_0x109161: 0x1f1,
|
|
1177
|
-
_0x4a452d: 0x22f,
|
|
1178
|
-
_0x47b26d: 0x29f,
|
|
1179
|
-
_0x2fc548: 0x30a,
|
|
1180
|
-
_0x56f813: 0x2dd,
|
|
1181
|
-
_0x2ebcae: 0x2bd,
|
|
1182
|
-
_0x3e3b90: 0x33d
|
|
1183
|
-
}, _0x220258 = _0x2d2fb4;
|
|
1184
|
-
return [
|
|
1185
|
-
{ 'name': _0x220258(0x31a) },
|
|
1186
|
-
{ 'name': _0x220258(0x335) },
|
|
1187
|
-
{ 'name': 'read_history' },
|
|
1188
|
-
{ 'name': _0x220258(_0x58bd1d._0x109161) },
|
|
1189
|
-
{ 'name': _0x220258(0x313) },
|
|
1190
|
-
{ 'name': _0x220258(_0x58bd1d._0x4a452d) },
|
|
1191
|
-
{ 'name': _0x220258(_0x58bd1d._0x47b26d) },
|
|
1192
|
-
{ 'name': 'create_tasks' },
|
|
1193
|
-
{ 'name': 'claim_tasks' },
|
|
1194
|
-
{ 'name': _0x220258(_0x58bd1d._0x2fc548) },
|
|
1195
|
-
{ 'name': _0x220258(_0x58bd1d._0x56f813) },
|
|
1196
|
-
{ 'name': 'get_worker_status' },
|
|
1197
|
-
{ 'name': _0x220258(_0x58bd1d._0x2ebcae) },
|
|
1198
|
-
{ 'name': _0x220258(_0x58bd1d._0x3e3b90) },
|
|
1199
|
-
{ 'name': _0x220258(0x236) },
|
|
1200
|
-
{ 'name': _0x220258(0x32d) }
|
|
1201
|
-
];
|
|
1202
|
-
}
|
|
1203
|
-
function createChatBridgeHandlers(_0x33c1d0) {
|
|
1204
|
-
const _0x578acf = { _0x5617be: 0x27f }, _0x45c950 = {
|
|
1205
|
-
_0x45f7d2: 0x231,
|
|
1206
|
-
_0x46d923: 0x288,
|
|
1207
|
-
_0x1aad04: 0x231,
|
|
1208
|
-
_0x171373: 0x243,
|
|
1209
|
-
_0x53bbd0: 0x286,
|
|
1210
|
-
_0x23d508: 0x2c2,
|
|
1211
|
-
_0x129475: 0x2cf
|
|
1212
|
-
}, _0x9c661d = {
|
|
1213
|
-
_0x31c225: 0x2a6,
|
|
1214
|
-
_0x259ad5: 0x286,
|
|
1215
|
-
_0x433232: 0x250
|
|
1216
|
-
}, _0xefc654 = {
|
|
1217
|
-
_0x12e3e7: 0x2a6,
|
|
1218
|
-
_0x334aeb: 0x286,
|
|
1219
|
-
_0x1fb9c0: 0x2d5,
|
|
1220
|
-
_0x377f43: 0x227
|
|
1221
|
-
}, _0x1c9892 = {
|
|
1222
|
-
_0x822c07: 0x231,
|
|
1223
|
-
_0x25316d: 0x2c4,
|
|
1224
|
-
_0x4da727: 0x21a,
|
|
1225
|
-
_0x5683dd: 0x356
|
|
1226
|
-
}, _0x546112 = {
|
|
1227
|
-
_0x23eb5a: 0x2b5,
|
|
1228
|
-
_0x3be6a8: 0x206,
|
|
1229
|
-
_0x6aca72: 0x356
|
|
1230
|
-
}, _0x52f58e = {
|
|
1231
|
-
_0x210288: 0x2c3,
|
|
1232
|
-
_0x4e7203: 0x32e,
|
|
1233
|
-
_0x1001d9: 0x21c,
|
|
1234
|
-
_0x2d65fe: 0x369,
|
|
1235
|
-
_0xfb7a0c: 0x268
|
|
1236
|
-
}, _0x362da6 = { _0x4cf253: 0x1ee }, _0x5b2d54 = { _0x7722d5: 0x261 }, _0x100a39 = { _0x5583e9: 0x32e }, _0x3f4542 = {
|
|
1237
|
-
_0x5176ae: 0x23f,
|
|
1238
|
-
_0x3431c5: 0x24c,
|
|
1239
|
-
_0x5c3ad2: 0x27d,
|
|
1240
|
-
_0x4fb72b: 0x27e
|
|
1241
|
-
}, _0x2a9436 = {
|
|
1242
|
-
_0x59f95a: 0x32e,
|
|
1243
|
-
_0x554116: 0x311
|
|
1244
|
-
}, _0x24ce88 = {
|
|
1245
|
-
_0x833bd3: 0x365,
|
|
1246
|
-
_0x568503: 0x1f8,
|
|
1247
|
-
_0x530c3f: 0x266,
|
|
1248
|
-
_0x2db893: 0x28d,
|
|
1249
|
-
_0x27b1e6: 0x34b,
|
|
1250
|
-
_0x466d1a: 0x201,
|
|
1251
|
-
_0x1c5eb7: 0x2cd,
|
|
1252
|
-
_0xf2efc9: 0x2a1,
|
|
1253
|
-
_0x4ca213: 0x2cd,
|
|
1254
|
-
_0x2e9ed8: 0x2cd
|
|
1255
|
-
}, _0x3c1785 = { _0xf2004f: 0x32e }, _0x140d9a = {
|
|
1256
|
-
_0x52135f: 0x32e,
|
|
1257
|
-
_0x50262f: 0x31c,
|
|
1258
|
-
_0x3b8b83: 0x2ca
|
|
1259
|
-
}, _0x15ee46 = {
|
|
1260
|
-
_0x68970d: 0x267,
|
|
1261
|
-
_0x157b3a: 0x250,
|
|
1262
|
-
_0x4787b7: 0x32e,
|
|
1263
|
-
_0x6c83f5: 0x363,
|
|
1264
|
-
_0x10c5a5: 0x363,
|
|
1265
|
-
_0x5223be: 0x26d,
|
|
1266
|
-
_0xb42b0f: 0x1fd,
|
|
1267
|
-
_0x238046: 0x1ff,
|
|
1268
|
-
_0x44cb63: 0x239,
|
|
1269
|
-
_0x3a39ef: 0x264,
|
|
1270
|
-
_0x2c5734: 0x274,
|
|
1271
|
-
_0x4dfe69: 0x2fe,
|
|
1272
|
-
_0x2c11b3: 0x286,
|
|
1273
|
-
_0x3816a1: 0x2c7,
|
|
1274
|
-
_0x1b3472: 0x2b5,
|
|
1275
|
-
_0x10787c: 0x36d,
|
|
1276
|
-
_0x1c52e1: 0x22b,
|
|
1277
|
-
_0x59b5d2: 0x28c,
|
|
1278
|
-
_0x3de60c: 0x33b,
|
|
1279
|
-
_0x4df0fb: 0x2dc,
|
|
1280
|
-
_0x293e08: 0x244,
|
|
1281
|
-
_0x518e2a: 0x336
|
|
1282
|
-
}, _0x157ba2 = {
|
|
1283
|
-
_0x1fa2d2: 0x231,
|
|
1284
|
-
_0x2fd303: 0x367,
|
|
1285
|
-
_0x1e41e6: 0x2b5,
|
|
1286
|
-
_0x8d4f: 0x2ea,
|
|
1287
|
-
_0x426c5f: 0x1fe,
|
|
1288
|
-
_0x4ee535: 0x2a1
|
|
1289
|
-
}, _0x50640b = {
|
|
1290
|
-
_0x28fb66: 0x231,
|
|
1291
|
-
_0x2de335: 0x1fe,
|
|
1292
|
-
_0x3a26ae: 0x2a1,
|
|
1293
|
-
_0x3f0762: 0x28d
|
|
1294
|
-
}, _0x4055ee = {
|
|
1295
|
-
_0x51cd49: 0x365,
|
|
1296
|
-
_0x27d037: 0x26d,
|
|
1297
|
-
_0x312e1b: 0x281,
|
|
1298
|
-
_0x2a5a41: 0x32e,
|
|
1299
|
-
_0x38b2ca: 0x234,
|
|
1300
|
-
_0x56f6ae: 0x1f3,
|
|
1301
|
-
_0x2a9707: 0x320,
|
|
1302
|
-
_0x1caf5d: 0x274,
|
|
1303
|
-
_0x36e3ce: 0x231,
|
|
1304
|
-
_0x4171c0: 0x2fe,
|
|
1305
|
-
_0x45351e: 0x1ed,
|
|
1306
|
-
_0x5b0e02: 0x250,
|
|
1307
|
-
_0x3d8ea7: 0x334,
|
|
1308
|
-
_0x1ebd6f: 0x334,
|
|
1309
|
-
_0x4de011: 0x2e4,
|
|
1310
|
-
_0x5b70f5: 0x33b,
|
|
1311
|
-
_0x382568: 0x354
|
|
1312
|
-
}, _0x2969dd = _0x2d2fb4;
|
|
1313
|
-
async function _0x102280(_0x3cd68e) {
|
|
1314
|
-
const _0x36f0b0 = _0x101e;
|
|
1315
|
-
if (!_0x33c1d0[_0x36f0b0(0x231)] || !_0x33c1d0[_0x36f0b0(0x250)] || _0x33c1d0['workerMode'] || _0x33c1d0[_0x36f0b0(0x267)] !== !![])
|
|
1316
|
-
return null;
|
|
1317
|
-
const _0x4c3373 = parseTarget(_0x3cd68e['channel']);
|
|
1318
|
-
if (_0x4c3373['kind'] !== _0x36f0b0(_0x4055ee._0x51cd49))
|
|
1319
|
-
return null;
|
|
1320
|
-
const _0x45d98a = _0x3cd68e[_0x36f0b0(_0x4055ee._0x27d037)] != null ? _0x4c3373[_0x36f0b0(_0x4055ee._0x312e1b)] + ':t' + _0x3cd68e['threadNumber'] : _0x4c3373[_0x36f0b0(_0x4055ee._0x312e1b)] + ':' + _0x3cd68e['messageId'];
|
|
1321
|
-
let _0x5542e7;
|
|
1322
|
-
try {
|
|
1323
|
-
const _0x11f350 = await _0x33c1d0[_0x36f0b0(_0x4055ee._0x2a5a41)][_0x36f0b0(_0x4055ee._0x38b2ca)]({
|
|
1324
|
-
'channel': _0x45d98a,
|
|
1325
|
-
'limit': 0x14
|
|
1326
|
-
});
|
|
1327
|
-
_0x5542e7 = _0x11f350[_0x36f0b0(0x2ca)][_0x36f0b0(0x201)](_0x31fd01 => _0x31fd01[_0x36f0b0(0x35c)] === _0x3cd68e[_0x36f0b0(0x35c)]);
|
|
1328
|
-
} catch {
|
|
1329
|
-
_0x5542e7 = void 0x0;
|
|
1330
|
-
}
|
|
1331
|
-
const _0x196ae6 = _0x3cd68e[_0x36f0b0(0x2cd)] == null ? _0x36f0b0(0x2a0) : '#' + _0x3cd68e['taskNumber'], _0x57fce9 = [
|
|
1332
|
-
_0x36f0b0(0x24f) + _0x45d98a + _0x36f0b0(0x2d1) + _0x3cd68e[_0x36f0b0(0x35c)]['slice'](0x0, 0x8) + _0x36f0b0(0x30f) + new Date()[_0x36f0b0(_0x4055ee._0x56f6ae)]() + _0x36f0b0(0x319) + _0x196ae6 + _0x36f0b0(_0x4055ee._0x2a9707),
|
|
1333
|
-
'',
|
|
1334
|
-
_0x5542e7 ? _0x36f0b0(0x321) + _0x5542e7['content'] : _0x36f0b0(0x2da) + _0x3cd68e[_0x36f0b0(0x35c)],
|
|
1335
|
-
'',
|
|
1336
|
-
_0x36f0b0(0x22c) + _0x45d98a,
|
|
1337
|
-
_0x36f0b0(0x2bc)
|
|
1338
|
-
][_0x36f0b0(_0x4055ee._0x1caf5d)]('\x0a'), _0x50c522 = await fetch(_0x33c1d0[_0x36f0b0(_0x4055ee._0x36e3ce)] + _0x36f0b0(_0x4055ee._0x4171c0), {
|
|
1339
|
-
'method': _0x36f0b0(_0x4055ee._0x45351e),
|
|
1340
|
-
'headers': { 'Content-Type': _0x36f0b0(0x2a6) },
|
|
1341
|
-
'body': JSON[_0x36f0b0(0x286)]({
|
|
1342
|
-
'agent_id': _0x33c1d0[_0x36f0b0(_0x4055ee._0x5b0e02)],
|
|
1343
|
-
'thread_target': _0x45d98a,
|
|
1344
|
-
'spawn_packet': {
|
|
1345
|
-
'replyTarget': _0x45d98a,
|
|
1346
|
-
..._0x3cd68e[_0x36f0b0(_0x4055ee._0x3d8ea7)] ? { 'taskId': _0x3cd68e[_0x36f0b0(_0x4055ee._0x1ebd6f)] } : _0x3cd68e[_0x36f0b0(0x2cd)] != null ? { 'taskId': _0x36f0b0(_0x4055ee._0x4de011) + _0x3cd68e[_0x36f0b0(0x2cd)] } : {}
|
|
1347
|
-
},
|
|
1348
|
-
'payload': {
|
|
1349
|
-
'mode': _0x36f0b0(0x2c7),
|
|
1350
|
-
'text': _0x57fce9
|
|
1351
|
-
}
|
|
1352
|
-
})
|
|
1353
|
-
}), _0x59deea = await _0x50c522[_0x36f0b0(0x2b5)]();
|
|
1354
|
-
if (!_0x59deea['ok'])
|
|
1355
|
-
throw new Error(_0x59deea[_0x36f0b0(0x2d5)] ?? _0x36f0b0(0x310));
|
|
1356
|
-
return {
|
|
1357
|
-
'stopMain': !![],
|
|
1358
|
-
'threadTarget': _0x45d98a,
|
|
1359
|
-
'workerDisposition': _0x59deea[_0x36f0b0(_0x4055ee._0x5b70f5)] === 'queued' ? _0x36f0b0(0x2dc) : _0x36f0b0(_0x4055ee._0x382568),
|
|
1360
|
-
'workerHandoff': !![],
|
|
1361
|
-
'workerSessionId': _0x59deea[_0x36f0b0(0x285)] ?? '',
|
|
1362
|
-
'executionMode': 'worker'
|
|
1363
|
-
};
|
|
1364
|
-
}
|
|
1365
|
-
async function _0x5589cb() {
|
|
1366
|
-
const _0x273757 = _0x101e;
|
|
1367
|
-
if (!_0x33c1d0[_0x273757(0x231)] || !_0x33c1d0['agentId'] || _0x33c1d0[_0x273757(0x31e)])
|
|
1368
|
-
return null;
|
|
1369
|
-
try {
|
|
1370
|
-
const _0xe8df6 = await fetch(_0x33c1d0[_0x273757(_0x50640b._0x28fb66)] + '/workers/list?agent_id=' + encodeURIComponent(_0x33c1d0['agentId'])), _0x289e8d = await _0xe8df6['json']();
|
|
1371
|
-
if (!_0x289e8d['ok'])
|
|
1372
|
-
return null;
|
|
1373
|
-
const _0x1d38f5 = new Set();
|
|
1374
|
-
for (const _0x206c6e of _0x289e8d['workers']) {
|
|
1375
|
-
_0x206c6e[_0x273757(_0x50640b._0x2de335)] !== 'destroyed' && _0x206c6e['thread_target'] && _0x1d38f5[_0x273757(_0x50640b._0x3a26ae)](_0x206c6e[_0x273757(_0x50640b._0x3f0762)]);
|
|
1376
|
-
}
|
|
1377
|
-
return _0x1d38f5[_0x273757(0x333)] > 0x0 ? _0x1d38f5 : null;
|
|
1378
|
-
} catch {
|
|
1379
|
-
return null;
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
const _0x2b9299 = new Set([
|
|
1383
|
-
'running',
|
|
1384
|
-
_0x2969dd(0x1f9),
|
|
1385
|
-
_0x2969dd(_0x578acf._0x5617be)
|
|
1386
|
-
]);
|
|
1387
|
-
async function _0x5206e1() {
|
|
1388
|
-
const _0x1c263f = _0x2969dd;
|
|
1389
|
-
if (!_0x33c1d0[_0x1c263f(_0x157ba2._0x1fa2d2)] || !_0x33c1d0[_0x1c263f(0x250)] || _0x33c1d0[_0x1c263f(0x31e)])
|
|
1390
|
-
return null;
|
|
1391
|
-
try {
|
|
1392
|
-
const _0x259ca8 = await fetch(_0x33c1d0['daemonLocalUrl'] + _0x1c263f(_0x157ba2._0x2fd303) + encodeURIComponent(_0x33c1d0[_0x1c263f(0x250)])), _0x168d27 = await _0x259ca8[_0x1c263f(_0x157ba2._0x1e41e6)]();
|
|
1393
|
-
if (!_0x168d27['ok'])
|
|
1394
|
-
return null;
|
|
1395
|
-
const _0x7f6ea = new Set();
|
|
1396
|
-
for (const _0x14cc22 of _0x168d27['workers']) {
|
|
1397
|
-
_0x2b9299[_0x1c263f(_0x157ba2._0x8d4f)](_0x14cc22[_0x1c263f(_0x157ba2._0x426c5f)]) && _0x14cc22[_0x1c263f(0x28d)] && _0x7f6ea[_0x1c263f(_0x157ba2._0x4ee535)](_0x14cc22[_0x1c263f(0x28d)]);
|
|
1398
|
-
}
|
|
1399
|
-
return _0x7f6ea[_0x1c263f(0x333)] > 0x0 ? _0x7f6ea : null;
|
|
1400
|
-
} catch {
|
|
1401
|
-
return null;
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
return {
|
|
1405
|
-
async 'send_message'(_0x5e943e) {
|
|
1406
|
-
const _0x5c5682 = _0x2969dd;
|
|
1407
|
-
if (!_0x33c1d0['workerMode'] && _0x33c1d0[_0x5c5682(_0x15ee46._0x68970d)] && _0x33c1d0['daemonLocalUrl'] && _0x33c1d0[_0x5c5682(_0x15ee46._0x157b3a)]) {
|
|
1408
|
-
const _0x4c9201 = await _0x33c1d0[_0x5c5682(_0x15ee46._0x4787b7)]['resolveTarget'](_0x5e943e[_0x5c5682(0x1fd)]);
|
|
1409
|
-
if (_0x4c9201[_0x5c5682(_0x15ee46._0x6c83f5)] && _0x4c9201[_0x5c5682(0x293)]) {
|
|
1410
|
-
const _0x3b824e = _0x4c9201['task']['taskNumber'] != null ? '#' + _0x4c9201[_0x5c5682(_0x15ee46._0x10c5a5)][_0x5c5682(0x2cd)] : _0x5c5682(0x2a0), _0x3876d9 = _0x4c9201[_0x5c5682(_0x15ee46._0x5223be)] != null ? _0x4c9201[_0x5c5682(_0x15ee46._0xb42b0f)] + ':t' + _0x4c9201['threadNumber'] : _0x4c9201[_0x5c5682(_0x15ee46._0xb42b0f)] + ':' + _0x4c9201['threadId']['slice'](0x0, 0x8), _0x46be08 = await _0x5206e1();
|
|
1411
|
-
if (_0x46be08?.[_0x5c5682(0x2ea)](_0x3876d9))
|
|
1412
|
-
return [
|
|
1413
|
-
_0x5c5682(0x31f) + _0x3b824e + _0x5c5682(0x22b) + _0x3876d9 + _0x5c5682(_0x15ee46._0x238046),
|
|
1414
|
-
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1415
|
-
][_0x5c5682(0x274)]('\x0a');
|
|
1416
|
-
const _0x3bfe88 = [
|
|
1417
|
-
_0x5c5682(0x24f) + _0x3876d9 + _0x5c5682(0x284) + new Date()[_0x5c5682(0x1f3)]() + _0x5c5682(0x2af),
|
|
1418
|
-
'',
|
|
1419
|
-
_0x5c5682(0x2c5) + _0x5e943e[_0x5c5682(_0x15ee46._0x44cb63)],
|
|
1420
|
-
_0x5c5682(_0x15ee46._0x3a39ef) + _0x3b824e + '\x20(' + _0x4c9201['task']['taskId'] + ')',
|
|
1421
|
-
'Thread\x20target:\x20' + _0x3876d9,
|
|
1422
|
-
_0x5c5682(0x36a)
|
|
1423
|
-
][_0x5c5682(_0x15ee46._0x2c5734)]('\x0a'), _0x40d3e9 = await fetch(_0x33c1d0['daemonLocalUrl'] + _0x5c5682(_0x15ee46._0x4dfe69), {
|
|
1424
|
-
'method': 'POST',
|
|
1425
|
-
'headers': { 'Content-Type': _0x5c5682(0x2a6) },
|
|
1426
|
-
'body': JSON[_0x5c5682(_0x15ee46._0x2c11b3)]({
|
|
1427
|
-
'agent_id': _0x33c1d0[_0x5c5682(_0x15ee46._0x157b3a)],
|
|
1428
|
-
'thread_target': _0x3876d9,
|
|
1429
|
-
'spawn_packet': {
|
|
1430
|
-
'replyTarget': _0x3876d9,
|
|
1431
|
-
'taskId': _0x4c9201['task'][_0x5c5682(0x334)]
|
|
1432
|
-
},
|
|
1433
|
-
'payload': {
|
|
1434
|
-
'mode': _0x5c5682(_0x15ee46._0x3816a1),
|
|
1435
|
-
'text': _0x3bfe88
|
|
1436
|
-
}
|
|
1437
|
-
})
|
|
1438
|
-
}), _0x232028 = await _0x40d3e9[_0x5c5682(_0x15ee46._0x1b3472)]();
|
|
1439
|
-
if (!_0x232028['ok'])
|
|
1440
|
-
throw new Error(_0x232028[_0x5c5682(0x2d5)] ?? _0x5c5682(_0x15ee46._0x10787c));
|
|
1441
|
-
return [
|
|
1442
|
-
_0x5c5682(0x2c9) + _0x3b824e + _0x5c5682(_0x15ee46._0x1c52e1) + _0x3876d9 + _0x5c5682(_0x15ee46._0x59b5d2),
|
|
1443
|
-
_0x5c5682(0x2e6) + (_0x232028[_0x5c5682(_0x15ee46._0x3de60c)] === _0x5c5682(_0x15ee46._0x4df0fb) ? _0x5c5682(0x2dc) : _0x5c5682(0x354)) + '.',
|
|
1444
|
-
_0x5c5682(0x312)
|
|
1445
|
-
]['join']('\x0a');
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
const _0x2958d1 = await _0x33c1d0[_0x5c5682(_0x15ee46._0x4787b7)][_0x5c5682(_0x15ee46._0x293e08)]({
|
|
1449
|
-
'attachmentIds': _0x5e943e[_0x5c5682(_0x15ee46._0x518e2a)],
|
|
1450
|
-
'content': _0x5e943e['content'],
|
|
1451
|
-
'target': _0x5e943e[_0x5c5682(_0x15ee46._0xb42b0f)],
|
|
1452
|
-
'visibility': _0x5e943e['visibility']
|
|
1453
|
-
});
|
|
1454
|
-
return _0x5c5682(0x20d) + _0x5e943e[_0x5c5682(0x1fd)] + _0x5c5682(0x2b3) + _0x2958d1[_0x5c5682(0x35c)];
|
|
1455
|
-
},
|
|
1456
|
-
async 'check_messages'() {
|
|
1457
|
-
const _0x204716 = _0x2969dd, _0x49e5c5 = await _0x33c1d0[_0x204716(_0x140d9a._0x52135f)][_0x204716(_0x140d9a._0x50262f)]();
|
|
1458
|
-
if (!_0x33c1d0['workerMode']) {
|
|
1459
|
-
const _0x1699b9 = await _0x5589cb();
|
|
1460
|
-
if (_0x1699b9)
|
|
1461
|
-
return formatCheckMessages(_0x49e5c5[_0x204716(_0x140d9a._0x3b8b83)][_0x204716(0x1ef)](_0xb09f9b => !_0x1699b9[_0x204716(0x2ea)](_0xb09f9b[_0x204716(0x1fd)])));
|
|
1462
|
-
}
|
|
1463
|
-
return formatCheckMessages(_0x49e5c5[_0x204716(0x2ca)]);
|
|
1464
|
-
},
|
|
1465
|
-
async 'read_history'(_0x2ad0f5) {
|
|
1466
|
-
const _0x2bd75c = _0x2969dd, _0x4081dd = await _0x33c1d0[_0x2bd75c(0x32e)]['readHistory'](_0x2ad0f5);
|
|
1467
|
-
return formatHistory(_0x4081dd);
|
|
1468
|
-
},
|
|
1469
|
-
async 'list_server'() {
|
|
1470
|
-
const _0xe6f55c = _0x2969dd, _0x5efaaf = await _0x33c1d0[_0xe6f55c(_0x3c1785._0xf2004f)][_0xe6f55c(0x2d3)]();
|
|
1471
|
-
return formatServerDirectory(_0x5efaaf);
|
|
1472
|
-
},
|
|
1473
|
-
async 'list_tasks'(_0x821610) {
|
|
1474
|
-
const _0x4c9e5d = _0x2969dd, _0x5b4d54 = await _0x33c1d0['client'][_0x4c9e5d(0x307)](_0x821610);
|
|
1475
|
-
let _0x477968;
|
|
1476
|
-
if (_0x33c1d0['daemonLocalUrl'] && _0x33c1d0[_0x4c9e5d(0x250)])
|
|
1477
|
-
try {
|
|
1478
|
-
const _0x45893f = await fetch(_0x33c1d0['daemonLocalUrl'] + '/workers/list?agent_id=' + encodeURIComponent(_0x33c1d0['agentId'])), _0x5d646f = await _0x45893f['json']();
|
|
1479
|
-
if (_0x5d646f['ok']) {
|
|
1480
|
-
const _0x2ba0c7 = _0x821610[_0x4c9e5d(_0x24ce88._0x833bd3)] + ':';
|
|
1481
|
-
_0x477968 = new Set();
|
|
1482
|
-
for (const _0x38541d of _0x5d646f[_0x4c9e5d(0x217)]) {
|
|
1483
|
-
if (_0x38541d[_0x4c9e5d(0x1fe)] === _0x4c9e5d(_0x24ce88._0x568503))
|
|
1484
|
-
continue;
|
|
1485
|
-
if (_0x38541d['thread_target']?.[_0x4c9e5d(_0x24ce88._0x530c3f)](_0x2ba0c7)) {
|
|
1486
|
-
const _0x2ba25a = _0x38541d[_0x4c9e5d(_0x24ce88._0x2db893)][_0x4c9e5d(0x33f)](_0x2ba0c7[_0x4c9e5d(_0x24ce88._0x27b1e6)]), _0x4f9646 = _0x5b4d54['tasks'][_0x4c9e5d(_0x24ce88._0x466d1a)](_0x17afda => _0x17afda['messageId']?.[_0x4c9e5d(0x266)](_0x2ba25a) === !![]);
|
|
1487
|
-
if (_0x4f9646?.[_0x4c9e5d(_0x24ce88._0x1c5eb7)] != null) {
|
|
1488
|
-
_0x477968[_0x4c9e5d(_0x24ce88._0xf2efc9)](_0x4f9646[_0x4c9e5d(_0x24ce88._0x4ca213)]);
|
|
1489
|
-
continue;
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
1492
|
-
if (_0x38541d[_0x4c9e5d(0x287)]) {
|
|
1493
|
-
const _0x2f3c99 = _0x5b4d54['tasks']['find'](_0x45d13f => _0x45d13f['taskId'] === _0x38541d['task_id']);
|
|
1494
|
-
_0x2f3c99?.['taskNumber'] != null && _0x477968['add'](_0x2f3c99[_0x4c9e5d(_0x24ce88._0x2e9ed8)]);
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
} catch {
|
|
1499
|
-
}
|
|
1500
|
-
return formatTaskList(_0x5b4d54['tasks'], _0x477968);
|
|
1501
|
-
},
|
|
1502
|
-
async 'create_tasks'(_0x289218) {
|
|
1503
|
-
const _0x3d3487 = _0x2969dd, _0x46345a = await _0x33c1d0[_0x3d3487(_0x2a9436._0x59f95a)][_0x3d3487(0x276)](_0x289218);
|
|
1504
|
-
return formatCreatedTasks(_0x46345a[_0x3d3487(_0x2a9436._0x554116)]);
|
|
1505
|
-
},
|
|
1506
|
-
async 'claim_tasks'(_0x12226e) {
|
|
1507
|
-
const _0x3f9d69 = {
|
|
1508
|
-
_0x74f905: 0x21b,
|
|
1509
|
-
_0x4a0917: 0x365,
|
|
1510
|
-
_0x2bed6e: 0x2cd,
|
|
1511
|
-
_0x45fae4: 0x26d,
|
|
1512
|
-
_0x47d3d8: 0x310
|
|
1513
|
-
}, _0x7e1cd = _0x2969dd, _0x6c739d = await _0x33c1d0[_0x7e1cd(0x32e)][_0x7e1cd(_0x3f4542._0x5176ae)](_0x12226e), _0x344305 = await Promise[_0x7e1cd(_0x3f4542._0x3431c5)](_0x6c739d[_0x7e1cd(_0x3f4542._0x5c3ad2)][_0x7e1cd(_0x3f4542._0x4fb72b)](async _0x4caac9 => {
|
|
1514
|
-
const _0x1ccb89 = _0x7e1cd;
|
|
1515
|
-
if (!_0x4caac9[_0x1ccb89(_0x3f9d69._0x74f905)] || !_0x4caac9[_0x1ccb89(0x35c)])
|
|
1516
|
-
return _0x4caac9;
|
|
1517
|
-
try {
|
|
1518
|
-
const _0x55ca4d = await _0x102280({
|
|
1519
|
-
'channel': _0x12226e[_0x1ccb89(_0x3f9d69._0x4a0917)],
|
|
1520
|
-
'messageId': _0x4caac9[_0x1ccb89(0x35c)],
|
|
1521
|
-
'taskId': _0x4caac9[_0x1ccb89(0x334)],
|
|
1522
|
-
'taskNumber': _0x4caac9[_0x1ccb89(_0x3f9d69._0x2bed6e)],
|
|
1523
|
-
'threadNumber': _0x4caac9[_0x1ccb89(_0x3f9d69._0x45fae4)]
|
|
1524
|
-
});
|
|
1525
|
-
return _0x55ca4d ? {
|
|
1526
|
-
..._0x4caac9,
|
|
1527
|
-
..._0x55ca4d
|
|
1528
|
-
} : _0x4caac9;
|
|
1529
|
-
} catch (_0x3d1392) {
|
|
1530
|
-
return {
|
|
1531
|
-
..._0x4caac9,
|
|
1532
|
-
'workerHandoffError': _0x3d1392 instanceof Error ? _0x3d1392[_0x1ccb89(0x27c)] : _0x1ccb89(_0x3f9d69._0x47d3d8)
|
|
1533
|
-
};
|
|
1534
|
-
}
|
|
1535
|
-
}));
|
|
1536
|
-
return formatClaimTaskResults(_0x344305);
|
|
1537
|
-
},
|
|
1538
|
-
async 'unclaim_task'(_0x3203d7) {
|
|
1539
|
-
const _0xdcedc8 = _0x2969dd, _0x12894e = await _0x33c1d0[_0xdcedc8(_0x100a39._0x5583e9)]['unclaimTask'](_0x3203d7);
|
|
1540
|
-
return formatUnclaimTaskResult(_0x12894e);
|
|
1541
|
-
},
|
|
1542
|
-
async 'update_task_status'(_0x5a467a) {
|
|
1543
|
-
const _0x614511 = _0x2969dd, _0x260a91 = await _0x33c1d0['client'][_0x614511(_0x5b2d54._0x7722d5)](_0x5a467a);
|
|
1544
|
-
return formatUpdateTaskStatusResult(_0x260a91);
|
|
1545
|
-
},
|
|
1546
|
-
async 'upload_file'(_0x254606) {
|
|
1547
|
-
const _0xd68a2a = _0x2969dd, _0x3a1482 = await _0x33c1d0[_0xd68a2a(_0x362da6._0x4cf253)](_0x254606[_0xd68a2a(0x36b)]), {
|
|
1548
|
-
sizeBytes: _0x122552,
|
|
1549
|
-
..._0x28ff6e
|
|
1550
|
-
} = _0x3a1482, _0xb0ea92 = await _0x33c1d0['client']['uploadFile']({
|
|
1551
|
-
'channel': _0x254606[_0xd68a2a(0x365)],
|
|
1552
|
-
..._0x28ff6e
|
|
1553
|
-
});
|
|
1554
|
-
return formatUploadResult(_0xb0ea92);
|
|
1555
|
-
},
|
|
1556
|
-
async 'view_file'(_0x5511b1) {
|
|
1557
|
-
const _0x3e0a55 = _0x2969dd, _0x1d00ab = await _0x33c1d0[_0x3e0a55(_0x52f58e._0x210288)][_0x3e0a55(0x34c)](_0x5511b1[_0x3e0a55(0x2ed)]);
|
|
1558
|
-
if (_0x1d00ab)
|
|
1559
|
-
return formatViewFileResult(_0x1d00ab, !![]);
|
|
1560
|
-
const _0x59c8eb = await _0x33c1d0[_0x3e0a55(_0x52f58e._0x4e7203)][_0x3e0a55(_0x52f58e._0x1001d9)](_0x5511b1[_0x3e0a55(0x2ed)]), _0x9fe9cc = await _0x33c1d0['attachmentCache']['save']({
|
|
1561
|
-
'attachmentId': _0x5511b1['attachment_id'],
|
|
1562
|
-
'contentType': _0x59c8eb[_0x3e0a55(0x328)],
|
|
1563
|
-
'data': _0x59c8eb[_0x3e0a55(_0x52f58e._0x2d65fe)],
|
|
1564
|
-
'originalFilename': _0x59c8eb[_0x3e0a55(_0x52f58e._0xfb7a0c)]
|
|
1565
|
-
});
|
|
1566
|
-
return formatViewFileResult(_0x9fe9cc, ![]);
|
|
1567
|
-
},
|
|
1568
|
-
async 'get_worker_status'(_0x1b3ab7) {
|
|
1569
|
-
const _0x2bdc4f = _0x2969dd;
|
|
1570
|
-
if (!_0x33c1d0['daemonLocalUrl'])
|
|
1571
|
-
return _0x2bdc4f(0x288);
|
|
1572
|
-
const _0x23cba9 = await fetch(_0x33c1d0[_0x2bdc4f(0x231)] + _0x2bdc4f(0x205) + encodeURIComponent(_0x1b3ab7['work_key'])), _0x57f6c5 = await _0x23cba9[_0x2bdc4f(_0x546112._0x23eb5a)]();
|
|
1573
|
-
if (!_0x57f6c5['ok'])
|
|
1574
|
-
return _0x2bdc4f(0x206) + _0x1b3ab7['work_key'] + _0x2bdc4f(0x2d0);
|
|
1575
|
-
return _0x2bdc4f(_0x546112._0x3be6a8) + _0x1b3ab7[_0x2bdc4f(_0x546112._0x6aca72)] + _0x2bdc4f(0x36c) + _0x57f6c5[_0x2bdc4f(0x1fe)];
|
|
1576
|
-
},
|
|
1577
|
-
async 'get_worker_result'(_0x2bc8d2) {
|
|
1578
|
-
const _0x23cc67 = _0x2969dd;
|
|
1579
|
-
if (!_0x33c1d0[_0x23cc67(_0x1c9892._0x822c07)])
|
|
1580
|
-
return 'Worker\x20features\x20not\x20available';
|
|
1581
|
-
const _0x2af2cb = await fetch(_0x33c1d0[_0x23cc67(0x231)] + _0x23cc67(0x327) + encodeURIComponent(_0x2bc8d2['work_key'])), _0x3aa215 = await _0x2af2cb['json']();
|
|
1582
|
-
if (!_0x3aa215[_0x23cc67(_0x1c9892._0x25316d)])
|
|
1583
|
-
return _0x23cc67(_0x1c9892._0x4da727) + _0x2bc8d2[_0x23cc67(_0x1c9892._0x5683dd)] + '\x22';
|
|
1584
|
-
return JSON[_0x23cc67(0x286)](_0x3aa215['resume_packet'], null, 0x2);
|
|
1585
|
-
},
|
|
1586
|
-
async 'finish_worker'(_0x3dcc14) {
|
|
1587
|
-
const _0x4d2358 = _0x2969dd;
|
|
1588
|
-
if (!_0x33c1d0['daemonLocalUrl'])
|
|
1589
|
-
return _0x4d2358(0x288);
|
|
1590
|
-
const _0x131a18 = await fetch(_0x33c1d0['daemonLocalUrl'] + _0x4d2358(0x221), {
|
|
1591
|
-
'method': _0x4d2358(0x1ed),
|
|
1592
|
-
'headers': { 'Content-Type': _0x4d2358(_0xefc654._0x12e3e7) },
|
|
1593
|
-
'body': JSON[_0x4d2358(_0xefc654._0x334aeb)]({
|
|
1594
|
-
'work_key': _0x3dcc14['work_key'],
|
|
1595
|
-
'resume_packet': {
|
|
1596
|
-
'objective': '',
|
|
1597
|
-
'result': _0x3dcc14['result'],
|
|
1598
|
-
'summary': _0x3dcc14['summary'],
|
|
1599
|
-
'decisions': _0x3dcc14['decisions'] ?? [],
|
|
1600
|
-
'filesChanged': _0x3dcc14[_0x4d2358(0x297)] ?? [],
|
|
1601
|
-
'openIssues': _0x3dcc14['open_issues'] ?? [],
|
|
1602
|
-
'nextSteps': _0x3dcc14[_0x4d2358(0x2f9)] ?? []
|
|
1603
|
-
}
|
|
1604
|
-
})
|
|
1605
|
-
}), _0x481d6d = await _0x131a18[_0x4d2358(0x2b5)]();
|
|
1606
|
-
if (!_0x481d6d['ok'])
|
|
1607
|
-
throw new Error(_0x481d6d[_0x4d2358(_0xefc654._0x1fb9c0)] ?? 'finish_worker\x20failed');
|
|
1608
|
-
return 'Worker\x20\x22' + _0x3dcc14['work_key'] + _0x4d2358(_0xefc654._0x377f43) + _0x3dcc14['result'];
|
|
1609
|
-
},
|
|
1610
|
-
async 'mark_waiting_input'(_0x2f1302) {
|
|
1611
|
-
const _0x14e2ba = _0x2969dd;
|
|
1612
|
-
if (!_0x33c1d0[_0x14e2ba(0x231)] || !_0x33c1d0['agentId'])
|
|
1613
|
-
return _0x14e2ba(0x20f);
|
|
1614
|
-
const _0xe85e18 = await fetch(_0x33c1d0['daemonLocalUrl'] + _0x14e2ba(0x323), {
|
|
1615
|
-
'method': 'POST',
|
|
1616
|
-
'headers': { 'Content-Type': _0x14e2ba(_0x9c661d._0x31c225) },
|
|
1617
|
-
'body': JSON[_0x14e2ba(_0x9c661d._0x259ad5)]({
|
|
1618
|
-
'work_key': _0x2f1302['work_key'],
|
|
1619
|
-
'agent_id': _0x33c1d0[_0x14e2ba(_0x9c661d._0x433232)]
|
|
1620
|
-
})
|
|
1621
|
-
}), _0x456ba7 = await _0xe85e18[_0x14e2ba(0x2b5)]();
|
|
1622
|
-
if (!_0x456ba7['ok'])
|
|
1623
|
-
throw new Error(_0x456ba7[_0x14e2ba(0x2d5)] ?? _0x14e2ba(0x2be));
|
|
1624
|
-
return 'Worker\x20\x22' + _0x2f1302[_0x14e2ba(0x356)] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
|
|
1625
|
-
},
|
|
1626
|
-
async 'escalate_to_main'(_0x226016) {
|
|
1627
|
-
const _0x5d5581 = _0x2969dd;
|
|
1628
|
-
if (!_0x33c1d0[_0x5d5581(_0x45c950._0x45f7d2)])
|
|
1629
|
-
return _0x5d5581(_0x45c950._0x46d923);
|
|
1630
|
-
const _0x3d55f8 = await fetch(_0x33c1d0[_0x5d5581(_0x45c950._0x1aad04)] + _0x5d5581(_0x45c950._0x171373), {
|
|
1631
|
-
'method': _0x5d5581(0x1ed),
|
|
1632
|
-
'headers': { 'Content-Type': _0x5d5581(0x2a6) },
|
|
1633
|
-
'body': JSON[_0x5d5581(_0x45c950._0x53bbd0)]({
|
|
1634
|
-
'work_key': _0x226016[_0x5d5581(0x356)],
|
|
1635
|
-
'reason': _0x226016[_0x5d5581(0x2cf)]
|
|
1636
|
-
})
|
|
1637
|
-
}), _0x493262 = await _0x3d55f8[_0x5d5581(0x2b5)]();
|
|
1638
|
-
if (!_0x493262['ok'])
|
|
1639
|
-
throw new Error(_0x493262['error'] ?? 'escalate_to_main\x20failed');
|
|
1640
|
-
return _0x5d5581(_0x45c950._0x23d508) + _0x226016[_0x5d5581(_0x45c950._0x129475)];
|
|
1641
|
-
}
|
|
1642
|
-
};
|
|
1643
|
-
}
|
|
1644
|
-
function textResult(_0x3b903f, _0x2350cf = ![]) {
|
|
1645
|
-
return {
|
|
1646
|
-
'content': [{
|
|
1647
|
-
'type': 'text',
|
|
1648
|
-
'text': _0x3b903f
|
|
1649
|
-
}],
|
|
1650
|
-
..._0x2350cf ? { 'isError': !![] } : {}
|
|
1651
|
-
};
|
|
1652
|
-
}
|
|
1653
|
-
async function registerChatBridgeTools(_0x56548a, _0xd84252, _0x50b88d) {
|
|
1654
|
-
const _0x5ed8e8 = {
|
|
1655
|
-
_0x16deac: 0x202,
|
|
1656
|
-
_0x5f38be: 0x344,
|
|
1657
|
-
_0xe236a7: 0x255,
|
|
1658
|
-
_0x10ffe7: 0x353,
|
|
1659
|
-
_0x9a5619: 0x2a5,
|
|
1660
|
-
_0x659e57: 0x31b,
|
|
1661
|
-
_0x27dbd1: 0x32f,
|
|
1662
|
-
_0x2b7848: 0x2cc,
|
|
1663
|
-
_0x2e2257: 0x28b,
|
|
1664
|
-
_0x3ee669: 0x344,
|
|
1665
|
-
_0x49f360: 0x294,
|
|
1666
|
-
_0x3c4ee3: 0x1f6,
|
|
1667
|
-
_0x5a0855: 0x22e,
|
|
1668
|
-
_0x152891: 0x31b,
|
|
1669
|
-
_0x35f74a: 0x353,
|
|
1670
|
-
_0x2db59b: 0x2a5,
|
|
1671
|
-
_0x2aacd1: 0x272,
|
|
1672
|
-
_0xa127c8: 0x31b,
|
|
1673
|
-
_0x31a411: 0x344,
|
|
1674
|
-
_0x6bb968: 0x2ee,
|
|
1675
|
-
_0x3454d4: 0x31b,
|
|
1676
|
-
_0x5422c6: 0x2dd,
|
|
1677
|
-
_0x4d7189: 0x279,
|
|
1678
|
-
_0x2d1c14: 0x33e,
|
|
1679
|
-
_0x3e34d7: 0x329,
|
|
1680
|
-
_0x7b0228: 0x313,
|
|
1681
|
-
_0x238e57: 0x23b,
|
|
1682
|
-
_0x11dc57: 0x22f,
|
|
1683
|
-
_0x25d01a: 0x296,
|
|
1684
|
-
_0x2a6cd8: 0x344,
|
|
1685
|
-
_0x85fa43: 0x2ec,
|
|
1686
|
-
_0x298cfa: 0x360,
|
|
1687
|
-
_0x3a4ece: 0x200,
|
|
1688
|
-
_0xb8fb04: 0x31b,
|
|
1689
|
-
_0x369c76: 0x353,
|
|
1690
|
-
_0x672f6d: 0x271,
|
|
1691
|
-
_0x1c9c21: 0x31e
|
|
1692
|
-
}, _0x32fdf7 = { _0xfc0bcf: 0x2be }, _0x38f44d = { _0x427ffb: 0x33d }, _0x46136b = {
|
|
1693
|
-
_0x1f41d5: 0x2bd,
|
|
1694
|
-
_0x2e20b3: 0x27c,
|
|
1695
|
-
_0x21daa3: 0x2ff
|
|
1696
|
-
}, _0x54a8d4 = {
|
|
1697
|
-
_0x1c3bc4: 0x296,
|
|
1698
|
-
_0x431854: 0x25f
|
|
1699
|
-
}, _0x588eb0 = { _0x42dc5c: 0x27c }, _0x2cce43 = { _0x47de83: 0x313 }, _0x247de4 = {
|
|
1700
|
-
_0x393762: 0x27c,
|
|
1701
|
-
_0x673b2f: 0x355
|
|
1702
|
-
}, _0x4866c5 = {
|
|
1703
|
-
_0x522d32: 0x27c,
|
|
1704
|
-
_0x674126: 0x2d9
|
|
1705
|
-
}, _0x353db1 = {
|
|
1706
|
-
_0x3b23df: 0x2d4,
|
|
1707
|
-
_0x3c17bd: 0x27c
|
|
1708
|
-
}, _0x3441d0 = { _0x3b7fcd: 0x27c }, _0x13d453 = { _0x247a54: 0x27c }, _0x32e08c = { _0x543cde: 0x34f }, _0x9c6e14 = { _0x170143: 0x27c }, _0x5f4255 = {
|
|
1709
|
-
_0x561000: 0x335,
|
|
1710
|
-
_0x4e2f23: 0x27c
|
|
1711
|
-
}, _0x193c2f = { _0x7046b5: 0x27c }, _0x6e3103 = _0x2d2fb4, {z: _0x599697} = await import(_0x6e3103(_0x5ed8e8._0x16deac));
|
|
1712
|
-
_0x56548a[_0x6e3103(_0x5ed8e8._0x5f38be)]('send_message', _0x6e3103(_0x5ed8e8._0xe236a7), {
|
|
1713
|
-
'target': _0x599697[_0x6e3103(0x2a5)](),
|
|
1714
|
-
'content': _0x599697['string'](),
|
|
1715
|
-
'attachment_ids': _0x599697[_0x6e3103(_0x5ed8e8._0x10ffe7)](_0x599697[_0x6e3103(_0x5ed8e8._0x9a5619)]())[_0x6e3103(_0x5ed8e8._0x659e57)](),
|
|
1716
|
-
'visibility': _0x599697[_0x6e3103(0x294)]([
|
|
1717
|
-
_0x6e3103(_0x5ed8e8._0x27dbd1),
|
|
1718
|
-
_0x6e3103(0x30c)
|
|
1719
|
-
])['optional']()[_0x6e3103(0x351)](_0x6e3103(_0x5ed8e8._0x2b7848))
|
|
1720
|
-
}, async _0x2e8275 => {
|
|
1721
|
-
const _0x3e8177 = _0x6e3103;
|
|
1722
|
-
try {
|
|
1723
|
-
return textResult(await _0xd84252['send_message'](_0x2e8275));
|
|
1724
|
-
} catch (_0xd4b6bb) {
|
|
1725
|
-
return textResult(_0xd4b6bb instanceof Error ? _0xd4b6bb[_0x3e8177(_0x193c2f._0x7046b5)] : 'send_message\x20failed', !![]);
|
|
1726
|
-
}
|
|
1727
|
-
}), _0x56548a[_0x6e3103(0x344)](_0x6e3103(0x335), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
1728
|
-
const _0x210b18 = _0x6e3103;
|
|
1729
|
-
try {
|
|
1730
|
-
return textResult(await _0xd84252[_0x210b18(_0x5f4255._0x561000)]());
|
|
1731
|
-
} catch (_0x35faf7) {
|
|
1732
|
-
return textResult(_0x35faf7 instanceof Error ? _0x35faf7[_0x210b18(_0x5f4255._0x4e2f23)] : 'check_messages\x20failed', !![]);
|
|
1733
|
-
}
|
|
1734
|
-
}), _0x56548a['tool'](_0x6e3103(0x338), _0x6e3103(0x246), {
|
|
1735
|
-
'channel': _0x599697[_0x6e3103(0x2a5)](),
|
|
1736
|
-
'limit': _0x599697['number']()['optional'](),
|
|
1737
|
-
'before': _0x599697[_0x6e3103(_0x5ed8e8._0x2e2257)]()[_0x6e3103(0x31b)](),
|
|
1738
|
-
'after': _0x599697[_0x6e3103(_0x5ed8e8._0x2e2257)]()[_0x6e3103(_0x5ed8e8._0x659e57)]()
|
|
1739
|
-
}, async _0x1433f7 => {
|
|
1740
|
-
const _0x5b7098 = _0x6e3103;
|
|
1741
|
-
try {
|
|
1742
|
-
return textResult(await _0xd84252['read_history'](_0x1433f7));
|
|
1743
|
-
} catch (_0x1f002e) {
|
|
1744
|
-
return textResult(_0x1f002e instanceof Error ? _0x1f002e[_0x5b7098(_0x9c6e14._0x170143)] : _0x5b7098(0x324), !![]);
|
|
1745
|
-
}
|
|
1746
|
-
}), _0x56548a[_0x6e3103(0x344)](_0x6e3103(0x1f1), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
1747
|
-
const _0x45a077 = _0x6e3103;
|
|
1748
|
-
try {
|
|
1749
|
-
return textResult(await _0xd84252[_0x45a077(0x1f1)]());
|
|
1750
|
-
} catch (_0x5c2768) {
|
|
1751
|
-
return textResult(_0x5c2768 instanceof Error ? _0x5c2768[_0x45a077(0x27c)] : _0x45a077(_0x32e08c._0x543cde), !![]);
|
|
1752
|
-
}
|
|
1753
|
-
}), _0x56548a[_0x6e3103(_0x5ed8e8._0x3ee669)](_0x6e3103(0x29f), 'List\x20tasks\x20in\x20a\x20channel.', {
|
|
1754
|
-
'channel': _0x599697[_0x6e3103(0x2a5)](),
|
|
1755
|
-
'status': _0x599697[_0x6e3103(_0x5ed8e8._0x49f360)]([
|
|
1756
|
-
_0x6e3103(0x33e),
|
|
1757
|
-
_0x6e3103(0x329),
|
|
1758
|
-
_0x6e3103(_0x5ed8e8._0x3c4ee3),
|
|
1759
|
-
_0x6e3103(0x226)
|
|
1760
|
-
])['optional']()
|
|
1761
|
-
}, async _0x15c90b => {
|
|
1762
|
-
const _0x2b9013 = _0x6e3103;
|
|
1763
|
-
try {
|
|
1764
|
-
return textResult(await _0xd84252['list_tasks'](_0x15c90b));
|
|
1765
|
-
} catch (_0x6ba203) {
|
|
1766
|
-
return textResult(_0x6ba203 instanceof Error ? _0x6ba203[_0x2b9013(_0x13d453._0x247a54)] : 'list_tasks\x20failed', !![]);
|
|
1767
|
-
}
|
|
1768
|
-
}), _0x56548a[_0x6e3103(0x344)]('create_tasks', _0x6e3103(_0x5ed8e8._0x5a0855), {
|
|
1769
|
-
'channel': _0x599697[_0x6e3103(0x2a5)](),
|
|
1770
|
-
'idempotency_key': _0x599697['string']()[_0x6e3103(_0x5ed8e8._0x152891)](),
|
|
1771
|
-
'tasks': _0x599697[_0x6e3103(_0x5ed8e8._0x35f74a)](_0x599697[_0x6e3103(0x35d)]({
|
|
1772
|
-
'title': _0x599697[_0x6e3103(_0x5ed8e8._0x2db59b)](),
|
|
1773
|
-
'description': _0x599697[_0x6e3103(_0x5ed8e8._0x2db59b)]()['optional'](),
|
|
1774
|
-
'priority': _0x599697[_0x6e3103(0x294)]([
|
|
1775
|
-
_0x6e3103(0x223),
|
|
1776
|
-
'medium',
|
|
1777
|
-
_0x6e3103(_0x5ed8e8._0x2aacd1),
|
|
1778
|
-
'urgent'
|
|
1779
|
-
])[_0x6e3103(_0x5ed8e8._0xa127c8)]()
|
|
1780
|
-
}))
|
|
1781
|
-
}, async _0x3454f2 => {
|
|
1782
|
-
const _0x270be2 = _0x6e3103;
|
|
1783
|
-
try {
|
|
1784
|
-
return textResult(await _0xd84252['create_tasks'](_0x3454f2));
|
|
1785
|
-
} catch (_0x2c63a5) {
|
|
1786
|
-
return textResult(_0x2c63a5 instanceof Error ? _0x2c63a5[_0x270be2(_0x3441d0._0x3b7fcd)] : _0x270be2(0x251), !![]);
|
|
1787
|
-
}
|
|
1788
|
-
}), _0x56548a[_0x6e3103(_0x5ed8e8._0x31a411)](_0x6e3103(0x2d4), _0x6e3103(0x343), {
|
|
1789
|
-
'channel': _0x599697[_0x6e3103(0x2a5)](),
|
|
1790
|
-
'task_numbers': _0x599697[_0x6e3103(_0x5ed8e8._0x10ffe7)](_0x599697[_0x6e3103(0x28b)]())[_0x6e3103(0x31b)](),
|
|
1791
|
-
'message_ids': _0x599697[_0x6e3103(_0x5ed8e8._0x35f74a)](_0x599697[_0x6e3103(0x2a5)]())[_0x6e3103(0x31b)](),
|
|
1792
|
-
'evidence': _0x599697[_0x6e3103(0x257)](_0x599697[_0x6e3103(0x2a5)](), _0x599697[_0x6e3103(0x35d)]({
|
|
1793
|
-
'create_thread': _0x599697[_0x6e3103(0x322)]()[_0x6e3103(0x31b)](),
|
|
1794
|
-
'create_task': _0x599697[_0x6e3103(0x322)]()[_0x6e3103(0x31b)]()
|
|
1795
|
-
}))[_0x6e3103(0x31b)](),
|
|
1796
|
-
'idempotency_key': _0x599697['string']()[_0x6e3103(0x31b)]()
|
|
1797
|
-
}, async _0x15d98f => {
|
|
1798
|
-
const _0x4f850e = _0x6e3103;
|
|
1799
|
-
try {
|
|
1800
|
-
return textResult(await _0xd84252[_0x4f850e(_0x353db1._0x3b23df)](_0x15d98f));
|
|
1801
|
-
} catch (_0x391578) {
|
|
1802
|
-
return textResult(_0x391578 instanceof Error ? _0x391578[_0x4f850e(_0x353db1._0x3c17bd)] : 'claim_tasks\x20failed', !![]);
|
|
1803
|
-
}
|
|
1804
|
-
}), _0x56548a[_0x6e3103(0x344)]('unclaim_task', _0x6e3103(_0x5ed8e8._0x6bb968), {
|
|
1805
|
-
'channel': _0x599697['string'](),
|
|
1806
|
-
'task_number': _0x599697['number'](),
|
|
1807
|
-
'idempotency_key': _0x599697['string']()[_0x6e3103(_0x5ed8e8._0x3454d4)]()
|
|
1808
|
-
}, async _0x406eed => {
|
|
1809
|
-
const _0x597dd8 = _0x6e3103;
|
|
1810
|
-
try {
|
|
1811
|
-
return textResult(await _0xd84252['unclaim_task'](_0x406eed));
|
|
1812
|
-
} catch (_0x1583d2) {
|
|
1813
|
-
return textResult(_0x1583d2 instanceof Error ? _0x1583d2[_0x597dd8(_0x4866c5._0x522d32)] : _0x597dd8(_0x4866c5._0x674126), !![]);
|
|
1814
|
-
}
|
|
1815
|
-
}), _0x56548a[_0x6e3103(0x344)](_0x6e3103(_0x5ed8e8._0x5422c6), _0x6e3103(_0x5ed8e8._0x4d7189), {
|
|
1816
|
-
'channel': _0x599697[_0x6e3103(_0x5ed8e8._0x2db59b)](),
|
|
1817
|
-
'task_number': _0x599697['number'](),
|
|
1818
|
-
'status': _0x599697[_0x6e3103(0x294)]([
|
|
1819
|
-
_0x6e3103(_0x5ed8e8._0x2d1c14),
|
|
1820
|
-
_0x6e3103(_0x5ed8e8._0x3e34d7),
|
|
1821
|
-
_0x6e3103(0x1f6),
|
|
1822
|
-
_0x6e3103(0x226)
|
|
1823
|
-
]),
|
|
1824
|
-
'idempotency_key': _0x599697[_0x6e3103(0x2a5)]()[_0x6e3103(0x31b)]()
|
|
1825
|
-
}, async _0x48c154 => {
|
|
1826
|
-
const _0x5cf111 = _0x6e3103;
|
|
1827
|
-
try {
|
|
1828
|
-
return textResult(await _0xd84252[_0x5cf111(0x2dd)](_0x48c154));
|
|
1829
|
-
} catch (_0x396558) {
|
|
1830
|
-
return textResult(_0x396558 instanceof Error ? _0x396558[_0x5cf111(_0x247de4._0x393762)] : _0x5cf111(_0x247de4._0x673b2f), !![]);
|
|
1831
|
-
}
|
|
1832
|
-
}), _0x56548a[_0x6e3103(0x344)](_0x6e3103(_0x5ed8e8._0x7b0228), _0x6e3103(_0x5ed8e8._0x238e57), {
|
|
1833
|
-
'channel': _0x599697[_0x6e3103(0x2a5)](),
|
|
1834
|
-
'file_path': _0x599697[_0x6e3103(0x2a5)]()
|
|
1835
|
-
}, async _0x899c2c => {
|
|
1836
|
-
const _0x83294 = _0x6e3103;
|
|
1837
|
-
try {
|
|
1838
|
-
return textResult(await _0xd84252[_0x83294(_0x2cce43._0x47de83)](_0x899c2c));
|
|
1839
|
-
} catch (_0x17587e) {
|
|
1840
|
-
return textResult(_0x17587e instanceof Error ? _0x17587e['message'] : 'upload_file\x20failed', !![]);
|
|
1841
|
-
}
|
|
1842
|
-
}), _0x56548a[_0x6e3103(0x344)](_0x6e3103(_0x5ed8e8._0x11dc57), _0x6e3103(0x240), { 'attachment_id': _0x599697['string']() }, async _0x6179b6 => {
|
|
1843
|
-
const _0x4e65a8 = _0x6e3103;
|
|
1844
|
-
try {
|
|
1845
|
-
return textResult(await _0xd84252[_0x4e65a8(0x22f)](_0x6179b6));
|
|
1846
|
-
} catch (_0x34cd5e) {
|
|
1847
|
-
return textResult(_0x34cd5e instanceof Error ? _0x34cd5e[_0x4e65a8(_0x588eb0._0x42dc5c)] : 'view_file\x20failed', !![]);
|
|
1848
|
-
}
|
|
1849
|
-
}), _0x56548a[_0x6e3103(_0x5ed8e8._0x5f38be)](_0x6e3103(_0x5ed8e8._0x25d01a), 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x599697['string']() }, async _0x4cea15 => {
|
|
1850
|
-
const _0x2a6c7f = _0x6e3103;
|
|
1851
|
-
try {
|
|
1852
|
-
return textResult(await _0xd84252[_0x2a6c7f(_0x54a8d4._0x1c3bc4)](_0x4cea15));
|
|
1853
|
-
} catch (_0x993e88) {
|
|
1854
|
-
return textResult(_0x993e88 instanceof Error ? _0x993e88[_0x2a6c7f(0x27c)] : _0x2a6c7f(_0x54a8d4._0x431854), !![]);
|
|
1855
|
-
}
|
|
1856
|
-
}), _0x56548a[_0x6e3103(_0x5ed8e8._0x2a6cd8)]('get_worker_result', 'Retrieve\x20the\x20result\x20(resume\x20packet)\x20of\x20a\x20completed\x20worker.', { 'work_key': _0x599697[_0x6e3103(0x2a5)]() }, async _0xff4976 => {
|
|
1857
|
-
const _0xe61b28 = _0x6e3103;
|
|
1858
|
-
try {
|
|
1859
|
-
return textResult(await _0xd84252[_0xe61b28(_0x46136b._0x1f41d5)](_0xff4976));
|
|
1860
|
-
} catch (_0x275266) {
|
|
1861
|
-
return textResult(_0x275266 instanceof Error ? _0x275266[_0xe61b28(_0x46136b._0x2e20b3)] : _0xe61b28(_0x46136b._0x21daa3), !![]);
|
|
1862
|
-
}
|
|
1863
|
-
}), _0x56548a[_0x6e3103(0x344)]('finish_worker', _0x6e3103(_0x5ed8e8._0x85fa43), {
|
|
1864
|
-
'work_key': _0x599697['string'](),
|
|
1865
|
-
'result': _0x599697['enum']([
|
|
1866
|
-
_0x6e3103(0x318),
|
|
1867
|
-
_0x6e3103(_0x5ed8e8._0x298cfa),
|
|
1868
|
-
_0x6e3103(_0x5ed8e8._0x3a4ece)
|
|
1869
|
-
]),
|
|
1870
|
-
'summary': _0x599697[_0x6e3103(_0x5ed8e8._0x2db59b)](),
|
|
1871
|
-
'decisions': _0x599697['array'](_0x599697[_0x6e3103(_0x5ed8e8._0x2db59b)]())[_0x6e3103(_0x5ed8e8._0xb8fb04)](),
|
|
1872
|
-
'files_changed': _0x599697[_0x6e3103(0x353)](_0x599697['string']())[_0x6e3103(0x31b)](),
|
|
1873
|
-
'open_issues': _0x599697['array'](_0x599697['string']())['optional'](),
|
|
1874
|
-
'next_steps': _0x599697[_0x6e3103(_0x5ed8e8._0x369c76)](_0x599697[_0x6e3103(0x2a5)]())[_0x6e3103(0x31b)]()
|
|
1875
|
-
}, async _0x3c47a2 => {
|
|
1876
|
-
const _0x31710c = _0x6e3103;
|
|
1877
|
-
try {
|
|
1878
|
-
return textResult(await _0xd84252[_0x31710c(_0x38f44d._0x427ffb)](_0x3c47a2));
|
|
1879
|
-
} catch (_0x550ee9) {
|
|
1880
|
-
return textResult(_0x550ee9 instanceof Error ? _0x550ee9[_0x31710c(0x27c)] : _0x31710c(0x2a4), !![]);
|
|
1881
|
-
}
|
|
1882
|
-
}), _0x56548a[_0x6e3103(_0x5ed8e8._0x2a6cd8)]('escalate_to_main', _0x6e3103(_0x5ed8e8._0x672f6d), {
|
|
1883
|
-
'work_key': _0x599697['string'](),
|
|
1884
|
-
'reason': _0x599697[_0x6e3103(_0x5ed8e8._0x9a5619)]()
|
|
1885
|
-
}, async _0x53186d => {
|
|
1886
|
-
try {
|
|
1887
|
-
return textResult(await _0xd84252['escalate_to_main'](_0x53186d));
|
|
1888
|
-
} catch (_0x59d70c) {
|
|
1889
|
-
return textResult(_0x59d70c instanceof Error ? _0x59d70c['message'] : 'escalate_to_main\x20failed', !![]);
|
|
1890
|
-
}
|
|
1891
|
-
}), _0x50b88d?.[_0x6e3103(_0x5ed8e8._0x1c9c21)] && _0x56548a[_0x6e3103(0x344)]('mark_waiting_input', 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x599697[_0x6e3103(0x2a5)]() }, async _0x4fb6a4 => {
|
|
1892
|
-
const _0x222a08 = _0x6e3103;
|
|
1893
|
-
try {
|
|
1894
|
-
return textResult(await _0xd84252['mark_waiting_input'](_0x4fb6a4));
|
|
1895
|
-
} catch (_0x16b660) {
|
|
1896
|
-
return textResult(_0x16b660 instanceof Error ? _0x16b660[_0x222a08(0x27c)] : _0x222a08(_0x32fdf7._0xfc0bcf), !![]);
|
|
1897
|
-
}
|
|
1898
|
-
});
|
|
1899
|
-
}
|
|
1900
|
-
async function createChatBridgeServer(_0x2db3cb) {
|
|
1901
|
-
const _0x48dbdf = {
|
|
1902
|
-
_0x54859e: 0x25c,
|
|
1903
|
-
_0x3cd62f: 0x36e,
|
|
1904
|
-
_0x454526: 0x31e
|
|
1905
|
-
}, _0x1ad481 = _0x2d2fb4, {McpServer: _0x29365c} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0xa5e12a = new _0x29365c({
|
|
1906
|
-
'name': _0x1ad481(_0x48dbdf._0x54859e),
|
|
1907
|
-
'version': _0x1ad481(_0x48dbdf._0x3cd62f)
|
|
1908
|
-
}), _0x566955 = createChatBridgeHandlers(_0x2db3cb);
|
|
1909
|
-
return await registerChatBridgeTools(_0xa5e12a, _0x566955, { 'workerMode': _0x2db3cb[_0x1ad481(_0x48dbdf._0x454526)] }), {
|
|
1910
|
-
'handlers': _0x566955,
|
|
1911
|
-
'server': _0xa5e12a
|
|
1912
|
-
};
|
|
1913
|
-
}
|
|
1914
|
-
function readFlag(_0x2c405a, _0x88ed04) {
|
|
1915
|
-
const _0xde2b03 = _0x2d2fb4, _0x1e8515 = _0x2c405a[_0xde2b03(0x35b)](_0x88ed04);
|
|
1916
|
-
if (_0x1e8515 === -0x1)
|
|
1917
|
-
return void 0x0;
|
|
1918
|
-
return _0x2c405a[_0x1e8515 + 0x1];
|
|
1919
|
-
}
|
|
1920
|
-
function parseChatBridgeArgs(_0x33eaf7) {
|
|
1921
|
-
const _0x2a8891 = {
|
|
1922
|
-
_0x3653ae: 0x331,
|
|
1923
|
-
_0x2d9be8: 0x2b8,
|
|
1924
|
-
_0xf8c326: 0x21d,
|
|
1925
|
-
_0x49c3ac: 0x306,
|
|
1926
|
-
_0x48f8a3: 0x256,
|
|
1927
|
-
_0x3461c5: 0x215
|
|
1928
|
-
}, _0x5460df = _0x2d2fb4, _0x4127c2 = readFlag(_0x33eaf7, '--agent-id'), _0x1b624a = readFlag(_0x33eaf7, '--daemon-api-key'), _0x44aa15 = readFlag(_0x33eaf7, _0x5460df(0x305)), _0x32d3d2 = readFlag(_0x33eaf7, _0x5460df(_0x2a8891._0x3653ae)) ?? _0x5460df(_0x2a8891._0x2d9be8), _0x2f5079 = readFlag(_0x33eaf7, _0x5460df(0x2b0)), _0x23035e = readFlag(_0x33eaf7, _0x5460df(0x282)), _0x532b8a = readFlag(_0x33eaf7, _0x5460df(_0x2a8891._0xf8c326)), _0x3b48e6 = readFlag(_0x33eaf7, _0x5460df(_0x2a8891._0x49c3ac)), _0x446729 = readFlag(_0x33eaf7, _0x5460df(0x2ac)), _0x36d637 = _0x33eaf7[_0x5460df(0x2ad)](_0x5460df(_0x2a8891._0x48f8a3)), _0x15dfff = _0x44aa15 === void 0x0 ? void 0x0 : Number[_0x5460df(_0x2a8891._0x3461c5)](_0x44aa15, 0xa);
|
|
1929
|
-
if (!_0x4127c2)
|
|
1930
|
-
throw new Error(_0x5460df(0x238));
|
|
1931
|
-
if (!_0x1b624a)
|
|
1932
|
-
throw new Error(_0x5460df(0x2d7));
|
|
1933
|
-
if (_0x44aa15 !== void 0x0 && (_0x15dfff === void 0x0 || !Number[_0x5460df(0x2fb)](_0x15dfff) || _0x15dfff < 0x0))
|
|
1934
|
-
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
1935
|
-
return {
|
|
1936
|
-
'agentId': _0x4127c2,
|
|
1937
|
-
'daemonApiKey': _0x1b624a,
|
|
1938
|
-
'daemonLocalUrl': _0x2f5079,
|
|
1939
|
-
'initialLastSeenSeq': _0x15dfff,
|
|
1940
|
-
'sessionId': _0x23035e,
|
|
1941
|
-
'serverUrl': _0x32d3d2,
|
|
1942
|
-
'workerModeEnabled': _0x532b8a === void 0x0 ? void 0x0 : _0x532b8a !== 'false',
|
|
1943
|
-
'workerSessionId': _0x3b48e6,
|
|
1944
|
-
'workerThreadTarget': _0x446729,
|
|
1945
|
-
'workerMode': _0x36d637
|
|
1946
|
-
};
|
|
1947
|
-
}
|
|
1948
|
-
async function runChatBridgeCli(_0x10b45b) {
|
|
1949
|
-
const _0x389283 = { _0x510f71: 0x231 }, _0x3de10b = _0x2d2fb4, _0x1bad23 = parseChatBridgeArgs(_0x10b45b), {StdioServerTransport: _0x2518dd} = await import(_0x3de10b(0x2db)), _0x2aa1c3 = createInternalAgentClient(_0x1bad23), _0x3a4255 = createAttachmentCache(), _0x4ca07f = await createChatBridgeServer({
|
|
1950
|
-
'agentId': _0x1bad23[_0x3de10b(0x250)],
|
|
1951
|
-
'attachmentCache': _0x3a4255,
|
|
1952
|
-
'client': _0x2aa1c3,
|
|
1953
|
-
'daemonLocalUrl': _0x1bad23[_0x3de10b(_0x389283._0x510f71)],
|
|
1954
|
-
'uploadPreparer': prepareUploadFile,
|
|
1955
|
-
'workerModeEnabled': _0x1bad23[_0x3de10b(0x267)],
|
|
1956
|
-
'workerMode': _0x1bad23['workerMode']
|
|
1957
|
-
});
|
|
1958
|
-
await _0x4ca07f[_0x3de10b(0x2f4)][_0x3de10b(0x2ef)](new _0x2518dd());
|
|
1959
|
-
}
|
|
1960
|
-
var executedAsEntry = process[_0x2d2fb4(0x237)][0x1] ? import.meta.url === pathToFileURL(process[_0x2d2fb4(0x237)][0x1])[_0x2d2fb4(0x22d)] : ![];
|
|
1961
|
-
executedAsEntry && await runChatBridgeCli(process[_0x2d2fb4(0x237)][_0x2d2fb4(0x33f)](0x2));
|
|
1962
|
-
function _0x11ab() {
|
|
1963
|
-
const _0x12e639 = [
|
|
1964
|
-
'DgfZAY0',
|
|
1965
|
-
'l3nLBMq',
|
|
1966
|
-
'v29YA2vYia',
|
|
1967
|
-
'BMfTzq',
|
|
1968
|
-
'ihn0yxr1CZ0',
|
|
1969
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
1970
|
-
'AgfZ',
|
|
1971
|
-
'D29YA2vYsgfUzg9MzG',
|
|
1972
|
-
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
1973
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
1974
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
1975
|
-
'y29UBMvJDa',
|
|
1976
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1977
|
-
'cGOTls0G',
|
|
1978
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1979
|
-
'y29UDgvUDejHC2u2na',
|
|
1980
|
-
'C2vYDMvY',
|
|
1981
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
229
|
+
function _0x275c() {
|
|
230
|
+
const _0x33316c = [
|
|
231
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1982
232
|
'ihr5Cgu9ywDLBNq',
|
|
233
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
234
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
235
|
+
'zMfPBgvK',
|
|
236
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
237
|
+
'mc4WlJa',
|
|
238
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
239
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
240
|
+
'y2HHDa',
|
|
241
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
242
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
243
|
+
'y29UDgvUDc10ExbL',
|
|
244
|
+
'Dw5JBgfPBvrHC2S',
|
|
245
|
+
'nJaZnJy0nKLmA1HswG',
|
|
246
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
247
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
248
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
249
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
250
|
+
'y3vYC29Y',
|
|
251
|
+
'iYmJiefNzw50CW',
|
|
252
|
+
'C2vUzgvYvhLWzq',
|
|
253
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
254
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
255
|
+
'zg9Uzq',
|
|
256
|
+
'Bwv0yq',
|
|
257
|
+
'ls1Hz2vUDc1Pza',
|
|
258
|
+
'ig1LC3nHz2u9',
|
|
259
|
+
'z2v0twLUDxrLCW',
|
|
260
|
+
'B3bLBL9PC3n1zxm',
|
|
261
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
262
|
+
'kgXLz2fJEsK',
|
|
263
|
+
'ChvZAa',
|
|
264
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
265
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
266
|
+
'C29YDa',
|
|
267
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
268
|
+
'oty4uMresg5H',
|
|
269
|
+
'C2L6zuj5DgvZ',
|
|
270
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
271
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
272
|
+
'CM9VDe1LC3nHz2vjza',
|
|
273
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
274
|
+
'l3rHC2TZpW',
|
|
275
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
276
|
+
'CMvHzf9OAxn0B3j5',
|
|
277
|
+
'AM9PBG',
|
|
278
|
+
'DgHYzwfKu2HVCNrjza',
|
|
279
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
280
|
+
'Dg9ju09tDhjPBMC',
|
|
281
|
+
'CxvLDwvK',
|
|
282
|
+
'zw50CMLLCW',
|
|
283
|
+
'igTPBMq9',
|
|
284
|
+
'Dg9VBa',
|
|
1983
285
|
'z2v0vgLTzq',
|
|
1984
|
-
'
|
|
1985
|
-
'
|
|
1986
|
-
'
|
|
1987
|
-
'
|
|
1988
|
-
'
|
|
1989
|
-
'
|
|
1990
|
-
'
|
|
1991
|
-
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
1992
|
-
'Agv4',
|
|
1993
|
-
'khvUA25VD24P',
|
|
1994
|
-
'DhjPBq',
|
|
286
|
+
'z2v0sg91CNm',
|
|
287
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
288
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
289
|
+
'AxnjBNrLz2vY',
|
|
290
|
+
'vgfZAYa',
|
|
291
|
+
'Ahr0CdO',
|
|
292
|
+
'C3rHCNrZv2L0Aa',
|
|
1995
293
|
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1996
|
-
'
|
|
1997
|
-
'
|
|
1998
|
-
'
|
|
1999
|
-
'
|
|
2000
|
-
'
|
|
2001
|
-
'
|
|
2002
|
-
'
|
|
2003
|
-
'
|
|
2004
|
-
'
|
|
2005
|
-
'
|
|
2006
|
-
'
|
|
294
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
295
|
+
'DgL0Bgu',
|
|
296
|
+
'AwrSzq',
|
|
297
|
+
'C2XPy2u',
|
|
298
|
+
'CgfKu3rHCNq',
|
|
299
|
+
'C2vUze1LC3nHz2u',
|
|
300
|
+
'odm2ntG2nu5IwKrruq',
|
|
301
|
+
'C2vYDMvYvxjS',
|
|
302
|
+
'l3vWBg9Hza',
|
|
303
|
+
'lsba',
|
|
304
|
+
'zgLZCg9ZAxrPB24',
|
|
305
|
+
'ywjVCNq',
|
|
2007
306
|
'ihrPBwu9',
|
|
2008
|
-
'
|
|
2009
|
-
'
|
|
2010
|
-
'
|
|
2011
|
-
'
|
|
2012
|
-
'
|
|
2013
|
-
'
|
|
307
|
+
'AxngAw5PDgu',
|
|
308
|
+
'D2fPDgLUz19PBNb1Da',
|
|
309
|
+
'y2HHBM5LBe5HBwu',
|
|
310
|
+
'cGOTls0G',
|
|
311
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
312
|
+
'AhjLzG',
|
|
313
|
+
'DgHYzwfKswq',
|
|
314
|
+
'A2LUza',
|
|
315
|
+
'lMjPBG',
|
|
316
|
+
'y2fJAgveAxi',
|
|
317
|
+
'ywDNCMvNyxrLswrZ',
|
|
318
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
319
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
320
|
+
'C3rYAw5N',
|
|
321
|
+
'zMLUza',
|
|
322
|
+
'l3rHC2TZl2nSywLT',
|
|
2014
323
|
'iYmJienOyw5UzwXZ',
|
|
2015
|
-
'
|
|
2016
|
-
'
|
|
324
|
+
'ls1Zzxj2zxiTDxjS',
|
|
325
|
+
'zMLSzw5HBwu',
|
|
326
|
+
'BgLZDfnLCNzLCG',
|
|
2017
327
|
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
2018
|
-
'
|
|
2019
|
-
'
|
|
2020
|
-
'
|
|
2021
|
-
'
|
|
2022
|
-
'
|
|
2023
|
-
'
|
|
2024
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
2025
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
2026
|
-
'Dw5RBM93BG',
|
|
2027
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
2028
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
2029
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
2030
|
-
'zNjVBq',
|
|
2031
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
2032
|
-
'y29UDgvUDfr5Cgu',
|
|
2033
|
-
'Aw5FChjVz3jLC3m',
|
|
2034
|
-
'mML0qxrbsG',
|
|
2035
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
2036
|
-
'CMvZDwX0sNnVBG',
|
|
2037
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
328
|
+
'DgfZAY0',
|
|
329
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
330
|
+
'y3jLyxrLvgfZA3m',
|
|
331
|
+
'BNvTyMvY',
|
|
332
|
+
'v29YA2vYici',
|
|
333
|
+
'mtjdzvrXyw0',
|
|
2038
334
|
'y2XPzw50',
|
|
2039
|
-
'
|
|
2040
|
-
'
|
|
2041
|
-
'
|
|
2042
|
-
'
|
|
2043
|
-
'
|
|
335
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
336
|
+
'mNbnCvjHtW',
|
|
337
|
+
'Aw5FChjVz3jLC3m',
|
|
338
|
+
'icHPzdO',
|
|
339
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
340
|
+
'BMv4Den1CNnVCG',
|
|
341
|
+
'l3n0yxj0',
|
|
342
|
+
'zgvZy3jPChrPB24',
|
|
2044
343
|
'DgfZA0LK',
|
|
2045
|
-
'
|
|
2046
|
-
'
|
|
2047
|
-
'
|
|
2048
|
-
'
|
|
2049
|
-
'
|
|
2050
|
-
'
|
|
2051
|
-
'
|
|
344
|
+
'iYmGu2vYDMvYoIa',
|
|
345
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
346
|
+
'BwvZC2fNzxm',
|
|
347
|
+
'y29UBMvJDa',
|
|
348
|
+
'Dgv4Dc9JC3y',
|
|
349
|
+
'kg5VBMuP',
|
|
350
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
351
|
+
'y3jLyxrLx3rHC2TZ',
|
|
352
|
+
'DMLLD19MAwXL',
|
|
353
|
+
'l2HPC3rVCNK/',
|
|
354
|
+
'C2L6zq',
|
|
355
|
+
'ig1LC3nHz2vZkqOk',
|
|
356
|
+
'CNvUswq',
|
|
357
|
+
'CMvHzeHPC3rVCNK',
|
|
358
|
+
'Aw5FCMv2Awv3',
|
|
359
|
+
'AgfZtw9Yzq',
|
|
360
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
361
|
+
'DgHYzwfK',
|
|
362
|
+
'CNvUBMLUzW',
|
|
363
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
364
|
+
'yxjYyxK',
|
|
365
|
+
'CgfYDgLJAxbHBNq',
|
|
366
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
367
|
+
'Agv4',
|
|
368
|
+
'Aw1Hz2uVANbLzW',
|
|
369
|
+
'zg06',
|
|
370
|
+
'DgfYz2v0zwruyxnR',
|
|
371
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
2052
372
|
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
2053
|
-
'
|
|
2054
|
-
'
|
|
2055
|
-
'
|
|
2056
|
-
'
|
|
2057
|
-
'BgLTAxq',
|
|
2058
|
-
'AxngAwXL',
|
|
373
|
+
'yM9KEu1HCMTKB3DU',
|
|
374
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
375
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
376
|
+
'C2nOzwr1BgvKrM9Y',
|
|
2059
377
|
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
2060
|
-
'
|
|
378
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
379
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
380
|
+
'khvUA25VD24P',
|
|
381
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
382
|
+
'ignSywLTzwq',
|
|
383
|
+
'xsba',
|
|
384
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
385
|
+
'DgfZA19Pza',
|
|
386
|
+
'w3nLCt0',
|
|
387
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
2061
388
|
'zxH0BMfTzq',
|
|
2062
|
-
'
|
|
2063
|
-
'
|
|
2064
|
-
'
|
|
2065
|
-
'
|
|
389
|
+
'igLUia',
|
|
390
|
+
'C3vJy2vZCW',
|
|
391
|
+
'D3m6',
|
|
392
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
393
|
+
'BwvTyMvYCW',
|
|
394
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
395
|
+
'DgvZDa',
|
|
396
|
+
'iIbUB3qGzM91BMq',
|
|
397
|
+
'CMvZDwX0sNnVBG',
|
|
398
|
+
'CMvZCg9UC2u',
|
|
399
|
+
'DgHYzwfKtNvTyMvY',
|
|
400
|
+
'r0vu',
|
|
401
|
+
'mtjuyK5SEgq',
|
|
402
|
+
'C2vUzgvYtMfTzq',
|
|
403
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
404
|
+
'Aw5JBhvKzxm',
|
|
405
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
406
|
+
'yM9KEvrLEhq',
|
|
407
|
+
'D29YA2vY',
|
|
408
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
409
|
+
'BwfW',
|
|
410
|
+
'Dg9KBW',
|
|
411
|
+
'C2vZC2LVBKLK',
|
|
412
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
2066
413
|
'Cgf5Bg9HzePZB24',
|
|
2067
|
-
'
|
|
2068
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
2069
|
-
'y2HHBM5LBhm',
|
|
2070
|
-
'yMfZzw5HBwu',
|
|
2071
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
2072
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
2073
|
-
'zgvZy3jPyMu',
|
|
2074
|
-
'y2f0y2G',
|
|
2075
|
-
'yxjYyxK',
|
|
2076
|
-
'C3rHCNrLza',
|
|
2077
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
2078
|
-
'D29YA19RzxK',
|
|
2079
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
2080
|
-
'zxzLBNrtzxe',
|
|
2081
|
-
'mJmYnJmWmefJtuTtvq',
|
|
2082
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
2083
|
-
'Aw5KzxHpzG',
|
|
2084
|
-
'BwvZC2fNzuLK',
|
|
414
|
+
'CMvZDwX0CW',
|
|
2085
415
|
'B2jQzwn0',
|
|
2086
|
-
'
|
|
2087
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
2088
|
-
'yMXVy2TLza',
|
|
2089
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
2090
|
-
'yM9KEvrLEhq',
|
|
2091
|
-
'DgfZAW',
|
|
2092
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
2093
|
-
'y2HHBM5LBa',
|
|
2094
|
-
'ig1LC3nHz2u9',
|
|
2095
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
2096
|
-
'ouLTC2X0EG',
|
|
2097
|
-
'zgf0yq',
|
|
2098
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
2099
|
-
'zMLSzv9WyxrO',
|
|
2100
|
-
'iJOGC3rHDhvZpq',
|
|
2101
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
2102
|
-
'mc4WlJa',
|
|
2103
|
-
'DgHYzwfK',
|
|
2104
|
-
'igTPBMq9',
|
|
2105
|
-
'ywz0zxi',
|
|
2106
|
-
'ywDLBNrZ',
|
|
416
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
2107
417
|
'zxHWAxjLC0f0',
|
|
418
|
+
'y3jLyxrLzef0',
|
|
419
|
+
'zgvSzxrL',
|
|
420
|
+
'Dg9tDhjPBMC',
|
|
421
|
+
'DMLZAwjPBgL0Eq',
|
|
422
|
+
'mtuXmZyZnZbKrKjHrvC',
|
|
423
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
424
|
+
'zM9Yy2vszwzYzxnO',
|
|
425
|
+
'C2vX',
|
|
426
|
+
'BgLTAxq',
|
|
427
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
428
|
+
'yxr0ywnOBwvUDeLK',
|
|
2108
429
|
'CMvXDwvZDfvYBa',
|
|
2109
|
-
'
|
|
2110
|
-
'
|
|
2111
|
-
'
|
|
2112
|
-
'
|
|
2113
|
-
'
|
|
430
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
431
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
432
|
+
'iYmJieH1BwfUCW',
|
|
433
|
+
'igzHAwXLzdOG',
|
|
434
|
+
'BgLZDf90yxnRCW',
|
|
2114
435
|
'BgLZDf9Zzxj2zxi',
|
|
2115
|
-
'
|
|
2116
|
-
'
|
|
2117
|
-
'
|
|
2118
|
-
'
|
|
2119
|
-
'
|
|
2120
|
-
'
|
|
2121
|
-
'
|
|
2122
|
-
'
|
|
2123
|
-
'
|
|
2124
|
-
'
|
|
2125
|
-
'
|
|
2126
|
-
'
|
|
436
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
437
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
438
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
439
|
+
'BwvKAxvT',
|
|
440
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
441
|
+
'zNjVBq',
|
|
442
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
443
|
+
'zxzLBNrtzxe',
|
|
444
|
+
'C3rVCe1HAw4',
|
|
445
|
+
'CMvJB3jK',
|
|
446
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
447
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
448
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
449
|
+
'y2HHBM5LBa',
|
|
450
|
+
'Aw1Hz2uVz2LM',
|
|
2127
451
|
'C3rHDhvZ',
|
|
2128
|
-
'
|
|
2129
|
-
'
|
|
2130
|
-
'
|
|
2131
|
-
'
|
|
2132
|
-
'
|
|
2133
|
-
'AgfZtw9Yzq',
|
|
2134
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
2135
|
-
'v29YA2vYici',
|
|
2136
|
-
'ywDLBNq',
|
|
2137
|
-
'sfruuca',
|
|
2138
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
2139
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
2140
|
-
'DgHYzwfKvgfYz2v0',
|
|
2141
|
-
'l2nVBNrLBNq',
|
|
2142
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
2143
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
2144
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
2145
|
-
'xsba',
|
|
2146
|
-
'Bwf0y2Hoyw1L',
|
|
2147
|
-
'lcbWCMv2Awv3pq',
|
|
2148
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
2149
|
-
'C2vX',
|
|
2150
|
-
'CgfYC2vjBNq',
|
|
2151
|
-
'Dgv4Dc9JC3y',
|
|
452
|
+
'C2HHmJu2',
|
|
453
|
+
'BwvZC2fNzq',
|
|
454
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
455
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
456
|
+
'ChvIBgLJ',
|
|
2152
457
|
'D29YA2vYCW',
|
|
2153
|
-
'
|
|
2154
|
-
'
|
|
458
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
459
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
2155
460
|
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
2156
|
-
'
|
|
2157
|
-
'
|
|
2158
|
-
'
|
|
2159
|
-
'
|
|
2160
|
-
'
|
|
2161
|
-
'
|
|
2162
|
-
'
|
|
2163
|
-
'
|
|
2164
|
-
'Bg93',
|
|
2165
|
-
'Bwf4',
|
|
2166
|
-
'z2v0rgf0zq',
|
|
2167
|
-
'zg9Uzq',
|
|
2168
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
2169
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
2170
|
-
'l3rHC2TZl2nSywLT',
|
|
2171
|
-
'DMLZAwjPBgL0Eq',
|
|
2172
|
-
'igLUia',
|
|
2173
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
2174
|
-
'AhjLzG',
|
|
2175
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
2176
|
-
'DMLLD19MAwXL',
|
|
2177
|
-
'igf0DgfJAg1LBNq',
|
|
2178
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
2179
|
-
'ChjVDg9JB2W',
|
|
2180
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
2181
|
-
'CMvHzeHPC3rVCNK',
|
|
2182
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
2183
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
461
|
+
'y2HHBM5LBhm',
|
|
462
|
+
'zgvZDhjVEwvK',
|
|
463
|
+
'Ahr0Chm6',
|
|
464
|
+
'zg0T',
|
|
465
|
+
'DhLWzq',
|
|
466
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
467
|
+
'DxbKyxrL',
|
|
468
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
2184
469
|
'yxjNDG',
|
|
2185
|
-
'
|
|
470
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
471
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
472
|
+
'yMvMB3jL',
|
|
473
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
474
|
+
'BwvZC2fNzuLK',
|
|
475
|
+
'AhvTyw5Z',
|
|
476
|
+
'ywz0zxi',
|
|
477
|
+
'BM93',
|
|
478
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
479
|
+
'ue9tva',
|
|
480
|
+
'DgfYz2v0',
|
|
481
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
482
|
+
'zgf0yq',
|
|
483
|
+
'z2v0u2vJB25KCW',
|
|
484
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
2186
485
|
'y29UDgvUDa',
|
|
2187
|
-
'CgfKu3rHCNq',
|
|
2188
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
2189
|
-
'6k+35Rgcia',
|
|
2190
|
-
'zMv0y2HjBxbS',
|
|
2191
|
-
'zM9Yy2vszwzYzxnO',
|
|
2192
|
-
'y2XHAw1uyxnRCW',
|
|
2193
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
2194
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
2195
|
-
'zg06',
|
|
2196
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
2197
|
-
'C2vUze1LC3nHz2u',
|
|
2198
|
-
'yxr0ywnOBwvUDeLK',
|
|
2199
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
2200
|
-
'otyWnJu3BNPTBLPx',
|
|
2201
|
-
'ywDNCMvNyxrLswq',
|
|
2202
486
|
'C2v0',
|
|
2203
|
-
'
|
|
2204
|
-
'
|
|
2205
|
-
'
|
|
2206
|
-
'
|
|
2207
|
-
'mJmYnJa1nNPquMrMrW',
|
|
2208
|
-
'w3rHCMDLDd0',
|
|
2209
|
-
'ywDLBNrjza',
|
|
2210
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
2211
|
-
'C3rVCe1HAw4',
|
|
2212
|
-
'CNvUswq',
|
|
2213
|
-
'Dgv4Dc9WBgfPBG',
|
|
2214
|
-
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
2215
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
2216
|
-
'CMvJB3jK',
|
|
2217
|
-
'CMvWBgfJzq',
|
|
2218
|
-
'l3rHC2TZpW',
|
|
2219
|
-
'Axnoyu4',
|
|
487
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
488
|
+
'Dw5JBgfPBv90yxnR',
|
|
489
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
490
|
+
'Dg9mB3DLCKnHC2u',
|
|
2220
491
|
'lsaJ',
|
|
2221
|
-
'
|
|
2222
|
-
'
|
|
2223
|
-
'
|
|
2224
|
-
'
|
|
2225
|
-
'
|
|
2226
|
-
'
|
|
2227
|
-
'
|
|
2228
|
-
'
|
|
2229
|
-
'
|
|
2230
|
-
'
|
|
2231
|
-
'
|
|
2232
|
-
'
|
|
2233
|
-
'
|
|
2234
|
-
'
|
|
2235
|
-
'
|
|
492
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
493
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
494
|
+
'C29Tzq',
|
|
495
|
+
'DhjPBq',
|
|
496
|
+
'y2XHAw1FDgfZA3m',
|
|
497
|
+
'ANnVBG',
|
|
498
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
499
|
+
'y2HHBM5LBeLK',
|
|
500
|
+
'yMfZzty0',
|
|
501
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
502
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
503
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
504
|
+
'y29UDgvUDfr5Cgu',
|
|
505
|
+
'C3rHCNrLza',
|
|
506
|
+
'y2f0y2G',
|
|
507
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
508
|
+
'C3vTBwfYEq',
|
|
509
|
+
'BMfTzq',
|
|
510
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
511
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
512
|
+
'w3rHCMDLDd0',
|
|
513
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
514
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
515
|
+
'D29YA19RzxK',
|
|
516
|
+
'z2v0tw9UDgG',
|
|
517
|
+
'C2LNBMfS',
|
|
518
|
+
'ywrK',
|
|
2236
519
|
'lNnSB2nR',
|
|
2237
|
-
'
|
|
2238
|
-
'
|
|
2239
|
-
'
|
|
2240
|
-
'
|
|
2241
|
-
'
|
|
2242
|
-
'
|
|
2243
|
-
'
|
|
2244
|
-
'C2vUzgvYvhLWzq',
|
|
2245
|
-
'AM9PBG',
|
|
2246
|
-
'y2XHAw0GzMfPBgvK',
|
|
2247
|
-
'y3jLyxrLvgfZA3m',
|
|
2248
|
-
'r0vu',
|
|
2249
|
-
'yxv0BZO',
|
|
2250
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
2251
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
520
|
+
'DgfZA051BwjLCG',
|
|
521
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
522
|
+
'zMLSzv9WyxrO',
|
|
523
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
524
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
525
|
+
'DgfZA3m',
|
|
526
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
2252
527
|
'CgfYDgLJAxbHBNrjza',
|
|
2253
|
-
'
|
|
2254
|
-
'
|
|
2255
|
-
'
|
|
2256
|
-
'
|
|
2257
|
-
'
|
|
2258
|
-
'
|
|
2259
|
-
'
|
|
2260
|
-
'
|
|
2261
|
-
'
|
|
2262
|
-
'
|
|
2263
|
-
'
|
|
2264
|
-
'
|
|
2265
|
-
'
|
|
2266
|
-
'
|
|
2267
|
-
'
|
|
2268
|
-
'
|
|
2269
|
-
'
|
|
528
|
+
'iJOGC3rHDhvZpq',
|
|
529
|
+
'l3nLCNzLCG',
|
|
530
|
+
'ihn0yxr1CZ0',
|
|
531
|
+
'AhvTyw4',
|
|
532
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
533
|
+
'y2XHAw0GzMfPBgvK',
|
|
534
|
+
'vgfZAZOG',
|
|
535
|
+
'DxbSB2fKx2zPBgu',
|
|
536
|
+
'mJuWmZKYnZH1v2PVyLO',
|
|
537
|
+
'BwvTyMvY',
|
|
538
|
+
'Aw1Hz2uVD2vICa',
|
|
539
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
540
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
541
|
+
'C2vYDMvY',
|
|
542
|
+
'yMXVy2TLza',
|
|
543
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
544
|
+
'C2f2zq',
|
|
2270
545
|
'DgHYzwfKx3rHCMDLDa',
|
|
2271
|
-
'
|
|
2272
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
2273
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
2274
|
-
'ywjVCNq',
|
|
2275
|
-
'zw50CMLLCW',
|
|
2276
|
-
'DgHYzwfKswq',
|
|
2277
|
-
'zw51Bq',
|
|
2278
|
-
'z2v0',
|
|
2279
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
2280
|
-
'zMLSzxnFy2HHBMDLza',
|
|
2281
|
-
'ig1LC3nHz2vZkqOk',
|
|
2282
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
2283
|
-
'DgvZDa',
|
|
2284
|
-
'z2v0twLUDxrLCW',
|
|
2285
|
-
'y3jLyxrLzef0',
|
|
2286
|
-
'y2fJAgveAxi',
|
|
2287
|
-
'icHPzdO',
|
|
2288
|
-
'BgLZDf90yxnRCW',
|
|
2289
|
-
'kgXLz2fJEsK',
|
|
2290
|
-
'ywrK',
|
|
2291
|
-
'l3n0yxj0',
|
|
2292
|
-
'ywDNCMvNyxrLswrZ',
|
|
2293
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
2294
|
-
'C3rYAw5N',
|
|
546
|
+
'mtqXmde3mwj1v0jeCG',
|
|
2295
547
|
'yxbWBgLJyxrPB24VANnVBG',
|
|
548
|
+
'yxnPzgu',
|
|
549
|
+
'AgfZ',
|
|
550
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
551
|
+
'DxrMoa',
|
|
552
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
553
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
554
|
+
'zMLSDgvY',
|
|
555
|
+
'ywDNCMvNyxrLswq',
|
|
556
|
+
'sfruuca',
|
|
557
|
+
'Bwf4',
|
|
558
|
+
'pgvTChr5pG',
|
|
559
|
+
'CgfYC2u',
|
|
560
|
+
'yxv0BZO',
|
|
561
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
2296
562
|
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
2297
|
-
'
|
|
2298
|
-
'
|
|
563
|
+
'l2zPBMLZAa',
|
|
564
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
565
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
2299
566
|
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
2300
|
-
'
|
|
2301
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
2302
|
-
'Aw5JBhvKzxm',
|
|
2303
|
-
'BMv4Den1CNnVCG',
|
|
567
|
+
'zxjYB3i',
|
|
2304
568
|
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
2305
|
-
'
|
|
2306
|
-
'
|
|
2307
|
-
'
|
|
2308
|
-
'
|
|
2309
|
-
'
|
|
2310
|
-
'
|
|
2311
|
-
'
|
|
2312
|
-
'
|
|
2313
|
-
'
|
|
2314
|
-
'
|
|
2315
|
-
'
|
|
2316
|
-
'
|
|
2317
|
-
'
|
|
2318
|
-
'
|
|
2319
|
-
'
|
|
2320
|
-
'
|
|
2321
|
-
'
|
|
2322
|
-
'
|
|
2323
|
-
'
|
|
2324
|
-
'
|
|
2325
|
-
'CMvZDw1Lx3bHy2TLDa',
|
|
2326
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
2327
|
-
'C29Tzq',
|
|
2328
|
-
'DxnLCG',
|
|
2329
|
-
'BwvTyMvY',
|
|
2330
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
2331
|
-
'BwvZC2fNzxm',
|
|
2332
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
2333
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
2334
|
-
'DgfZA051BwjLCG',
|
|
2335
|
-
'uefuq0G',
|
|
569
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
570
|
+
'B3b0Aw9UywW',
|
|
571
|
+
'mti5ntC5mhH0sM9XtG',
|
|
572
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
573
|
+
'D29YA2vYtw9Kzq',
|
|
574
|
+
'DxbSB2fKrMLSzq',
|
|
575
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
576
|
+
'ywDLBNrZ',
|
|
577
|
+
'C3rYAw5NAwz5',
|
|
578
|
+
'DgfYz2v0zwq',
|
|
579
|
+
'Bg93',
|
|
580
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
581
|
+
'DgHYzwfKvgfYz2v0',
|
|
582
|
+
'z2v0rgf0zq',
|
|
583
|
+
'l3rHC2TZ',
|
|
584
|
+
'DxjNzw50',
|
|
585
|
+
'Dw5RBM93BG',
|
|
586
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
587
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
588
|
+
'DgfZAW',
|
|
2336
589
|
'CMvHC29U',
|
|
2337
|
-
'
|
|
2338
|
-
'
|
|
2339
|
-
'
|
|
2340
|
-
'
|
|
2341
|
-
'y2XHAw1FDgfZA3m',
|
|
2342
|
-
'zxjYB3i',
|
|
2343
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
2344
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
2345
|
-
'ignSywLTzwq',
|
|
590
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
591
|
+
'ls1ZzxnZAw9UlwLK',
|
|
592
|
+
'z2v0',
|
|
593
|
+
'Bwf0y2Hoyw1L',
|
|
2346
594
|
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
2347
|
-
'
|
|
2348
|
-
'
|
|
2349
|
-
'
|
|
2350
|
-
'
|
|
2351
|
-
'
|
|
2352
|
-
'
|
|
2353
|
-
'
|
|
2354
|
-
'
|
|
2355
|
-
'
|
|
2356
|
-
'
|
|
595
|
+
'Dg9gAxHLza',
|
|
596
|
+
'ywDLBNq',
|
|
597
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
598
|
+
'ywDLBNrjza',
|
|
599
|
+
'BgvUz3rO',
|
|
600
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
601
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
602
|
+
'CMvZDwX0',
|
|
603
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
604
|
+
'iokaLca',
|
|
605
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
606
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
607
|
+
'l3jLy2vPDMu',
|
|
608
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
609
|
+
'ChjVDg9JB2W',
|
|
610
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
611
|
+
'mtG4mZDHrKrpAMG',
|
|
612
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
613
|
+
'yxr0ywnOBwvUDhm',
|
|
614
|
+
'ywXS',
|
|
615
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
616
|
+
'zw51Bq',
|
|
617
|
+
'l3nLBMq',
|
|
618
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
619
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
620
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
621
|
+
'D3nZoG',
|
|
622
|
+
'Axnoyu4',
|
|
623
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
624
|
+
'yxjYyxLcDwzMzxi'
|
|
2357
625
|
];
|
|
2358
|
-
|
|
2359
|
-
return
|
|
626
|
+
_0x275c = function () {
|
|
627
|
+
return _0x33316c;
|
|
2360
628
|
};
|
|
2361
|
-
return
|
|
629
|
+
return _0x275c();
|
|
630
|
+
}
|
|
631
|
+
function isMentionBoundary(_0x1830fb) {
|
|
632
|
+
const _0x11a376 = { _0x7ce433: 0x24a }, _0x3f0b24 = _0xbabd6a;
|
|
633
|
+
return !_0x1830fb || /\s|[([{'",。!?、:;]/[_0x3f0b24(_0x11a376._0x7ce433)](_0x1830fb);
|
|
634
|
+
}
|
|
635
|
+
function isMentionTerminal(_0x3487c6) {
|
|
636
|
+
const _0x8e3eef = { _0x44b498: 0x24a }, _0x58119b = _0xbabd6a;
|
|
637
|
+
return !_0x3487c6 || /\s|[)\]}'",。!?、:;,.!?]/[_0x58119b(_0x8e3eef._0x44b498)](_0x3487c6);
|
|
638
|
+
}
|
|
639
|
+
function buildMatchableEntries(_0x21588f) {
|
|
640
|
+
const _0x4c7065 = {
|
|
641
|
+
_0x2e342d: 0x175,
|
|
642
|
+
_0x1eb02d: 0x25f
|
|
643
|
+
}, _0x40efb2 = _0xbabd6a, _0x20ba10 = [];
|
|
644
|
+
for (const _0x24865a of [
|
|
645
|
+
..._0x21588f[_0x40efb2(_0x4c7065._0x2e342d)],
|
|
646
|
+
..._0x21588f[_0x40efb2(0x29a)]
|
|
647
|
+
]) {
|
|
648
|
+
_0x20ba10[_0x40efb2(0x1c6)]({
|
|
649
|
+
'matchName': _0x24865a[_0x40efb2(0x2bc)],
|
|
650
|
+
'matchNameLower': _0x24865a[_0x40efb2(0x2bc)][_0x40efb2(_0x4c7065._0x1eb02d)](),
|
|
651
|
+
'participantId': _0x24865a['id']
|
|
652
|
+
}), _0x24865a['id'] !== _0x24865a['name'] && _0x20ba10[_0x40efb2(0x1c6)]({
|
|
653
|
+
'matchName': _0x24865a['id'],
|
|
654
|
+
'matchNameLower': _0x24865a['id']['toLocaleLowerCase'](),
|
|
655
|
+
'participantId': _0x24865a['id']
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
return _0x20ba10;
|
|
659
|
+
}
|
|
660
|
+
function extractMentionedParticipantIds(_0xe539f2, _0x545adf) {
|
|
661
|
+
const _0x4f877f = {
|
|
662
|
+
_0x195244: 0x25f,
|
|
663
|
+
_0x133d27: 0x2e4,
|
|
664
|
+
_0x5a3a51: 0x2ce,
|
|
665
|
+
_0x2e7345: 0x2c5,
|
|
666
|
+
_0x8890e: 0x186,
|
|
667
|
+
_0x40ca8c: 0x18c
|
|
668
|
+
}, _0x1dbbc2 = {
|
|
669
|
+
_0x23a754: 0x1e3,
|
|
670
|
+
_0x524220: 0x22d
|
|
671
|
+
}, _0x4774f6 = _0xbabd6a, _0x44d726 = buildMatchableEntries(_0x545adf)[_0x4774f6(0x1c9)]((_0x16d2bc, _0x4c98bd) => _0x4c98bd[_0x4774f6(0x186)][_0x4774f6(0x18c)] - _0x16d2bc['matchName']['length']), _0x237307 = [], _0x3b424a = new Set();
|
|
672
|
+
for (let _0x397159 = 0x0; _0x397159 < _0xe539f2['length']; _0x397159 += 0x1) {
|
|
673
|
+
if (_0xe539f2[_0x397159] !== '@' || !isMentionBoundary(_0xe539f2[_0x397159 - 0x1]))
|
|
674
|
+
continue;
|
|
675
|
+
const _0x3e62d1 = _0xe539f2['slice'](_0x397159 + 0x1), _0x1ee43e = _0x3e62d1[_0x4774f6(_0x4f877f._0x195244)](), _0x5009af = _0x44d726['find'](_0x4b4597 => {
|
|
676
|
+
const _0x405030 = _0x4774f6;
|
|
677
|
+
if (!_0x1ee43e[_0x405030(_0x1dbbc2._0x23a754)](_0x4b4597[_0x405030(_0x1dbbc2._0x524220)]))
|
|
678
|
+
return ![];
|
|
679
|
+
return isMentionTerminal(_0x3e62d1[_0x4b4597['matchName'][_0x405030(0x18c)]]);
|
|
680
|
+
});
|
|
681
|
+
if (!_0x5009af || _0x3b424a[_0x4774f6(_0x4f877f._0x133d27)](_0x5009af[_0x4774f6(_0x4f877f._0x5a3a51)]))
|
|
682
|
+
continue;
|
|
683
|
+
_0x3b424a[_0x4774f6(_0x4f877f._0x2e7345)](_0x5009af[_0x4774f6(0x2ce)]), _0x237307[_0x4774f6(0x1c6)](_0x5009af[_0x4774f6(0x2ce)]), _0x397159 += _0x5009af[_0x4774f6(_0x4f877f._0x8890e)][_0x4774f6(_0x4f877f._0x40ca8c)];
|
|
684
|
+
}
|
|
685
|
+
return _0x237307;
|
|
686
|
+
}
|
|
687
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
688
|
+
function anySignal(..._0x3e5551) {
|
|
689
|
+
const _0x5615f8 = {
|
|
690
|
+
_0x5d2964: 0x182,
|
|
691
|
+
_0x19d3c0: 0x1f0,
|
|
692
|
+
_0x2c8d22: 0x2c4
|
|
693
|
+
}, _0xfd0568 = _0xbabd6a, _0x413af9 = new AbortController();
|
|
694
|
+
for (const _0x285442 of _0x3e5551) {
|
|
695
|
+
if (_0x285442['aborted'])
|
|
696
|
+
return _0x413af9[_0xfd0568(0x1f0)](_0x285442[_0xfd0568(_0x5615f8._0x5d2964)]), _0x413af9[_0xfd0568(0x2c4)];
|
|
697
|
+
_0x285442[_0xfd0568(0x218)](_0xfd0568(_0x5615f8._0x19d3c0), () => _0x413af9[_0xfd0568(0x1f0)](_0x285442['reason']), {
|
|
698
|
+
'once': !![],
|
|
699
|
+
'signal': _0x413af9['signal']
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
return _0x413af9[_0xfd0568(_0x5615f8._0x2c8d22)];
|
|
703
|
+
}
|
|
704
|
+
function createInternalAgentClient(_0x53d82c) {
|
|
705
|
+
const _0x81f02d = {
|
|
706
|
+
_0xf0ee59: 0x20a,
|
|
707
|
+
_0x41c37f: 0x29d,
|
|
708
|
+
_0x53fa4f: 0x26a,
|
|
709
|
+
_0x490d7c: 0x25a,
|
|
710
|
+
_0xf38a48: 0x2ae,
|
|
711
|
+
_0x5ed691: 0x274,
|
|
712
|
+
_0x2f4c42: 0x2ae,
|
|
713
|
+
_0x174cc1: 0x2e5,
|
|
714
|
+
_0x2839ad: 0x1ec
|
|
715
|
+
}, _0x157e73 = {
|
|
716
|
+
_0x16ac0c: 0x2a5,
|
|
717
|
+
_0x1f5f72: 0x194,
|
|
718
|
+
_0x332779: 0x2a1,
|
|
719
|
+
_0x354b35: 0x1bf,
|
|
720
|
+
_0x552646: 0x18c,
|
|
721
|
+
_0xb08ce1: 0x268,
|
|
722
|
+
_0x21196a: 0x2e9,
|
|
723
|
+
_0x45fd23: 0x258,
|
|
724
|
+
_0x35764d: 0x25c,
|
|
725
|
+
_0x4e7498: 0x1ff,
|
|
726
|
+
_0x1c8c72: 0x24e,
|
|
727
|
+
_0x2a93f6: 0x20a,
|
|
728
|
+
_0xe82216: 0x1e0,
|
|
729
|
+
_0x3ee79c: 0x2ea,
|
|
730
|
+
_0x11a1b0: 0x24e,
|
|
731
|
+
_0x51246: 0x24e,
|
|
732
|
+
_0x567d8b: 0x1fc,
|
|
733
|
+
_0x2f1a75: 0x1c6,
|
|
734
|
+
_0x4b22dc: 0x2a5,
|
|
735
|
+
_0x571a70: 0x185,
|
|
736
|
+
_0x555772: 0x1f9,
|
|
737
|
+
_0x4f9ba2: 0x219,
|
|
738
|
+
_0x357f8d: 0x236,
|
|
739
|
+
_0x3b9d12: 0x177,
|
|
740
|
+
_0x3b4dd6: 0x261,
|
|
741
|
+
_0x576c4b: 0x299,
|
|
742
|
+
_0x47a572: 0x234,
|
|
743
|
+
_0xd9a9: 0x1d7
|
|
744
|
+
}, _0x5265ec = { _0x81cba4: 0x29b }, _0x103cce = {
|
|
745
|
+
_0x468dbb: 0x2c4,
|
|
746
|
+
_0x170d1f: 0x2eb,
|
|
747
|
+
_0x2cdd81: 0x1a4,
|
|
748
|
+
_0x2d65c2: 0x2a1
|
|
749
|
+
}, _0x408d14 = {
|
|
750
|
+
_0x1d519a: 0x29f,
|
|
751
|
+
_0x4d09d: 0x29e,
|
|
752
|
+
_0x351481: 0x2a1
|
|
753
|
+
}, _0xe4f289 = {
|
|
754
|
+
_0x27696f: 0x18b,
|
|
755
|
+
_0x22e930: 0x1ab,
|
|
756
|
+
_0x4701fa: 0x29e
|
|
757
|
+
}, _0x69dd89 = { _0x3243db: 0x29e }, _0xf1496e = { _0xadf524: 0x201 }, _0x95af6b = { _0x1075b2: 0x29e }, _0x4bd307 = {
|
|
758
|
+
_0x29bb12: 0x280,
|
|
759
|
+
_0x4a20d9: 0x282,
|
|
760
|
+
_0x16b108: 0x16e,
|
|
761
|
+
_0x51d2c5: 0x1d1,
|
|
762
|
+
_0x28b315: 0x263
|
|
763
|
+
}, _0x4caccf = {
|
|
764
|
+
_0x481761: 0x1c7,
|
|
765
|
+
_0x42de35: 0x223,
|
|
766
|
+
_0x4b57ae: 0x2f2,
|
|
767
|
+
_0x33669e: 0x24c,
|
|
768
|
+
_0x10c817: 0x282,
|
|
769
|
+
_0x13fd4a: 0x2a1,
|
|
770
|
+
_0x3f415a: 0x223
|
|
771
|
+
}, _0x2636d0 = {
|
|
772
|
+
_0x4e7d16: 0x1c7,
|
|
773
|
+
_0x51b16d: 0x176,
|
|
774
|
+
_0x3828b3: 0x29e
|
|
775
|
+
}, _0x551a78 = { _0x55cb6f: 0x2c1 }, _0x539570 = { _0x18a682: 0x2b6 }, _0x22bed0 = {
|
|
776
|
+
_0x4406f0: 0x2a4,
|
|
777
|
+
_0x19aea2: 0x2a4,
|
|
778
|
+
_0x1da0ab: 0x16e,
|
|
779
|
+
_0xe31487: 0x264
|
|
780
|
+
}, _0x547dae = {
|
|
781
|
+
_0x21f3bd: 0x2a5,
|
|
782
|
+
_0x50b30b: 0x1f8,
|
|
783
|
+
_0x11ec60: 0x2b2,
|
|
784
|
+
_0x5ba62b: 0x2b2,
|
|
785
|
+
_0x46de91: 0x297,
|
|
786
|
+
_0x452667: 0x1b9,
|
|
787
|
+
_0x1212e9: 0x29b
|
|
788
|
+
}, _0x238314 = { _0x34db76: 0x22c }, _0x1872e0 = { _0x3101f2: 0x2d8 }, _0x60ea7b = {
|
|
789
|
+
_0x2ffa7b: 0x228,
|
|
790
|
+
_0x5cd965: 0x26e,
|
|
791
|
+
_0x498b47: 0x24e,
|
|
792
|
+
_0x5882e7: 0x1cf,
|
|
793
|
+
_0x1dde19: 0x1d5,
|
|
794
|
+
_0x47f87c: 0x1e3,
|
|
795
|
+
_0x561c05: 0x1f8
|
|
796
|
+
}, _0x5e0393 = {
|
|
797
|
+
_0x2baf17: 0x26e,
|
|
798
|
+
_0x1b6233: 0x1cf,
|
|
799
|
+
_0x4aa2cb: 0x1f8,
|
|
800
|
+
_0x3f33ed: 0x26e
|
|
801
|
+
}, _0x3492f3 = {
|
|
802
|
+
_0x28f3bb: 0x2ad,
|
|
803
|
+
_0x2d5e11: 0x2d2
|
|
804
|
+
}, _0x4e1fdf = {
|
|
805
|
+
_0x43be80: 0x267,
|
|
806
|
+
_0x34cf50: 0x2b9
|
|
807
|
+
}, _0x132164 = {
|
|
808
|
+
_0x1ac1de: 0x16e,
|
|
809
|
+
_0x3bd48e: 0x18b,
|
|
810
|
+
_0x5d9cec: 0x2a1
|
|
811
|
+
}, _0x4e929c = { _0x5b03a4: 0x282 }, _0xd7ea04 = { _0x2c0146: 0x176 }, _0x570958 = {
|
|
812
|
+
_0x134464: 0x2c4,
|
|
813
|
+
_0x308602: 0x2f6,
|
|
814
|
+
_0x899b97: 0x2eb
|
|
815
|
+
}, _0x5ee7f4 = {
|
|
816
|
+
_0x628aff: 0x2c4,
|
|
817
|
+
_0xb0bae8: 0x2c4,
|
|
818
|
+
_0xc7d29d: 0x245,
|
|
819
|
+
_0x349621: 0x2f6
|
|
820
|
+
}, _0x55f9f6 = {
|
|
821
|
+
_0x48a939: 0x260,
|
|
822
|
+
_0x2465c1: 0x262,
|
|
823
|
+
_0x16896e: 0x283,
|
|
824
|
+
_0x1a2d81: 0x2ef,
|
|
825
|
+
_0x4852cb: 0x2a5
|
|
826
|
+
}, _0x574e3e = {
|
|
827
|
+
_0x3b72b3: 0x1a5,
|
|
828
|
+
_0x1646d0: 0x2e6,
|
|
829
|
+
_0x1b02f8: 0x2ee
|
|
830
|
+
}, _0x3ad4a7 = {
|
|
831
|
+
_0x29b5a0: 0x24d,
|
|
832
|
+
_0x4a3415: 0x255,
|
|
833
|
+
_0x11dce1: 0x26c,
|
|
834
|
+
_0x2a3078: 0x2cd
|
|
835
|
+
}, _0x594dee = _0xbabd6a, _0x53f07d = _0x53d82c['fetchImpl'] ?? fetch, _0x53ec68 = _0x53d82c['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x210b35 = typeof _0x53d82c[_0x594dee(0x29d)] === _0x594dee(_0x81f02d._0xf0ee59) && _0x53d82c[_0x594dee(_0x81f02d._0x41c37f)] > 0x0 ? _0x53d82c['initialLastSeenSeq'] : 0x0, _0x2f0a62 = _0x53d82c[_0x594dee(_0x81f02d._0x53fa4f)]?.[_0x594dee(0x2ae)]() || void 0x0, _0x4ac62d = _0x53d82c[_0x594dee(_0x81f02d._0x490d7c)]?.[_0x594dee(_0x81f02d._0xf38a48)]() || void 0x0, _0x1f49fe = _0x53d82c[_0x594dee(0x1fd)] === !![], _0x1a319c = _0x53d82c[_0x594dee(_0x81f02d._0x5ed691)]?.[_0x594dee(_0x81f02d._0x2f4c42)]() || void 0x0, _0x4ed3a6 = _0x53d82c[_0x594dee(_0x81f02d._0x174cc1)]?.[_0x594dee(0x2ae)]() || void 0x0, _0x3af291 = createHeaders(_0x53d82c['daemonApiKey']), _0x6fad2a = toHttpBaseUrl(_0x53d82c[_0x594dee(_0x81f02d._0x2839ad)]);
|
|
836
|
+
let _0x34040d = null;
|
|
837
|
+
const _0xf64c0 = new Map();
|
|
838
|
+
let _0x6231ff = _0x210b35, _0x56a44e = _0x210b35;
|
|
839
|
+
function _0x6f9ae(_0x25296a) {
|
|
840
|
+
const _0x3f0805 = _0x594dee, _0x3766aa = _0x25296a[_0x3f0805(_0x3ad4a7._0x29b5a0)]['headers']['get'](_0x3f0805(0x1b2)) ?? 'unknown', _0x5b0cbd = _0x25296a[_0x3f0805(_0x3ad4a7._0x4a3415)][_0x3f0805(0x2ae)]()['replace'](/\s+/g, '\x20')[_0x3f0805(0x1e8)](0x0, 0x78) || _0x3f0805(0x2ed);
|
|
841
|
+
return '请求\x20' + _0x25296a[_0x3f0805(_0x3ad4a7._0x11dce1)] + _0x3f0805(_0x3ad4a7._0x2a3078) + _0x25296a[_0x3f0805(0x24d)][_0x3f0805(0x282)] + _0x3f0805(0x2da) + _0x3766aa + ',\x20preview=' + _0x5b0cbd + _0x3f0805(0x2f1);
|
|
842
|
+
}
|
|
843
|
+
async function _0x499f05(_0x4f8d87, _0x400b12) {
|
|
844
|
+
const _0xc2a2f2 = _0x594dee, _0x1d9ce3 = Buffer['from'](await _0x400b12[_0xc2a2f2(_0x574e3e._0x3b72b3)]())[_0xc2a2f2(0x263)](_0xc2a2f2(_0x574e3e._0x1646d0));
|
|
845
|
+
if (!_0x1d9ce3[_0xc2a2f2(0x2ae)]())
|
|
846
|
+
return {};
|
|
847
|
+
try {
|
|
848
|
+
return JSON[_0xc2a2f2(_0x574e3e._0x1b02f8)](_0x1d9ce3);
|
|
849
|
+
} catch {
|
|
850
|
+
throw new Error(_0x6f9ae({
|
|
851
|
+
'bodyText': _0x1d9ce3,
|
|
852
|
+
'requestUrl': _0x4f8d87,
|
|
853
|
+
'response': _0x400b12
|
|
854
|
+
}));
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
function _0x2127af(_0x59b15b, _0x2ec368) {
|
|
858
|
+
const _0x581fef = _0x594dee, _0x489f58 = typeof _0x2ec368[_0x581fef(0x2f4)] === _0x581fef(0x1ff) ? _0x2ec368[_0x581fef(0x2f4)][_0x581fef(0x2ae)]() : '';
|
|
859
|
+
if (_0x489f58)
|
|
860
|
+
return _0x489f58;
|
|
861
|
+
const _0x27db11 = Date[_0x581fef(0x29c)]();
|
|
862
|
+
for (const [_0x282f3d, _0x305a43] of _0xf64c0) {
|
|
863
|
+
_0x305a43[_0x581fef(_0x55f9f6._0x48a939)] <= _0x27db11 && _0xf64c0[_0x581fef(_0x55f9f6._0x2465c1)](_0x282f3d);
|
|
864
|
+
}
|
|
865
|
+
const _0x1eca1b = {
|
|
866
|
+
..._0x2ec368,
|
|
867
|
+
'idempotency_key': void 0x0
|
|
868
|
+
}, _0x4c3457 = createHash(_0x581fef(_0x55f9f6._0x16896e))[_0x581fef(0x292)](_0x59b15b + ':' + stableStringify(_0x1eca1b))['digest'](_0x581fef(0x22e)), _0x2b003f = _0x59b15b + ':' + _0x4c3457, _0x2dd098 = _0xf64c0[_0x581fef(0x185)](_0x2b003f);
|
|
869
|
+
if (_0x2dd098)
|
|
870
|
+
return _0x2dd098['value'];
|
|
871
|
+
const _0x1894e8 = _0x581fef(_0x55f9f6._0x1a2d81) + _0x59b15b + ':' + randomUUID();
|
|
872
|
+
return _0xf64c0[_0x581fef(_0x55f9f6._0x4852cb)](_0x2b003f, {
|
|
873
|
+
'expiresAt': _0x27db11 + 0x5 * 0x3c * 0x3e8,
|
|
874
|
+
'value': _0x1894e8
|
|
875
|
+
}), _0x1894e8;
|
|
876
|
+
}
|
|
877
|
+
async function _0x42dc25(_0x43e8f1, _0x2615c6) {
|
|
878
|
+
const _0x4817c2 = _0x594dee, _0x1757b3 = new AbortController(), _0x12c02e = setTimeout(() => _0x1757b3['abort'](), _0x53ec68), _0x33f644 = _0x2615c6?.['signal'] ? anySignal(_0x2615c6[_0x4817c2(_0x5ee7f4._0x628aff)], _0x1757b3[_0x4817c2(_0x5ee7f4._0x628aff)]) : _0x1757b3[_0x4817c2(_0x5ee7f4._0xb0bae8)], _0x595fbd = '' + _0x6fad2a + _0x43e8f1;
|
|
879
|
+
try {
|
|
880
|
+
const _0x27c921 = await _0x53f07d(_0x595fbd, {
|
|
881
|
+
..._0x2615c6,
|
|
882
|
+
'signal': _0x33f644
|
|
883
|
+
}), _0x100879 = await _0x499f05(_0x595fbd, _0x27c921);
|
|
884
|
+
if (!_0x27c921['ok'] || _0x100879[_0x4817c2(_0x5ee7f4._0xc7d29d)] === ![])
|
|
885
|
+
throw new Error(asErrorMessage(_0x100879[_0x4817c2(_0x5ee7f4._0x349621)], _0x4817c2(0x2eb) + _0x27c921[_0x4817c2(0x282)]));
|
|
886
|
+
return _0x100879;
|
|
887
|
+
} finally {
|
|
888
|
+
clearTimeout(_0x12c02e);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
async function _0x115120(_0x16aa50, _0x5b69a2) {
|
|
892
|
+
const _0x385579 = _0x594dee, _0x45018f = new AbortController(), _0x4cd14f = setTimeout(() => _0x45018f[_0x385579(0x1f0)](), _0x53ec68), _0x4937f8 = _0x5b69a2?.['signal'] ? anySignal(_0x5b69a2[_0x385579(0x2c4)], _0x45018f[_0x385579(_0x570958._0x134464)]) : _0x45018f[_0x385579(_0x570958._0x134464)], _0x4d085a = '' + _0x6fad2a + _0x16aa50;
|
|
893
|
+
try {
|
|
894
|
+
const _0x57831d = await _0x53f07d(_0x4d085a, {
|
|
895
|
+
..._0x5b69a2,
|
|
896
|
+
'signal': _0x4937f8
|
|
897
|
+
}), _0x4618f7 = await _0x499f05(_0x4d085a, _0x57831d);
|
|
898
|
+
if (!_0x57831d['ok'])
|
|
899
|
+
throw new Error(asErrorMessage(_0x4618f7[_0x385579(_0x570958._0x308602)], _0x385579(_0x570958._0x899b97) + _0x57831d['status']));
|
|
900
|
+
return _0x4618f7;
|
|
901
|
+
} finally {
|
|
902
|
+
clearTimeout(_0x4cd14f);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
async function _0x2cae15(_0x489e51) {
|
|
906
|
+
const _0x4253d4 = _0x594dee;
|
|
907
|
+
if (!_0x4ac62d || _0x489e51 <= _0x56a44e)
|
|
908
|
+
return;
|
|
909
|
+
await _0x42dc25('/api/agent-sessions/' + encodeURIComponent(_0x4ac62d) + _0x4253d4(0x2f3), {
|
|
910
|
+
'body': JSON[_0x4253d4(_0xd7ea04._0x2c0146)]({ 'lastSeenSeq': _0x489e51 }),
|
|
911
|
+
'headers': _0x3af291,
|
|
912
|
+
'method': 'PATCH'
|
|
913
|
+
}), _0x56a44e = _0x489e51;
|
|
914
|
+
}
|
|
915
|
+
async function _0xfabbf7(_0x5e5e17) {
|
|
916
|
+
const _0x42c2a5 = _0x594dee;
|
|
917
|
+
if (!_0x2f0a62 || !_0x1a319c || _0x5e5e17 <= _0x56a44e)
|
|
918
|
+
return;
|
|
919
|
+
const _0x18afd1 = await _0x53f07d(_0x2f0a62 + _0x42c2a5(0x2c8), {
|
|
920
|
+
'body': JSON[_0x42c2a5(0x176)]({
|
|
921
|
+
'last_seen_seq': _0x5e5e17,
|
|
922
|
+
'worker_session_id': _0x1a319c
|
|
923
|
+
}),
|
|
924
|
+
'headers': { 'Content-Type': _0x42c2a5(0x2e2) },
|
|
925
|
+
'method': 'POST'
|
|
926
|
+
});
|
|
927
|
+
if (!_0x18afd1['ok'])
|
|
928
|
+
throw new Error(_0x42c2a5(0x2eb) + _0x18afd1[_0x42c2a5(_0x4e929c._0x5b03a4)]);
|
|
929
|
+
_0x56a44e = _0x5e5e17;
|
|
930
|
+
}
|
|
931
|
+
async function _0x4fc7d4(_0x1828ac) {
|
|
932
|
+
const _0x59d1dd = _0x594dee, _0x5a32c6 = parseTarget(_0x1828ac), _0x4c7cf8 = await _0x42dc25(_0x59d1dd(_0x132164._0x1ac1de) + _0x53d82c[_0x59d1dd(_0x132164._0x3bd48e)] + _0x59d1dd(0x1a9), {
|
|
933
|
+
'body': JSON[_0x59d1dd(0x176)]({ 'target': _0x5a32c6[_0x59d1dd(0x29f)] }),
|
|
934
|
+
'headers': _0x3af291,
|
|
935
|
+
'method': 'POST'
|
|
936
|
+
});
|
|
937
|
+
return {
|
|
938
|
+
'channelId': _0x4c7cf8[_0x59d1dd(_0x132164._0x5d9cec)]?.['channelId'] ?? '',
|
|
939
|
+
'target': _0x5a32c6['channelTarget'],
|
|
940
|
+
'task': _0x4c7cf8[_0x59d1dd(_0x132164._0x5d9cec)]?.['task'],
|
|
941
|
+
'threadId': _0x4c7cf8['data']?.[_0x59d1dd(0x1f8)],
|
|
942
|
+
'threadNumber': _0x4c7cf8[_0x59d1dd(0x2a1)]?.[_0x59d1dd(0x24e)]
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
async function _0x22fc67(_0x14cd46 = {}) {
|
|
946
|
+
const _0x7625b4 = {
|
|
947
|
+
_0x116dcf: 0x16e,
|
|
948
|
+
_0x6100bd: 0x2e9,
|
|
949
|
+
_0x288020: 0x2e9,
|
|
950
|
+
_0x43b4a7: 0x2a1,
|
|
951
|
+
_0x3458b7: 0x28c,
|
|
952
|
+
_0x337475: 0x2dc,
|
|
953
|
+
_0x545a37: 0x2bc
|
|
954
|
+
}, _0x2d1e10 = _0x594dee;
|
|
955
|
+
if (!_0x14cd46[_0x2d1e10(_0x4e1fdf._0x43be80)] && _0x34040d)
|
|
956
|
+
return _0x34040d;
|
|
957
|
+
return _0x34040d = (async () => {
|
|
958
|
+
const _0x2beaaa = _0x2d1e10, _0x10ac43 = await _0x42dc25(_0x2beaaa(_0x7625b4._0x116dcf) + _0x53d82c[_0x2beaaa(0x18b)] + _0x2beaaa(0x2d0), {
|
|
959
|
+
'headers': _0x3af291,
|
|
960
|
+
'method': 'GET'
|
|
961
|
+
}), _0x6c3bf = _0x10ac43[_0x2beaaa(0x2a1)]?.[_0x2beaaa(0x248)] ?? [], _0x20f32b = _0x6c3bf['filter'](_0x52fb4b => _0x52fb4b[_0x2beaaa(0x22c)]?.[_0x2beaaa(0x290)] === 'agent')[_0x2beaaa(0x258)](_0x1782af => ({
|
|
962
|
+
'id': _0x2113fa(_0x1782af),
|
|
963
|
+
'name': _0x48ea83(_0x1782af)
|
|
964
|
+
}))[_0x2beaaa(0x2e9)](_0x325f2d => _0x325f2d['id']), _0x119185 = _0x6c3bf[_0x2beaaa(_0x7625b4._0x6100bd)](_0x3e2d0d => _0x3e2d0d[_0x2beaaa(0x22c)]?.['type'] !== _0x2beaaa(0x189))[_0x2beaaa(0x258)](_0xb11093 => ({
|
|
965
|
+
'id': _0x2113fa(_0xb11093),
|
|
966
|
+
'name': _0x48ea83(_0xb11093)
|
|
967
|
+
}))[_0x2beaaa(_0x7625b4._0x288020)](_0x28f960 => _0x28f960['id']), _0x47b7f9 = _0x10ac43[_0x2beaaa(_0x7625b4._0x43b4a7)]?.['server']['id'] ?? '';
|
|
968
|
+
return {
|
|
969
|
+
'agents': _0x20f32b,
|
|
970
|
+
'channels': _0x10ac43[_0x2beaaa(0x2a1)]?.[_0x2beaaa(_0x7625b4._0x3458b7)] ?? [],
|
|
971
|
+
'humans': _0x119185,
|
|
972
|
+
'serverId': _0x47b7f9,
|
|
973
|
+
'serverName': _0x10ac43[_0x2beaaa(0x2a1)]?.[_0x2beaaa(_0x7625b4._0x337475)][_0x2beaaa(_0x7625b4._0x545a37)] ?? _0x47b7f9
|
|
974
|
+
};
|
|
975
|
+
})()[_0x2d1e10(_0x4e1fdf._0x34cf50)](_0x44119d => {
|
|
976
|
+
_0x34040d = null;
|
|
977
|
+
throw _0x44119d;
|
|
978
|
+
}), _0x34040d;
|
|
979
|
+
}
|
|
980
|
+
function _0x2d71ec(_0x1b0dd9, _0x37bcef) {
|
|
981
|
+
const _0x38b01f = _0x594dee;
|
|
982
|
+
return _0x37bcef[_0x38b01f(0x175)][_0x38b01f(_0x3492f3._0x28f3bb)](_0x49f5c6 => _0x49f5c6['id'] === _0x1b0dd9 || _0x49f5c6['name'] === _0x1b0dd9) ? 'agent' : _0x38b01f(_0x3492f3._0x2d5e11);
|
|
983
|
+
}
|
|
984
|
+
function _0x12983f(_0x385e8b) {
|
|
985
|
+
const _0x267fdd = _0x594dee;
|
|
986
|
+
if (_0x385e8b[_0x267fdd(0x24e)] != null)
|
|
987
|
+
return _0x385e8b['channelTarget'] + ':t' + _0x385e8b[_0x267fdd(0x24e)];
|
|
988
|
+
if (_0x385e8b[_0x267fdd(0x1cf)])
|
|
989
|
+
return _0x385e8b[_0x267fdd(_0x5e0393._0x2baf17)] + ':' + _0x385e8b[_0x267fdd(_0x5e0393._0x1b6233)];
|
|
990
|
+
if (_0x385e8b[_0x267fdd(_0x5e0393._0x4aa2cb)])
|
|
991
|
+
return _0x385e8b[_0x267fdd(_0x5e0393._0x3f33ed)] + ':' + _0x385e8b[_0x267fdd(0x1f8)][_0x267fdd(0x1e8)](0x0, 0x8);
|
|
992
|
+
return _0x385e8b[_0x267fdd(_0x5e0393._0x3f33ed)];
|
|
993
|
+
}
|
|
994
|
+
function _0x56affa(_0x1d89d8, _0x395153) {
|
|
995
|
+
const _0x482ae4 = _0x594dee;
|
|
996
|
+
try {
|
|
997
|
+
const _0x2ae812 = parseTarget(_0x1d89d8);
|
|
998
|
+
if (_0x2ae812[_0x482ae4(0x1f9)] !== _0x482ae4(_0x60ea7b._0x2ffa7b) || _0x2ae812[_0x482ae4(_0x60ea7b._0x5cd965)] !== _0x395153[_0x482ae4(_0x60ea7b._0x5cd965)])
|
|
999
|
+
return ![];
|
|
1000
|
+
if (_0x395153[_0x482ae4(0x24e)] != null && _0x2ae812['threadShortId'] === 't' + _0x395153[_0x482ae4(_0x60ea7b._0x498b47)])
|
|
1001
|
+
return !![];
|
|
1002
|
+
if (_0x395153[_0x482ae4(_0x60ea7b._0x5882e7)])
|
|
1003
|
+
return _0x2ae812[_0x482ae4(_0x60ea7b._0x1dde19)] === _0x395153[_0x482ae4(0x1cf)] || _0x395153['rootMessageId'][_0x482ae4(_0x60ea7b._0x47f87c)](_0x2ae812[_0x482ae4(_0x60ea7b._0x1dde19)]);
|
|
1004
|
+
if (_0x395153[_0x482ae4(_0x60ea7b._0x561c05)])
|
|
1005
|
+
return _0x2ae812['threadShortId'] === _0x395153[_0x482ae4(0x1f8)] || _0x395153[_0x482ae4(0x1f8)]['startsWith'](_0x2ae812[_0x482ae4(_0x60ea7b._0x1dde19)]);
|
|
1006
|
+
return ![];
|
|
1007
|
+
} catch {
|
|
1008
|
+
return ![];
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
function _0x2113fa(_0x2e98e5) {
|
|
1012
|
+
const _0x38771d = _0x594dee;
|
|
1013
|
+
return _0x2e98e5[_0x38771d(_0x1872e0._0x3101f2)]?.['participantId'] ?? _0x2e98e5[_0x38771d(0x22c)]?.['id'] ?? _0x2e98e5[_0x38771d(0x2ce)] ?? '';
|
|
1014
|
+
}
|
|
1015
|
+
function _0x48ea83(_0xff530) {
|
|
1016
|
+
const _0x3b4b1c = _0x594dee;
|
|
1017
|
+
return _0xff530[_0x3b4b1c(_0x238314._0x34db76)]?.['name'] ?? _0x2113fa(_0xff530);
|
|
1018
|
+
}
|
|
1019
|
+
async function _0xcbf84e(_0x58a059) {
|
|
1020
|
+
const _0x4392f7 = _0x594dee, _0x3ab3a0 = Math['min'](_0x58a059[_0x4392f7(0x269)] ?? 0x32, 0x64), _0x5c20d3 = await _0x22fc67(), _0x5e9ae2 = new URLSearchParams();
|
|
1021
|
+
_0x5e9ae2[_0x4392f7(0x2a5)](_0x4392f7(0x269), String(_0x3ab3a0));
|
|
1022
|
+
_0x58a059[_0x4392f7(0x1f8)] ? (_0x5e9ae2[_0x4392f7(_0x547dae._0x21f3bd)](_0x4392f7(_0x547dae._0x50b30b), _0x58a059[_0x4392f7(0x1f8)]), _0x5e9ae2[_0x4392f7(0x2a5)](_0x4392f7(_0x547dae._0x11ec60), _0x58a059['channelId'])) : _0x5e9ae2[_0x4392f7(0x2a5)](_0x4392f7(_0x547dae._0x5ba62b), _0x58a059[_0x4392f7(0x2b2)]);
|
|
1023
|
+
_0x58a059[_0x4392f7(_0x547dae._0x46de91)] && _0x5e9ae2['set'](_0x4392f7(_0x547dae._0x452667), String(_0x58a059[_0x4392f7(0x297)]));
|
|
1024
|
+
_0x58a059[_0x4392f7(0x29b)] !== void 0x0 && _0x5e9ae2['set'](_0x4392f7(_0x547dae._0x1212e9), String(_0x58a059[_0x4392f7(0x29b)]));
|
|
1025
|
+
const _0x5f3dd4 = await _0x42dc25('/internal/agent/' + _0x53d82c[_0x4392f7(0x18b)] + _0x4392f7(0x220) + _0x5e9ae2[_0x4392f7(0x263)](), {
|
|
1026
|
+
'headers': _0x3af291,
|
|
1027
|
+
'method': 'GET'
|
|
1028
|
+
}), _0x3e0bf8 = (_0x5f3dd4[_0x4392f7(0x2a1)] ?? [])[_0x4392f7(0x258)](_0x1acb2e => ({
|
|
1029
|
+
'attachments': (_0x1acb2e[_0x4392f7(0x19a)] ?? [])['map'](_0x3776fc => ({
|
|
1030
|
+
'filename': _0x3776fc[_0x4392f7(0x204)] ?? _0x3776fc['id'],
|
|
1031
|
+
'id': _0x3776fc['id']
|
|
1032
|
+
})),
|
|
1033
|
+
'content': _0x1acb2e[_0x4392f7(0x234)] ?? '',
|
|
1034
|
+
'createdAt': _0x1acb2e[_0x4392f7(0x261)],
|
|
1035
|
+
..._0x1acb2e[_0x4392f7(0x1f9)] && _0x1acb2e[_0x4392f7(0x1f9)] !== _0x4392f7(0x1af) ? { 'kind': _0x1acb2e[_0x4392f7(0x1f9)] } : {},
|
|
1036
|
+
'messageId': _0x1acb2e['id'],
|
|
1037
|
+
'senderName': _0x1acb2e[_0x4392f7(0x1bd)],
|
|
1038
|
+
'senderType': _0x2d71ec(_0x1acb2e[_0x4392f7(0x1bd)], _0x5c20d3),
|
|
1039
|
+
'seq': _0x1acb2e[_0x4392f7(0x27a)] ?? 0x0
|
|
1040
|
+
}));
|
|
1041
|
+
return {
|
|
1042
|
+
'channel': _0x58a059['channelTarget'],
|
|
1043
|
+
'hasMore': _0x5f3dd4[_0x4392f7(0x1bf)]?.['hasMore'] ?? ![],
|
|
1044
|
+
'messages': _0x3e0bf8,
|
|
1045
|
+
'nextCursor': _0x5f3dd4['meta']?.[_0x4392f7(0x1b9)]
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
return {
|
|
1049
|
+
async 'sendMessage'(_0x28649d) {
|
|
1050
|
+
const _0x1aed86 = _0x594dee, _0x4622d0 = await _0x4fc7d4(_0x28649d[_0x1aed86(0x29f)]), _0x469151 = _0x28649d[_0x1aed86(_0x22bed0._0x4406f0)][_0x1aed86(0x253)]('@') ? extractMentionedParticipantIds(_0x28649d[_0x1aed86(_0x22bed0._0x19aea2)], await _0x22fc67()) : [], _0xb48061 = await _0x42dc25(_0x1aed86(_0x22bed0._0x1da0ab) + _0x53d82c[_0x1aed86(0x18b)] + _0x1aed86(0x19e), {
|
|
1051
|
+
'body': JSON['stringify']({
|
|
1052
|
+
'attachment_ids': _0x28649d[_0x1aed86(0x23c)],
|
|
1053
|
+
'bodyMarkdown': _0x28649d[_0x1aed86(0x2a4)],
|
|
1054
|
+
'channelId': _0x4622d0[_0x1aed86(0x2b2)],
|
|
1055
|
+
..._0x469151[_0x1aed86(0x18c)] > 0x0 ? { 'mentionedParticipantIds': _0x469151 } : {},
|
|
1056
|
+
'threadId': _0x4622d0[_0x1aed86(0x1f8)],
|
|
1057
|
+
..._0x28649d['visibility'] ? { 'visibility': _0x28649d[_0x1aed86(_0x22bed0._0xe31487)] } : {}
|
|
1058
|
+
}),
|
|
1059
|
+
'headers': _0x3af291,
|
|
1060
|
+
'method': _0x1aed86(0x29e)
|
|
1061
|
+
});
|
|
1062
|
+
return { 'messageId': _0xb48061[_0x1aed86(0x2a1)]?.['id'] ?? '' };
|
|
1063
|
+
},
|
|
1064
|
+
async 'listSchedules'() {
|
|
1065
|
+
const _0x3be937 = _0x594dee, _0x2e0188 = await _0x42dc25(_0x3be937(_0x539570._0x18a682), {
|
|
1066
|
+
'headers': _0x3af291,
|
|
1067
|
+
'method': 'GET'
|
|
1068
|
+
});
|
|
1069
|
+
return _0x2e0188[_0x3be937(0x2a1)] ?? [];
|
|
1070
|
+
},
|
|
1071
|
+
async 'claimScheduleRun'(_0x27bf9c) {
|
|
1072
|
+
const _0x4647fa = _0x594dee, _0x7da4b8 = await _0x42dc25(_0x4647fa(_0x551a78._0x55cb6f), {
|
|
1073
|
+
'body': JSON['stringify'](_0x27bf9c),
|
|
1074
|
+
'headers': _0x3af291,
|
|
1075
|
+
'method': _0x4647fa(0x29e)
|
|
1076
|
+
});
|
|
1077
|
+
return _0x7da4b8['data'] ?? {
|
|
1078
|
+
'granted': ![],
|
|
1079
|
+
'runId': null,
|
|
1080
|
+
'schedule': null,
|
|
1081
|
+
'scheduledFor': _0x27bf9c[_0x4647fa(0x237)]
|
|
1082
|
+
};
|
|
1083
|
+
},
|
|
1084
|
+
async 'startScheduleRun'(_0x3ef557) {
|
|
1085
|
+
const _0x486ebe = _0x594dee, _0x39ea20 = await _0x42dc25(_0x486ebe(_0x2636d0._0x4e7d16) + encodeURIComponent(_0x3ef557[_0x486ebe(0x223)]) + _0x486ebe(0x214), {
|
|
1086
|
+
'body': JSON[_0x486ebe(_0x2636d0._0x51b16d)]({}),
|
|
1087
|
+
'headers': _0x3af291,
|
|
1088
|
+
'method': _0x486ebe(_0x2636d0._0x3828b3)
|
|
1089
|
+
});
|
|
1090
|
+
return _0x39ea20['data'] ?? {
|
|
1091
|
+
'claimedByDaemonId': '',
|
|
1092
|
+
'id': _0x3ef557[_0x486ebe(0x223)],
|
|
1093
|
+
'scheduleId': '',
|
|
1094
|
+
'status': _0x486ebe(0x229)
|
|
1095
|
+
};
|
|
1096
|
+
},
|
|
1097
|
+
async 'finishScheduleRun'(_0x184675) {
|
|
1098
|
+
const _0x32cf8c = _0x594dee, _0x4534a3 = await _0x42dc25(_0x32cf8c(_0x4caccf._0x481761) + encodeURIComponent(_0x184675[_0x32cf8c(_0x4caccf._0x42de35)]) + _0x32cf8c(_0x4caccf._0x4b57ae), {
|
|
1099
|
+
'body': JSON[_0x32cf8c(0x176)]({
|
|
1100
|
+
'error': _0x184675[_0x32cf8c(0x2f6)],
|
|
1101
|
+
'resultJson': _0x184675[_0x32cf8c(_0x4caccf._0x33669e)],
|
|
1102
|
+
'status': _0x184675[_0x32cf8c(_0x4caccf._0x10c817)]
|
|
1103
|
+
}),
|
|
1104
|
+
'headers': _0x3af291,
|
|
1105
|
+
'method': 'POST'
|
|
1106
|
+
});
|
|
1107
|
+
return _0x4534a3[_0x32cf8c(_0x4caccf._0x13fd4a)] ?? {
|
|
1108
|
+
'nextRunAt': null,
|
|
1109
|
+
'run': {
|
|
1110
|
+
'claimedByDaemonId': '',
|
|
1111
|
+
'id': _0x184675[_0x32cf8c(_0x4caccf._0x3f415a)],
|
|
1112
|
+
'scheduleId': '',
|
|
1113
|
+
'status': _0x184675[_0x32cf8c(0x282)]
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
},
|
|
1117
|
+
async 'listTasks'(_0x505935) {
|
|
1118
|
+
const _0x27d17d = _0x594dee, _0x7a661e = new URLSearchParams();
|
|
1119
|
+
return _0x7a661e['set'](_0x27d17d(_0x4bd307._0x29bb12), _0x505935[_0x27d17d(0x280)]), _0x505935[_0x27d17d(0x282)] && _0x7a661e['set'](_0x27d17d(_0x4bd307._0x4a20d9), _0x505935['status']), _0x115120(_0x27d17d(_0x4bd307._0x16b108) + _0x53d82c[_0x27d17d(0x18b)] + _0x27d17d(_0x4bd307._0x51d2c5) + _0x7a661e[_0x27d17d(_0x4bd307._0x28b315)](), {
|
|
1120
|
+
'headers': _0x3af291,
|
|
1121
|
+
'method': 'GET'
|
|
1122
|
+
});
|
|
1123
|
+
},
|
|
1124
|
+
async 'createTasks'(_0x81edf9) {
|
|
1125
|
+
const _0x1a2ea9 = _0x594dee;
|
|
1126
|
+
return _0x115120(_0x1a2ea9(0x16e) + _0x53d82c[_0x1a2ea9(0x18b)] + _0x1a2ea9(0x17c), {
|
|
1127
|
+
'body': JSON['stringify']({
|
|
1128
|
+
..._0x81edf9,
|
|
1129
|
+
'idempotency_key': _0x2127af(_0x1a2ea9(0x21e), _0x81edf9)
|
|
1130
|
+
}),
|
|
1131
|
+
'headers': _0x3af291,
|
|
1132
|
+
'method': _0x1a2ea9(_0x95af6b._0x1075b2)
|
|
1133
|
+
});
|
|
1134
|
+
},
|
|
1135
|
+
async 'claimTasks'(_0x42074e) {
|
|
1136
|
+
const _0x2ee5cf = _0x594dee;
|
|
1137
|
+
return _0x115120(_0x2ee5cf(0x16e) + _0x53d82c[_0x2ee5cf(0x18b)] + _0x2ee5cf(_0xf1496e._0xadf524), {
|
|
1138
|
+
'body': JSON['stringify']({
|
|
1139
|
+
..._0x42074e,
|
|
1140
|
+
'idempotency_key': _0x2127af(_0x2ee5cf(0x2af), _0x42074e)
|
|
1141
|
+
}),
|
|
1142
|
+
'headers': _0x3af291,
|
|
1143
|
+
'method': _0x2ee5cf(0x29e)
|
|
1144
|
+
});
|
|
1145
|
+
},
|
|
1146
|
+
async 'unclaimTask'(_0x391f56) {
|
|
1147
|
+
const _0x3db989 = _0x594dee;
|
|
1148
|
+
return _0x115120(_0x3db989(0x16e) + _0x53d82c[_0x3db989(0x18b)] + '/tasks/unclaim', {
|
|
1149
|
+
'body': JSON[_0x3db989(0x176)]({
|
|
1150
|
+
..._0x391f56,
|
|
1151
|
+
'idempotency_key': _0x2127af(_0x3db989(0x2a7), _0x391f56)
|
|
1152
|
+
}),
|
|
1153
|
+
'headers': _0x3af291,
|
|
1154
|
+
'method': _0x3db989(_0x69dd89._0x3243db)
|
|
1155
|
+
});
|
|
1156
|
+
},
|
|
1157
|
+
async 'updateTaskStatus'(_0x2b4b00) {
|
|
1158
|
+
const _0xacb699 = _0x594dee;
|
|
1159
|
+
return _0x115120('/internal/agent/' + _0x53d82c[_0xacb699(_0xe4f289._0x27696f)] + '/tasks/update-status', {
|
|
1160
|
+
'body': JSON['stringify']({
|
|
1161
|
+
..._0x2b4b00,
|
|
1162
|
+
'idempotency_key': _0x2127af(_0xacb699(_0xe4f289._0x22e930), _0x2b4b00)
|
|
1163
|
+
}),
|
|
1164
|
+
'headers': _0x3af291,
|
|
1165
|
+
'method': _0xacb699(_0xe4f289._0x4701fa)
|
|
1166
|
+
});
|
|
1167
|
+
},
|
|
1168
|
+
async 'uploadFile'(_0x5e009a) {
|
|
1169
|
+
const _0xaa419c = _0x594dee, _0xed3041 = await _0x4fc7d4(_0x5e009a[_0xaa419c(0x280)]);
|
|
1170
|
+
if (_0xed3041['threadId'])
|
|
1171
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1172
|
+
const _0x50058d = await _0x42dc25('/internal/agent/' + _0x53d82c['agentId'] + _0xaa419c(0x1ed), {
|
|
1173
|
+
'body': JSON[_0xaa419c(0x176)]({
|
|
1174
|
+
'channel': _0xed3041[_0xaa419c(_0x408d14._0x1d519a)],
|
|
1175
|
+
'contentBase64': _0x5e009a['contentBase64'],
|
|
1176
|
+
'contentType': _0x5e009a[_0xaa419c(0x2b7)],
|
|
1177
|
+
'originalFilename': _0x5e009a[_0xaa419c(0x204)]
|
|
1178
|
+
}),
|
|
1179
|
+
'headers': _0x3af291,
|
|
1180
|
+
'method': _0xaa419c(_0x408d14._0x4d09d)
|
|
1181
|
+
});
|
|
1182
|
+
return {
|
|
1183
|
+
'attachmentId': _0x50058d['data']?.['id'] ?? '',
|
|
1184
|
+
'filename': _0x50058d['data']?.['originalFilename'] ?? _0x5e009a[_0xaa419c(0x204)],
|
|
1185
|
+
'sizeBytes': _0x50058d[_0xaa419c(_0x408d14._0x351481)]?.[_0xaa419c(0x1cc)] ?? 0x0
|
|
1186
|
+
};
|
|
1187
|
+
},
|
|
1188
|
+
async 'downloadAttachment'(_0x333752) {
|
|
1189
|
+
const _0x467cd2 = _0x594dee, _0x993ede = await _0x42dc25('/api/attachments/' + _0x333752, {
|
|
1190
|
+
'headers': _0x3af291,
|
|
1191
|
+
'method': _0x467cd2(0x24f)
|
|
1192
|
+
}), _0x3753c4 = new AbortController(), _0x30d686 = setTimeout(() => _0x3753c4[_0x467cd2(0x1f0)](), _0x53ec68);
|
|
1193
|
+
try {
|
|
1194
|
+
const _0x149392 = await _0x53f07d(_0x6fad2a + _0x467cd2(0x2a3) + _0x333752 + '/content', {
|
|
1195
|
+
'headers': _0x3af291,
|
|
1196
|
+
'method': 'GET',
|
|
1197
|
+
'signal': _0x3753c4[_0x467cd2(_0x103cce._0x468dbb)]
|
|
1198
|
+
});
|
|
1199
|
+
if (!_0x149392['ok'])
|
|
1200
|
+
throw new Error(_0x467cd2(_0x103cce._0x170d1f) + _0x149392['status']);
|
|
1201
|
+
return {
|
|
1202
|
+
'contentType': _0x993ede['data']?.['contentType'] ?? _0x149392['headers'][_0x467cd2(0x185)]('content-type') ?? _0x467cd2(_0x103cce._0x2cdd81),
|
|
1203
|
+
'data': Buffer[_0x467cd2(0x278)](await _0x149392['arrayBuffer']()),
|
|
1204
|
+
'originalFilename': _0x993ede[_0x467cd2(_0x103cce._0x2d65c2)]?.['originalFilename']
|
|
1205
|
+
};
|
|
1206
|
+
} finally {
|
|
1207
|
+
clearTimeout(_0x30d686);
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
async 'listServer'() {
|
|
1211
|
+
return _0x22fc67({ 'forceRefresh': !![] });
|
|
1212
|
+
},
|
|
1213
|
+
async 'readHistory'(_0xa8c4c3) {
|
|
1214
|
+
const _0x4a9d18 = _0x594dee, _0x3dbba4 = await _0x4fc7d4(_0xa8c4c3['channel']);
|
|
1215
|
+
return _0xcbf84e({
|
|
1216
|
+
'after': _0xa8c4c3[_0x4a9d18(_0x5265ec._0x81cba4)],
|
|
1217
|
+
'before': _0xa8c4c3[_0x4a9d18(0x297)],
|
|
1218
|
+
'channelId': _0x3dbba4[_0x4a9d18(0x2b2)],
|
|
1219
|
+
'channelTarget': _0x3dbba4[_0x4a9d18(0x29f)],
|
|
1220
|
+
'limit': _0xa8c4c3['limit'],
|
|
1221
|
+
'threadId': _0x3dbba4[_0x4a9d18(0x1f8)]
|
|
1222
|
+
});
|
|
1223
|
+
},
|
|
1224
|
+
'resolveTarget': _0x4fc7d4,
|
|
1225
|
+
async 'checkMessages'() {
|
|
1226
|
+
const _0x556b3f = _0x594dee, _0x1fc16b = new URLSearchParams();
|
|
1227
|
+
_0x1fc16b[_0x556b3f(_0x157e73._0x16ac0c)]('afterSeq', String(_0x6231ff));
|
|
1228
|
+
const _0x5355b8 = _0x1fc16b['toString'](), _0x23cb02 = await _0x42dc25(_0x556b3f(0x16e) + _0x53d82c['agentId'] + _0x556b3f(_0x157e73._0x1f5f72) + (_0x5355b8 ? '?' + _0x5355b8 : ''), {
|
|
1229
|
+
'headers': _0x3af291,
|
|
1230
|
+
'method': _0x556b3f(0x24f)
|
|
1231
|
+
}), _0xfc1f5a = _0x23cb02[_0x556b3f(_0x157e73._0x332779)] ?? [], _0xdc44f2 = _0x23cb02[_0x556b3f(_0x157e73._0x354b35)]?.['cursor'], _0x1d8743 = _0xdc44f2 !== void 0x0 ? Math['max'](_0x6231ff, _0xdc44f2) : _0xfc1f5a[_0x556b3f(_0x157e73._0x552646)] > 0x0 ? Math[_0x556b3f(0x2ec)](_0x6231ff, _0xfc1f5a[_0xfc1f5a[_0x556b3f(_0x157e73._0x552646)] - 0x1][_0x556b3f(_0x157e73._0xb08ce1)]) : _0x6231ff, _0x193414 = _0xfc1f5a[_0x556b3f(_0x157e73._0x21196a)](_0x4dd86c => _0x4dd86c[_0x556b3f(0x197)] === _0x556b3f(0x284)), _0x126917 = _0x4ed3a6 === void 0x0 && _0x1f49fe;
|
|
1232
|
+
let _0x630001 = await _0x22fc67(), _0x522446 = new Map(_0x630001[_0x556b3f(0x28c)][_0x556b3f(_0x157e73._0x45fd23)](_0x47b1bd => [
|
|
1233
|
+
_0x47b1bd['id'],
|
|
1234
|
+
_0x47b1bd
|
|
1235
|
+
]));
|
|
1236
|
+
const _0x5ca6d2 = _0x193414[_0x556b3f(0x2ad)](_0x16d312 => {
|
|
1237
|
+
const _0x781835 = _0x556b3f, _0x1eecae = asRecord(_0x16d312[_0x781835(0x25c)]), _0x53f2af = typeof _0x1eecae?.[_0x781835(0x2b2)] === _0x781835(0x1ff) ? _0x1eecae[_0x781835(0x2b2)] : '';
|
|
1238
|
+
return Boolean(_0x53f2af) && !_0x522446[_0x781835(0x2e4)](_0x53f2af);
|
|
1239
|
+
});
|
|
1240
|
+
_0x5ca6d2 && (_0x630001 = await _0x22fc67({ 'forceRefresh': !![] }), _0x522446 = new Map(_0x630001[_0x556b3f(0x28c)][_0x556b3f(0x258)](_0x1ea4a0 => [
|
|
1241
|
+
_0x1ea4a0['id'],
|
|
1242
|
+
_0x1ea4a0
|
|
1243
|
+
])));
|
|
1244
|
+
const _0x346564 = new Map();
|
|
1245
|
+
for (const _0x187596 of _0x193414) {
|
|
1246
|
+
const _0x3d72df = asRecord(_0x187596[_0x556b3f(_0x157e73._0x35764d)]), _0xd91e7 = typeof _0x3d72df[_0x556b3f(0x2b2)] === _0x556b3f(0x1ff) ? _0x3d72df['channelId'] : '';
|
|
1247
|
+
if (!_0xd91e7)
|
|
1248
|
+
continue;
|
|
1249
|
+
const _0x3bec8f = typeof _0x3d72df['threadId'] === _0x556b3f(_0x157e73._0x4e7498) ? _0x3d72df[_0x556b3f(0x1f8)] : void 0x0, _0x34080a = typeof _0x3d72df['rootMessageId'] === _0x556b3f(_0x157e73._0x4e7498) ? _0x3d72df[_0x556b3f(0x1cf)] : void 0x0, _0x4e09dc = typeof _0x3d72df[_0x556b3f(_0x157e73._0x1c8c72)] === _0x556b3f(_0x157e73._0x2a93f6) && Number[_0x556b3f(_0x157e73._0xe82216)](_0x3d72df['threadNumber']) ? _0x3d72df[_0x556b3f(_0x157e73._0x1c8c72)] : void 0x0, _0xb16f91 = Boolean(_0x3bec8f && (!_0x34080a || _0x187596[_0x556b3f(_0x157e73._0x3ee79c)] !== _0x34080a)), _0x38d09f = _0xb16f91 ? _0xd91e7 + ':' + _0x3bec8f : _0xd91e7, _0x3cd393 = _0x346564[_0x556b3f(0x185)](_0x38d09f) ?? {
|
|
1250
|
+
'aggregateIds': [],
|
|
1251
|
+
'channelId': _0xd91e7,
|
|
1252
|
+
'entries': new Map(),
|
|
1253
|
+
'isThreadReply': _0xb16f91,
|
|
1254
|
+
'rootMessageId': _0x34080a,
|
|
1255
|
+
'threadNumber': _0x4e09dc,
|
|
1256
|
+
'threadId': _0xb16f91 ? _0x3bec8f : void 0x0
|
|
1257
|
+
};
|
|
1258
|
+
_0x3cd393[_0x556b3f(_0x157e73._0x11a1b0)] == null && _0x4e09dc != null && (_0x3cd393[_0x556b3f(_0x157e73._0x51246)] = _0x4e09dc), !_0x3cd393['rootMessageId'] && _0x34080a && (_0x3cd393[_0x556b3f(0x1cf)] = _0x34080a), _0x3cd393[_0x556b3f(_0x157e73._0x567d8b)][_0x556b3f(_0x157e73._0x2f1a75)](_0x187596['aggregateId']), _0x3cd393[_0x556b3f(0x1d9)][_0x556b3f(_0x157e73._0x4b22dc)](_0x187596[_0x556b3f(0x2ea)], {
|
|
1259
|
+
'payloadJson': _0x187596[_0x556b3f(0x25c)],
|
|
1260
|
+
'seq': _0x187596[_0x556b3f(0x268)]
|
|
1261
|
+
}), _0x346564['set'](_0x38d09f, _0x3cd393);
|
|
1262
|
+
}
|
|
1263
|
+
const _0x3f46e2 = [];
|
|
1264
|
+
for (const _0x5502e7 of _0x346564['values']()) {
|
|
1265
|
+
const {
|
|
1266
|
+
channelId: _0x1177d5,
|
|
1267
|
+
threadId: _0x4e1740,
|
|
1268
|
+
rootMessageId: _0x150cec,
|
|
1269
|
+
threadNumber: _0x2067ca,
|
|
1270
|
+
aggregateIds: _0x1f7bf1,
|
|
1271
|
+
isThreadReply: _0x155341,
|
|
1272
|
+
entries: _0xa958b
|
|
1273
|
+
} = _0x5502e7, _0x35196f = _0x522446[_0x556b3f(_0x157e73._0x571a70)](_0x1177d5), _0x52b22a = _0x35196f?.[_0x556b3f(0x2bc)] ?? _0x1177d5, _0x45aa23 = _0x35196f?.[_0x556b3f(_0x157e73._0x555772)] === 'dm' ? _0x556b3f(0x230) + _0x52b22a : '#' + _0x52b22a, _0x146314 = {
|
|
1274
|
+
'channelTarget': _0x45aa23,
|
|
1275
|
+
'rootMessageId': _0x150cec,
|
|
1276
|
+
'threadId': _0x4e1740,
|
|
1277
|
+
'threadNumber': _0x2067ca
|
|
1278
|
+
}, _0x1a0b0e = await _0xcbf84e({
|
|
1279
|
+
'channelId': _0x1177d5,
|
|
1280
|
+
'channelTarget': _0x45aa23,
|
|
1281
|
+
'limit': Math['max'](_0x1f7bf1['length'], 0x32),
|
|
1282
|
+
'threadId': _0x4e1740
|
|
1283
|
+
}), _0x35e654 = new Map(_0x1a0b0e[_0x556b3f(_0x157e73._0x4f9ba2)]['map'](_0x6d27b5 => [
|
|
1284
|
+
_0x6d27b5[_0x556b3f(0x299)],
|
|
1285
|
+
_0x6d27b5
|
|
1286
|
+
])), _0x3dd4e7 = _0x4e1740 ? _0x12983f(_0x146314) : _0x45aa23, _0x4d88da = _0x4ed3a6 ? _0x155341 && _0x56affa(_0x4ed3a6, _0x146314) : !![], _0x102691 = _0x155341 ? _0x4d88da && _0x4ed3a6 ? _0x4ed3a6 : _0x3dd4e7 : _0x45aa23;
|
|
1287
|
+
for (const _0x55658b of _0x1f7bf1) {
|
|
1288
|
+
if (!_0x4d88da)
|
|
1289
|
+
continue;
|
|
1290
|
+
const _0x51ed5c = _0xa958b[_0x556b3f(0x185)](_0x55658b), _0x5af44e = _0x51ed5c ? asRecord(_0x51ed5c[_0x556b3f(_0x157e73._0x35764d)]) : void 0x0, _0x159829 = _0x5af44e?.[_0x556b3f(_0x157e73._0x357f8d)] === _0x556b3f(_0x157e73._0x3b9d12);
|
|
1291
|
+
if (_0x126917 && _0x159829)
|
|
1292
|
+
continue;
|
|
1293
|
+
const _0x258059 = _0x35e654['get'](_0x55658b);
|
|
1294
|
+
if (_0x258059) {
|
|
1295
|
+
_0x3f46e2['push']({
|
|
1296
|
+
'attachments': _0x258059[_0x556b3f(0x19a)],
|
|
1297
|
+
'content': _0x258059[_0x556b3f(0x2a4)],
|
|
1298
|
+
'createdAt': _0x258059[_0x556b3f(_0x157e73._0x3b4dd6)],
|
|
1299
|
+
..._0x258059[_0x556b3f(0x1f9)] ? { 'kind': _0x258059['kind'] } : {},
|
|
1300
|
+
'messageId': _0x258059[_0x556b3f(_0x157e73._0x576c4b)],
|
|
1301
|
+
'senderName': _0x258059['senderName'],
|
|
1302
|
+
'senderType': _0x258059['senderType'],
|
|
1303
|
+
'target': _0x102691,
|
|
1304
|
+
..._0x159829 ? { 'targetedTask': !![] } : {}
|
|
1305
|
+
});
|
|
1306
|
+
continue;
|
|
1307
|
+
}
|
|
1308
|
+
if (_0x51ed5c) {
|
|
1309
|
+
const _0x5adbc5 = typeof _0x5af44e?.[_0x556b3f(0x1bd)] === _0x556b3f(_0x157e73._0x4e7498) ? _0x5af44e[_0x556b3f(0x1bd)] : '', _0x467406 = typeof _0x5af44e?.[_0x556b3f(0x234)] === _0x556b3f(_0x157e73._0x4e7498) ? _0x5af44e[_0x556b3f(_0x157e73._0x47a572)] : '', _0x3ce5bd = typeof _0x5af44e?.['kind'] === 'string' && _0x5af44e['kind'] !== 'chat' ? _0x5af44e[_0x556b3f(0x1f9)] : void 0x0;
|
|
1310
|
+
_0x5adbc5 && _0x467406 && _0x3f46e2['push']({
|
|
1311
|
+
'attachments': [],
|
|
1312
|
+
'content': _0x467406,
|
|
1313
|
+
'createdAt': new Date()[_0x556b3f(_0x157e73._0xd9a9)](),
|
|
1314
|
+
..._0x3ce5bd ? { 'kind': _0x3ce5bd } : {},
|
|
1315
|
+
'messageId': _0x55658b,
|
|
1316
|
+
'senderName': _0x5adbc5,
|
|
1317
|
+
'senderType': _0x2d71ec(_0x5adbc5, _0x630001),
|
|
1318
|
+
'target': _0x102691,
|
|
1319
|
+
..._0x159829 ? { 'targetedTask': !![] } : {}
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
if (_0x1d8743 > 0x0) {
|
|
1325
|
+
if (_0x4ac62d)
|
|
1326
|
+
await _0x2cae15(_0x1d8743);
|
|
1327
|
+
else
|
|
1328
|
+
_0x1a319c && await _0xfabbf7(_0x1d8743);
|
|
1329
|
+
}
|
|
1330
|
+
return _0x1d8743 > _0x6231ff && (_0x6231ff = _0x1d8743), { 'messages': _0x4ed3a6 ? _0x3f46e2 : _0x126917 ? _0x3f46e2['filter'](_0xebf9b3 => _0xebf9b3[_0x556b3f(0x231)] !== !![]) : _0x3f46e2 };
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
}
|
|
1334
|
+
function toLocalTime(_0x347ba6) {
|
|
1335
|
+
const _0x20dddb = {
|
|
1336
|
+
_0x151c01: 0x1a3,
|
|
1337
|
+
_0x1bb532: 0x17b,
|
|
1338
|
+
_0xbb6c7b: 0x2a2
|
|
1339
|
+
}, _0x505ae7 = _0xbabd6a, _0x4be313 = new Date(_0x347ba6);
|
|
1340
|
+
if (Number[_0x505ae7(_0x20dddb._0x151c01)](_0x4be313[_0x505ae7(0x1dc)]()))
|
|
1341
|
+
return _0x347ba6;
|
|
1342
|
+
const _0x851b87 = _0x494df7 => String(_0x494df7)[_0x505ae7(0x1e9)](0x2, '0');
|
|
1343
|
+
return _0x4be313['getFullYear']() + '-' + _0x851b87(_0x4be313[_0x505ae7(0x2c3)]() + 0x1) + '-' + _0x851b87(_0x4be313[_0x505ae7(_0x20dddb._0x1bb532)]()) + '\x20' + _0x851b87(_0x4be313[_0x505ae7(0x1dd)]()) + ':' + _0x851b87(_0x4be313[_0x505ae7(0x1c2)]()) + ':' + _0x851b87(_0x4be313[_0x505ae7(_0x20dddb._0xbb6c7b)]());
|
|
1344
|
+
}
|
|
1345
|
+
function formatAttachmentSuffix(_0x4a72fb) {
|
|
1346
|
+
const _0x49f332 = { _0x6318e1: 0x18c }, _0xe284c8 = _0xbabd6a;
|
|
1347
|
+
if (!_0x4a72fb || _0x4a72fb['length'] === 0x0)
|
|
1348
|
+
return '';
|
|
1349
|
+
return '\x20[' + _0x4a72fb[_0xe284c8(0x18c)] + '\x20attachment' + (_0x4a72fb[_0xe284c8(_0x49f332._0x6318e1)] > 0x1 ? 's' : '') + ':\x20' + _0x4a72fb[_0xe284c8(0x258)](_0x35a2b9 => _0x35a2b9[_0xe284c8(0x204)] + _0xe284c8(0x211) + _0x35a2b9['id'] + ')')[_0xe284c8(0x1d4)](',\x20') + _0xe284c8(0x1b1);
|
|
1350
|
+
}
|
|
1351
|
+
function formatCheckMessages(_0x12b2d5) {
|
|
1352
|
+
const _0x3ae296 = { _0x36eb78: 0x1c8 }, _0x16f73f = {
|
|
1353
|
+
_0x2f33ba: 0x1bb,
|
|
1354
|
+
_0x319fc0: 0x189,
|
|
1355
|
+
_0x168504: 0x1f9,
|
|
1356
|
+
_0x5d78cb: 0x1af,
|
|
1357
|
+
_0x1d4f09: 0x1da,
|
|
1358
|
+
_0x20d0b4: 0x1e8,
|
|
1359
|
+
_0x281c60: 0x19a
|
|
1360
|
+
}, _0x2cccb5 = _0xbabd6a;
|
|
1361
|
+
if (_0x12b2d5[_0x2cccb5(0x18c)] === 0x0)
|
|
1362
|
+
return _0x2cccb5(_0x3ae296._0x36eb78);
|
|
1363
|
+
return _0x12b2d5['map'](_0x40e7bc => {
|
|
1364
|
+
const _0x454497 = _0x2cccb5, _0x27344b = _0x40e7bc[_0x454497(_0x16f73f._0x2f33ba)] === _0x454497(_0x16f73f._0x319fc0) ? '\x20type=agent' : '', _0x4144ae = _0x40e7bc['kind'] && _0x40e7bc[_0x454497(_0x16f73f._0x168504)] !== _0x454497(_0x16f73f._0x5d78cb) ? _0x454497(_0x16f73f._0x1d4f09) + _0x40e7bc['kind'] : '';
|
|
1365
|
+
return _0x454497(0x2bf) + _0x40e7bc['target'] + '\x20msg=' + _0x40e7bc['messageId'][_0x454497(_0x16f73f._0x20d0b4)](0x0, 0x8) + _0x454497(0x1f1) + toLocalTime(_0x40e7bc[_0x454497(0x261)]) + _0x27344b + _0x4144ae + _0x454497(0x23e) + _0x40e7bc[_0x454497(0x251)] + ':\x20' + _0x40e7bc[_0x454497(0x2a4)] + formatAttachmentSuffix(_0x40e7bc[_0x454497(_0x16f73f._0x281c60)]);
|
|
1366
|
+
})['join']('\x0a');
|
|
1367
|
+
}
|
|
1368
|
+
function formatHistory(_0x2a8560) {
|
|
1369
|
+
const _0x17bcab = {
|
|
1370
|
+
_0x32de45: 0x2b1,
|
|
1371
|
+
_0x3282c1: 0x258,
|
|
1372
|
+
_0x1e61ad: 0x1f5,
|
|
1373
|
+
_0x2e1192: 0x18c,
|
|
1374
|
+
_0x368da6: 0x2e7,
|
|
1375
|
+
_0x267fdb: 0x213,
|
|
1376
|
+
_0x277109: 0x27f,
|
|
1377
|
+
_0x5ba165: 0x219
|
|
1378
|
+
}, _0x2a89a8 = {
|
|
1379
|
+
_0xc6138d: 0x1a7,
|
|
1380
|
+
_0x5f49c1: 0x1f9,
|
|
1381
|
+
_0x149940: 0x1af,
|
|
1382
|
+
_0x6e127e: 0x1f9,
|
|
1383
|
+
_0x1d560a: 0x241,
|
|
1384
|
+
_0x240cdd: 0x299,
|
|
1385
|
+
_0x3bf0af: 0x1f1,
|
|
1386
|
+
_0x10652c: 0x19a
|
|
1387
|
+
}, _0x5ec938 = _0xbabd6a;
|
|
1388
|
+
if (_0x2a8560[_0x5ec938(0x219)][_0x5ec938(0x18c)] === 0x0)
|
|
1389
|
+
return '##\x20Message\x20History\x20for\x20' + _0x2a8560['channel'] + _0x5ec938(_0x17bcab._0x32de45);
|
|
1390
|
+
const _0x2547fa = _0x2a8560[_0x5ec938(0x219)][_0x5ec938(_0x17bcab._0x3282c1)](_0x65e140 => {
|
|
1391
|
+
const _0x37e654 = _0x5ec938, _0x301e83 = _0x65e140[_0x37e654(0x1bb)] === 'agent' ? _0x37e654(_0x2a89a8._0xc6138d) : '', _0xd490c0 = _0x65e140[_0x37e654(_0x2a89a8._0x5f49c1)] && _0x65e140['kind'] !== _0x37e654(_0x2a89a8._0x149940) ? '\x20kind=' + _0x65e140[_0x37e654(_0x2a89a8._0x6e127e)] : '';
|
|
1392
|
+
return _0x37e654(_0x2a89a8._0x1d560a) + _0x65e140[_0x37e654(0x268)] + '\x20msg=' + _0x65e140[_0x37e654(_0x2a89a8._0x240cdd)] + _0x37e654(_0x2a89a8._0x3bf0af) + toLocalTime(_0x65e140['createdAt']) + _0x301e83 + _0xd490c0 + ']\x20@' + _0x65e140[_0x37e654(0x251)] + ':\x20' + _0x65e140[_0x37e654(0x2a4)] + formatAttachmentSuffix(_0x65e140[_0x37e654(_0x2a89a8._0x10652c)]);
|
|
1393
|
+
})[_0x5ec938(0x1d4)]('\x0a'), _0x265fd7 = _0x2a8560[_0x5ec938(0x226)] && _0x2a8560[_0x5ec938(0x213)] ? _0x5ec938(_0x17bcab._0x1e61ad) + _0x2a8560['messages'][_0x5ec938(_0x17bcab._0x2e1192)] + _0x5ec938(_0x17bcab._0x368da6) + _0x2a8560[_0x5ec938(_0x17bcab._0x267fdb)] + _0x5ec938(0x2f5) : '';
|
|
1394
|
+
return _0x5ec938(_0x17bcab._0x277109) + _0x2a8560[_0x5ec938(0x280)] + '\x20(' + _0x2a8560[_0x5ec938(_0x17bcab._0x5ba165)]['length'] + _0x5ec938(0x222) + _0x2547fa + _0x265fd7;
|
|
1395
|
+
}
|
|
1396
|
+
function formatServerDirectory(_0x2b9a6f) {
|
|
1397
|
+
const _0x562ef3 = {
|
|
1398
|
+
_0x1a15e0: 0x28c,
|
|
1399
|
+
_0x5134b9: 0x18c,
|
|
1400
|
+
_0x43b7ac: 0x21c,
|
|
1401
|
+
_0x1f21b3: 0x258,
|
|
1402
|
+
_0x1285e4: 0x18c,
|
|
1403
|
+
_0x1b9366: 0x29a,
|
|
1404
|
+
_0x4a16db: 0x217,
|
|
1405
|
+
_0x718158: 0x202,
|
|
1406
|
+
_0xf201eb: 0x26f
|
|
1407
|
+
}, _0x154c47 = _0xbabd6a, _0x1c141a = _0x2b9a6f[_0x154c47(_0x562ef3._0x1a15e0)][_0x154c47(_0x562ef3._0x5134b9)] > 0x0 ? _0x2b9a6f[_0x154c47(_0x562ef3._0x1a15e0)][_0x154c47(0x258)](_0x24fc43 => _0x24fc43[_0x154c47(0x215)] ? _0x154c47(0x2aa) + _0x24fc43['name'] + _0x154c47(0x191) + _0x24fc43[_0x154c47(0x215)] : '-\x20#' + _0x24fc43[_0x154c47(0x2bc)])['join']('\x0a') : _0x154c47(_0x562ef3._0x43b7ac), _0x386b38 = _0x2b9a6f[_0x154c47(0x175)][_0x154c47(0x18c)] > 0x0 ? _0x2b9a6f['agents'][_0x154c47(_0x562ef3._0x1f21b3)](_0x2261df => '-\x20@' + _0x2261df[_0x154c47(0x2bc)])['join']('\x0a') : _0x154c47(_0x562ef3._0x43b7ac), _0x2d36ad = _0x2b9a6f[_0x154c47(0x29a)][_0x154c47(_0x562ef3._0x1285e4)] > 0x0 ? _0x2b9a6f[_0x154c47(_0x562ef3._0x1b9366)]['map'](_0x411db3 => _0x154c47(0x1ee) + _0x411db3[_0x154c47(0x2bc)])[_0x154c47(0x1d4)]('\x0a') : _0x154c47(_0x562ef3._0x43b7ac);
|
|
1408
|
+
return [
|
|
1409
|
+
_0x154c47(_0x562ef3._0x4a16db) + _0x2b9a6f['serverName'],
|
|
1410
|
+
'',
|
|
1411
|
+
_0x154c47(_0x562ef3._0x718158),
|
|
1412
|
+
_0x1c141a,
|
|
1413
|
+
'',
|
|
1414
|
+
_0x154c47(0x1ba),
|
|
1415
|
+
_0x386b38,
|
|
1416
|
+
'',
|
|
1417
|
+
_0x154c47(_0x562ef3._0xf201eb),
|
|
1418
|
+
_0x2d36ad
|
|
1419
|
+
][_0x154c47(0x1d4)]('\x0a');
|
|
1420
|
+
}
|
|
1421
|
+
function formatUploadResult(_0x2f0364) {
|
|
1422
|
+
const _0x24910d = {
|
|
1423
|
+
_0x2755df: 0x204,
|
|
1424
|
+
_0xdad5aa: 0x1cc,
|
|
1425
|
+
_0x267c6d: 0x26b
|
|
1426
|
+
}, _0x3d727b = _0xbabd6a;
|
|
1427
|
+
return _0x3d727b(0x2c0) + _0x2f0364[_0x3d727b(_0x24910d._0x2755df)] + '\x20(' + (_0x2f0364[_0x3d727b(_0x24910d._0xdad5aa)] / 0x400)[_0x3d727b(0x188)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x2f0364[_0x3d727b(_0x24910d._0x267c6d)] + _0x3d727b(0x2a8);
|
|
1428
|
+
}
|
|
1429
|
+
function formatViewFileResult(_0x23f561, _0x567b92) {
|
|
1430
|
+
const _0x3c4840 = _0xbabd6a;
|
|
1431
|
+
return _0x567b92 ? _0x3c4840(0x1b0) + _0x23f561 : 'Downloaded\x20to:\x20' + _0x23f561;
|
|
1432
|
+
}
|
|
1433
|
+
function formatTaskList(_0x30343b, _0x4be083) {
|
|
1434
|
+
const _0x18ab24 = { _0x5c7360: 0x258 }, _0x4b0ca3 = {
|
|
1435
|
+
_0x5b021e: 0x2c7,
|
|
1436
|
+
_0x6639d: 0x2c7,
|
|
1437
|
+
_0x3a1d17: 0x233
|
|
1438
|
+
}, _0x2e391b = _0xbabd6a;
|
|
1439
|
+
if (_0x30343b[_0x2e391b(0x18c)] === 0x0)
|
|
1440
|
+
return _0x2e391b(0x249);
|
|
1441
|
+
return _0x30343b[_0x2e391b(_0x18ab24._0x5c7360)](_0x115aa7 => {
|
|
1442
|
+
const _0x106eeb = _0x2e391b, _0x5e4d57 = _0x115aa7['taskNumber'] == null ? '(legacy)' : '#' + _0x115aa7[_0x106eeb(_0x4b0ca3._0x5b021e)], _0x2b5dd6 = _0x115aa7[_0x106eeb(0x299)] ? _0x106eeb(0x1c1) + _0x115aa7[_0x106eeb(0x299)] : '', _0x22252f = _0x4be083 && _0x115aa7[_0x106eeb(_0x4b0ca3._0x6639d)] != null && _0x4be083['has'](_0x115aa7['taskNumber']) ? _0x106eeb(_0x4b0ca3._0x3a1d17) : '';
|
|
1443
|
+
return _0x5e4d57 + '\x20[' + _0x115aa7[_0x106eeb(0x282)] + ']\x20' + _0x115aa7[_0x106eeb(0x1e6)] + _0x2b5dd6 + _0x22252f;
|
|
1444
|
+
})['join']('\x0a');
|
|
1445
|
+
}
|
|
1446
|
+
function formatCreatedTasks(_0x391a9c) {
|
|
1447
|
+
const _0x9ecc30 = {
|
|
1448
|
+
_0x6558ad: 0x212,
|
|
1449
|
+
_0x52a575: 0x1d4
|
|
1450
|
+
}, _0x251be4 = { _0x2d77a3: 0x1c5 }, _0x4f791c = _0xbabd6a;
|
|
1451
|
+
if (_0x391a9c['length'] === 0x0)
|
|
1452
|
+
return _0x4f791c(_0x9ecc30._0x6558ad);
|
|
1453
|
+
return _0x391a9c['map'](_0x4f7e66 => {
|
|
1454
|
+
const _0x5ad26b = _0x4f791c, _0x8b25dc = _0x4f7e66[_0x5ad26b(0x2c7)] == null ? _0x5ad26b(_0x251be4._0x2d77a3) : '#' + _0x4f7e66[_0x5ad26b(0x2c7)];
|
|
1455
|
+
return _0x8b25dc + '\x20' + _0x4f7e66['title'] + '\x20message=' + _0x4f7e66['messageId'];
|
|
1456
|
+
})[_0x4f791c(_0x9ecc30._0x52a575)]('\x0a');
|
|
1457
|
+
}
|
|
1458
|
+
function formatClaimTaskResults(_0x194d92) {
|
|
1459
|
+
const _0x4e394d = { _0x44a2fb: 0x1d4 }, _0x8bfb75 = {
|
|
1460
|
+
_0x321fe9: 0x299,
|
|
1461
|
+
_0x4111ea: 0x27d,
|
|
1462
|
+
_0x143713: 0x22a,
|
|
1463
|
+
_0x3b4c00: 0x17a,
|
|
1464
|
+
_0x3512ef: 0x23f,
|
|
1465
|
+
_0x49c558: 0x1e4,
|
|
1466
|
+
_0x41e009: 0x2e9,
|
|
1467
|
+
_0x1b5488: 0x23d,
|
|
1468
|
+
_0x1df91a: 0x247,
|
|
1469
|
+
_0x46d463: 0x2c7,
|
|
1470
|
+
_0x465190: 0x299,
|
|
1471
|
+
_0x1f7203: 0x23b,
|
|
1472
|
+
_0x1d0219: 0x270
|
|
1473
|
+
}, _0x6df03a = _0xbabd6a;
|
|
1474
|
+
if (_0x194d92[_0x6df03a(0x18c)] === 0x0)
|
|
1475
|
+
return 'No\x20tasks\x20claimed.';
|
|
1476
|
+
return _0x194d92['map'](_0x517abc => {
|
|
1477
|
+
const _0x187d94 = _0x6df03a;
|
|
1478
|
+
if (_0x517abc['success']) {
|
|
1479
|
+
const _0xb9d1d0 = _0x517abc['taskNumber'] == null ? _0x187d94(0x1c5) : '#' + _0x517abc['taskNumber'], _0x1ded1a = _0x517abc['messageId'] ? _0x187d94(0x1c1) + _0x517abc[_0x187d94(_0x8bfb75._0x321fe9)] : '';
|
|
1480
|
+
if (_0x517abc['workerHandoff']) {
|
|
1481
|
+
const _0x45326 = [
|
|
1482
|
+
'workerHandoff=true',
|
|
1483
|
+
_0x517abc[_0x187d94(0x27b)] ? _0x187d94(_0x8bfb75._0x4111ea) : null,
|
|
1484
|
+
_0x517abc[_0x187d94(0x1b6)] ? _0x187d94(_0x8bfb75._0x143713) + _0x517abc['executionMode'] : null,
|
|
1485
|
+
_0x517abc[_0x187d94(_0x8bfb75._0x3b4c00)] ? _0x187d94(_0x8bfb75._0x3512ef) + _0x517abc[_0x187d94(0x17a)] : null,
|
|
1486
|
+
_0x517abc[_0x187d94(0x17f)] ? _0x187d94(_0x8bfb75._0x49c558) + _0x517abc['workerDisposition'] : null
|
|
1487
|
+
][_0x187d94(_0x8bfb75._0x41e009)](Boolean)[_0x187d94(0x1d4)]('\x20');
|
|
1488
|
+
return _0xb9d1d0 + _0x187d94(_0x8bfb75._0x1b5488) + _0x1ded1a + '\x20' + _0x45326 + _0x187d94(_0x8bfb75._0x1df91a);
|
|
1489
|
+
}
|
|
1490
|
+
const _0x3a9e63 = _0x517abc[_0x187d94(0x193)] ? _0x187d94(0x2ac) + _0x517abc[_0x187d94(0x193)] : '';
|
|
1491
|
+
return _0xb9d1d0 + '\x20claimed' + _0x1ded1a + _0x3a9e63;
|
|
1492
|
+
}
|
|
1493
|
+
const _0x3d03ab = _0x517abc[_0x187d94(_0x8bfb75._0x46d463)] == null ? _0x517abc[_0x187d94(_0x8bfb75._0x465190)] ?? _0x187d94(_0x8bfb75._0x1f7203) : '#' + _0x517abc[_0x187d94(_0x8bfb75._0x46d463)];
|
|
1494
|
+
return _0x3d03ab + _0x187d94(_0x8bfb75._0x1d0219) + (_0x517abc['reason'] ?? _0x187d94(0x2d4));
|
|
1495
|
+
})[_0x6df03a(_0x4e394d._0x44a2fb)]('\x0a');
|
|
1496
|
+
}
|
|
1497
|
+
function formatUnclaimTaskResult(_0x30ac65) {
|
|
1498
|
+
const _0x157078 = _0xbabd6a, _0x148592 = _0x30ac65['taskNumber'] == null ? '(legacy)' : '#' + _0x30ac65['taskNumber'];
|
|
1499
|
+
return _0x148592 + _0x157078(0x2d1) + _0x30ac65['status'];
|
|
1500
|
+
}
|
|
1501
|
+
function formatUpdateTaskStatusResult(_0xfa3d22) {
|
|
1502
|
+
const _0x1c24d8 = {
|
|
1503
|
+
_0x1217af: 0x1c5,
|
|
1504
|
+
_0x351a02: 0x2d1
|
|
1505
|
+
}, _0x543fb9 = _0xbabd6a, _0x3d287d = _0xfa3d22[_0x543fb9(0x2c7)] == null ? _0x543fb9(_0x1c24d8._0x1217af) : '#' + _0xfa3d22[_0x543fb9(0x2c7)];
|
|
1506
|
+
return _0x3d287d + _0x543fb9(_0x1c24d8._0x351a02) + _0xfa3d22['status'];
|
|
1507
|
+
}
|
|
1508
|
+
function getChatBridgeToolDefinitions() {
|
|
1509
|
+
const _0x59660d = {
|
|
1510
|
+
_0x414a3e: 0x21f,
|
|
1511
|
+
_0x476183: 0x21e,
|
|
1512
|
+
_0x164f16: 0x2a7,
|
|
1513
|
+
_0x4120b0: 0x1ab,
|
|
1514
|
+
_0x20ecd1: 0x1ca,
|
|
1515
|
+
_0x27a775: 0x242
|
|
1516
|
+
}, _0x28be33 = _0xbabd6a;
|
|
1517
|
+
return [
|
|
1518
|
+
{ 'name': 'send_message' },
|
|
1519
|
+
{ 'name': _0x28be33(0x298) },
|
|
1520
|
+
{ 'name': _0x28be33(0x1d3) },
|
|
1521
|
+
{ 'name': 'list_server' },
|
|
1522
|
+
{ 'name': _0x28be33(0x2d6) },
|
|
1523
|
+
{ 'name': _0x28be33(_0x59660d._0x414a3e) },
|
|
1524
|
+
{ 'name': _0x28be33(0x271) },
|
|
1525
|
+
{ 'name': _0x28be33(_0x59660d._0x476183) },
|
|
1526
|
+
{ 'name': 'claim_tasks' },
|
|
1527
|
+
{ 'name': _0x28be33(_0x59660d._0x164f16) },
|
|
1528
|
+
{ 'name': _0x28be33(_0x59660d._0x4120b0) },
|
|
1529
|
+
{ 'name': _0x28be33(0x2b4) },
|
|
1530
|
+
{ 'name': 'get_worker_result' },
|
|
1531
|
+
{ 'name': _0x28be33(0x1df) },
|
|
1532
|
+
{ 'name': _0x28be33(_0x59660d._0x20ecd1) },
|
|
1533
|
+
{ 'name': _0x28be33(_0x59660d._0x27a775) }
|
|
1534
|
+
];
|
|
1535
|
+
}
|
|
1536
|
+
function createChatBridgeHandlers(_0x5a5f87) {
|
|
1537
|
+
const _0x2cacc7 = {
|
|
1538
|
+
_0x199fd4: 0x1e7,
|
|
1539
|
+
_0x5acfda: 0x1f3
|
|
1540
|
+
}, _0x1f62e5 = {
|
|
1541
|
+
_0x2f9673: 0x26a,
|
|
1542
|
+
_0x1e85fc: 0x29e,
|
|
1543
|
+
_0x245aa8: 0x2b0,
|
|
1544
|
+
_0x248876: 0x293,
|
|
1545
|
+
_0x3585cf: 0x1b5
|
|
1546
|
+
}, _0x3af99a = {
|
|
1547
|
+
_0x1dd35f: 0x18b,
|
|
1548
|
+
_0x24b50b: 0x195,
|
|
1549
|
+
_0x220f86: 0x179,
|
|
1550
|
+
_0x427f75: 0x176,
|
|
1551
|
+
_0x3ce968: 0x2c2,
|
|
1552
|
+
_0x49a7cd: 0x2b0,
|
|
1553
|
+
_0x44e9d3: 0x2f6,
|
|
1554
|
+
_0x455bc6: 0x1f6,
|
|
1555
|
+
_0x307d70: 0x19c
|
|
1556
|
+
}, _0x416848 = {
|
|
1557
|
+
_0x2a2c2e: 0x18a,
|
|
1558
|
+
_0x46c229: 0x2c2,
|
|
1559
|
+
_0x3b7cf5: 0x2bb,
|
|
1560
|
+
_0x324039: 0x1c3,
|
|
1561
|
+
_0x25cdac: 0x1d2,
|
|
1562
|
+
_0x192a30: 0x20b,
|
|
1563
|
+
_0x5009b4: 0x2ca
|
|
1564
|
+
}, _0x3f5959 = {
|
|
1565
|
+
_0x53b3a8: 0x26a,
|
|
1566
|
+
_0x2ab9e0: 0x2c2,
|
|
1567
|
+
_0x9065ca: 0x28b,
|
|
1568
|
+
_0x5e449d: 0x254
|
|
1569
|
+
}, _0x33af32 = {
|
|
1570
|
+
_0x59660f: 0x26a,
|
|
1571
|
+
_0x3fcb12: 0x26a,
|
|
1572
|
+
_0x54dc9a: 0x2b0,
|
|
1573
|
+
_0x5a979f: 0x2c2
|
|
1574
|
+
}, _0x1174df = {
|
|
1575
|
+
_0x5f476d: 0x277,
|
|
1576
|
+
_0x1405f2: 0x2d3,
|
|
1577
|
+
_0xef516b: 0x257,
|
|
1578
|
+
_0x7fbe66: 0x2df
|
|
1579
|
+
}, _0x395646 = { _0x49280b: 0x280 }, _0x43991b = { _0x4947ef: 0x20d }, _0x519fc2 = { _0x4e8933: 0x1b3 }, _0x5a71f6 = {
|
|
1580
|
+
_0x5a7cec: 0x20d,
|
|
1581
|
+
_0x42c449: 0x25d,
|
|
1582
|
+
_0x204528: 0x258
|
|
1583
|
+
}, _0x20260e = {
|
|
1584
|
+
_0xb366a5: 0x299,
|
|
1585
|
+
_0x19cbfc: 0x280,
|
|
1586
|
+
_0x51f6d0: 0x2cb
|
|
1587
|
+
}, _0x4de968 = { _0x199c15: 0x20d }, _0x5ac52f = {
|
|
1588
|
+
_0x2976e3: 0x26a,
|
|
1589
|
+
_0x247090: 0x2ab,
|
|
1590
|
+
_0x4029da: 0x18b,
|
|
1591
|
+
_0x2d84ea: 0x1e3,
|
|
1592
|
+
_0x1fd24: 0x2e0,
|
|
1593
|
+
_0x247f70: 0x200,
|
|
1594
|
+
_0x490f3c: 0x2c7,
|
|
1595
|
+
_0x2ad056: 0x2cc,
|
|
1596
|
+
_0x3ea4ef: 0x2c5
|
|
1597
|
+
}, _0x4b85cc = {
|
|
1598
|
+
_0x40a136: 0x20d,
|
|
1599
|
+
_0xe1eef: 0x224
|
|
1600
|
+
}, _0x19c467 = {
|
|
1601
|
+
_0x29a50c: 0x172,
|
|
1602
|
+
_0x2bbd12: 0x219
|
|
1603
|
+
}, _0x2584fe = {
|
|
1604
|
+
_0x151751: 0x1fd,
|
|
1605
|
+
_0x22f99b: 0x26a,
|
|
1606
|
+
_0x2aaafe: 0x18b,
|
|
1607
|
+
_0x586a0d: 0x181,
|
|
1608
|
+
_0x444b21: 0x181,
|
|
1609
|
+
_0x4d6853: 0x181,
|
|
1610
|
+
_0xaebfb7: 0x24e,
|
|
1611
|
+
_0xb3ccf5: 0x29f,
|
|
1612
|
+
_0x477c85: 0x1f8,
|
|
1613
|
+
_0x54ea8f: 0x2e4,
|
|
1614
|
+
_0x2fddb3: 0x2bf,
|
|
1615
|
+
_0xe3f2e1: 0x190,
|
|
1616
|
+
_0x39c4c3: 0x286,
|
|
1617
|
+
_0x577c15: 0x216,
|
|
1618
|
+
_0x1f9deb: 0x27e,
|
|
1619
|
+
_0x41150f: 0x244,
|
|
1620
|
+
_0x6bc2d7: 0x1d8,
|
|
1621
|
+
_0x58655f: 0x1ea,
|
|
1622
|
+
_0xc3b69c: 0x29f,
|
|
1623
|
+
_0x11d3ae: 0x1ad
|
|
1624
|
+
}, _0x178998 = {
|
|
1625
|
+
_0x29f2df: 0x18b,
|
|
1626
|
+
_0x384ac8: 0x26a,
|
|
1627
|
+
_0x312ca3: 0x2ab,
|
|
1628
|
+
_0x33fb6d: 0x288,
|
|
1629
|
+
_0x509456: 0x2e4,
|
|
1630
|
+
_0x263ce5: 0x2e0,
|
|
1631
|
+
_0x552e19: 0x221
|
|
1632
|
+
}, _0x8a71d6 = {
|
|
1633
|
+
_0x1d461c: 0x26a,
|
|
1634
|
+
_0x1c96b7: 0x18b,
|
|
1635
|
+
_0xfce34d: 0x172,
|
|
1636
|
+
_0x4d2938: 0x2ab,
|
|
1637
|
+
_0x374cbd: 0x221
|
|
1638
|
+
}, _0x4e9aed = {
|
|
1639
|
+
_0x3a0999: 0x26a,
|
|
1640
|
+
_0x2ba4f8: 0x172,
|
|
1641
|
+
_0x1e54e0: 0x1f9,
|
|
1642
|
+
_0x2e6f95: 0x24e,
|
|
1643
|
+
_0x1981aa: 0x26e,
|
|
1644
|
+
_0x54a355: 0x299,
|
|
1645
|
+
_0x3f6455: 0x224,
|
|
1646
|
+
_0x141413: 0x219,
|
|
1647
|
+
_0x369d5f: 0x1c5,
|
|
1648
|
+
_0x44f27d: 0x1f1,
|
|
1649
|
+
_0x287922: 0x206,
|
|
1650
|
+
_0xa40a2e: 0x235,
|
|
1651
|
+
_0x237aab: 0x26a,
|
|
1652
|
+
_0x2d105c: 0x29e,
|
|
1653
|
+
_0x3d7117: 0x176,
|
|
1654
|
+
_0x8f4836: 0x216,
|
|
1655
|
+
_0x432411: 0x2c7,
|
|
1656
|
+
_0x43921d: 0x2f6,
|
|
1657
|
+
_0x58939a: 0x1d8,
|
|
1658
|
+
_0x5384fd: 0x2b8
|
|
1659
|
+
}, _0x3beca6 = _0xbabd6a;
|
|
1660
|
+
async function _0x25752f(_0x16d714) {
|
|
1661
|
+
const _0x5891de = _0x5296;
|
|
1662
|
+
if (!_0x5a5f87[_0x5891de(_0x4e9aed._0x3a0999)] || !_0x5a5f87[_0x5891de(0x18b)] || _0x5a5f87[_0x5891de(_0x4e9aed._0x2ba4f8)] || _0x5a5f87[_0x5891de(0x1fd)] !== !![])
|
|
1663
|
+
return null;
|
|
1664
|
+
const _0x447348 = parseTarget(_0x16d714[_0x5891de(0x280)]);
|
|
1665
|
+
if (_0x447348[_0x5891de(_0x4e9aed._0x1e54e0)] !== 'channel')
|
|
1666
|
+
return null;
|
|
1667
|
+
const _0x37afb7 = _0x16d714[_0x5891de(_0x4e9aed._0x2e6f95)] != null ? _0x447348[_0x5891de(_0x4e9aed._0x1981aa)] + ':t' + _0x16d714[_0x5891de(0x24e)] : _0x447348[_0x5891de(0x26e)] + ':' + _0x16d714[_0x5891de(_0x4e9aed._0x54a355)];
|
|
1668
|
+
let _0x377969;
|
|
1669
|
+
try {
|
|
1670
|
+
const _0x14ed40 = await _0x5a5f87[_0x5891de(0x20d)][_0x5891de(_0x4e9aed._0x3f6455)]({
|
|
1671
|
+
'channel': _0x37afb7,
|
|
1672
|
+
'limit': 0x14
|
|
1673
|
+
});
|
|
1674
|
+
_0x377969 = _0x14ed40[_0x5891de(_0x4e9aed._0x141413)][_0x5891de(0x200)](_0x4680b3 => _0x4680b3[_0x5891de(0x299)] === _0x16d714[_0x5891de(0x299)]);
|
|
1675
|
+
} catch {
|
|
1676
|
+
_0x377969 = void 0x0;
|
|
1677
|
+
}
|
|
1678
|
+
const _0x16587e = _0x16d714['taskNumber'] == null ? _0x5891de(_0x4e9aed._0x369d5f) : '#' + _0x16d714[_0x5891de(0x2c7)], _0x2134ae = [
|
|
1679
|
+
_0x5891de(0x2bf) + _0x37afb7 + '\x20msg=' + _0x16d714[_0x5891de(0x299)][_0x5891de(0x1e8)](0x0, 0x8) + _0x5891de(_0x4e9aed._0x44f27d) + new Date()[_0x5891de(0x1d7)]() + _0x5891de(_0x4e9aed._0x287922) + _0x16587e + _0x5891de(0x2bd),
|
|
1680
|
+
'',
|
|
1681
|
+
_0x377969 ? _0x5891de(_0x4e9aed._0xa40a2e) + _0x377969['content'] : _0x5891de(0x1de) + _0x16d714['messageId'],
|
|
1682
|
+
'',
|
|
1683
|
+
_0x5891de(0x1fe) + _0x37afb7,
|
|
1684
|
+
_0x5891de(0x199)
|
|
1685
|
+
]['join']('\x0a'), _0x5aa9f4 = await fetch(_0x5a5f87[_0x5891de(_0x4e9aed._0x237aab)] + '/workers/deliver', {
|
|
1686
|
+
'method': _0x5891de(_0x4e9aed._0x2d105c),
|
|
1687
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1688
|
+
'body': JSON[_0x5891de(_0x4e9aed._0x3d7117)]({
|
|
1689
|
+
'agent_id': _0x5a5f87[_0x5891de(0x18b)],
|
|
1690
|
+
'thread_target': _0x37afb7,
|
|
1691
|
+
'spawn_packet': {
|
|
1692
|
+
'replyTarget': _0x37afb7,
|
|
1693
|
+
..._0x16d714[_0x5891de(_0x4e9aed._0x8f4836)] ? { 'taskId': _0x16d714[_0x5891de(0x216)] } : _0x16d714[_0x5891de(_0x4e9aed._0x432411)] != null ? { 'taskId': _0x5891de(0x207) + _0x16d714[_0x5891de(_0x4e9aed._0x432411)] } : {}
|
|
1694
|
+
},
|
|
1695
|
+
'payload': {
|
|
1696
|
+
'mode': 'user',
|
|
1697
|
+
'text': _0x2134ae
|
|
1698
|
+
}
|
|
1699
|
+
})
|
|
1700
|
+
}), _0x46689b = await _0x5aa9f4[_0x5891de(0x2b0)]();
|
|
1701
|
+
if (!_0x46689b['ok'])
|
|
1702
|
+
throw new Error(_0x46689b[_0x5891de(_0x4e9aed._0x43921d)] ?? _0x5891de(0x2cb));
|
|
1703
|
+
return {
|
|
1704
|
+
'stopMain': !![],
|
|
1705
|
+
'threadTarget': _0x37afb7,
|
|
1706
|
+
'workerDisposition': _0x46689b['disposition'] === _0x5891de(_0x4e9aed._0x58939a) ? _0x5891de(0x1d8) : _0x5891de(_0x4e9aed._0x5384fd),
|
|
1707
|
+
'workerHandoff': !![],
|
|
1708
|
+
'workerSessionId': _0x46689b['worker_session_id'] ?? '',
|
|
1709
|
+
'executionMode': _0x5891de(0x256)
|
|
1710
|
+
};
|
|
1711
|
+
}
|
|
1712
|
+
async function _0x4d5ef() {
|
|
1713
|
+
const _0x58ea89 = _0x5296;
|
|
1714
|
+
if (!_0x5a5f87[_0x58ea89(_0x8a71d6._0x1d461c)] || !_0x5a5f87[_0x58ea89(_0x8a71d6._0x1c96b7)] || _0x5a5f87[_0x58ea89(_0x8a71d6._0xfce34d)])
|
|
1715
|
+
return null;
|
|
1716
|
+
try {
|
|
1717
|
+
const _0x282917 = await fetch(_0x5a5f87[_0x58ea89(_0x8a71d6._0x1d461c)] + _0x58ea89(_0x8a71d6._0x4d2938) + encodeURIComponent(_0x5a5f87[_0x58ea89(0x18b)])), _0x33f020 = await _0x282917[_0x58ea89(0x2b0)]();
|
|
1718
|
+
if (!_0x33f020['ok'])
|
|
1719
|
+
return null;
|
|
1720
|
+
const _0x56c3bb = new Set();
|
|
1721
|
+
for (const _0x4c7844 of _0x33f020[_0x58ea89(0x288)]) {
|
|
1722
|
+
_0x4c7844[_0x58ea89(0x282)] !== _0x58ea89(0x28d) && _0x4c7844['thread_target'] && _0x56c3bb[_0x58ea89(0x2c5)](_0x4c7844[_0x58ea89(0x2e0)]);
|
|
1723
|
+
}
|
|
1724
|
+
return _0x56c3bb[_0x58ea89(_0x8a71d6._0x374cbd)] > 0x0 ? _0x56c3bb : null;
|
|
1725
|
+
} catch {
|
|
1726
|
+
return null;
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
const _0x11ff3c = new Set([
|
|
1730
|
+
'running',
|
|
1731
|
+
_0x3beca6(_0x2cacc7._0x199fd4),
|
|
1732
|
+
_0x3beca6(_0x2cacc7._0x5acfda)
|
|
1733
|
+
]);
|
|
1734
|
+
async function _0xb0a4cc() {
|
|
1735
|
+
const _0x50c404 = _0x3beca6;
|
|
1736
|
+
if (!_0x5a5f87[_0x50c404(0x26a)] || !_0x5a5f87[_0x50c404(_0x178998._0x29f2df)] || _0x5a5f87['workerMode'])
|
|
1737
|
+
return null;
|
|
1738
|
+
try {
|
|
1739
|
+
const _0x27cf74 = await fetch(_0x5a5f87[_0x50c404(_0x178998._0x384ac8)] + _0x50c404(_0x178998._0x312ca3) + encodeURIComponent(_0x5a5f87[_0x50c404(_0x178998._0x29f2df)])), _0x33178a = await _0x27cf74[_0x50c404(0x2b0)]();
|
|
1740
|
+
if (!_0x33178a['ok'])
|
|
1741
|
+
return null;
|
|
1742
|
+
const _0x3723a9 = new Set();
|
|
1743
|
+
for (const _0x357dda of _0x33178a[_0x50c404(_0x178998._0x33fb6d)]) {
|
|
1744
|
+
_0x11ff3c[_0x50c404(_0x178998._0x509456)](_0x357dda['status']) && _0x357dda['thread_target'] && _0x3723a9['add'](_0x357dda[_0x50c404(_0x178998._0x263ce5)]);
|
|
1745
|
+
}
|
|
1746
|
+
return _0x3723a9[_0x50c404(_0x178998._0x552e19)] > 0x0 ? _0x3723a9 : null;
|
|
1747
|
+
} catch {
|
|
1748
|
+
return null;
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
return {
|
|
1752
|
+
async 'send_message'(_0x398cad) {
|
|
1753
|
+
const _0x46c6d4 = _0x3beca6;
|
|
1754
|
+
if (!_0x5a5f87[_0x46c6d4(0x172)] && _0x5a5f87[_0x46c6d4(_0x2584fe._0x151751)] && _0x5a5f87[_0x46c6d4(_0x2584fe._0x22f99b)] && _0x5a5f87[_0x46c6d4(_0x2584fe._0x2aaafe)]) {
|
|
1755
|
+
const _0xfda371 = await _0x5a5f87['client'][_0x46c6d4(0x1bc)](_0x398cad[_0x46c6d4(0x29f)]);
|
|
1756
|
+
if (_0xfda371[_0x46c6d4(_0x2584fe._0x586a0d)] && _0xfda371[_0x46c6d4(0x1f8)]) {
|
|
1757
|
+
const _0x470bba = _0xfda371[_0x46c6d4(_0x2584fe._0x444b21)][_0x46c6d4(0x2c7)] != null ? '#' + _0xfda371[_0x46c6d4(_0x2584fe._0x4d6853)]['taskNumber'] : '(legacy)', _0xe3c0e9 = _0xfda371[_0x46c6d4(_0x2584fe._0xaebfb7)] != null ? _0xfda371['target'] + ':t' + _0xfda371['threadNumber'] : _0xfda371[_0x46c6d4(_0x2584fe._0xb3ccf5)] + ':' + _0xfda371[_0x46c6d4(_0x2584fe._0x477c85)][_0x46c6d4(0x1e8)](0x0, 0x8), _0x3dd6e = await _0xb0a4cc();
|
|
1758
|
+
if (_0x3dd6e?.[_0x46c6d4(_0x2584fe._0x54ea8f)](_0xe3c0e9))
|
|
1759
|
+
return [
|
|
1760
|
+
_0x46c6d4(0x1e1) + _0x470bba + '\x20in\x20' + _0xe3c0e9 + _0x46c6d4(0x21d),
|
|
1761
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1762
|
+
][_0x46c6d4(0x1d4)]('\x0a');
|
|
1763
|
+
const _0x43e7a3 = [
|
|
1764
|
+
_0x46c6d4(_0x2584fe._0x2fddb3) + _0xe3c0e9 + _0x46c6d4(_0x2584fe._0xe3f2e1) + new Date()[_0x46c6d4(0x1d7)]() + _0x46c6d4(0x16d),
|
|
1765
|
+
'',
|
|
1766
|
+
_0x46c6d4(_0x2584fe._0x39c4c3) + _0x398cad['content'],
|
|
1767
|
+
_0x46c6d4(0x2d5) + _0x470bba + '\x20(' + _0xfda371['task'][_0x46c6d4(0x216)] + ')',
|
|
1768
|
+
'Thread\x20target:\x20' + _0xe3c0e9,
|
|
1769
|
+
_0x46c6d4(0x19f)
|
|
1770
|
+
][_0x46c6d4(0x1d4)]('\x0a'), _0x16a32c = await fetch(_0x5a5f87['daemonLocalUrl'] + _0x46c6d4(0x2e8), {
|
|
1771
|
+
'method': _0x46c6d4(0x29e),
|
|
1772
|
+
'headers': { 'Content-Type': _0x46c6d4(0x2e2) },
|
|
1773
|
+
'body': JSON[_0x46c6d4(0x176)]({
|
|
1774
|
+
'agent_id': _0x5a5f87[_0x46c6d4(0x18b)],
|
|
1775
|
+
'thread_target': _0xe3c0e9,
|
|
1776
|
+
'spawn_packet': {
|
|
1777
|
+
'replyTarget': _0xe3c0e9,
|
|
1778
|
+
'taskId': _0xfda371['task'][_0x46c6d4(_0x2584fe._0x577c15)]
|
|
1779
|
+
},
|
|
1780
|
+
'payload': {
|
|
1781
|
+
'mode': 'user',
|
|
1782
|
+
'text': _0x43e7a3
|
|
1783
|
+
}
|
|
1784
|
+
})
|
|
1785
|
+
}), _0x277ae9 = await _0x16a32c[_0x46c6d4(0x2b0)]();
|
|
1786
|
+
if (!_0x277ae9['ok'])
|
|
1787
|
+
throw new Error(_0x277ae9['error'] ?? _0x46c6d4(_0x2584fe._0x1f9deb));
|
|
1788
|
+
return [
|
|
1789
|
+
_0x46c6d4(0x289) + _0x470bba + _0x46c6d4(_0x2584fe._0x41150f) + _0xe3c0e9 + '.\x20stopMain=true\x20executionMode=worker',
|
|
1790
|
+
'Worker\x20' + (_0x277ae9[_0x46c6d4(0x1ef)] === _0x46c6d4(_0x2584fe._0x6bc2d7) ? _0x46c6d4(0x1d8) : _0x46c6d4(0x2b8)) + '.',
|
|
1791
|
+
'⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
|
|
1792
|
+
][_0x46c6d4(0x1d4)]('\x0a');
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
const _0x323421 = await _0x5a5f87['client'][_0x46c6d4(_0x2584fe._0x58655f)]({
|
|
1796
|
+
'attachmentIds': _0x398cad['attachment_ids'],
|
|
1797
|
+
'content': _0x398cad[_0x46c6d4(0x2a4)],
|
|
1798
|
+
'target': _0x398cad[_0x46c6d4(_0x2584fe._0xc3b69c)],
|
|
1799
|
+
'visibility': _0x398cad[_0x46c6d4(0x264)]
|
|
1800
|
+
});
|
|
1801
|
+
return _0x46c6d4(_0x2584fe._0x11d3ae) + _0x398cad[_0x46c6d4(0x29f)] + '.\x20Message\x20ID:\x20' + _0x323421[_0x46c6d4(0x299)];
|
|
1802
|
+
},
|
|
1803
|
+
async 'check_messages'() {
|
|
1804
|
+
const _0x52edec = _0x3beca6, _0x3b70c6 = await _0x5a5f87['client']['checkMessages']();
|
|
1805
|
+
if (!_0x5a5f87[_0x52edec(_0x19c467._0x29a50c)]) {
|
|
1806
|
+
const _0xbd85fd = await _0x4d5ef();
|
|
1807
|
+
if (_0xbd85fd)
|
|
1808
|
+
return formatCheckMessages(_0x3b70c6['messages']['filter'](_0x2aafaa => !_0xbd85fd[_0x52edec(0x2e4)](_0x2aafaa[_0x52edec(0x29f)])));
|
|
1809
|
+
}
|
|
1810
|
+
return formatCheckMessages(_0x3b70c6[_0x52edec(_0x19c467._0x2bbd12)]);
|
|
1811
|
+
},
|
|
1812
|
+
async 'read_history'(_0x2454c9) {
|
|
1813
|
+
const _0x135fb6 = _0x3beca6, _0x2358e9 = await _0x5a5f87[_0x135fb6(_0x4b85cc._0x40a136)][_0x135fb6(_0x4b85cc._0xe1eef)](_0x2454c9);
|
|
1814
|
+
return formatHistory(_0x2358e9);
|
|
1815
|
+
},
|
|
1816
|
+
async 'list_server'() {
|
|
1817
|
+
const _0x248531 = _0x3beca6, _0x472fa2 = await _0x5a5f87['client'][_0x248531(0x205)]();
|
|
1818
|
+
return formatServerDirectory(_0x472fa2);
|
|
1819
|
+
},
|
|
1820
|
+
async 'list_tasks'(_0x407029) {
|
|
1821
|
+
const _0x381577 = _0x3beca6, _0x2ad5c5 = await _0x5a5f87[_0x381577(0x20d)]['listTasks'](_0x407029);
|
|
1822
|
+
let _0x65553;
|
|
1823
|
+
if (_0x5a5f87['daemonLocalUrl'] && _0x5a5f87['agentId'])
|
|
1824
|
+
try {
|
|
1825
|
+
const _0x21167d = await fetch(_0x5a5f87[_0x381577(_0x5ac52f._0x2976e3)] + _0x381577(_0x5ac52f._0x247090) + encodeURIComponent(_0x5a5f87[_0x381577(_0x5ac52f._0x4029da)])), _0x313792 = await _0x21167d[_0x381577(0x2b0)]();
|
|
1826
|
+
if (_0x313792['ok']) {
|
|
1827
|
+
const _0x1bf6c3 = _0x407029[_0x381577(0x280)] + ':';
|
|
1828
|
+
_0x65553 = new Set();
|
|
1829
|
+
for (const _0x1b4090 of _0x313792[_0x381577(0x288)]) {
|
|
1830
|
+
if (_0x1b4090['status'] === _0x381577(0x28d))
|
|
1831
|
+
continue;
|
|
1832
|
+
if (_0x1b4090[_0x381577(0x2e0)]?.[_0x381577(_0x5ac52f._0x2d84ea)](_0x1bf6c3)) {
|
|
1833
|
+
const _0x493d2b = _0x1b4090[_0x381577(_0x5ac52f._0x1fd24)]['slice'](_0x1bf6c3['length']), _0x2a00d5 = _0x2ad5c5[_0x381577(0x2cc)][_0x381577(_0x5ac52f._0x247f70)](_0x5d859c => _0x5d859c['messageId']?.[_0x381577(0x1e3)](_0x493d2b) === !![]);
|
|
1834
|
+
if (_0x2a00d5?.[_0x381577(0x2c7)] != null) {
|
|
1835
|
+
_0x65553['add'](_0x2a00d5[_0x381577(_0x5ac52f._0x490f3c)]);
|
|
1836
|
+
continue;
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
if (_0x1b4090['task_id']) {
|
|
1840
|
+
const _0x125bb2 = _0x2ad5c5[_0x381577(_0x5ac52f._0x2ad056)][_0x381577(_0x5ac52f._0x247f70)](_0x3576ed => _0x3576ed[_0x381577(0x216)] === _0x1b4090[_0x381577(0x240)]);
|
|
1841
|
+
_0x125bb2?.[_0x381577(0x2c7)] != null && _0x65553[_0x381577(_0x5ac52f._0x3ea4ef)](_0x125bb2[_0x381577(0x2c7)]);
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
} catch {
|
|
1846
|
+
}
|
|
1847
|
+
return formatTaskList(_0x2ad5c5[_0x381577(_0x5ac52f._0x2ad056)], _0x65553);
|
|
1848
|
+
},
|
|
1849
|
+
async 'create_tasks'(_0x30fdfd) {
|
|
1850
|
+
const _0x3cfd97 = _0x3beca6, _0x3f3354 = await _0x5a5f87[_0x3cfd97(_0x4de968._0x199c15)][_0x3cfd97(0x209)](_0x30fdfd);
|
|
1851
|
+
return formatCreatedTasks(_0x3f3354[_0x3cfd97(0x2cc)]);
|
|
1852
|
+
},
|
|
1853
|
+
async 'claim_tasks'(_0x226da5) {
|
|
1854
|
+
const _0x2c6155 = _0x3beca6, _0x24b1f7 = await _0x5a5f87[_0x2c6155(_0x5a71f6._0x5a7cec)]['claimTasks'](_0x226da5), _0xb95a28 = await Promise[_0x2c6155(0x19b)](_0x24b1f7[_0x2c6155(_0x5a71f6._0x42c449)][_0x2c6155(_0x5a71f6._0x204528)](async _0x2898f0 => {
|
|
1855
|
+
const _0x3a7c04 = _0x2c6155;
|
|
1856
|
+
if (!_0x2898f0[_0x3a7c04(0x245)] || !_0x2898f0[_0x3a7c04(_0x20260e._0xb366a5)])
|
|
1857
|
+
return _0x2898f0;
|
|
1858
|
+
try {
|
|
1859
|
+
const _0x4336c8 = await _0x25752f({
|
|
1860
|
+
'channel': _0x226da5[_0x3a7c04(_0x20260e._0x19cbfc)],
|
|
1861
|
+
'messageId': _0x2898f0['messageId'],
|
|
1862
|
+
'taskId': _0x2898f0['taskId'],
|
|
1863
|
+
'taskNumber': _0x2898f0[_0x3a7c04(0x2c7)],
|
|
1864
|
+
'threadNumber': _0x2898f0['threadNumber']
|
|
1865
|
+
});
|
|
1866
|
+
return _0x4336c8 ? {
|
|
1867
|
+
..._0x2898f0,
|
|
1868
|
+
..._0x4336c8
|
|
1869
|
+
} : _0x2898f0;
|
|
1870
|
+
} catch (_0x39b7a0) {
|
|
1871
|
+
return {
|
|
1872
|
+
..._0x2898f0,
|
|
1873
|
+
'workerHandoffError': _0x39b7a0 instanceof Error ? _0x39b7a0[_0x3a7c04(0x284)] : _0x3a7c04(_0x20260e._0x51f6d0)
|
|
1874
|
+
};
|
|
1875
|
+
}
|
|
1876
|
+
}));
|
|
1877
|
+
return formatClaimTaskResults(_0xb95a28);
|
|
1878
|
+
},
|
|
1879
|
+
async 'unclaim_task'(_0x116f88) {
|
|
1880
|
+
const _0x4b3f5e = _0x3beca6, _0x59c916 = await _0x5a5f87[_0x4b3f5e(0x20d)][_0x4b3f5e(_0x519fc2._0x4e8933)](_0x116f88);
|
|
1881
|
+
return formatUnclaimTaskResult(_0x59c916);
|
|
1882
|
+
},
|
|
1883
|
+
async 'update_task_status'(_0x5aad25) {
|
|
1884
|
+
const _0x53c623 = _0x3beca6, _0x364721 = await _0x5a5f87[_0x53c623(_0x43991b._0x4947ef)][_0x53c623(0x1a6)](_0x5aad25);
|
|
1885
|
+
return formatUpdateTaskStatusResult(_0x364721);
|
|
1886
|
+
},
|
|
1887
|
+
async 'upload_file'(_0x3e5951) {
|
|
1888
|
+
const _0xf6923c = _0x3beca6, _0x5874e4 = await _0x5a5f87['uploadPreparer'](_0x3e5951[_0xf6923c(0x2c9)]), {
|
|
1889
|
+
sizeBytes: _0x408f9e,
|
|
1890
|
+
..._0x2c20ac
|
|
1891
|
+
} = _0x5874e4, _0x22c7ee = await _0x5a5f87[_0xf6923c(0x20d)][_0xf6923c(0x173)]({
|
|
1892
|
+
'channel': _0x3e5951[_0xf6923c(_0x395646._0x49280b)],
|
|
1893
|
+
..._0x2c20ac
|
|
1894
|
+
});
|
|
1895
|
+
return formatUploadResult(_0x22c7ee);
|
|
1896
|
+
},
|
|
1897
|
+
async 'view_file'(_0x11d81f) {
|
|
1898
|
+
const _0x40b7fb = _0x3beca6, _0x24f9dc = await _0x5a5f87[_0x40b7fb(_0x1174df._0x5f476d)][_0x40b7fb(_0x1174df._0x1405f2)](_0x11d81f[_0x40b7fb(0x257)]);
|
|
1899
|
+
if (_0x24f9dc)
|
|
1900
|
+
return formatViewFileResult(_0x24f9dc, !![]);
|
|
1901
|
+
const _0x47b844 = await _0x5a5f87[_0x40b7fb(0x20d)][_0x40b7fb(0x295)](_0x11d81f[_0x40b7fb(_0x1174df._0xef516b)]), _0x32c164 = await _0x5a5f87[_0x40b7fb(0x277)][_0x40b7fb(_0x1174df._0x7fbe66)]({
|
|
1902
|
+
'attachmentId': _0x11d81f['attachment_id'],
|
|
1903
|
+
'contentType': _0x47b844[_0x40b7fb(0x2b7)],
|
|
1904
|
+
'data': _0x47b844[_0x40b7fb(0x2a1)],
|
|
1905
|
+
'originalFilename': _0x47b844[_0x40b7fb(0x1b7)]
|
|
1906
|
+
});
|
|
1907
|
+
return formatViewFileResult(_0x32c164, ![]);
|
|
1908
|
+
},
|
|
1909
|
+
async 'get_worker_status'(_0x2a6e5a) {
|
|
1910
|
+
const _0x5f49e6 = _0x3beca6;
|
|
1911
|
+
if (!_0x5a5f87[_0x5f49e6(_0x33af32._0x59660f)])
|
|
1912
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1913
|
+
const _0x15ea1b = await fetch(_0x5a5f87[_0x5f49e6(_0x33af32._0x3fcb12)] + _0x5f49e6(0x1c4) + encodeURIComponent(_0x2a6e5a[_0x5f49e6(0x2c2)])), _0x3df294 = await _0x15ea1b[_0x5f49e6(_0x33af32._0x54dc9a)]();
|
|
1914
|
+
if (!_0x3df294['ok'])
|
|
1915
|
+
return _0x5f49e6(0x20b) + _0x2a6e5a[_0x5f49e6(0x2c2)] + _0x5f49e6(0x24b);
|
|
1916
|
+
return _0x5f49e6(0x20b) + _0x2a6e5a[_0x5f49e6(_0x33af32._0x5a979f)] + _0x5f49e6(0x2cf) + _0x3df294[_0x5f49e6(0x282)];
|
|
1917
|
+
},
|
|
1918
|
+
async 'get_worker_result'(_0x160145) {
|
|
1919
|
+
const _0x13a236 = _0x3beca6;
|
|
1920
|
+
if (!_0x5a5f87[_0x13a236(0x26a)])
|
|
1921
|
+
return _0x13a236(0x1a0);
|
|
1922
|
+
const _0x12a44d = await fetch(_0x5a5f87[_0x13a236(_0x3f5959._0x53b3a8)] + _0x13a236(0x1a8) + encodeURIComponent(_0x160145[_0x13a236(_0x3f5959._0x2ab9e0)])), _0x47a189 = await _0x12a44d['json']();
|
|
1923
|
+
if (!_0x47a189['resume_packet'])
|
|
1924
|
+
return _0x13a236(_0x3f5959._0x9065ca) + _0x160145['work_key'] + '\x22';
|
|
1925
|
+
return JSON['stringify'](_0x47a189[_0x13a236(_0x3f5959._0x5e449d)], null, 0x2);
|
|
1926
|
+
},
|
|
1927
|
+
async 'finish_worker'(_0x4253dd) {
|
|
1928
|
+
const _0x4a0ef4 = _0x3beca6;
|
|
1929
|
+
if (!_0x5a5f87['daemonLocalUrl'])
|
|
1930
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1931
|
+
const _0xd2f505 = await fetch(_0x5a5f87[_0x4a0ef4(0x26a)] + _0x4a0ef4(_0x416848._0x2a2c2e), {
|
|
1932
|
+
'method': _0x4a0ef4(0x29e),
|
|
1933
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1934
|
+
'body': JSON[_0x4a0ef4(0x176)]({
|
|
1935
|
+
'work_key': _0x4253dd[_0x4a0ef4(_0x416848._0x46c229)],
|
|
1936
|
+
'resume_packet': {
|
|
1937
|
+
'objective': '',
|
|
1938
|
+
'result': _0x4253dd[_0x4a0ef4(0x18f)],
|
|
1939
|
+
'summary': _0x4253dd[_0x4a0ef4(_0x416848._0x3b7cf5)],
|
|
1940
|
+
'decisions': _0x4253dd['decisions'] ?? [],
|
|
1941
|
+
'filesChanged': _0x4253dd['files_changed'] ?? [],
|
|
1942
|
+
'openIssues': _0x4253dd[_0x4a0ef4(_0x416848._0x324039)] ?? [],
|
|
1943
|
+
'nextSteps': _0x4253dd['next_steps'] ?? []
|
|
1944
|
+
}
|
|
1945
|
+
})
|
|
1946
|
+
}), _0x1c15f6 = await _0xd2f505[_0x4a0ef4(0x2b0)]();
|
|
1947
|
+
if (!_0x1c15f6['ok'])
|
|
1948
|
+
throw new Error(_0x1c15f6['error'] ?? _0x4a0ef4(_0x416848._0x25cdac));
|
|
1949
|
+
return _0x4a0ef4(_0x416848._0x192a30) + _0x4253dd[_0x4a0ef4(_0x416848._0x46c229)] + _0x4a0ef4(_0x416848._0x5009b4) + _0x4253dd['result'];
|
|
1950
|
+
},
|
|
1951
|
+
async 'mark_waiting_input'(_0x42ba7b) {
|
|
1952
|
+
const _0x97e5ba = _0x3beca6;
|
|
1953
|
+
if (!_0x5a5f87['daemonLocalUrl'] || !_0x5a5f87[_0x97e5ba(_0x3af99a._0x1dd35f)])
|
|
1954
|
+
return _0x97e5ba(_0x3af99a._0x24b50b);
|
|
1955
|
+
const _0x480acd = await fetch(_0x5a5f87['daemonLocalUrl'] + _0x97e5ba(_0x3af99a._0x220f86), {
|
|
1956
|
+
'method': 'POST',
|
|
1957
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1958
|
+
'body': JSON[_0x97e5ba(_0x3af99a._0x427f75)]({
|
|
1959
|
+
'work_key': _0x42ba7b[_0x97e5ba(_0x3af99a._0x3ce968)],
|
|
1960
|
+
'agent_id': _0x5a5f87[_0x97e5ba(0x18b)]
|
|
1961
|
+
})
|
|
1962
|
+
}), _0x4efdce = await _0x480acd[_0x97e5ba(_0x3af99a._0x49a7cd)]();
|
|
1963
|
+
if (!_0x4efdce['ok'])
|
|
1964
|
+
throw new Error(_0x4efdce[_0x97e5ba(_0x3af99a._0x44e9d3)] ?? _0x97e5ba(_0x3af99a._0x455bc6));
|
|
1965
|
+
return _0x97e5ba(0x20b) + _0x42ba7b['work_key'] + _0x97e5ba(_0x3af99a._0x307d70);
|
|
1966
|
+
},
|
|
1967
|
+
async 'escalate_to_main'(_0x3b851c) {
|
|
1968
|
+
const _0x509da1 = _0x3beca6;
|
|
1969
|
+
if (!_0x5a5f87[_0x509da1(0x26a)])
|
|
1970
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1971
|
+
const _0x2c1dbd = await fetch(_0x5a5f87[_0x509da1(_0x1f62e5._0x2f9673)] + '/workers/escalate', {
|
|
1972
|
+
'method': _0x509da1(_0x1f62e5._0x1e85fc),
|
|
1973
|
+
'headers': { 'Content-Type': _0x509da1(0x2e2) },
|
|
1974
|
+
'body': JSON[_0x509da1(0x176)]({
|
|
1975
|
+
'work_key': _0x3b851c['work_key'],
|
|
1976
|
+
'reason': _0x3b851c['reason']
|
|
1977
|
+
})
|
|
1978
|
+
}), _0x2c69e9 = await _0x2c1dbd[_0x509da1(_0x1f62e5._0x245aa8)]();
|
|
1979
|
+
if (!_0x2c69e9['ok'])
|
|
1980
|
+
throw new Error(_0x2c69e9[_0x509da1(0x2f6)] ?? _0x509da1(_0x1f62e5._0x248876));
|
|
1981
|
+
return _0x509da1(_0x1f62e5._0x3585cf) + _0x3b851c[_0x509da1(0x182)];
|
|
1982
|
+
}
|
|
1983
|
+
};
|
|
1984
|
+
}
|
|
1985
|
+
function _0x5296(_0x121998, _0x1b4995) {
|
|
1986
|
+
_0x121998 = _0x121998 - 0x16d;
|
|
1987
|
+
const _0x275caf = _0x275c();
|
|
1988
|
+
let _0x52961a = _0x275caf[_0x121998];
|
|
1989
|
+
if (_0x5296['AnSzTd'] === undefined) {
|
|
1990
|
+
var _0xe14edd = function (_0x9834e2) {
|
|
1991
|
+
const _0x55af66 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1992
|
+
let _0x1c47dc = '', _0x3042f6 = '';
|
|
1993
|
+
for (let _0x14e72f = 0x0, _0x58069d, _0x4a7b04, _0x574648 = 0x0; _0x4a7b04 = _0x9834e2['charAt'](_0x574648++); ~_0x4a7b04 && (_0x58069d = _0x14e72f % 0x4 ? _0x58069d * 0x40 + _0x4a7b04 : _0x4a7b04, _0x14e72f++ % 0x4) ? _0x1c47dc += String['fromCharCode'](0xff & _0x58069d >> (-0x2 * _0x14e72f & 0x6)) : 0x0) {
|
|
1994
|
+
_0x4a7b04 = _0x55af66['indexOf'](_0x4a7b04);
|
|
1995
|
+
}
|
|
1996
|
+
for (let _0x3a0c05 = 0x0, _0xd37dda = _0x1c47dc['length']; _0x3a0c05 < _0xd37dda; _0x3a0c05++) {
|
|
1997
|
+
_0x3042f6 += '%' + ('00' + _0x1c47dc['charCodeAt'](_0x3a0c05)['toString'](0x10))['slice'](-0x2);
|
|
1998
|
+
}
|
|
1999
|
+
return decodeURIComponent(_0x3042f6);
|
|
2000
|
+
};
|
|
2001
|
+
_0x5296['VjePkv'] = _0xe14edd, _0x5296['bVxFAr'] = {}, _0x5296['AnSzTd'] = !![];
|
|
2002
|
+
}
|
|
2003
|
+
const _0x171c85 = _0x275caf[0x0], _0x58b0fe = _0x121998 + _0x171c85, _0x9ae12f = _0x5296['bVxFAr'][_0x58b0fe];
|
|
2004
|
+
return !_0x9ae12f ? (_0x52961a = _0x5296['VjePkv'](_0x52961a), _0x5296['bVxFAr'][_0x58b0fe] = _0x52961a) : _0x52961a = _0x9ae12f, _0x52961a;
|
|
2005
|
+
}
|
|
2006
|
+
function textResult(_0x573e10, _0x4969de = ![]) {
|
|
2007
|
+
return {
|
|
2008
|
+
'content': [{
|
|
2009
|
+
'type': 'text',
|
|
2010
|
+
'text': _0x573e10
|
|
2011
|
+
}],
|
|
2012
|
+
..._0x4969de ? { 'isError': !![] } : {}
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
async function registerChatBridgeTools(_0x349d75, _0x4977f7, _0x5e09db) {
|
|
2016
|
+
const _0x48334c = {
|
|
2017
|
+
_0x5577d7: 0x23a,
|
|
2018
|
+
_0x3f741d: 0x1ff,
|
|
2019
|
+
_0x161918: 0x19d,
|
|
2020
|
+
_0x5099b3: 0x287,
|
|
2021
|
+
_0x2560ad: 0x2e3,
|
|
2022
|
+
_0x357f92: 0x1ae,
|
|
2023
|
+
_0x1d80e6: 0x1e5,
|
|
2024
|
+
_0x5717fd: 0x1d0,
|
|
2025
|
+
_0x2df2a3: 0x20a,
|
|
2026
|
+
_0x51a0d2: 0x20a,
|
|
2027
|
+
_0x3b9d1d: 0x1db,
|
|
2028
|
+
_0x276dca: 0x272,
|
|
2029
|
+
_0x13d3cb: 0x2a6,
|
|
2030
|
+
_0x1565b3: 0x210,
|
|
2031
|
+
_0x4e4215: 0x21e,
|
|
2032
|
+
_0x341d1: 0x16f,
|
|
2033
|
+
_0x3f91af: 0x178,
|
|
2034
|
+
_0x410480: 0x17d,
|
|
2035
|
+
_0x3f4202: 0x2af,
|
|
2036
|
+
_0x53c1cf: 0x238,
|
|
2037
|
+
_0x46e74b: 0x22b,
|
|
2038
|
+
_0xffbfd8: 0x20a,
|
|
2039
|
+
_0x5baebc: 0x16f,
|
|
2040
|
+
_0x507ad5: 0x25e,
|
|
2041
|
+
_0x3c8d80: 0x2a7,
|
|
2042
|
+
_0x11df6c: 0x2f0,
|
|
2043
|
+
_0x342497: 0x1ff,
|
|
2044
|
+
_0x4eb138: 0x20a,
|
|
2045
|
+
_0x533c44: 0x1db,
|
|
2046
|
+
_0x497aa5: 0x1b8,
|
|
2047
|
+
_0x160346: 0x20a,
|
|
2048
|
+
_0x1547a4: 0x225,
|
|
2049
|
+
_0x2742a7: 0x1db,
|
|
2050
|
+
_0x199428: 0x2d6,
|
|
2051
|
+
_0x7d341a: 0x21f,
|
|
2052
|
+
_0x9f5f65: 0x252,
|
|
2053
|
+
_0x4eed39: 0x2de,
|
|
2054
|
+
_0x5b8815: 0x232,
|
|
2055
|
+
_0x17b7a2: 0x1ff,
|
|
2056
|
+
_0x5897b1: 0x1df,
|
|
2057
|
+
_0x419506: 0x18d,
|
|
2058
|
+
_0x5f4092: 0x1ff,
|
|
2059
|
+
_0x1f3872: 0x2dd,
|
|
2060
|
+
_0x1ec359: 0x1aa,
|
|
2061
|
+
_0x2f939b: 0x1ff,
|
|
2062
|
+
_0x42381f: 0x22b,
|
|
2063
|
+
_0xeacbe5: 0x16f,
|
|
2064
|
+
_0x538d91: 0x172,
|
|
2065
|
+
_0x3a0901: 0x1ce
|
|
2066
|
+
}, _0x447d89 = { _0x51b8f0: 0x293 }, _0x27745d = { _0x5b0a25: 0x284 }, _0x4e85f2 = { _0x55d97c: 0x284 }, _0x28271c = { _0x56b24c: 0x275 }, _0x2df29a = { _0xe005b1: 0x284 }, _0x50a837 = { _0x38ac89: 0x2d6 }, _0x517687 = {
|
|
2067
|
+
_0x317346: 0x2a7,
|
|
2068
|
+
_0x4b089b: 0x187
|
|
2069
|
+
}, _0x4da96c = {
|
|
2070
|
+
_0x2c2aec: 0x21e,
|
|
2071
|
+
_0x574b34: 0x284,
|
|
2072
|
+
_0x48116e: 0x2b5
|
|
2073
|
+
}, _0xbeabe7 = { _0x13e45e: 0x284 }, _0x425a17 = {
|
|
2074
|
+
_0x24c700: 0x284,
|
|
2075
|
+
_0x532d90: 0x28a
|
|
2076
|
+
}, _0xccd9bc = { _0x2b0786: 0x208 }, _0xed3186 = {
|
|
2077
|
+
_0x16a679: 0x284,
|
|
2078
|
+
_0x434643: 0x18e
|
|
2079
|
+
}, _0x1923b8 = _0xbabd6a, {z: _0x2600e9} = await import('zod');
|
|
2080
|
+
_0x349d75[_0x1923b8(0x1db)]('send_message', _0x1923b8(_0x48334c._0x5577d7), {
|
|
2081
|
+
'target': _0x2600e9['string'](),
|
|
2082
|
+
'content': _0x2600e9[_0x1923b8(_0x48334c._0x3f741d)](),
|
|
2083
|
+
'attachment_ids': _0x2600e9['array'](_0x2600e9[_0x1923b8(0x1ff)]())[_0x1923b8(0x16f)](),
|
|
2084
|
+
'visibility': _0x2600e9[_0x1923b8(_0x48334c._0x161918)]([
|
|
2085
|
+
_0x1923b8(_0x48334c._0x5099b3),
|
|
2086
|
+
_0x1923b8(_0x48334c._0x2560ad)
|
|
2087
|
+
])[_0x1923b8(0x16f)]()['describe'](_0x1923b8(_0x48334c._0x357f92))
|
|
2088
|
+
}, async _0xb609d4 => {
|
|
2089
|
+
const _0x3e4078 = _0x1923b8;
|
|
2090
|
+
try {
|
|
2091
|
+
return textResult(await _0x4977f7['send_message'](_0xb609d4));
|
|
2092
|
+
} catch (_0xeecb90) {
|
|
2093
|
+
return textResult(_0xeecb90 instanceof Error ? _0xeecb90[_0x3e4078(_0xed3186._0x16a679)] : _0x3e4078(_0xed3186._0x434643), !![]);
|
|
2094
|
+
}
|
|
2095
|
+
}), _0x349d75['tool'](_0x1923b8(0x298), _0x1923b8(_0x48334c._0x1d80e6), {}, async () => {
|
|
2096
|
+
const _0x8da69c = _0x1923b8;
|
|
2097
|
+
try {
|
|
2098
|
+
return textResult(await _0x4977f7['check_messages']());
|
|
2099
|
+
} catch (_0x1a98cf) {
|
|
2100
|
+
return textResult(_0x1a98cf instanceof Error ? _0x1a98cf[_0x8da69c(0x284)] : _0x8da69c(_0xccd9bc._0x2b0786), !![]);
|
|
2101
|
+
}
|
|
2102
|
+
}), _0x349d75['tool'](_0x1923b8(0x1d3), _0x1923b8(_0x48334c._0x5717fd), {
|
|
2103
|
+
'channel': _0x2600e9[_0x1923b8(0x1ff)](),
|
|
2104
|
+
'limit': _0x2600e9[_0x1923b8(_0x48334c._0x2df2a3)]()[_0x1923b8(0x16f)](),
|
|
2105
|
+
'before': _0x2600e9[_0x1923b8(_0x48334c._0x51a0d2)]()['optional'](),
|
|
2106
|
+
'after': _0x2600e9[_0x1923b8(_0x48334c._0x51a0d2)]()[_0x1923b8(0x16f)]()
|
|
2107
|
+
}, async _0x56a27a => {
|
|
2108
|
+
const _0x11bfe4 = _0x1923b8;
|
|
2109
|
+
try {
|
|
2110
|
+
return textResult(await _0x4977f7[_0x11bfe4(0x1d3)](_0x56a27a));
|
|
2111
|
+
} catch (_0x5bd702) {
|
|
2112
|
+
return textResult(_0x5bd702 instanceof Error ? _0x5bd702[_0x11bfe4(_0x425a17._0x24c700)] : _0x11bfe4(_0x425a17._0x532d90), !![]);
|
|
2113
|
+
}
|
|
2114
|
+
}), _0x349d75[_0x1923b8(_0x48334c._0x3b9d1d)](_0x1923b8(_0x48334c._0x276dca), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2115
|
+
const _0x32cc2d = _0x1923b8;
|
|
2116
|
+
try {
|
|
2117
|
+
return textResult(await _0x4977f7['list_server']());
|
|
2118
|
+
} catch (_0x1aff74) {
|
|
2119
|
+
return textResult(_0x1aff74 instanceof Error ? _0x1aff74['message'] : _0x32cc2d(0x291), !![]);
|
|
2120
|
+
}
|
|
2121
|
+
}), _0x349d75['tool'](_0x1923b8(0x271), _0x1923b8(_0x48334c._0x13d3cb), {
|
|
2122
|
+
'channel': _0x2600e9[_0x1923b8(0x1ff)](),
|
|
2123
|
+
'status': _0x2600e9[_0x1923b8(0x19d)]([
|
|
2124
|
+
'todo',
|
|
2125
|
+
_0x1923b8(_0x48334c._0x1565b3),
|
|
2126
|
+
_0x1923b8(0x225),
|
|
2127
|
+
_0x1923b8(0x1be)
|
|
2128
|
+
])['optional']()
|
|
2129
|
+
}, async _0x1ec1b3 => {
|
|
2130
|
+
const _0xd3a8dc = _0x1923b8;
|
|
2131
|
+
try {
|
|
2132
|
+
return textResult(await _0x4977f7['list_tasks'](_0x1ec1b3));
|
|
2133
|
+
} catch (_0x5592b5) {
|
|
2134
|
+
return textResult(_0x5592b5 instanceof Error ? _0x5592b5[_0xd3a8dc(_0xbeabe7._0x13e45e)] : 'list_tasks\x20failed', !![]);
|
|
2135
|
+
}
|
|
2136
|
+
}), _0x349d75[_0x1923b8(_0x48334c._0x3b9d1d)](_0x1923b8(_0x48334c._0x4e4215), _0x1923b8(0x25b), {
|
|
2137
|
+
'channel': _0x2600e9[_0x1923b8(0x1ff)](),
|
|
2138
|
+
'idempotency_key': _0x2600e9[_0x1923b8(0x1ff)]()[_0x1923b8(_0x48334c._0x341d1)](),
|
|
2139
|
+
'tasks': _0x2600e9['array'](_0x2600e9[_0x1923b8(0x25e)]({
|
|
2140
|
+
'title': _0x2600e9['string'](),
|
|
2141
|
+
'description': _0x2600e9['string']()[_0x1923b8(_0x48334c._0x341d1)](),
|
|
2142
|
+
'priority': _0x2600e9[_0x1923b8(0x19d)]([
|
|
2143
|
+
_0x1923b8(_0x48334c._0x3f91af),
|
|
2144
|
+
_0x1923b8(0x276),
|
|
2145
|
+
'high',
|
|
2146
|
+
_0x1923b8(_0x48334c._0x410480)
|
|
2147
|
+
])['optional']()
|
|
2148
|
+
}))
|
|
2149
|
+
}, async _0x1569f3 => {
|
|
2150
|
+
const _0x312940 = _0x1923b8;
|
|
2151
|
+
try {
|
|
2152
|
+
return textResult(await _0x4977f7[_0x312940(_0x4da96c._0x2c2aec)](_0x1569f3));
|
|
2153
|
+
} catch (_0x20f9f9) {
|
|
2154
|
+
return textResult(_0x20f9f9 instanceof Error ? _0x20f9f9[_0x312940(_0x4da96c._0x574b34)] : _0x312940(_0x4da96c._0x48116e), !![]);
|
|
2155
|
+
}
|
|
2156
|
+
}), _0x349d75[_0x1923b8(0x1db)](_0x1923b8(_0x48334c._0x3f4202), _0x1923b8(_0x48334c._0x53c1cf), {
|
|
2157
|
+
'channel': _0x2600e9[_0x1923b8(_0x48334c._0x3f741d)](),
|
|
2158
|
+
'task_numbers': _0x2600e9[_0x1923b8(_0x48334c._0x46e74b)](_0x2600e9[_0x1923b8(_0x48334c._0xffbfd8)]())[_0x1923b8(_0x48334c._0x5baebc)](),
|
|
2159
|
+
'message_ids': _0x2600e9['array'](_0x2600e9['string']())[_0x1923b8(0x16f)](),
|
|
2160
|
+
'evidence': _0x2600e9[_0x1923b8(0x27c)](_0x2600e9[_0x1923b8(0x1ff)](), _0x2600e9[_0x1923b8(_0x48334c._0x507ad5)]({
|
|
2161
|
+
'create_thread': _0x2600e9['unknown']()[_0x1923b8(0x16f)](),
|
|
2162
|
+
'create_task': _0x2600e9[_0x1923b8(0x17e)]()['optional']()
|
|
2163
|
+
}))[_0x1923b8(0x16f)](),
|
|
2164
|
+
'idempotency_key': _0x2600e9[_0x1923b8(0x1ff)]()['optional']()
|
|
2165
|
+
}, async _0x3de24b => {
|
|
2166
|
+
const _0xe59d7d = _0x1923b8;
|
|
2167
|
+
try {
|
|
2168
|
+
return textResult(await _0x4977f7[_0xe59d7d(0x2af)](_0x3de24b));
|
|
2169
|
+
} catch (_0x4f0184) {
|
|
2170
|
+
return textResult(_0x4f0184 instanceof Error ? _0x4f0184[_0xe59d7d(0x284)] : _0xe59d7d(0x279), !![]);
|
|
2171
|
+
}
|
|
2172
|
+
}), _0x349d75[_0x1923b8(0x1db)](_0x1923b8(_0x48334c._0x3c8d80), _0x1923b8(_0x48334c._0x11df6c), {
|
|
2173
|
+
'channel': _0x2600e9[_0x1923b8(_0x48334c._0x342497)](),
|
|
2174
|
+
'task_number': _0x2600e9[_0x1923b8(_0x48334c._0x4eb138)](),
|
|
2175
|
+
'idempotency_key': _0x2600e9[_0x1923b8(0x1ff)]()[_0x1923b8(_0x48334c._0x5baebc)]()
|
|
2176
|
+
}, async _0x314378 => {
|
|
2177
|
+
const _0x244430 = _0x1923b8;
|
|
2178
|
+
try {
|
|
2179
|
+
return textResult(await _0x4977f7[_0x244430(_0x517687._0x317346)](_0x314378));
|
|
2180
|
+
} catch (_0x2800e7) {
|
|
2181
|
+
return textResult(_0x2800e7 instanceof Error ? _0x2800e7['message'] : _0x244430(_0x517687._0x4b089b), !![]);
|
|
2182
|
+
}
|
|
2183
|
+
}), _0x349d75[_0x1923b8(_0x48334c._0x533c44)](_0x1923b8(0x1ab), _0x1923b8(_0x48334c._0x497aa5), {
|
|
2184
|
+
'channel': _0x2600e9['string'](),
|
|
2185
|
+
'task_number': _0x2600e9[_0x1923b8(_0x48334c._0x160346)](),
|
|
2186
|
+
'status': _0x2600e9['enum']([
|
|
2187
|
+
_0x1923b8(0x259),
|
|
2188
|
+
_0x1923b8(0x210),
|
|
2189
|
+
_0x1923b8(_0x48334c._0x1547a4),
|
|
2190
|
+
_0x1923b8(0x1be)
|
|
2191
|
+
]),
|
|
2192
|
+
'idempotency_key': _0x2600e9[_0x1923b8(0x1ff)]()['optional']()
|
|
2193
|
+
}, async _0x47e998 => {
|
|
2194
|
+
const _0xdd0c92 = _0x1923b8;
|
|
2195
|
+
try {
|
|
2196
|
+
return textResult(await _0x4977f7['update_task_status'](_0x47e998));
|
|
2197
|
+
} catch (_0x1abe3c) {
|
|
2198
|
+
return textResult(_0x1abe3c instanceof Error ? _0x1abe3c[_0xdd0c92(0x284)] : _0xdd0c92(0x1cd), !![]);
|
|
2199
|
+
}
|
|
2200
|
+
}), _0x349d75[_0x1923b8(_0x48334c._0x2742a7)](_0x1923b8(_0x48334c._0x199428), _0x1923b8(0x171), {
|
|
2201
|
+
'channel': _0x2600e9[_0x1923b8(0x1ff)](),
|
|
2202
|
+
'file_path': _0x2600e9['string']()
|
|
2203
|
+
}, async _0x4a7026 => {
|
|
2204
|
+
const _0x4919d0 = _0x1923b8;
|
|
2205
|
+
try {
|
|
2206
|
+
return textResult(await _0x4977f7[_0x4919d0(_0x50a837._0x38ac89)](_0x4a7026));
|
|
2207
|
+
} catch (_0x4cd25c) {
|
|
2208
|
+
return textResult(_0x4cd25c instanceof Error ? _0x4cd25c[_0x4919d0(0x284)] : _0x4919d0(0x227), !![]);
|
|
2209
|
+
}
|
|
2210
|
+
}), _0x349d75['tool'](_0x1923b8(_0x48334c._0x7d341a), _0x1923b8(_0x48334c._0x9f5f65), { 'attachment_id': _0x2600e9['string']() }, async _0x32232b => {
|
|
2211
|
+
const _0x2bdaa7 = _0x1923b8;
|
|
2212
|
+
try {
|
|
2213
|
+
return textResult(await _0x4977f7[_0x2bdaa7(0x21f)](_0x32232b));
|
|
2214
|
+
} catch (_0x9c83c6) {
|
|
2215
|
+
return textResult(_0x9c83c6 instanceof Error ? _0x9c83c6[_0x2bdaa7(_0x2df29a._0xe005b1)] : _0x2bdaa7(0x273), !![]);
|
|
2216
|
+
}
|
|
2217
|
+
}), _0x349d75['tool']('get_worker_status', 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x2600e9[_0x1923b8(_0x48334c._0x342497)]() }, async _0x29234b => {
|
|
2218
|
+
const _0x5b82ff = _0x1923b8;
|
|
2219
|
+
try {
|
|
2220
|
+
return textResult(await _0x4977f7[_0x5b82ff(0x2b4)](_0x29234b));
|
|
2221
|
+
} catch (_0x178b9c) {
|
|
2222
|
+
return textResult(_0x178b9c instanceof Error ? _0x178b9c['message'] : _0x5b82ff(_0x28271c._0x56b24c), !![]);
|
|
2223
|
+
}
|
|
2224
|
+
}), _0x349d75[_0x1923b8(0x1db)](_0x1923b8(_0x48334c._0x4eed39), _0x1923b8(_0x48334c._0x5b8815), { 'work_key': _0x2600e9[_0x1923b8(_0x48334c._0x17b7a2)]() }, async _0x25bd80 => {
|
|
2225
|
+
const _0x4445ed = _0x1923b8;
|
|
2226
|
+
try {
|
|
2227
|
+
return textResult(await _0x4977f7['get_worker_result'](_0x25bd80));
|
|
2228
|
+
} catch (_0x6ba860) {
|
|
2229
|
+
return textResult(_0x6ba860 instanceof Error ? _0x6ba860[_0x4445ed(_0x4e85f2._0x55d97c)] : _0x4445ed(0x180), !![]);
|
|
2230
|
+
}
|
|
2231
|
+
}), _0x349d75['tool'](_0x1923b8(_0x48334c._0x5897b1), _0x1923b8(_0x48334c._0x419506), {
|
|
2232
|
+
'work_key': _0x2600e9[_0x1923b8(_0x48334c._0x5f4092)](),
|
|
2233
|
+
'result': _0x2600e9[_0x1923b8(0x19d)]([
|
|
2234
|
+
'completed',
|
|
2235
|
+
_0x1923b8(_0x48334c._0x1f3872),
|
|
2236
|
+
_0x1923b8(_0x48334c._0x1ec359)
|
|
2237
|
+
]),
|
|
2238
|
+
'summary': _0x2600e9[_0x1923b8(_0x48334c._0x2f939b)](),
|
|
2239
|
+
'decisions': _0x2600e9['array'](_0x2600e9[_0x1923b8(_0x48334c._0x3f741d)]())['optional'](),
|
|
2240
|
+
'files_changed': _0x2600e9[_0x1923b8(0x22b)](_0x2600e9[_0x1923b8(0x1ff)]())[_0x1923b8(_0x48334c._0x341d1)](),
|
|
2241
|
+
'open_issues': _0x2600e9['array'](_0x2600e9[_0x1923b8(0x1ff)]())[_0x1923b8(0x16f)](),
|
|
2242
|
+
'next_steps': _0x2600e9[_0x1923b8(_0x48334c._0x42381f)](_0x2600e9[_0x1923b8(0x1ff)]())[_0x1923b8(_0x48334c._0xeacbe5)]()
|
|
2243
|
+
}, async _0x4b3668 => {
|
|
2244
|
+
const _0x6e4951 = _0x1923b8;
|
|
2245
|
+
try {
|
|
2246
|
+
return textResult(await _0x4977f7[_0x6e4951(0x1df)](_0x4b3668));
|
|
2247
|
+
} catch (_0x3c1188) {
|
|
2248
|
+
return textResult(_0x3c1188 instanceof Error ? _0x3c1188[_0x6e4951(_0x27745d._0x5b0a25)] : _0x6e4951(0x1d2), !![]);
|
|
2249
|
+
}
|
|
2250
|
+
}), _0x349d75[_0x1923b8(0x1db)]('escalate_to_main', _0x1923b8(0x192), {
|
|
2251
|
+
'work_key': _0x2600e9['string'](),
|
|
2252
|
+
'reason': _0x2600e9[_0x1923b8(0x1ff)]()
|
|
2253
|
+
}, async _0x20cae6 => {
|
|
2254
|
+
const _0x259769 = _0x1923b8;
|
|
2255
|
+
try {
|
|
2256
|
+
return textResult(await _0x4977f7[_0x259769(0x1ca)](_0x20cae6));
|
|
2257
|
+
} catch (_0x1ab6a4) {
|
|
2258
|
+
return textResult(_0x1ab6a4 instanceof Error ? _0x1ab6a4[_0x259769(0x284)] : _0x259769(_0x447d89._0x51b8f0), !![]);
|
|
2259
|
+
}
|
|
2260
|
+
}), _0x5e09db?.[_0x1923b8(_0x48334c._0x538d91)] && _0x349d75['tool']('mark_waiting_input', _0x1923b8(_0x48334c._0x3a0901), { 'work_key': _0x2600e9['string']() }, async _0x1f9689 => {
|
|
2261
|
+
const _0x4735b4 = _0x1923b8;
|
|
2262
|
+
try {
|
|
2263
|
+
return textResult(await _0x4977f7[_0x4735b4(0x242)](_0x1f9689));
|
|
2264
|
+
} catch (_0x4c728f) {
|
|
2265
|
+
return textResult(_0x4c728f instanceof Error ? _0x4c728f[_0x4735b4(0x284)] : _0x4735b4(0x1f6), !![]);
|
|
2266
|
+
}
|
|
2267
|
+
});
|
|
2268
|
+
}
|
|
2269
|
+
async function createChatBridgeServer(_0x472abd) {
|
|
2270
|
+
const _0x3c04cc = { _0xf5dd1e: 0x172 }, _0x267e64 = _0xbabd6a, {McpServer: _0x153bf3} = await import(_0x267e64(0x266)), _0x541219 = new _0x153bf3({
|
|
2271
|
+
'name': 'chat',
|
|
2272
|
+
'version': _0x267e64(0x1ac)
|
|
2273
|
+
}), _0xf353d0 = createChatBridgeHandlers(_0x472abd);
|
|
2274
|
+
return await registerChatBridgeTools(_0x541219, _0xf353d0, { 'workerMode': _0x472abd[_0x267e64(_0x3c04cc._0xf5dd1e)] }), {
|
|
2275
|
+
'handlers': _0xf353d0,
|
|
2276
|
+
'server': _0x541219
|
|
2277
|
+
};
|
|
2278
|
+
}
|
|
2279
|
+
function readFlag(_0xc95707, _0x4592b4) {
|
|
2280
|
+
const _0x48bd28 = _0xc95707['indexOf'](_0x4592b4);
|
|
2281
|
+
if (_0x48bd28 === -0x1)
|
|
2282
|
+
return void 0x0;
|
|
2283
|
+
return _0xc95707[_0x48bd28 + 0x1];
|
|
2284
|
+
}
|
|
2285
|
+
function parseChatBridgeArgs(_0x36eeaa) {
|
|
2286
|
+
const _0xc94b72 = {
|
|
2287
|
+
_0x3d1db9: 0x1c0,
|
|
2288
|
+
_0x4b1bc9: 0x2be,
|
|
2289
|
+
_0x17cb86: 0x203,
|
|
2290
|
+
_0x4314b5: 0x20e,
|
|
2291
|
+
_0x1f9315: 0x184,
|
|
2292
|
+
_0x13f9f4: 0x174,
|
|
2293
|
+
_0xc73852: 0x1f2
|
|
2294
|
+
}, _0x2b10ed = _0xbabd6a, _0x5c5c35 = readFlag(_0x36eeaa, _0x2b10ed(_0xc94b72._0x3d1db9)), _0x252965 = readFlag(_0x36eeaa, _0x2b10ed(_0xc94b72._0x4b1bc9)), _0x240023 = readFlag(_0x36eeaa, _0x2b10ed(0x2ba)), _0x290eeb = readFlag(_0x36eeaa, _0x2b10ed(_0xc94b72._0x17cb86)) ?? _0x2b10ed(0x1a1), _0x18692d = readFlag(_0x36eeaa, _0x2b10ed(_0xc94b72._0x4314b5)), _0x201e37 = readFlag(_0x36eeaa, _0x2b10ed(_0xc94b72._0x1f9315)), _0x479a85 = readFlag(_0x36eeaa, '--worker-mode-enabled'), _0x1f12fd = readFlag(_0x36eeaa, _0x2b10ed(0x183)), _0xb394ef = readFlag(_0x36eeaa, '--worker-thread-target'), _0x1d445d = _0x36eeaa['includes'](_0x2b10ed(_0xc94b72._0x13f9f4)), _0x144e36 = _0x240023 === void 0x0 ? void 0x0 : Number['parseInt'](_0x240023, 0xa);
|
|
2295
|
+
if (!_0x5c5c35)
|
|
2296
|
+
throw new Error('Missing\x20--agent-id');
|
|
2297
|
+
if (!_0x252965)
|
|
2298
|
+
throw new Error('Missing\x20--daemon-api-key');
|
|
2299
|
+
if (_0x240023 !== void 0x0 && (_0x144e36 === void 0x0 || !Number[_0x2b10ed(_0xc94b72._0xc73852)](_0x144e36) || _0x144e36 < 0x0))
|
|
2300
|
+
throw new Error(_0x2b10ed(0x26d));
|
|
2301
|
+
return {
|
|
2302
|
+
'agentId': _0x5c5c35,
|
|
2303
|
+
'daemonApiKey': _0x252965,
|
|
2304
|
+
'daemonLocalUrl': _0x18692d,
|
|
2305
|
+
'initialLastSeenSeq': _0x144e36,
|
|
2306
|
+
'sessionId': _0x201e37,
|
|
2307
|
+
'serverUrl': _0x290eeb,
|
|
2308
|
+
'workerModeEnabled': _0x479a85 === void 0x0 ? void 0x0 : _0x479a85 !== 'false',
|
|
2309
|
+
'workerSessionId': _0x1f12fd,
|
|
2310
|
+
'workerThreadTarget': _0xb394ef,
|
|
2311
|
+
'workerMode': _0x1d445d
|
|
2312
|
+
};
|
|
2313
|
+
}
|
|
2314
|
+
async function runChatBridgeCli(_0x23944a) {
|
|
2315
|
+
const _0x407b24 = {
|
|
2316
|
+
_0x2c4e9f: 0x26a,
|
|
2317
|
+
_0x4f5135: 0x172,
|
|
2318
|
+
_0x5c22a9: 0x2dc
|
|
2319
|
+
}, _0x184c99 = _0xbabd6a, _0x8a907c = parseChatBridgeArgs(_0x23944a), {StdioServerTransport: _0x521dc1} = await import(_0x184c99(0x2db)), _0x435148 = createInternalAgentClient(_0x8a907c), _0xe7fca8 = createAttachmentCache(), _0x4e6aec = await createChatBridgeServer({
|
|
2320
|
+
'agentId': _0x8a907c[_0x184c99(0x18b)],
|
|
2321
|
+
'attachmentCache': _0xe7fca8,
|
|
2322
|
+
'client': _0x435148,
|
|
2323
|
+
'daemonLocalUrl': _0x8a907c[_0x184c99(_0x407b24._0x2c4e9f)],
|
|
2324
|
+
'uploadPreparer': prepareUploadFile,
|
|
2325
|
+
'workerModeEnabled': _0x8a907c['workerModeEnabled'],
|
|
2326
|
+
'workerMode': _0x8a907c[_0x184c99(_0x407b24._0x4f5135)]
|
|
2327
|
+
});
|
|
2328
|
+
await _0x4e6aec[_0x184c99(_0x407b24._0x5c22a9)][_0x184c99(0x21a)](new _0x521dc1());
|
|
2362
2329
|
}
|
|
2330
|
+
var executedAsEntry = process[_0xbabd6a(0x294)][0x1] ? import.meta.url === pathToFileURL(process[_0xbabd6a(0x294)][0x1])[_0xbabd6a(0x1f7)] : ![];
|
|
2331
|
+
executedAsEntry && await runChatBridgeCli(process['argv'][_0xbabd6a(0x1e8)](0x2));
|
|
2363
2332
|
export {
|
|
2364
2333
|
createChatBridgeHandlers,
|
|
2365
2334
|
createChatBridgeServer,
|