@hunterzhu/pulse-adapters 0.4.6 → 0.5.0

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.
@@ -6,7 +6,7 @@ export interface LoweringParams {
6
6
  model?: string | undefined;
7
7
  outputSchema?: JsonValue | undefined;
8
8
  maxOutputTokens?: number | undefined;
9
- reasoningEffort?: 'low' | 'medium' | 'high' | undefined;
9
+ reasoningEffort?: 'low' | 'medium' | 'high' | 'none' | undefined;
10
10
  toolChoice?: ProviderToolChoice | undefined;
11
11
  stream?: boolean | undefined;
12
12
  }
@@ -41,7 +41,7 @@ export interface CanonicalStructuredOutput {
41
41
  mode?: 'json_schema' | 'json_object';
42
42
  }
43
43
  export interface CanonicalReasoningConfig {
44
- effort?: 'low' | 'medium' | 'high';
44
+ effort?: 'low' | 'medium' | 'high' | 'none';
45
45
  budgetTokens?: number;
46
46
  enabled?: boolean;
47
47
  }
@@ -26,5 +26,5 @@ export interface ProviderPresetConfig {
26
26
  maxOutputTokens?: number;
27
27
  toolChoice?: ProviderToolChoice;
28
28
  extraHeaders?: Record<string, string>;
29
- reasoningEffort?: 'low' | 'medium' | 'high' | undefined;
29
+ reasoningEffort?: 'low' | 'medium' | 'high' | 'none' | undefined;
30
30
  }
@@ -96,7 +96,7 @@ export function createToolEffectExecutor(registry) {
96
96
  let value;
97
97
  let artifact;
98
98
  try {
99
- value = toJson(detailed.output);
99
+ value = toJson(detailed.normalized ?? detailed.output);
100
100
  }
101
101
  catch {
102
102
  value = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hunterzhu/pulse-adapters",
3
- "version": "0.4.6",
3
+ "version": "0.5.0",
4
4
  "license": "PolyForm-Noncommercial-1.0.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@anthropic-ai/sandbox-runtime": "0.0.77",
21
- "@hunterzhu/pulse-runtime": "0.4.6",
22
- "@hunterzhu/pulse-tool-sdk": "0.4.6",
21
+ "@hunterzhu/pulse-runtime": "0.5.0",
22
+ "@hunterzhu/pulse-tool-sdk": "0.5.0",
23
23
  "exceljs": "4.4.0",
24
24
  "pdfjs-dist": "4.10.38"
25
25
  }