coreblow 1.0.0-rc.5 → 1.0.0-rc.7
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/extensions/bluebubbles/src/channel.ts +20 -0
- package/extensions/feishu/src/channel.ts +20 -0
- package/extensions/googlechat/src/channel.ts +20 -0
- package/extensions/imessage/src/channel.ts +20 -0
- package/extensions/imessage/src/runtime.ts +5 -0
- package/extensions/irc/src/channel.ts +20 -0
- package/extensions/line/src/channel.ts +20 -0
- package/extensions/mattermost/src/channel.ts +20 -0
- package/extensions/msteams/src/channel.ts +20 -0
- package/extensions/nextcloud-talk/src/channel.ts +20 -0
- package/extensions/nostr/src/channel.ts +20 -0
- package/extensions/signal/src/channel.ts +20 -0
- package/extensions/synology-chat/src/channel.ts +20 -0
- package/extensions/tlon/src/channel.ts +20 -0
- package/extensions/whatsapp/src/channel.ts +20 -0
- package/extensions/zalo/src/channel.ts +20 -0
- package/extensions/zalouser/src/channel.ts +20 -0
- package/extensions/zalouser/src/runtime.ts +5 -0
- package/package.json +10 -4
- package/src/gateway/tools-invoke-http.ts +5 -6
- package/src/security/audit-channel.ts +2 -2
- package/src/utils/logger.ts +2 -2
|
@@ -357,3 +357,23 @@ export const bluebubblesPlugin: ChannelPlugin<ResolvedBlueBubblesAccount, BlueBu
|
|
|
357
357
|
},
|
|
358
358
|
},
|
|
359
359
|
});
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Channel implementation used by BluebubblesRuntime for per-channel state.
|
|
363
|
+
*/
|
|
364
|
+
export class BluebubblesChannelImpl {
|
|
365
|
+
readonly id: string;
|
|
366
|
+
private connected = false;
|
|
367
|
+
|
|
368
|
+
constructor(id: string) {
|
|
369
|
+
this.id = id;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
async disconnect(): Promise<void> {
|
|
373
|
+
this.connected = false;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
isConnected(): boolean {
|
|
377
|
+
return this.connected;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
@@ -1184,3 +1184,23 @@ export const feishuPlugin: ChannelPlugin<ResolvedFeishuAccount, FeishuProbeResul
|
|
|
1184
1184
|
}),
|
|
1185
1185
|
},
|
|
1186
1186
|
});
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Channel implementation used by feishu runtime for per-channel state.
|
|
1190
|
+
*/
|
|
1191
|
+
export class FeishuChannelImpl {
|
|
1192
|
+
readonly id: string;
|
|
1193
|
+
private connected = false;
|
|
1194
|
+
|
|
1195
|
+
constructor(id: string) {
|
|
1196
|
+
this.id = id;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
async disconnect(): Promise<void> {
|
|
1200
|
+
this.connected = false;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
isConnected(): boolean {
|
|
1204
|
+
return this.connected;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
@@ -465,3 +465,23 @@ export const googlechatPlugin = createChatChannelPlugin({
|
|
|
465
465
|
},
|
|
466
466
|
},
|
|
467
467
|
});
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Channel implementation used by googlechat runtime for per-channel state.
|
|
471
|
+
*/
|
|
472
|
+
export class GooglechatChannelImpl {
|
|
473
|
+
readonly id: string;
|
|
474
|
+
private connected = false;
|
|
475
|
+
|
|
476
|
+
constructor(id: string) {
|
|
477
|
+
this.id = id;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
async disconnect(): Promise<void> {
|
|
481
|
+
this.connected = false;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
isConnected(): boolean {
|
|
485
|
+
return this.connected;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
@@ -270,3 +270,23 @@ export const imessagePlugin: ChannelPlugin<ResolvedIMessageAccount, IMessageProb
|
|
|
270
270
|
},
|
|
271
271
|
},
|
|
272
272
|
});
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Channel implementation used by imessage runtime for per-channel state.
|
|
276
|
+
*/
|
|
277
|
+
export class ImessageChannelImpl {
|
|
278
|
+
readonly id: string;
|
|
279
|
+
private connected = false;
|
|
280
|
+
|
|
281
|
+
constructor(id: string) {
|
|
282
|
+
this.id = id;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
async disconnect(): Promise<void> {
|
|
286
|
+
this.connected = false;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
isConnected(): boolean {
|
|
290
|
+
return this.connected;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
@@ -44,3 +44,8 @@ export class ImessageRuntime {
|
|
|
44
44
|
return { handled: true, extension: this.extension.name };
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
// Runtime setter for index.ts
|
|
49
|
+
export function setIMessageRuntime(runtime: any): void {
|
|
50
|
+
// Placeholder — called by extension index to wire runtime
|
|
51
|
+
}
|
|
@@ -355,3 +355,23 @@ export const ircPlugin: ChannelPlugin<ResolvedIrcAccount, IrcProbe> = createChat
|
|
|
355
355
|
},
|
|
356
356
|
},
|
|
357
357
|
});
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Channel implementation used by irc runtime for per-channel state.
|
|
361
|
+
*/
|
|
362
|
+
export class IrcChannelImpl {
|
|
363
|
+
readonly id: string;
|
|
364
|
+
private connected = false;
|
|
365
|
+
|
|
366
|
+
constructor(id: string) {
|
|
367
|
+
this.id = id;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
async disconnect(): Promise<void> {
|
|
371
|
+
this.connected = false;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
isConnected(): boolean {
|
|
375
|
+
return this.connected;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
@@ -522,3 +522,23 @@ export const linePlugin: ChannelPlugin<ResolvedLineAccount> = createChatChannelP
|
|
|
522
522
|
}),
|
|
523
523
|
},
|
|
524
524
|
});
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Channel implementation used by line runtime for per-channel state.
|
|
528
|
+
*/
|
|
529
|
+
export class LineChannelImpl {
|
|
530
|
+
readonly id: string;
|
|
531
|
+
private connected = false;
|
|
532
|
+
|
|
533
|
+
constructor(id: string) {
|
|
534
|
+
this.id = id;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
async disconnect(): Promise<void> {
|
|
538
|
+
this.connected = false;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
isConnected(): boolean {
|
|
542
|
+
return this.connected;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
@@ -482,3 +482,23 @@ export const mattermostPlugin: ChannelPlugin<ResolvedMattermostAccount> = create
|
|
|
482
482
|
},
|
|
483
483
|
},
|
|
484
484
|
});
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Channel implementation used by mattermost runtime for per-channel state.
|
|
488
|
+
*/
|
|
489
|
+
export class MattermostChannelImpl {
|
|
490
|
+
readonly id: string;
|
|
491
|
+
private connected = false;
|
|
492
|
+
|
|
493
|
+
constructor(id: string) {
|
|
494
|
+
this.id = id;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
async disconnect(): Promise<void> {
|
|
498
|
+
this.connected = false;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
isConnected(): boolean {
|
|
502
|
+
return this.connected;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
@@ -951,3 +951,23 @@ export const msteamsPlugin: ChannelPlugin<ResolvedMSTeamsAccount, ProbeMSTeamsRe
|
|
|
951
951
|
}),
|
|
952
952
|
},
|
|
953
953
|
});
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Channel implementation used by msteams runtime for per-channel state.
|
|
957
|
+
*/
|
|
958
|
+
export class MsteamsChannelImpl {
|
|
959
|
+
readonly id: string;
|
|
960
|
+
private connected = false;
|
|
961
|
+
|
|
962
|
+
constructor(id: string) {
|
|
963
|
+
this.id = id;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
async disconnect(): Promise<void> {
|
|
967
|
+
this.connected = false;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
isConnected(): boolean {
|
|
971
|
+
return this.connected;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
@@ -327,3 +327,23 @@ export const nextcloudTalkPlugin: ChannelPlugin<ResolvedNextcloudTalkAccount> =
|
|
|
327
327
|
},
|
|
328
328
|
},
|
|
329
329
|
});
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Channel implementation used by nextcloud-talk runtime for per-channel state.
|
|
333
|
+
*/
|
|
334
|
+
export class NextcloudTalkChannelImpl {
|
|
335
|
+
readonly id: string;
|
|
336
|
+
private connected = false;
|
|
337
|
+
|
|
338
|
+
constructor(id: string) {
|
|
339
|
+
this.id = id;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
async disconnect(): Promise<void> {
|
|
343
|
+
this.connected = false;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
isConnected(): boolean {
|
|
347
|
+
return this.connected;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
@@ -501,3 +501,23 @@ export async function getNostrProfileState(accountId: string = DEFAULT_ACCOUNT_I
|
|
|
501
501
|
}
|
|
502
502
|
return bus.getProfileState();
|
|
503
503
|
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Channel implementation used by nostr runtime for per-channel state.
|
|
507
|
+
*/
|
|
508
|
+
export class NostrChannelImpl {
|
|
509
|
+
readonly id: string;
|
|
510
|
+
private connected = false;
|
|
511
|
+
|
|
512
|
+
constructor(id: string) {
|
|
513
|
+
this.id = id;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
async disconnect(): Promise<void> {
|
|
517
|
+
this.connected = false;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
isConnected(): boolean {
|
|
521
|
+
return this.connected;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
@@ -363,3 +363,23 @@ export const signalPlugin: ChannelPlugin<ResolvedSignalAccount, SignalProbe> =
|
|
|
363
363
|
},
|
|
364
364
|
},
|
|
365
365
|
});
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Channel implementation used by signal runtime for per-channel state.
|
|
369
|
+
*/
|
|
370
|
+
export class SignalChannelImpl {
|
|
371
|
+
readonly id: string;
|
|
372
|
+
private connected = false;
|
|
373
|
+
|
|
374
|
+
constructor(id: string) {
|
|
375
|
+
this.id = id;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
async disconnect(): Promise<void> {
|
|
379
|
+
this.connected = false;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
isConnected(): boolean {
|
|
383
|
+
return this.connected;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
@@ -349,3 +349,23 @@ export function createSynologyChatPlugin(): SynologyChatPlugin {
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
export const synologyChatPlugin = createSynologyChatPlugin();
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Channel implementation used by synology-chat runtime for per-channel state.
|
|
355
|
+
*/
|
|
356
|
+
export class SynologyChatChannelImpl {
|
|
357
|
+
readonly id: string;
|
|
358
|
+
private connected = false;
|
|
359
|
+
|
|
360
|
+
constructor(id: string) {
|
|
361
|
+
this.id = id;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
async disconnect(): Promise<void> {
|
|
365
|
+
this.connected = false;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
isConnected(): boolean {
|
|
369
|
+
return this.connected;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
@@ -169,3 +169,23 @@ export const tlonPlugin = createChatChannelPlugin({
|
|
|
169
169
|
}),
|
|
170
170
|
},
|
|
171
171
|
});
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Channel implementation used by tlon runtime for per-channel state.
|
|
175
|
+
*/
|
|
176
|
+
export class TlonChannelImpl {
|
|
177
|
+
readonly id: string;
|
|
178
|
+
private connected = false;
|
|
179
|
+
|
|
180
|
+
constructor(id: string) {
|
|
181
|
+
this.id = id;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
async disconnect(): Promise<void> {
|
|
185
|
+
this.connected = false;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
isConnected(): boolean {
|
|
189
|
+
return this.connected;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -330,3 +330,23 @@ export const whatsappPlugin: ChannelPlugin<ResolvedWhatsAppAccount> =
|
|
|
330
330
|
},
|
|
331
331
|
},
|
|
332
332
|
});
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Channel implementation used by whatsapp runtime for per-channel state.
|
|
336
|
+
*/
|
|
337
|
+
export class WhatsappChannelImpl {
|
|
338
|
+
readonly id: string;
|
|
339
|
+
private connected = false;
|
|
340
|
+
|
|
341
|
+
constructor(id: string) {
|
|
342
|
+
this.id = id;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
async disconnect(): Promise<void> {
|
|
346
|
+
this.connected = false;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
isConnected(): boolean {
|
|
350
|
+
return this.connected;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
@@ -261,3 +261,23 @@ export const zaloPlugin: ChannelPlugin<ResolvedZaloAccount, ZaloProbeResult> =
|
|
|
261
261
|
...zaloRawSendResultAdapter,
|
|
262
262
|
},
|
|
263
263
|
});
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Channel implementation used by zalo runtime for per-channel state.
|
|
267
|
+
*/
|
|
268
|
+
export class ZaloChannelImpl {
|
|
269
|
+
readonly id: string;
|
|
270
|
+
private connected = false;
|
|
271
|
+
|
|
272
|
+
constructor(id: string) {
|
|
273
|
+
this.id = id;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
async disconnect(): Promise<void> {
|
|
277
|
+
this.connected = false;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
isConnected(): boolean {
|
|
281
|
+
return this.connected;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
@@ -525,3 +525,23 @@ export const zalouserPlugin: ChannelPlugin<ResolvedZalouserAccount, ZalouserProb
|
|
|
525
525
|
});
|
|
526
526
|
|
|
527
527
|
export type { ResolvedZalouserAccount };
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Channel implementation used by zalouser runtime for per-channel state.
|
|
531
|
+
*/
|
|
532
|
+
export class ZalouserChannelImpl {
|
|
533
|
+
readonly id: string;
|
|
534
|
+
private connected = false;
|
|
535
|
+
|
|
536
|
+
constructor(id: string) {
|
|
537
|
+
this.id = id;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
async disconnect(): Promise<void> {
|
|
541
|
+
this.connected = false;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
isConnected(): boolean {
|
|
545
|
+
return this.connected;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
@@ -44,3 +44,8 @@ export class ZalouserRuntime {
|
|
|
44
44
|
return { handled: true, extension: this.extension.name };
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
// Runtime setter for index.ts
|
|
49
|
+
export function setZalouserRuntime(runtime: any): void {
|
|
50
|
+
// Placeholder — called by extension index to wire runtime
|
|
51
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coreblow",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.7",
|
|
4
4
|
"description": "CoreBlow — personal AI assistant with multi-channel support",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@agentclientprotocol/sdk": "^0.18.2",
|
|
34
|
+
"@anthropic-ai/vertex-sdk": "^0.16.0",
|
|
34
35
|
"@aws-sdk/client-bedrock": "^3.1030.0",
|
|
35
36
|
"@aws-sdk/client-s3": "^3.1038.0",
|
|
36
37
|
"@aws-sdk/s3-request-presigner": "^3.1038.0",
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"@discordjs/voice": "^0.19.2",
|
|
40
41
|
"@grammyjs/runner": "^2.0.3",
|
|
41
42
|
"@grammyjs/transformer-throttler": "^1.2.1",
|
|
43
|
+
"@grammyjs/types": "^3.26.0",
|
|
42
44
|
"@lancedb/lancedb": "^0.27.2",
|
|
43
45
|
"@larksuiteoapi/node-sdk": "^1.60.0",
|
|
44
46
|
"@line/bot-sdk": "^11.0.0",
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
"@mariozechner/pi-tui": "0.70.2",
|
|
49
51
|
"@matrix-org/matrix-sdk-crypto-nodejs": "^0.5.1",
|
|
50
52
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
53
|
+
"@opentelemetry/api": "^1.9.1",
|
|
51
54
|
"@opentelemetry/api-logs": "^0.215.0",
|
|
52
55
|
"@opentelemetry/exporter-logs-otlp-proto": "^0.215.0",
|
|
53
56
|
"@opentelemetry/exporter-metrics-otlp-proto": "^0.215.0",
|
|
@@ -81,7 +84,10 @@
|
|
|
81
84
|
"express": "^4.22.1",
|
|
82
85
|
"fake-indexeddb": "^6.2.5",
|
|
83
86
|
"file-type": "^22.0.1",
|
|
87
|
+
"google-auth-library": "^10.6.2",
|
|
84
88
|
"grammy": "^1.41.1",
|
|
89
|
+
"https-proxy-agent": "^9.0.0",
|
|
90
|
+
"ipaddr.js": "^2.3.0",
|
|
85
91
|
"jiti": "^2.6.1",
|
|
86
92
|
"json5": "^2.2.3",
|
|
87
93
|
"jszip": "^3.10.1",
|
|
@@ -91,8 +97,10 @@
|
|
|
91
97
|
"music-metadata": "^11.12.3",
|
|
92
98
|
"node-edge-tts": "^1.2.10",
|
|
93
99
|
"nostr-tools": "^2.23.3",
|
|
100
|
+
"openai": "^6.34.0",
|
|
94
101
|
"osc-progress": "^0.3.0",
|
|
95
102
|
"pino": "^9.14.0",
|
|
103
|
+
"playwright-core": "^1.59.1",
|
|
96
104
|
"qrcode-terminal": "^0.12.0",
|
|
97
105
|
"react": "^19.2.0",
|
|
98
106
|
"react-dom": "^19.2.0",
|
|
@@ -103,6 +111,7 @@
|
|
|
103
111
|
"tslog": "^4.10.2",
|
|
104
112
|
"tsx": "^4.21.0",
|
|
105
113
|
"typebox": "1.1.24",
|
|
114
|
+
"undici": "^8.1.0",
|
|
106
115
|
"ws": "^8.19.0",
|
|
107
116
|
"yaml": "^2.8.3",
|
|
108
117
|
"zod": "^4.3.6"
|
|
@@ -112,7 +121,6 @@
|
|
|
112
121
|
"@ai-sdk/provider": "^3.0.8",
|
|
113
122
|
"@anthropic-ai/bedrock-sdk": "^0.28.1",
|
|
114
123
|
"@anthropic-ai/sdk": "^0.90.0",
|
|
115
|
-
"@anthropic-ai/vertex-sdk": "^0.16.0",
|
|
116
124
|
"@types/express": "^5.0.6",
|
|
117
125
|
"@types/ws": "^8.18.1",
|
|
118
126
|
"@vitejs/plugin-react": "^5.1.1",
|
|
@@ -120,11 +128,9 @@
|
|
|
120
128
|
"ai": "^6.0.168",
|
|
121
129
|
"bonjour-service": "^1.3.0",
|
|
122
130
|
"ciao": "^2.0.0",
|
|
123
|
-
"google-auth-library": "^10.6.2",
|
|
124
131
|
"jscpd": "4.0.8",
|
|
125
132
|
"jsdom": "^29.0.1",
|
|
126
133
|
"ollama": "^0.6.3",
|
|
127
|
-
"openai": "^6.34.0",
|
|
128
134
|
"oxlint": "^1.57.0",
|
|
129
135
|
"pino-pretty": "^13.1.3",
|
|
130
136
|
"tsdown": "0.21.5",
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
mergeAlsoAllowPolicy,
|
|
18
18
|
resolveToolProfilePolicy,
|
|
19
19
|
} from "../agents/tool-policy.js";
|
|
20
|
-
import { ToolInputError } from "../agents/tools/common.js";
|
|
20
|
+
import { ToolInputError, type AnyAgentTool } from "../agents/tools/common.js";
|
|
21
21
|
import { loadConfig } from "../config/config.js";
|
|
22
22
|
import { resolveMainSessionKey } from "../config/sessions.js";
|
|
23
23
|
import { logWarn } from "../logger.js";
|
|
@@ -272,9 +272,8 @@ export async function handleToolsInvokeHttpRequest(
|
|
|
272
272
|
});
|
|
273
273
|
|
|
274
274
|
const subagentFiltered = applyToolPolicyPipeline({
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
toolMeta: (tool) => getPluginToolMeta(tool as Record<string, unknown>),
|
|
275
|
+
tools: allTools as unknown as AnyAgentTool[],
|
|
276
|
+
toolMeta: (tool) => getPluginToolMeta(tool),
|
|
278
277
|
warn: logWarn,
|
|
279
278
|
steps: [
|
|
280
279
|
...buildDefaultToolPolicyPipelineSteps({
|
|
@@ -318,7 +317,7 @@ export async function handleToolsInvokeHttpRequest(
|
|
|
318
317
|
try {
|
|
319
318
|
const toolCallId = `http-${Date.now()}`;
|
|
320
319
|
const toolArgs = mergeActionIntoArgsIfSupported({
|
|
321
|
-
toolSchema: (tool as Record<string, unknown>).parameters,
|
|
320
|
+
toolSchema: (tool as unknown as Record<string, unknown>).parameters,
|
|
322
321
|
action,
|
|
323
322
|
args,
|
|
324
323
|
});
|
|
@@ -339,7 +338,7 @@ export async function handleToolsInvokeHttpRequest(
|
|
|
339
338
|
});
|
|
340
339
|
return true;
|
|
341
340
|
}
|
|
342
|
-
const result = await (tool as unknown as { execute?: (id: string, params: Record<string, unknown>) => Promise<unknown> }).execute?.(toolCallId, hookResult.params);
|
|
341
|
+
const result = await (tool as unknown as { execute?: (id: string, params: Record<string, unknown>) => Promise<unknown> }).execute?.(toolCallId, hookResult.params as Record<string, unknown>);
|
|
343
342
|
sendJson(res, 200, { ok: true, result });
|
|
344
343
|
} catch (err) {
|
|
345
344
|
const inputStatus = resolveToolInputErrorStatus(err);
|
|
@@ -8,6 +8,7 @@ import type { ChannelId } from "../channels/plugins/types.js";
|
|
|
8
8
|
import { inspectReadOnlyChannelAccount } from "../channels/read-only-account-inspect.js";
|
|
9
9
|
import { formatCliCommand } from "../cli/command-format.js";
|
|
10
10
|
import { resolveNativeCommandsEnabled, resolveNativeSkillsEnabled } from "../config/commands.js";
|
|
11
|
+
import type { NativeCommandsSetting } from "../config/types.messages.js";
|
|
11
12
|
import type { CoreBlowConfig } from "../config/config.js";
|
|
12
13
|
import { isDangerousNameMatchingEnabled } from "../config/dangerous-name-matching.js";
|
|
13
14
|
import { formatErrorMessage } from "../infra/errors.js";
|
|
@@ -881,8 +882,7 @@ export async function collectChannelSecurityFindings(params: {
|
|
|
881
882
|
|
|
882
883
|
if (!hasAnySenderAllowlist) {
|
|
883
884
|
const providerSetting = (telegramCfg.commands as { nativeSkills?: unknown } | undefined)
|
|
884
|
-
|
|
885
|
-
?.nativeSkills as unknown;
|
|
885
|
+
?.nativeSkills as NativeCommandsSetting | undefined;
|
|
886
886
|
const skillsEnabled = resolveNativeSkillsEnabled({
|
|
887
887
|
providerId: "telegram",
|
|
888
888
|
providerSetting,
|
package/src/utils/logger.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { pino } from 'pino';
|
|
8
|
-
import type { Logger as PinoLogger } from 'pino';
|
|
8
|
+
import type { Logger as PinoLogger, TransportSingleOptions } from 'pino';
|
|
9
9
|
|
|
10
10
|
// ─── Configuration ────────────────────────────────────────────────
|
|
11
11
|
|
|
@@ -94,7 +94,7 @@ export const logger: PinoLogger = pino({
|
|
|
94
94
|
...(process.env.COREBLOW_INSTANCE_ID ? { instance: process.env.COREBLOW_INSTANCE_ID } : {}),
|
|
95
95
|
},
|
|
96
96
|
timestamp: () => `,"time":"${new Date().toISOString()}"`,
|
|
97
|
-
transport: transportConfig as
|
|
97
|
+
transport: transportConfig as unknown as TransportSingleOptions | undefined,
|
|
98
98
|
});
|
|
99
99
|
|
|
100
100
|
// ─── Module Logger Factory ────────────────────────────────────────
|