@midscene/visualizer 0.28.7-beta-20250915040112.0 → 0.28.7-beta-20250915133700.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.
Files changed (32) hide show
  1. package/dist/es/component/history-selector/index.css +18 -17
  2. package/dist/es/component/history-selector/index.mjs +5 -43
  3. package/dist/es/component/playground/index.css +42 -3
  4. package/dist/es/component/playground-result/index.css +0 -1
  5. package/dist/es/component/playground-result/index.mjs +1 -2
  6. package/dist/es/component/prompt-input/index.css +42 -2
  7. package/dist/es/component/service-mode-control/index.mjs +2 -2
  8. package/dist/es/component/universal-playground/index.css +2 -2
  9. package/dist/es/component/universal-playground/index.mjs +16 -16
  10. package/dist/es/hooks/usePlaygroundExecution.mjs +27 -12
  11. package/dist/es/hooks/usePlaygroundState.mjs +6 -8
  12. package/dist/es/hooks/useSafeOverrideAIConfig.mjs +24 -0
  13. package/dist/es/index.mjs +2 -1
  14. package/dist/lib/component/history-selector/index.css +18 -17
  15. package/dist/lib/component/history-selector/index.js +4 -42
  16. package/dist/lib/component/playground/index.css +42 -3
  17. package/dist/lib/component/playground-result/index.css +0 -1
  18. package/dist/lib/component/playground-result/index.js +1 -2
  19. package/dist/lib/component/prompt-input/index.css +42 -2
  20. package/dist/lib/component/service-mode-control/index.js +2 -2
  21. package/dist/lib/component/universal-playground/index.css +2 -2
  22. package/dist/lib/component/universal-playground/index.js +16 -16
  23. package/dist/lib/hooks/usePlaygroundExecution.js +27 -12
  24. package/dist/lib/hooks/usePlaygroundState.js +6 -8
  25. package/dist/lib/hooks/useSafeOverrideAIConfig.js +61 -0
  26. package/dist/lib/index.js +7 -0
  27. package/dist/types/hooks/usePlaygroundExecution.d.ts +1 -1
  28. package/dist/types/hooks/usePlaygroundState.d.ts +1 -1
  29. package/dist/types/hooks/useSafeOverrideAIConfig.d.ts +16 -0
  30. package/dist/types/index.d.ts +1 -0
  31. package/dist/types/types.d.ts +6 -10
  32. package/package.json +5 -5
@@ -72,7 +72,7 @@ export declare const unwrapZodType: (field: ZodType) => {
72
72
  };
73
73
  export declare const extractDefaultValue: (field: ZodType) => unknown;
74
74
  import type { GroupedActionDump, WebUIContext } from '@midscene/core';
75
- import type { PlaygroundAgent } from '@midscene/playground';
75
+ import type { ExecutionOptions, PlaygroundAgent } from '@midscene/playground';
76
76
  export interface PlaygroundResult {
77
77
  result: any;
78
78
  dump?: GroupedActionDump | null;
@@ -102,13 +102,7 @@ export interface FormValue {
102
102
  prompt?: string;
103
103
  params?: Record<string, unknown>;
104
104
  }
105
- export interface ExecutionOptions {
106
- requestId?: string;
107
- deepThink?: boolean;
108
- screenshotIncluded?: boolean;
109
- domIncluded?: boolean;
110
- context?: string | object;
111
- }
105
+ export type { ExecutionOptions };
112
106
  export type ProgressCallback = (step: string, status?: 'loading' | 'completed' | 'error') => void;
113
107
  export interface PlaygroundSDKLike {
114
108
  executeAction(actionType: string, value: FormValue, options: ExecutionOptions): Promise<unknown>;
@@ -117,6 +111,7 @@ export interface PlaygroundSDKLike {
117
111
  cancelExecution?(requestId: string): Promise<void>;
118
112
  overrideConfig?(config: any): Promise<void>;
119
113
  checkStatus?(): Promise<boolean>;
114
+ id?: string;
120
115
  }
121
116
  export interface StorageProvider {
122
117
  saveMessages?(messages: InfoListItem[]): Promise<void>;
@@ -142,11 +137,12 @@ export interface InfoListItem {
142
137
  }
143
138
  export interface UniversalPlaygroundConfig {
144
139
  showContextPreview?: boolean;
145
- enablePersistence?: boolean;
140
+ storageNamespace?: string;
146
141
  layout?: 'vertical' | 'horizontal';
147
142
  showVersionInfo?: boolean;
148
143
  enableScrollToBottom?: boolean;
149
144
  serverMode?: boolean;
145
+ showEnvConfigReminder?: boolean;
150
146
  }
151
147
  export interface PlaygroundBranding {
152
148
  title?: string;
@@ -154,7 +150,7 @@ export interface PlaygroundBranding {
154
150
  version?: string;
155
151
  }
156
152
  export interface UniversalPlaygroundProps {
157
- playgroundSDK: PlaygroundSDKLike;
153
+ playgroundSDK: PlaygroundSDKLike | null;
158
154
  storage?: StorageProvider;
159
155
  contextProvider?: ContextProvider;
160
156
  config?: UniversalPlaygroundConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/visualizer",
3
- "version": "0.28.7-beta-20250915040112.0",
3
+ "version": "0.28.7-beta-20250915133700.0",
4
4
  "repository": "https://github.com/web-infra-dev/midscene",
5
5
  "homepage": "https://midscenejs.com/",
6
6
  "types": "./dist/types/index.d.ts",
@@ -70,10 +70,10 @@
70
70
  "antd": "^5.21.6",
71
71
  "buffer": "6.0.3",
72
72
  "dayjs": "^1.11.11",
73
- "@midscene/core": "0.28.7-beta-20250915040112.0",
74
- "@midscene/playground": "0.28.7-beta-20250915040112.0",
75
- "@midscene/web": "0.28.7-beta-20250915040112.0",
76
- "@midscene/shared": "0.28.7-beta-20250915040112.0"
73
+ "@midscene/shared": "0.28.7-beta-20250915133700.0",
74
+ "@midscene/playground": "0.28.7-beta-20250915133700.0",
75
+ "@midscene/core": "0.28.7-beta-20250915133700.0",
76
+ "@midscene/web": "0.28.7-beta-20250915133700.0"
77
77
  },
78
78
  "license": "MIT",
79
79
  "scripts": {