@tradejs/node 1.0.8 → 1.0.10

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/ai.d.mts CHANGED
@@ -2,11 +2,14 @@ import { Signal, AiPayload, SignalAnalysis, AiPromptPair } from '@tradejs/types'
2
2
 
3
3
  declare const MAX_AI_SERIES_POINTS = 5;
4
4
  declare const trimSeriesDeep: (value: any) => any;
5
+ declare const buildCompactAiIndicatorsSnapshot: (value: any) => any;
5
6
 
6
7
  type DeterministicAiGateContext = {
7
8
  approvalAllowedNow?: boolean;
8
9
  deterministicQuality?: number;
9
10
  maxAllowedQuality?: number;
11
+ approvalBlockReasons?: string[];
12
+ riskAnnotations?: string[];
10
13
  structuralHardBlockReasons?: string[];
11
14
  };
12
15
  declare const buildAiSystemPrompt: (signal?: Signal) => string;
@@ -28,4 +31,4 @@ declare const runAiPrompt: ({ systemPrompt, humanPrompt }: AiPromptPair, options
28
31
  declare const runAiPromptLocal: (signal: Signal, options?: Omit<AiRequestOptions, "model" | "userName">) => Promise<Partial<SignalAnalysis>>;
29
32
  declare const askAI: (signal: Signal, options?: AiRequestOptions) => Promise<Partial<SignalAnalysis>>;
30
33
 
31
- export { DEFAULT_AI_MODEL, MAX_AI_SERIES_POINTS, askAI, buildAiHumanPrompt, buildAiPayload, buildAiPrompts, buildAiSystemPrompt, ensureAiStrategyPluginsLoaded, getDeterministicAiGateContext, getOpenRouterModelKwargs, resetAiRuntimeCache, runAiPrompt, runAiPromptLocal, trimSeriesDeep };
34
+ export { DEFAULT_AI_MODEL, MAX_AI_SERIES_POINTS, askAI, buildAiHumanPrompt, buildAiPayload, buildAiPrompts, buildAiSystemPrompt, buildCompactAiIndicatorsSnapshot, ensureAiStrategyPluginsLoaded, getDeterministicAiGateContext, getOpenRouterModelKwargs, resetAiRuntimeCache, runAiPrompt, runAiPromptLocal, trimSeriesDeep };
package/dist/ai.d.ts CHANGED
@@ -2,11 +2,14 @@ import { Signal, AiPayload, SignalAnalysis, AiPromptPair } from '@tradejs/types'
2
2
 
3
3
  declare const MAX_AI_SERIES_POINTS = 5;
4
4
  declare const trimSeriesDeep: (value: any) => any;
5
+ declare const buildCompactAiIndicatorsSnapshot: (value: any) => any;
5
6
 
6
7
  type DeterministicAiGateContext = {
7
8
  approvalAllowedNow?: boolean;
8
9
  deterministicQuality?: number;
9
10
  maxAllowedQuality?: number;
11
+ approvalBlockReasons?: string[];
12
+ riskAnnotations?: string[];
10
13
  structuralHardBlockReasons?: string[];
11
14
  };
12
15
  declare const buildAiSystemPrompt: (signal?: Signal) => string;
@@ -28,4 +31,4 @@ declare const runAiPrompt: ({ systemPrompt, humanPrompt }: AiPromptPair, options
28
31
  declare const runAiPromptLocal: (signal: Signal, options?: Omit<AiRequestOptions, "model" | "userName">) => Promise<Partial<SignalAnalysis>>;
29
32
  declare const askAI: (signal: Signal, options?: AiRequestOptions) => Promise<Partial<SignalAnalysis>>;
30
33
 
31
- export { DEFAULT_AI_MODEL, MAX_AI_SERIES_POINTS, askAI, buildAiHumanPrompt, buildAiPayload, buildAiPrompts, buildAiSystemPrompt, ensureAiStrategyPluginsLoaded, getDeterministicAiGateContext, getOpenRouterModelKwargs, resetAiRuntimeCache, runAiPrompt, runAiPromptLocal, trimSeriesDeep };
34
+ export { DEFAULT_AI_MODEL, MAX_AI_SERIES_POINTS, askAI, buildAiHumanPrompt, buildAiPayload, buildAiPrompts, buildAiSystemPrompt, buildCompactAiIndicatorsSnapshot, ensureAiStrategyPluginsLoaded, getDeterministicAiGateContext, getOpenRouterModelKwargs, resetAiRuntimeCache, runAiPrompt, runAiPromptLocal, trimSeriesDeep };