@midscene/core 1.0.5-beta-20251231022759.0 → 1.0.5-beta-20251231065132.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.
@@ -7,8 +7,7 @@ import { TaskCache } from './task-cache';
7
7
  import { TaskExecutor } from './tasks';
8
8
  export type AiActOptions = {
9
9
  cacheable?: boolean;
10
- qwen3_vl_enable_thinking?: boolean;
11
- doubao_enable_thinking?: 'enabled' | 'disabled' | 'auto';
10
+ deepThink?: boolean;
12
11
  };
13
12
  export declare class Agent<InterfaceType extends AbstractInterface = AbstractInterface> {
14
13
  interface: InterfaceType;
@@ -46,7 +46,7 @@ export declare class TaskExecutor {
46
46
  runner: TaskRunner;
47
47
  }>;
48
48
  runPlans(title: string, plans: PlanningAction[], modelConfigForPlanning: IModelConfig, modelConfigForDefaultIntent: IModelConfig): Promise<ExecutionResult>;
49
- action(userPrompt: string, modelConfigForPlanning: IModelConfig, modelConfigForDefaultIntent: IModelConfig, includeBboxInPlanning: boolean, aiActContext?: string, cacheable?: boolean, replanningCycleLimitOverride?: number, imagesIncludeCount?: number, qwen3_vl_enable_thinking?: boolean, doubao_enable_thinking?: 'enabled' | 'disabled' | 'auto'): Promise<ExecutionResult<{
49
+ action(userPrompt: string, modelConfigForPlanning: IModelConfig, modelConfigForDefaultIntent: IModelConfig, includeBboxInPlanning: boolean, aiActContext?: string, cacheable?: boolean, replanningCycleLimitOverride?: number, imagesIncludeCount?: number, deepThink?: boolean): Promise<ExecutionResult<{
50
50
  yamlFlow?: MidsceneYamlFlowItem[];
51
51
  } | undefined>>;
52
52
  private createTypeQueryTask;
@@ -10,6 +10,5 @@ export declare function plan(userInstruction: string, opts: {
10
10
  conversationHistory: ConversationHistory;
11
11
  includeBbox: boolean;
12
12
  imagesIncludeCount?: number;
13
- qwen3_vl_enable_thinking?: boolean;
14
- doubao_enable_thinking?: 'enabled' | 'disabled' | 'auto';
13
+ deepThink?: boolean;
15
14
  }): Promise<PlanningAIResponse>;
@@ -6,8 +6,7 @@ import type { AIActionType, AIArgs } from '../../common';
6
6
  export declare function callAI(messages: ChatCompletionMessageParam[], AIActionTypeValue: AIActionType, modelConfig: IModelConfig, options?: {
7
7
  stream?: boolean;
8
8
  onChunk?: StreamingCallback;
9
- qwen3_vl_enable_thinking?: boolean;
10
- doubao_enable_thinking?: 'enabled' | 'disabled' | 'auto';
9
+ deepThink?: boolean;
11
10
  }): Promise<{
12
11
  content: string;
13
12
  reasoning_content?: string;
@@ -15,8 +14,7 @@ export declare function callAI(messages: ChatCompletionMessageParam[], AIActionT
15
14
  isStreamed: boolean;
16
15
  }>;
17
16
  export declare function callAIWithObjectResponse<T>(messages: ChatCompletionMessageParam[], AIActionTypeValue: AIActionType, modelConfig: IModelConfig, options?: {
18
- qwen3_vl_enable_thinking?: boolean;
19
- doubao_enable_thinking?: 'enabled' | 'disabled' | 'auto';
17
+ deepThink?: boolean;
20
18
  }): Promise<{
21
19
  content: T;
22
20
  contentString: string;
@@ -29,4 +27,12 @@ export declare function callAIWithStringResponse(msgs: AIArgs, AIActionTypeValue
29
27
  }>;
30
28
  export declare function extractJSONFromCodeBlock(response: string): string;
31
29
  export declare function preprocessDoubaoBboxJson(input: string): string;
30
+ export declare function resolveDeepThinkConfig({ deepThink, vlMode, }: {
31
+ deepThink?: boolean;
32
+ vlMode?: TVlModeTypes;
33
+ }): {
34
+ config: Record<string, unknown>;
35
+ debugMessage?: string;
36
+ warningMessage?: string;
37
+ };
32
38
  export declare function safeParseJson(input: string, vlMode: TVlModeTypes | undefined): any;
@@ -129,7 +129,6 @@ export interface MidsceneYamlFlowItemAIAction {
129
129
  aiAct?: string;
130
130
  aiActionProgressTips?: string[];
131
131
  cacheable?: boolean;
132
- _deepThink?: boolean;
133
132
  [key: string]: unknown;
134
133
  }
135
134
  export interface MidsceneYamlFlowItemAIAssert {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midscene/core",
3
3
  "description": "Automate browser actions, extract data, and perform assertions using AI. It offers JavaScript SDK, Chrome extension, and support for scripting in YAML. See https://midscenejs.com/ for details.",
4
- "version": "1.0.5-beta-20251231022759.0",
4
+ "version": "1.0.5-beta-20251231065132.0",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",
@@ -89,7 +89,7 @@
89
89
  "semver": "7.5.2",
90
90
  "js-yaml": "4.1.0",
91
91
  "zod": "3.24.3",
92
- "@midscene/shared": "1.0.5-beta-20251231022759.0"
92
+ "@midscene/shared": "1.0.5-beta-20251231065132.0"
93
93
  },
94
94
  "devDependencies": {
95
95
  "@rslib/core": "^0.18.3",