coreblow 1.0.0-rc.4 → 1.0.0-rc.5
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/package.json +25 -2
- package/src/media-understanding/defaults.ts +17 -0
- package/extensions/discord/node_modules/agent-base/dist/helpers.d.ts +0 -10
- package/extensions/discord/node_modules/agent-base/dist/index.d.ts +0 -37
- package/extensions/discord/node_modules/https-proxy-agent/dist/index.d.ts +0 -43
- package/extensions/discord/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -12
- package/extensions/feishu/node_modules/agent-base/dist/helpers.d.ts +0 -10
- package/extensions/feishu/node_modules/agent-base/dist/index.d.ts +0 -37
- package/extensions/feishu/node_modules/https-proxy-agent/dist/index.d.ts +0 -43
- package/extensions/feishu/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -12
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.5",
|
|
4
4
|
"description": "CoreBlow — personal AI assistant with multi-channel support",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,24 +32,44 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@agentclientprotocol/sdk": "^0.18.2",
|
|
34
34
|
"@aws-sdk/client-bedrock": "^3.1030.0",
|
|
35
|
+
"@aws-sdk/client-s3": "^3.1038.0",
|
|
36
|
+
"@aws-sdk/s3-request-presigner": "^3.1038.0",
|
|
35
37
|
"@buape/carbon": "^0.15.0",
|
|
36
38
|
"@clack/prompts": "^1.1.0",
|
|
37
39
|
"@discordjs/voice": "^0.19.2",
|
|
38
40
|
"@grammyjs/runner": "^2.0.3",
|
|
41
|
+
"@grammyjs/transformer-throttler": "^1.2.1",
|
|
42
|
+
"@lancedb/lancedb": "^0.27.2",
|
|
39
43
|
"@larksuiteoapi/node-sdk": "^1.60.0",
|
|
40
44
|
"@line/bot-sdk": "^11.0.0",
|
|
41
45
|
"@mariozechner/pi-agent-core": "0.70.2",
|
|
42
46
|
"@mariozechner/pi-ai": "0.70.2",
|
|
43
47
|
"@mariozechner/pi-coding-agent": "0.70.2",
|
|
44
48
|
"@mariozechner/pi-tui": "0.70.2",
|
|
49
|
+
"@matrix-org/matrix-sdk-crypto-nodejs": "^0.5.1",
|
|
45
50
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
51
|
+
"@opentelemetry/api-logs": "^0.215.0",
|
|
52
|
+
"@opentelemetry/exporter-logs-otlp-proto": "^0.215.0",
|
|
53
|
+
"@opentelemetry/exporter-metrics-otlp-proto": "^0.215.0",
|
|
54
|
+
"@opentelemetry/exporter-trace-otlp-proto": "^0.215.0",
|
|
55
|
+
"@opentelemetry/resources": "^2.7.0",
|
|
56
|
+
"@opentelemetry/sdk-logs": "^0.215.0",
|
|
57
|
+
"@opentelemetry/sdk-metrics": "^2.7.0",
|
|
58
|
+
"@opentelemetry/sdk-node": "^0.215.0",
|
|
59
|
+
"@opentelemetry/sdk-trace-base": "^2.7.0",
|
|
60
|
+
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
61
|
+
"@pierre/diffs": "^1.1.19",
|
|
46
62
|
"@react-three/drei": "^10.7.7",
|
|
47
63
|
"@react-three/fiber": "^9.5.0",
|
|
48
64
|
"@slack/bolt": "^4.7.0",
|
|
49
65
|
"@slack/web-api": "^7.15.0",
|
|
50
66
|
"@splinetool/react-spline": "^4.1.0",
|
|
51
67
|
"@splinetool/runtime": "^1.12.58",
|
|
68
|
+
"@twurple/api": "^8.1.3",
|
|
52
69
|
"@twurple/auth": "^8.1.3",
|
|
70
|
+
"@twurple/chat": "^8.1.3",
|
|
71
|
+
"@urbit/aura": "^3.0.0",
|
|
72
|
+
"@whiskeysockets/baileys": "7.0.0-rc.9",
|
|
53
73
|
"ajv": "^8.18.0",
|
|
54
74
|
"chalk": "^5.6.2",
|
|
55
75
|
"chokidar": "^5.0.0",
|
|
@@ -59,6 +79,7 @@
|
|
|
59
79
|
"discord-api-types": "^0.38.45",
|
|
60
80
|
"dotenv": "^16.6.1",
|
|
61
81
|
"express": "^4.22.1",
|
|
82
|
+
"fake-indexeddb": "^6.2.5",
|
|
62
83
|
"file-type": "^22.0.1",
|
|
63
84
|
"grammy": "^1.41.1",
|
|
64
85
|
"jiti": "^2.6.1",
|
|
@@ -67,6 +88,8 @@
|
|
|
67
88
|
"linkedom": "^0.18.12",
|
|
68
89
|
"markdown-it": "^14.1.1",
|
|
69
90
|
"matrix-js-sdk": "^41.3.0",
|
|
91
|
+
"music-metadata": "^11.12.3",
|
|
92
|
+
"node-edge-tts": "^1.2.10",
|
|
70
93
|
"nostr-tools": "^2.23.3",
|
|
71
94
|
"osc-progress": "^0.3.0",
|
|
72
95
|
"pino": "^9.14.0",
|
|
@@ -78,8 +101,8 @@
|
|
|
78
101
|
"tar": "^7.5.13",
|
|
79
102
|
"three": "^0.183.0",
|
|
80
103
|
"tslog": "^4.10.2",
|
|
81
|
-
"typebox": "1.1.24",
|
|
82
104
|
"tsx": "^4.21.0",
|
|
105
|
+
"typebox": "1.1.24",
|
|
83
106
|
"ws": "^8.19.0",
|
|
84
107
|
"yaml": "^2.8.3",
|
|
85
108
|
"zod": "^4.3.6"
|
|
@@ -4,6 +4,23 @@
|
|
|
4
4
|
* Ported from CoreBlow reference src/media-understanding/defaults.ts.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
/** Maximum file size for media analysis (20 MB). */
|
|
8
|
+
export const DEFAULT_MAX_BYTES = 20 * 1024 * 1024;
|
|
9
|
+
|
|
10
|
+
/** Maximum character limits for text extraction by capability. */
|
|
11
|
+
export const DEFAULT_MAX_CHARS_BY_CAPABILITY: Record<string, number> = {
|
|
12
|
+
image: 50_000,
|
|
13
|
+
audio: 100_000,
|
|
14
|
+
video: 100_000,
|
|
15
|
+
document: 200_000,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** Number of concurrent media analysis operations. */
|
|
19
|
+
export const DEFAULT_MEDIA_CONCURRENCY = 3;
|
|
20
|
+
|
|
21
|
+
/** Default prompt for generic media analysis. */
|
|
22
|
+
export const DEFAULT_PROMPT = "Describe the contents of this media.";
|
|
23
|
+
|
|
7
24
|
export const DEFAULT_IMAGE_PROMPT = 'Describe this image in detail. Include all visible text, important visual elements, colors, and layout.';
|
|
8
25
|
export const DEFAULT_AUDIO_PROMPT = 'Transcribe this audio. Include timestamps if available.';
|
|
9
26
|
export const DEFAULT_VIDEO_PROMPT = 'Describe the contents of this video, including visual elements, audio, and key events.';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as http from 'http';
|
|
2
|
-
import * as https from 'https';
|
|
3
|
-
import type { Readable } from 'stream';
|
|
4
|
-
export type ThenableRequest = http.ClientRequest & {
|
|
5
|
-
then: Promise<http.IncomingMessage>['then'];
|
|
6
|
-
};
|
|
7
|
-
export declare function toBuffer(stream: Readable): Promise<Buffer>;
|
|
8
|
-
export declare function json(stream: Readable): Promise<any>;
|
|
9
|
-
export declare function req(url: string | URL, opts?: https.RequestOptions): ThenableRequest;
|
|
10
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as net from 'net';
|
|
2
|
-
import * as tls from 'tls';
|
|
3
|
-
import * as http from 'http';
|
|
4
|
-
import type { Duplex } from 'stream';
|
|
5
|
-
export * from './helpers.js';
|
|
6
|
-
interface HttpConnectOpts extends net.TcpNetConnectOpts {
|
|
7
|
-
secureEndpoint: false;
|
|
8
|
-
protocol?: string;
|
|
9
|
-
}
|
|
10
|
-
interface HttpsConnectOpts extends tls.ConnectionOptions {
|
|
11
|
-
secureEndpoint: true;
|
|
12
|
-
protocol?: string;
|
|
13
|
-
port: number;
|
|
14
|
-
}
|
|
15
|
-
export type AgentConnectOpts = HttpConnectOpts | HttpsConnectOpts;
|
|
16
|
-
declare const INTERNAL: unique symbol;
|
|
17
|
-
export declare abstract class Agent extends http.Agent {
|
|
18
|
-
private [INTERNAL];
|
|
19
|
-
options: Partial<net.TcpNetConnectOpts & tls.ConnectionOptions>;
|
|
20
|
-
keepAlive: boolean;
|
|
21
|
-
constructor(opts?: http.AgentOptions);
|
|
22
|
-
abstract connect(req: http.ClientRequest, options: AgentConnectOpts): Promise<Duplex | http.Agent> | Duplex | http.Agent;
|
|
23
|
-
/**
|
|
24
|
-
* Determine whether this is an `http` or `https` request.
|
|
25
|
-
*/
|
|
26
|
-
isSecureEndpoint(options?: AgentConnectOpts): boolean;
|
|
27
|
-
private incrementSockets;
|
|
28
|
-
private decrementSockets;
|
|
29
|
-
getName(options?: AgentConnectOpts): string;
|
|
30
|
-
createSocket(req: http.ClientRequest, options: AgentConnectOpts, cb: (err: Error | null, s?: Duplex) => void): void;
|
|
31
|
-
createConnection(): Duplex;
|
|
32
|
-
get defaultPort(): number;
|
|
33
|
-
set defaultPort(v: number);
|
|
34
|
-
get protocol(): string;
|
|
35
|
-
set protocol(v: string);
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as net from 'net';
|
|
2
|
-
import * as tls from 'tls';
|
|
3
|
-
import * as http from 'http';
|
|
4
|
-
import { Agent, AgentConnectOpts } from 'agent-base';
|
|
5
|
-
import { URL } from 'url';
|
|
6
|
-
import type { OutgoingHttpHeaders } from 'http';
|
|
7
|
-
type Protocol<T> = T extends `${infer Protocol}:${infer _}` ? Protocol : never;
|
|
8
|
-
type ConnectOptsMap = {
|
|
9
|
-
http: Omit<net.TcpNetConnectOpts, 'host' | 'port'>;
|
|
10
|
-
https: Omit<tls.ConnectionOptions, 'host' | 'port'>;
|
|
11
|
-
};
|
|
12
|
-
type ConnectOpts<T> = {
|
|
13
|
-
[P in keyof ConnectOptsMap]: Protocol<T> extends P ? ConnectOptsMap[P] : never;
|
|
14
|
-
}[keyof ConnectOptsMap];
|
|
15
|
-
export type HttpsProxyAgentOptions<T> = ConnectOpts<T> & http.AgentOptions & {
|
|
16
|
-
headers?: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
|
|
20
|
-
* the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
|
|
21
|
-
*
|
|
22
|
-
* Outgoing HTTP requests are first tunneled through the proxy server using the
|
|
23
|
-
* `CONNECT` HTTP request method to establish a connection to the proxy server,
|
|
24
|
-
* and then the proxy server connects to the destination target and issues the
|
|
25
|
-
* HTTP request from the proxy server.
|
|
26
|
-
*
|
|
27
|
-
* `https:` requests have their socket connection upgraded to TLS once
|
|
28
|
-
* the connection to the proxy server has been established.
|
|
29
|
-
*/
|
|
30
|
-
export declare class HttpsProxyAgent<Uri extends string> extends Agent {
|
|
31
|
-
static protocols: readonly ["http", "https"];
|
|
32
|
-
readonly proxy: URL;
|
|
33
|
-
proxyHeaders: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);
|
|
34
|
-
connectOpts: net.TcpNetConnectOpts & tls.ConnectionOptions;
|
|
35
|
-
constructor(proxy: Uri | URL, opts?: HttpsProxyAgentOptions<Uri>);
|
|
36
|
-
/**
|
|
37
|
-
* Called when the node-core HTTP client library is creating a
|
|
38
|
-
* new HTTP request.
|
|
39
|
-
*/
|
|
40
|
-
connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise<net.Socket>;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IncomingHttpHeaders } from 'http';
|
|
2
|
-
import { Readable } from 'stream';
|
|
3
|
-
export interface ConnectResponse {
|
|
4
|
-
statusCode: number;
|
|
5
|
-
statusText: string;
|
|
6
|
-
headers: IncomingHttpHeaders;
|
|
7
|
-
}
|
|
8
|
-
export declare function parseProxyResponse(socket: Readable): Promise<{
|
|
9
|
-
connect: ConnectResponse;
|
|
10
|
-
buffered: Buffer;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=parse-proxy-response.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as http from 'http';
|
|
2
|
-
import * as https from 'https';
|
|
3
|
-
import type { Readable } from 'stream';
|
|
4
|
-
export type ThenableRequest = http.ClientRequest & {
|
|
5
|
-
then: Promise<http.IncomingMessage>['then'];
|
|
6
|
-
};
|
|
7
|
-
export declare function toBuffer(stream: Readable): Promise<Buffer>;
|
|
8
|
-
export declare function json(stream: Readable): Promise<any>;
|
|
9
|
-
export declare function req(url: string | URL, opts?: https.RequestOptions): ThenableRequest;
|
|
10
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as net from 'net';
|
|
2
|
-
import * as tls from 'tls';
|
|
3
|
-
import * as http from 'http';
|
|
4
|
-
import type { Duplex } from 'stream';
|
|
5
|
-
export * from './helpers.js';
|
|
6
|
-
interface HttpConnectOpts extends net.TcpNetConnectOpts {
|
|
7
|
-
secureEndpoint: false;
|
|
8
|
-
protocol?: string;
|
|
9
|
-
}
|
|
10
|
-
interface HttpsConnectOpts extends tls.ConnectionOptions {
|
|
11
|
-
secureEndpoint: true;
|
|
12
|
-
protocol?: string;
|
|
13
|
-
port: number;
|
|
14
|
-
}
|
|
15
|
-
export type AgentConnectOpts = HttpConnectOpts | HttpsConnectOpts;
|
|
16
|
-
declare const INTERNAL: unique symbol;
|
|
17
|
-
export declare abstract class Agent extends http.Agent {
|
|
18
|
-
private [INTERNAL];
|
|
19
|
-
options: Partial<net.TcpNetConnectOpts & tls.ConnectionOptions>;
|
|
20
|
-
keepAlive: boolean;
|
|
21
|
-
constructor(opts?: http.AgentOptions);
|
|
22
|
-
abstract connect(req: http.ClientRequest, options: AgentConnectOpts): Promise<Duplex | http.Agent> | Duplex | http.Agent;
|
|
23
|
-
/**
|
|
24
|
-
* Determine whether this is an `http` or `https` request.
|
|
25
|
-
*/
|
|
26
|
-
isSecureEndpoint(options?: AgentConnectOpts): boolean;
|
|
27
|
-
private incrementSockets;
|
|
28
|
-
private decrementSockets;
|
|
29
|
-
getName(options?: AgentConnectOpts): string;
|
|
30
|
-
createSocket(req: http.ClientRequest, options: AgentConnectOpts, cb: (err: Error | null, s?: Duplex) => void): void;
|
|
31
|
-
createConnection(): Duplex;
|
|
32
|
-
get defaultPort(): number;
|
|
33
|
-
set defaultPort(v: number);
|
|
34
|
-
get protocol(): string;
|
|
35
|
-
set protocol(v: string);
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as net from 'net';
|
|
2
|
-
import * as tls from 'tls';
|
|
3
|
-
import * as http from 'http';
|
|
4
|
-
import { Agent, AgentConnectOpts } from 'agent-base';
|
|
5
|
-
import { URL } from 'url';
|
|
6
|
-
import type { OutgoingHttpHeaders } from 'http';
|
|
7
|
-
type Protocol<T> = T extends `${infer Protocol}:${infer _}` ? Protocol : never;
|
|
8
|
-
type ConnectOptsMap = {
|
|
9
|
-
http: Omit<net.TcpNetConnectOpts, 'host' | 'port'>;
|
|
10
|
-
https: Omit<tls.ConnectionOptions, 'host' | 'port'>;
|
|
11
|
-
};
|
|
12
|
-
type ConnectOpts<T> = {
|
|
13
|
-
[P in keyof ConnectOptsMap]: Protocol<T> extends P ? ConnectOptsMap[P] : never;
|
|
14
|
-
}[keyof ConnectOptsMap];
|
|
15
|
-
export type HttpsProxyAgentOptions<T> = ConnectOpts<T> & http.AgentOptions & {
|
|
16
|
-
headers?: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
|
|
20
|
-
* the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
|
|
21
|
-
*
|
|
22
|
-
* Outgoing HTTP requests are first tunneled through the proxy server using the
|
|
23
|
-
* `CONNECT` HTTP request method to establish a connection to the proxy server,
|
|
24
|
-
* and then the proxy server connects to the destination target and issues the
|
|
25
|
-
* HTTP request from the proxy server.
|
|
26
|
-
*
|
|
27
|
-
* `https:` requests have their socket connection upgraded to TLS once
|
|
28
|
-
* the connection to the proxy server has been established.
|
|
29
|
-
*/
|
|
30
|
-
export declare class HttpsProxyAgent<Uri extends string> extends Agent {
|
|
31
|
-
static protocols: readonly ["http", "https"];
|
|
32
|
-
readonly proxy: URL;
|
|
33
|
-
proxyHeaders: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);
|
|
34
|
-
connectOpts: net.TcpNetConnectOpts & tls.ConnectionOptions;
|
|
35
|
-
constructor(proxy: Uri | URL, opts?: HttpsProxyAgentOptions<Uri>);
|
|
36
|
-
/**
|
|
37
|
-
* Called when the node-core HTTP client library is creating a
|
|
38
|
-
* new HTTP request.
|
|
39
|
-
*/
|
|
40
|
-
connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise<net.Socket>;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IncomingHttpHeaders } from 'http';
|
|
2
|
-
import { Readable } from 'stream';
|
|
3
|
-
export interface ConnectResponse {
|
|
4
|
-
statusCode: number;
|
|
5
|
-
statusText: string;
|
|
6
|
-
headers: IncomingHttpHeaders;
|
|
7
|
-
}
|
|
8
|
-
export declare function parseProxyResponse(socket: Readable): Promise<{
|
|
9
|
-
connect: ConnectResponse;
|
|
10
|
-
buffered: Buffer;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=parse-proxy-response.d.ts.map
|