@discomedia/utils 1.0.25 → 1.0.26
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/index-frontend.cjs +42 -12
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +42 -13
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +171 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +171 -23
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/dist/test.js +250 -63
- package/dist/test.js.map +1 -1
- package/dist/types/index-frontend.d.ts +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/json-tools.d.ts.map +1 -1
- package/dist/types/llm-deepseek.d.ts +1 -1
- package/dist/types/llm-deepseek.d.ts.map +1 -1
- package/dist/types/llm-images.d.ts.map +1 -1
- package/dist/types/llm-openai.d.ts +2 -2
- package/dist/types/llm-openai.d.ts.map +1 -1
- package/dist/types/llm-openrouter.d.ts +28 -0
- package/dist/types/llm-openrouter.d.ts.map +1 -0
- package/dist/types/misc-utils.d.ts.map +1 -1
- package/dist/types/types/llm-types.d.ts +26 -3
- package/dist/types/types/llm-types.d.ts.map +1 -1
- package/dist/types/types/logging-types.d.ts +1 -1
- package/dist/types/types/logging-types.d.ts.map +1 -1
- package/dist/types-frontend/index-frontend.d.ts +1 -1
- package/dist/types-frontend/index.d.ts +3 -1
- package/dist/types-frontend/index.d.ts.map +1 -1
- package/dist/types-frontend/json-tools.d.ts.map +1 -1
- package/dist/types-frontend/llm-deepseek.d.ts +1 -1
- package/dist/types-frontend/llm-deepseek.d.ts.map +1 -1
- package/dist/types-frontend/llm-images.d.ts.map +1 -1
- package/dist/types-frontend/llm-openai.d.ts +2 -2
- package/dist/types-frontend/llm-openai.d.ts.map +1 -1
- package/dist/types-frontend/llm-openrouter.d.ts +28 -0
- package/dist/types-frontend/llm-openrouter.d.ts.map +1 -0
- package/dist/types-frontend/misc-utils.d.ts.map +1 -1
- package/dist/types-frontend/types/llm-types.d.ts +26 -3
- package/dist/types-frontend/types/llm-types.d.ts.map +1 -1
- package/dist/types-frontend/types/logging-types.d.ts +1 -1
- package/dist/types-frontend/types/logging-types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ export declare const disco: {
|
|
|
8
8
|
types: typeof Types;
|
|
9
9
|
llm: {
|
|
10
10
|
call: typeof llm.makeLLMCall;
|
|
11
|
-
seek: <T =
|
|
11
|
+
seek: <T = string>(content: string | import("openai/resources/index").ChatCompletionContentPart[], responseFormat?: Types.OpenAIResponseFormat, options?: Types.LLMOptions) => Promise<Types.LLMResponse<T>>;
|
|
12
12
|
images: typeof llmImages.makeImagesCall;
|
|
13
13
|
};
|
|
14
14
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as misc from './misc-utils';
|
|
|
5
5
|
import * as polygon from './polygon';
|
|
6
6
|
import * as llm from './llm-openai';
|
|
7
7
|
import * as llmImages from './llm-images';
|
|
8
|
+
import * as openrouter from './llm-openrouter';
|
|
8
9
|
import { PerformanceTimer } from './performance-timer';
|
|
9
10
|
import * as ta from './technical-analysis';
|
|
10
11
|
export * from './types';
|
|
@@ -54,8 +55,9 @@ export declare const disco: {
|
|
|
54
55
|
};
|
|
55
56
|
llm: {
|
|
56
57
|
call: typeof llm.makeLLMCall;
|
|
57
|
-
seek: <T =
|
|
58
|
+
seek: <T = string>(content: string | import("openai/resources/index").ChatCompletionContentPart[], responseFormat?: Types.OpenAIResponseFormat, options?: Types.LLMOptions) => Promise<Types.LLMResponse<T>>;
|
|
58
59
|
images: typeof llmImages.makeImagesCall;
|
|
60
|
+
open: typeof openrouter.makeOpenRouterCall;
|
|
59
61
|
};
|
|
60
62
|
polygon: {
|
|
61
63
|
fetchTickerInfo: (symbol: string, options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":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,MAAM,0BAA0B,CAAC;AAE/D,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;kBAwBN,CAAC;;;kBAuCV,CAAC;;;kBAO2oC,CAAC;;;kBAAkwC,CAAC;;;kBAAisD,CAAC;gBAAkB,CAAC;iBAAmB,CAAC;iBAAmB,CAAC;gBAAkB,CAAC;;;;;;;;;;;;;;;;;;;kBAzDjqI,CAAC;;;kBAyD22R,CAAC;oBAAsB,CAAC;sBAAyB,CAAC;;;kBAAhxP,CAAC;;;kBAAwjc,CAAC;qBAAuB,CAAC;uBAAkC,CAAC;wBAAmC,CAAC;uBAAkC,CAAC;wBAAmC,CAAC;iBAA4B,CAAC;iBAA2B,CAAC;gBAAkB,CAAC;;;;;eAA5/W,CAAC;;;iBAAiE,CAAC;;kBAAmC,CAAC;;;;;kBAA65Q,CAAC;oBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAD39Y,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-tools.d.ts","sourceRoot":"","sources":["../../src/json-tools.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"json-tools.d.ts","sourceRoot":"","sources":["../../src/json-tools.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAoMxD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAOvD;AAGD,UAAU,UAAU;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AACD,KAAK,SAAS,GAAG,SAAS,EAAE,CAAC;AAC7B,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,CAAC;AAqB3E;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CA+BxF"}
|
|
@@ -8,5 +8,5 @@ import { LLMResponse, LLMOptions, OpenAIResponseFormat } from './types';
|
|
|
8
8
|
* @param options Configuration options including model ('deepseek-chat' or 'deepseek-reasoner'), tools, and apiKey.
|
|
9
9
|
* @return A promise that resolves to the response from the Deepseek API.
|
|
10
10
|
*/
|
|
11
|
-
export declare const makeDeepseekCall: <T =
|
|
11
|
+
export declare const makeDeepseekCall: <T = string>(content: string | ChatCompletionContentPart[], responseFormat?: OpenAIResponseFormat, options?: LLMOptions) => Promise<LLMResponse<T>>;
|
|
12
12
|
//# sourceMappingURL=llm-deepseek.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-deepseek.d.ts","sourceRoot":"","sources":["../../src/llm-deepseek.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAG1B,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAE,UAAU,EAAe,oBAAoB,EAA2B,MAAM,SAAS,CAAC;AAyL9G;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAU,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"llm-deepseek.d.ts","sourceRoot":"","sources":["../../src/llm-deepseek.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAG1B,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAE,UAAU,EAAe,oBAAoB,EAA2B,MAAM,SAAS,CAAC;AAyL9G;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAU,CAAC,GAAG,MAAM,EAC/C,SAAS,MAAM,GAAG,yBAAyB,EAAE,EAC7C,iBAAgB,oBAA6B,EAC7C,UAAS,UAAe,KACvB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAmIxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-images.d.ts","sourceRoot":"","sources":["../../src/llm-images.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAuB,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE1F;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG;QAChC,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,sBAAsB,CAAC,
|
|
1
|
+
{"version":3,"file":"llm-images.d.ts","sourceRoot":"","sources":["../../src/llm-images.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAuB,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE1F;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG;QAChC,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,sBAAsB,CAAC,CA0FjC"}
|
|
@@ -46,7 +46,7 @@ export declare function isGPT5Model(model: string): boolean;
|
|
|
46
46
|
* @returns Promise<LLMResponse<T>> - The response in the same format as makeLLMCall
|
|
47
47
|
* @throws Error if the API call fails
|
|
48
48
|
*/
|
|
49
|
-
export declare const makeResponsesAPICall: <T =
|
|
49
|
+
export declare const makeResponsesAPICall: <T = string>(input: string | ResponseCreateParamsNonStreaming["input"], options?: Omit<ResponseCreateParamsNonStreaming, "input" | "model"> & {
|
|
50
50
|
apiKey?: string;
|
|
51
51
|
model?: string;
|
|
52
52
|
}) => Promise<LLMResponse<T>>;
|
|
@@ -66,7 +66,7 @@ export declare const makeResponsesAPICall: <T = any>(input: string | ResponseCre
|
|
|
66
66
|
* ]
|
|
67
67
|
* });
|
|
68
68
|
*/
|
|
69
|
-
export declare function makeLLMCall<T =
|
|
69
|
+
export declare function makeLLMCall<T = string>(input: string, options?: {
|
|
70
70
|
apiKey?: string;
|
|
71
71
|
model?: LLMModel;
|
|
72
72
|
responseFormat?: 'text' | 'json';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-openai.d.ts","sourceRoot":"","sources":["../../src/llm-openai.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,IAAI,EAIL,MAAM,sCAAsC,CAAC;AAI9C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAwB,cAAc,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EACL,gCAAgC,EAOjC,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,UAG7B,CAAC;AAoBF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAK1D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGvD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGlD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,oBAAoB,GAAU,CAAC,GAAG,
|
|
1
|
+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CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IACtC,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;CACvB,GACL,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAsHzB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ChatCompletionTool, ChatCompletionToolChoiceOption } from 'openai/resources/chat/completions';
|
|
2
|
+
import type { LLMResponse, ContextMessage, OpenAIResponseFormat, OpenRouterModel } from './types/llm-types';
|
|
3
|
+
type ToolChoice = ChatCompletionToolChoiceOption;
|
|
4
|
+
export interface OpenRouterCallOptions {
|
|
5
|
+
apiKey?: string;
|
|
6
|
+
model?: OpenRouterModel | string;
|
|
7
|
+
responseFormat?: 'text' | 'json' | OpenAIResponseFormat;
|
|
8
|
+
tools?: ChatCompletionTool[];
|
|
9
|
+
toolChoice?: ToolChoice;
|
|
10
|
+
context?: ContextMessage[];
|
|
11
|
+
developerPrompt?: string;
|
|
12
|
+
temperature?: number;
|
|
13
|
+
max_tokens?: number;
|
|
14
|
+
top_p?: number;
|
|
15
|
+
frequency_penalty?: number;
|
|
16
|
+
presence_penalty?: number;
|
|
17
|
+
stop?: string | string[];
|
|
18
|
+
seed?: number;
|
|
19
|
+
referer?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Make a call through OpenRouter using the OpenAI Chat Completions-compatible API.
|
|
24
|
+
* Supports: JSON mode, model selection, message history, and tools.
|
|
25
|
+
*/
|
|
26
|
+
export declare function makeOpenRouterCall<T = string>(input: string, options?: OpenRouterCallOptions): Promise<LLMResponse<T>>;
|
|
27
|
+
export default makeOpenRouterCall;
|
|
28
|
+
//# sourceMappingURL=llm-openrouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-openrouter.d.ts","sourceRoot":"","sources":["../../src/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AAA,MAAM,SAAS,sDAAuD,CAAC;AAEvE,KAAK,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,EAAE,OAAO,OAAO,EAAE,OAAM,OAAgB,SAqBjF,CAAC;AAqBF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiBrD;
|
|
1
|
+
{"version":3,"file":"misc-utils.d.ts","sourceRoot":"","sources":["../../src/misc-utils.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,SAAS,sDAAuD,CAAC;AAEvE,KAAK,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,EAAE,OAAO,OAAO,EAAE,OAAM,OAAgB,SAqBjF,CAAC;AAqBF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiBrD;AA2CD;;;;;;;;;;;GAWG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAgB,EACzB,OAAO,GAAE,MAAU,EACnB,cAAc,GAAE,MAAa,GAC5B,OAAO,CAAC,QAAQ,CAAC,CA2FnB;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAe5E"}
|
|
@@ -8,10 +8,26 @@ export type OpenAIModel = 'gpt-4o-mini' | 'gpt-4o' | 'o1-mini' | 'o1' | 'o3-mini
|
|
|
8
8
|
* Represents Deepseek models
|
|
9
9
|
*/
|
|
10
10
|
export type DeepseekModel = 'deepseek-chat' | 'deepseek-reasoner';
|
|
11
|
+
/**
|
|
12
|
+
* Represents OpenRouter models
|
|
13
|
+
*/
|
|
14
|
+
export type OpenRouterModel = 'openai/gpt-5' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-oss-120b' | 'z.ai/glm-4.5' | 'z.ai/glm-4.5-air' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-lite' | 'deepseek/deepseek-r1-0528' | 'deepseek/deepseek-chat-v3-0324';
|
|
15
|
+
/**
|
|
16
|
+
* Represents pricing information for OpenRouter models
|
|
17
|
+
*/
|
|
18
|
+
export interface OpenRouterPricing {
|
|
19
|
+
input: number;
|
|
20
|
+
output: number;
|
|
21
|
+
context?: number;
|
|
22
|
+
}
|
|
11
23
|
/**
|
|
12
24
|
* Represents all supported LLM models
|
|
13
25
|
*/
|
|
14
|
-
export type LLMModel = OpenAIModel | DeepseekModel;
|
|
26
|
+
export type LLMModel = OpenAIModel | DeepseekModel | OpenRouterModel;
|
|
27
|
+
/**
|
|
28
|
+
* Type guard to check if a model is an OpenRouter model
|
|
29
|
+
*/
|
|
30
|
+
export declare function isOpenRouterModel(model: string): model is OpenRouterModel;
|
|
15
31
|
/**
|
|
16
32
|
* Represents the usage of the LLM.
|
|
17
33
|
*/
|
|
@@ -28,7 +44,7 @@ export interface LLMUsage {
|
|
|
28
44
|
* Represents the options for the LLM.
|
|
29
45
|
*/
|
|
30
46
|
export interface LLMOptions {
|
|
31
|
-
model?:
|
|
47
|
+
model?: LLMModel;
|
|
32
48
|
temperature?: number;
|
|
33
49
|
top_p?: number;
|
|
34
50
|
frequency_penalty?: number;
|
|
@@ -59,7 +75,14 @@ export type OpenAIResponseFormat = 'text' | 'json' | {
|
|
|
59
75
|
type: 'json_schema';
|
|
60
76
|
schema: {
|
|
61
77
|
type: 'object';
|
|
62
|
-
properties: Record<string,
|
|
78
|
+
properties: Record<string, {
|
|
79
|
+
type: string;
|
|
80
|
+
description?: string;
|
|
81
|
+
enum?: string[];
|
|
82
|
+
items?: unknown;
|
|
83
|
+
properties?: unknown;
|
|
84
|
+
required?: string[];
|
|
85
|
+
}>;
|
|
63
86
|
required?: string[];
|
|
64
87
|
};
|
|
65
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-types.d.ts","sourceRoot":"","sources":["../../../src/types/llm-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClI,OAAO,EAAE,mBAAmB,EAAc,MAAM,yBAAyB,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,GAAG,cAAc,GAAG,IAAI,GAAG,OAAO,GAAG,YAAY,GAAG,YAAY,CAAC;AAE3L;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"llm-types.d.ts","sourceRoot":"","sources":["../../../src/types/llm-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClI,OAAO,EAAE,mBAAmB,EAAc,MAAM,yBAAyB,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,GAAG,cAAc,GAAG,IAAI,GAAG,OAAO,GAAG,YAAY,GAAG,YAAY,CAAC;AAE3L;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,cAAc,GACd,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,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AC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACpD,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging-types.d.ts","sourceRoot":"","sources":["../../../src/types/logging-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElG,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"logging-types.d.ts","sourceRoot":"","sources":["../../../src/types/logging-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElG,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -8,7 +8,7 @@ export declare const disco: {
|
|
|
8
8
|
types: typeof Types;
|
|
9
9
|
llm: {
|
|
10
10
|
call: typeof llm.makeLLMCall;
|
|
11
|
-
seek: <T =
|
|
11
|
+
seek: <T = string>(content: string | import("openai/resources/index").ChatCompletionContentPart[], responseFormat?: Types.OpenAIResponseFormat, options?: Types.LLMOptions) => Promise<Types.LLMResponse<T>>;
|
|
12
12
|
images: typeof llmImages.makeImagesCall;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -5,6 +5,7 @@ import * as misc from './misc-utils';
|
|
|
5
5
|
import * as polygon from './polygon';
|
|
6
6
|
import * as llm from './llm-openai';
|
|
7
7
|
import * as llmImages from './llm-images';
|
|
8
|
+
import * as openrouter from './llm-openrouter';
|
|
8
9
|
import { PerformanceTimer } from './performance-timer';
|
|
9
10
|
import * as ta from './technical-analysis';
|
|
10
11
|
export * from './types';
|
|
@@ -54,8 +55,9 @@ export declare const disco: {
|
|
|
54
55
|
};
|
|
55
56
|
llm: {
|
|
56
57
|
call: typeof llm.makeLLMCall;
|
|
57
|
-
seek: <T =
|
|
58
|
+
seek: <T = string>(content: string | import("openai/resources/index").ChatCompletionContentPart[], responseFormat?: Types.OpenAIResponseFormat, options?: Types.LLMOptions) => Promise<Types.LLMResponse<T>>;
|
|
58
59
|
images: typeof llmImages.makeImagesCall;
|
|
60
|
+
open: typeof openrouter.makeOpenRouterCall;
|
|
59
61
|
};
|
|
60
62
|
polygon: {
|
|
61
63
|
fetchTickerInfo: (symbol: string, options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAC;AACrC,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;;;;;;;;;;;;;;;kBAzDjqI,CAAC;;;kBAyD22R,CAAC;oBAAsB,CAAC;sBAAyB,CAAC;;;kBAAhxP,CAAC;;;kBAAwjc,CAAC;qBAAuB,CAAC;uBAAkC,CAAC;wBAAmC,CAAC;uBAAkC,CAAC;wBAAmC,CAAC;iBAA4B,CAAC;iBAA2B,CAAC;gBAAkB,CAAC;;;;;eAA5/W,CAAC;;;iBAAiE,CAAC;;kBAAmC,CAAC;;;;;kBAA65Q,CAAC;oBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAD39Y,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-tools.d.ts","sourceRoot":"","sources":["../../src/json-tools.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"json-tools.d.ts","sourceRoot":"","sources":["../../src/json-tools.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAoMxD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAOvD;AAGD,UAAU,UAAU;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AACD,KAAK,SAAS,GAAG,SAAS,EAAE,CAAC;AAC7B,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,CAAC;AAqB3E;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CA+BxF"}
|
|
@@ -8,5 +8,5 @@ import { LLMResponse, LLMOptions, OpenAIResponseFormat } from './types';
|
|
|
8
8
|
* @param options Configuration options including model ('deepseek-chat' or 'deepseek-reasoner'), tools, and apiKey.
|
|
9
9
|
* @return A promise that resolves to the response from the Deepseek API.
|
|
10
10
|
*/
|
|
11
|
-
export declare const makeDeepseekCall: <T =
|
|
11
|
+
export declare const makeDeepseekCall: <T = string>(content: string | ChatCompletionContentPart[], responseFormat?: OpenAIResponseFormat, options?: LLMOptions) => Promise<LLMResponse<T>>;
|
|
12
12
|
//# sourceMappingURL=llm-deepseek.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-deepseek.d.ts","sourceRoot":"","sources":["../../src/llm-deepseek.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAG1B,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAE,UAAU,EAAe,oBAAoB,EAA2B,MAAM,SAAS,CAAC;AAyL9G;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAU,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"llm-deepseek.d.ts","sourceRoot":"","sources":["../../src/llm-deepseek.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAG1B,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAE,UAAU,EAAe,oBAAoB,EAA2B,MAAM,SAAS,CAAC;AAyL9G;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAU,CAAC,GAAG,MAAM,EAC/C,SAAS,MAAM,GAAG,yBAAyB,EAAE,EAC7C,iBAAgB,oBAA6B,EAC7C,UAAS,UAAe,KACvB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAmIxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-images.d.ts","sourceRoot":"","sources":["../../src/llm-images.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAuB,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE1F;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG;QAChC,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,sBAAsB,CAAC,
|
|
1
|
+
{"version":3,"file":"llm-images.d.ts","sourceRoot":"","sources":["../../src/llm-images.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAuB,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE1F;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG;QAChC,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,sBAAsB,CAAC,CA0FjC"}
|
|
@@ -46,7 +46,7 @@ export declare function isGPT5Model(model: string): boolean;
|
|
|
46
46
|
* @returns Promise<LLMResponse<T>> - The response in the same format as makeLLMCall
|
|
47
47
|
* @throws Error if the API call fails
|
|
48
48
|
*/
|
|
49
|
-
export declare const makeResponsesAPICall: <T =
|
|
49
|
+
export declare const makeResponsesAPICall: <T = string>(input: string | ResponseCreateParamsNonStreaming["input"], options?: Omit<ResponseCreateParamsNonStreaming, "input" | "model"> & {
|
|
50
50
|
apiKey?: string;
|
|
51
51
|
model?: string;
|
|
52
52
|
}) => Promise<LLMResponse<T>>;
|
|
@@ -66,7 +66,7 @@ export declare const makeResponsesAPICall: <T = any>(input: string | ResponseCre
|
|
|
66
66
|
* ]
|
|
67
67
|
* });
|
|
68
68
|
*/
|
|
69
|
-
export declare function makeLLMCall<T =
|
|
69
|
+
export declare function makeLLMCall<T = string>(input: string, options?: {
|
|
70
70
|
apiKey?: string;
|
|
71
71
|
model?: LLMModel;
|
|
72
72
|
responseFormat?: 'text' | 'json';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-openai.d.ts","sourceRoot":"","sources":["../../src/llm-openai.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,IAAI,EAIL,MAAM,sCAAsC,CAAC;AAI9C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAwB,cAAc,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EACL,gCAAgC,EAOjC,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,UAG7B,CAAC;AAoBF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAK1D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGvD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGlD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,oBAAoB,GAAU,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"llm-openai.d.ts","sourceRoot":"","sources":["../../src/llm-openai.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,IAAI,EAIL,MAAM,sCAAsC,CAAC;AAI9C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAwB,cAAc,EAAE,MAAM,SAAS,CAAC;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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ChatCompletionTool, ChatCompletionToolChoiceOption } from 'openai/resources/chat/completions';
|
|
2
|
+
import type { LLMResponse, ContextMessage, OpenAIResponseFormat, OpenRouterModel } from './types/llm-types';
|
|
3
|
+
type ToolChoice = ChatCompletionToolChoiceOption;
|
|
4
|
+
export interface OpenRouterCallOptions {
|
|
5
|
+
apiKey?: string;
|
|
6
|
+
model?: OpenRouterModel | string;
|
|
7
|
+
responseFormat?: 'text' | 'json' | OpenAIResponseFormat;
|
|
8
|
+
tools?: ChatCompletionTool[];
|
|
9
|
+
toolChoice?: ToolChoice;
|
|
10
|
+
context?: ContextMessage[];
|
|
11
|
+
developerPrompt?: string;
|
|
12
|
+
temperature?: number;
|
|
13
|
+
max_tokens?: number;
|
|
14
|
+
top_p?: number;
|
|
15
|
+
frequency_penalty?: number;
|
|
16
|
+
presence_penalty?: number;
|
|
17
|
+
stop?: string | string[];
|
|
18
|
+
seed?: number;
|
|
19
|
+
referer?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Make a call through OpenRouter using the OpenAI Chat Completions-compatible API.
|
|
24
|
+
* Supports: JSON mode, model selection, message history, and tools.
|
|
25
|
+
*/
|
|
26
|
+
export declare function makeOpenRouterCall<T = string>(input: string, options?: OpenRouterCallOptions): Promise<LLMResponse<T>>;
|
|
27
|
+
export default makeOpenRouterCall;
|
|
28
|
+
//# sourceMappingURL=llm-openrouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-openrouter.d.ts","sourceRoot":"","sources":["../../src/llm-openrouter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAGV,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,mCAAmC,CAAC;AAI3C,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,oBAAoB,EAIpB,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAI3B,KAAK,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SAqBjF,CAAC;AAqBF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiBrD;
|
|
1
|
+
{"version":3,"file":"misc-utils.d.ts","sourceRoot":"","sources":["../../src/misc-utils.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,SAAS,sDAAuD,CAAC;AAEvE,KAAK,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,EAAE,OAAO,OAAO,EAAE,OAAM,OAAgB,SAqBjF,CAAC;AAqBF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiBrD;AA2CD;;;;;;;;;;;GAWG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAgB,EACzB,OAAO,GAAE,MAAU,EACnB,cAAc,GAAE,MAAa,GAC5B,OAAO,CAAC,QAAQ,CAAC,CA2FnB;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAe5E"}
|
|
@@ -8,10 +8,26 @@ export type OpenAIModel = 'gpt-4o-mini' | 'gpt-4o' | 'o1-mini' | 'o1' | 'o3-mini
|
|
|
8
8
|
* Represents Deepseek models
|
|
9
9
|
*/
|
|
10
10
|
export type DeepseekModel = 'deepseek-chat' | 'deepseek-reasoner';
|
|
11
|
+
/**
|
|
12
|
+
* Represents OpenRouter models
|
|
13
|
+
*/
|
|
14
|
+
export type OpenRouterModel = 'openai/gpt-5' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-oss-120b' | 'z.ai/glm-4.5' | 'z.ai/glm-4.5-air' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-lite' | 'deepseek/deepseek-r1-0528' | 'deepseek/deepseek-chat-v3-0324';
|
|
15
|
+
/**
|
|
16
|
+
* Represents pricing information for OpenRouter models
|
|
17
|
+
*/
|
|
18
|
+
export interface OpenRouterPricing {
|
|
19
|
+
input: number;
|
|
20
|
+
output: number;
|
|
21
|
+
context?: number;
|
|
22
|
+
}
|
|
11
23
|
/**
|
|
12
24
|
* Represents all supported LLM models
|
|
13
25
|
*/
|
|
14
|
-
export type LLMModel = OpenAIModel | DeepseekModel;
|
|
26
|
+
export type LLMModel = OpenAIModel | DeepseekModel | OpenRouterModel;
|
|
27
|
+
/**
|
|
28
|
+
* Type guard to check if a model is an OpenRouter model
|
|
29
|
+
*/
|
|
30
|
+
export declare function isOpenRouterModel(model: string): model is OpenRouterModel;
|
|
15
31
|
/**
|
|
16
32
|
* Represents the usage of the LLM.
|
|
17
33
|
*/
|
|
@@ -28,7 +44,7 @@ export interface LLMUsage {
|
|
|
28
44
|
* Represents the options for the LLM.
|
|
29
45
|
*/
|
|
30
46
|
export interface LLMOptions {
|
|
31
|
-
model?:
|
|
47
|
+
model?: LLMModel;
|
|
32
48
|
temperature?: number;
|
|
33
49
|
top_p?: number;
|
|
34
50
|
frequency_penalty?: number;
|
|
@@ -59,7 +75,14 @@ export type OpenAIResponseFormat = 'text' | 'json' | {
|
|
|
59
75
|
type: 'json_schema';
|
|
60
76
|
schema: {
|
|
61
77
|
type: 'object';
|
|
62
|
-
properties: Record<string,
|
|
78
|
+
properties: Record<string, {
|
|
79
|
+
type: string;
|
|
80
|
+
description?: string;
|
|
81
|
+
enum?: string[];
|
|
82
|
+
items?: unknown;
|
|
83
|
+
properties?: unknown;
|
|
84
|
+
required?: string[];
|
|
85
|
+
}>;
|
|
63
86
|
required?: string[];
|
|
64
87
|
};
|
|
65
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-types.d.ts","sourceRoot":"","sources":["../../../src/types/llm-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAA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AC;AAC/E,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging-types.d.ts","sourceRoot":"","sources":["../../../src/types/logging-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElG,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"logging-types.d.ts","sourceRoot":"","sources":["../../../src/types/logging-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElG,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.26",
|
|
7
7
|
"author": "Disco Media",
|
|
8
8
|
"description": "Utility functions used in Disco Media apps",
|
|
9
9
|
"always-build-npm": true,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"dotenv": "^17.2.1",
|
|
36
|
-
"openai": "^5.12.
|
|
36
|
+
"openai": "^5.12.2",
|
|
37
37
|
"p-limit": "^6.2.0",
|
|
38
38
|
"tslib": "^2.8.1",
|
|
39
39
|
"ws": "^8.18.3"
|