@aiscene/core 8.0.2 → 8.0.3

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 (69) hide show
  1. package/dist/es/agent/utils.mjs +26 -9
  2. package/dist/es/agent/utils.mjs.map +1 -1
  3. package/dist/es/utils.mjs +1 -1
  4. package/dist/lib/agent/utils.js +26 -9
  5. package/dist/lib/agent/utils.js.map +1 -1
  6. package/dist/lib/types.js +5 -5
  7. package/dist/lib/utils.js +1 -1
  8. package/package.json +2 -2
  9. package/dist/types/agent/agent.d.ts +0 -216
  10. package/dist/types/agent/common.d.ts +0 -0
  11. package/dist/types/agent/execution-session.d.ts +0 -36
  12. package/dist/types/agent/index.d.ts +0 -9
  13. package/dist/types/agent/task-builder.d.ts +0 -34
  14. package/dist/types/agent/task-cache.d.ts +0 -49
  15. package/dist/types/agent/tasks.d.ts +0 -69
  16. package/dist/types/agent/ui-utils.d.ts +0 -14
  17. package/dist/types/agent/utils.d.ts +0 -25
  18. package/dist/types/ai-model/auto-glm/actions.d.ts +0 -78
  19. package/dist/types/ai-model/auto-glm/index.d.ts +0 -6
  20. package/dist/types/ai-model/auto-glm/parser.d.ts +0 -18
  21. package/dist/types/ai-model/auto-glm/planning.d.ts +0 -12
  22. package/dist/types/ai-model/auto-glm/prompt.d.ts +0 -27
  23. package/dist/types/ai-model/auto-glm/util.d.ts +0 -13
  24. package/dist/types/ai-model/connectivity.d.ts +0 -20
  25. package/dist/types/ai-model/conversation-history.d.ts +0 -105
  26. package/dist/types/ai-model/index.d.ts +0 -16
  27. package/dist/types/ai-model/inspect.d.ts +0 -67
  28. package/dist/types/ai-model/llm-planning.d.ts +0 -19
  29. package/dist/types/ai-model/prompt/common.d.ts +0 -2
  30. package/dist/types/ai-model/prompt/describe.d.ts +0 -1
  31. package/dist/types/ai-model/prompt/extraction.d.ts +0 -7
  32. package/dist/types/ai-model/prompt/llm-locator.d.ts +0 -3
  33. package/dist/types/ai-model/prompt/llm-planning.d.ts +0 -10
  34. package/dist/types/ai-model/prompt/llm-section-locator.d.ts +0 -3
  35. package/dist/types/ai-model/prompt/order-sensitive-judge.d.ts +0 -2
  36. package/dist/types/ai-model/prompt/playwright-generator.d.ts +0 -26
  37. package/dist/types/ai-model/prompt/ui-tars-planning.d.ts +0 -2
  38. package/dist/types/ai-model/prompt/util.d.ts +0 -33
  39. package/dist/types/ai-model/prompt/yaml-generator.d.ts +0 -102
  40. package/dist/types/ai-model/service-caller/codex-app-server.d.ts +0 -42
  41. package/dist/types/ai-model/service-caller/image-detail.d.ts +0 -2
  42. package/dist/types/ai-model/service-caller/index.d.ts +0 -49
  43. package/dist/types/ai-model/ui-tars-planning.d.ts +0 -72
  44. package/dist/types/common.d.ts +0 -288
  45. package/dist/types/device/device-options.d.ts +0 -145
  46. package/dist/types/device/index.d.ts +0 -2528
  47. package/dist/types/dump/html-utils.d.ts +0 -75
  48. package/dist/types/dump/index.d.ts +0 -5
  49. package/dist/types/dump/screenshot-restoration.d.ts +0 -8
  50. package/dist/types/dump/screenshot-store.d.ts +0 -49
  51. package/dist/types/index.d.ts +0 -21
  52. package/dist/types/report-cli.d.ts +0 -36
  53. package/dist/types/report-generator.d.ts +0 -81
  54. package/dist/types/report-markdown.d.ts +0 -24
  55. package/dist/types/report.d.ts +0 -52
  56. package/dist/types/screenshot-item.d.ts +0 -67
  57. package/dist/types/service/index.d.ts +0 -24
  58. package/dist/types/service/utils.d.ts +0 -2
  59. package/dist/types/skill/index.d.ts +0 -25
  60. package/dist/types/task-runner.d.ts +0 -50
  61. package/dist/types/task-timing.d.ts +0 -8
  62. package/dist/types/tree.d.ts +0 -4
  63. package/dist/types/types.d.ts +0 -681
  64. package/dist/types/utils.d.ts +0 -45
  65. package/dist/types/yaml/builder.d.ts +0 -2
  66. package/dist/types/yaml/index.d.ts +0 -4
  67. package/dist/types/yaml/player.d.ts +0 -34
  68. package/dist/types/yaml/utils.d.ts +0 -9
  69. package/dist/types/yaml.d.ts +0 -215
@@ -1,145 +0,0 @@
1
- import type { DeviceAction } from '../types';
2
- /**
3
- * Android device input options
4
- */
5
- export type AndroidDeviceInputOpt = {
6
- /** Automatically dismiss the keyboard after input is completed */
7
- autoDismissKeyboard?: boolean;
8
- /** Strategy for dismissing the keyboard: 'esc-first' tries ESC before BACK, 'back-first' tries BACK before ESC */
9
- keyboardDismissStrategy?: 'esc-first' | 'back-first';
10
- };
11
- /**
12
- * Android device options
13
- */
14
- export type AndroidDeviceOpt = {
15
- /** Path to the ADB executable */
16
- androidAdbPath?: string;
17
- /** Remote ADB host address */
18
- remoteAdbHost?: string;
19
- /** Remote ADB port */
20
- remoteAdbPort?: number;
21
- /** Input method editor strategy: 'always-yadb' always uses yadb, 'yadb-for-non-ascii' uses yadb only for non-ASCII characters */
22
- imeStrategy?: 'always-yadb' | 'yadb-for-non-ascii';
23
- /** Display ID to use for this device */
24
- displayId?: number;
25
- /** Use physical display ID for screenshot operations */
26
- usePhysicalDisplayIdForScreenshot?: boolean;
27
- /** Use physical display ID when looking up display information */
28
- usePhysicalDisplayIdForDisplayLookup?: boolean;
29
- /** Custom device actions to register */
30
- customActions?: DeviceAction<any>[];
31
- /**
32
- * @deprecated This option has been removed and no longer has any effect.
33
- * Use `screenshotShrinkFactor` in AgentOpt instead to control screenshot size sent to AI model.
34
- */
35
- screenshotResizeScale?: number;
36
- /** Always fetch screen info on each call; if false, cache the first result */
37
- alwaysRefreshScreenInfo?: boolean;
38
- /** Minimum screenshot buffer size in bytes (default: 10240 = 10KB). Set to 0 to disable validation. */
39
- minScreenshotBufferSize?: number;
40
- /**
41
- * Scrcpy screenshot configuration for high-performance screen capture.
42
- *
43
- * Scrcpy provides 6-8x faster screenshots by streaming H.264 video from the device.
44
- * When enabled, scrcpy will:
45
- * 1. Start a video stream from the device on first screenshot request
46
- * 2. Keep the connection alive for subsequent screenshots (16-50ms each)
47
- * 3. Automatically disconnect after idle timeout to save resources
48
- * 4. Fallback to standard ADB mode if unavailable
49
- *
50
- * @example
51
- * ```typescript
52
- * // Enable scrcpy for high-performance screenshots
53
- * const device = new AndroidDevice(deviceId, {
54
- * scrcpyConfig: {
55
- * enabled: true,
56
- * },
57
- * });
58
- *
59
- * // Custom configuration
60
- * const device = new AndroidDevice(deviceId, {
61
- * scrcpyConfig: {
62
- * enabled: true,
63
- * maxSize: 0, // 0 = no scaling
64
- * idleTimeoutMs: 30000,
65
- * videoBitRate: 8_000_000,
66
- * },
67
- * });
68
- * ```
69
- */
70
- scrcpyConfig?: {
71
- /**
72
- * Enable scrcpy for high-performance screenshots.
73
- * @default false
74
- */
75
- enabled?: boolean;
76
- /**
77
- * Maximum video dimension (width or height).
78
- * Video stream will be scaled down if device resolution exceeds this value.
79
- * Lower values reduce bandwidth but may affect image quality.
80
- *
81
- * @default 0 (no scaling, use original resolution)
82
- * @example
83
- * { maxSize: 1024 } // Always scale to 1024
84
- */
85
- maxSize?: number;
86
- /**
87
- * Idle timeout in milliseconds before disconnecting scrcpy.
88
- * Connection auto-closes after this period of inactivity to save resources.
89
- * Set to 0 to disable auto-disconnect.
90
- * @default 30000 (30 seconds)
91
- */
92
- idleTimeoutMs?: number;
93
- /**
94
- * Video bit rate for H.264 encoding in bits per second.
95
- * Higher values improve quality but increase bandwidth usage.
96
- * @default 2000000 (2 Mbps)
97
- */
98
- videoBitRate?: number;
99
- };
100
- } & AndroidDeviceInputOpt;
101
- /**
102
- * iOS device input options
103
- */
104
- export type IOSDeviceInputOpt = {
105
- /** Automatically dismiss the keyboard after input is completed */
106
- autoDismissKeyboard?: boolean;
107
- };
108
- /**
109
- * iOS device options
110
- */
111
- export type IOSDeviceOpt = {
112
- /** Device ID (UDID) to connect to */
113
- deviceId?: string;
114
- /** Custom device actions to register */
115
- customActions?: DeviceAction<any>[];
116
- /** WebDriverAgent port (default: 8100) */
117
- wdaPort?: number;
118
- /** WebDriverAgent host (default: 'localhost') */
119
- wdaHost?: string;
120
- /** Whether to use WebDriverAgent */
121
- useWDA?: boolean;
122
- /** WDA MJPEG server port for real-time screen streaming (default: 9100) */
123
- wdaMjpegPort?: number;
124
- } & IOSDeviceInputOpt;
125
- /**
126
- * HarmonyOS device input options
127
- */
128
- export type HarmonyDeviceInputOpt = {
129
- /** Automatically dismiss the keyboard after input is completed */
130
- autoDismissKeyboard?: boolean;
131
- };
132
- /**
133
- * HarmonyOS device options
134
- */
135
- export type HarmonyDeviceOpt = {
136
- /** Path to the HDC executable */
137
- hdcPath?: string;
138
- /** Custom device actions to register */
139
- customActions?: DeviceAction<any>[];
140
- /**
141
- * @deprecated This option has been removed and no longer has any effect.
142
- * Use `screenshotShrinkFactor` in AgentOpt instead to control screenshot size sent to AI model.
143
- */
144
- screenshotResizeScale?: number;
145
- } & HarmonyDeviceInputOpt;