@midscene/core 1.0.5-beta-20251230131740.0 → 1.0.5-beta-20251230135517.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,6 +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;
10
11
  };
11
12
  export declare class Agent<InterfaceType extends AbstractInterface = AbstractInterface> {
12
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): 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): Promise<ExecutionResult<{
50
50
  yamlFlow?: MidsceneYamlFlowItem[];
51
51
  } | undefined>>;
52
52
  private createTypeQueryTask;
@@ -10,4 +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;
13
14
  }): Promise<PlanningAIResponse>;
@@ -6,12 +6,15 @@ 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;
9
10
  }): Promise<{
10
11
  content: string;
11
12
  usage?: AIUsageInfo;
12
13
  isStreamed: boolean;
13
14
  }>;
14
- export declare function callAIWithObjectResponse<T>(messages: ChatCompletionMessageParam[], AIActionTypeValue: AIActionType, modelConfig: IModelConfig): Promise<{
15
+ export declare function callAIWithObjectResponse<T>(messages: ChatCompletionMessageParam[], AIActionTypeValue: AIActionType, modelConfig: IModelConfig, options?: {
16
+ qwen3_vl_enable_thinking?: boolean;
17
+ }): Promise<{
15
18
  content: T;
16
19
  contentString: string;
17
20
  usage?: AIUsageInfo;
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-20251230131740.0",
4
+ "version": "1.0.5-beta-20251230135517.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-20251230131740.0"
92
+ "@midscene/shared": "1.0.5-beta-20251230135517.0"
93
93
  },
94
94
  "devDependencies": {
95
95
  "@rslib/core": "^0.18.3",