@midscene/core 1.0.1-beta-20251204032807.0 → 1.0.1-beta-20251204075416.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.
@@ -1,10 +1,8 @@
1
1
  import type { DeviceAction } from '../../types';
2
2
  import type { TVlModeTypes } from '@midscene/shared/env';
3
- import type { ResponseFormatJSONSchema } from 'openai/resources/index';
4
3
  export declare const descriptionForAction: (action: DeviceAction<any>, locatorSchemaTypeDescription: string) => string;
5
4
  export declare function systemPromptToTaskPlanning({ actionSpace, vlMode, includeBbox, }: {
6
5
  actionSpace: DeviceAction<any>[];
7
6
  vlMode: TVlModeTypes | undefined;
8
7
  includeBbox: boolean;
9
8
  }): Promise<string>;
10
- export declare const planSchema: ResponseFormatJSONSchema;
@@ -1,9 +1,8 @@
1
1
  import { type AIUsageInfo } from '../../types';
2
2
  import type { StreamingCallback } from '../../types';
3
3
  import { type IModelConfig, type TVlModeTypes } from '@midscene/shared/env';
4
- import OpenAI from 'openai';
5
4
  import type { ChatCompletionMessageParam } from 'openai/resources/index';
6
- import { AIActionType, type AIArgs } from '../../common';
5
+ import type { AIActionType, AIArgs } from '../../common';
7
6
  export declare function callAI(messages: ChatCompletionMessageParam[], AIActionTypeValue: AIActionType, modelConfig: IModelConfig, options?: {
8
7
  stream?: boolean;
9
8
  onChunk?: StreamingCallback;
@@ -12,7 +11,6 @@ export declare function callAI(messages: ChatCompletionMessageParam[], AIActionT
12
11
  usage?: AIUsageInfo;
13
12
  isStreamed: boolean;
14
13
  }>;
15
- export declare const getResponseFormat: (modelName: string, AIActionTypeValue: AIActionType) => OpenAI.ChatCompletionCreateParams["response_format"] | OpenAI.ResponseFormatJSONObject;
16
14
  export declare function callAIWithObjectResponse<T>(messages: ChatCompletionMessageParam[], AIActionTypeValue: AIActionType, modelConfig: IModelConfig): Promise<{
17
15
  content: T;
18
16
  contentString: string;
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.1-beta-20251204032807.0",
4
+ "version": "1.0.1-beta-20251204075416.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
  "js-yaml": "4.1.0",
90
90
  "zod": "3.24.3",
91
91
  "socks-proxy-agent": "8.0.4",
92
- "@midscene/shared": "1.0.1-beta-20251204032807.0"
92
+ "@midscene/shared": "1.0.1-beta-20251204075416.0"
93
93
  },
94
94
  "devDependencies": {
95
95
  "@rslib/core": "^0.18.2",