@midscene/core 1.3.3-beta-20260129042850.0 → 1.3.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.
- package/dist/es/agent/tasks.mjs +5 -5
- package/dist/es/agent/tasks.mjs.map +1 -1
- package/dist/es/agent/utils.mjs +1 -1
- package/dist/es/ai-model/conversation-history.mjs +10 -10
- package/dist/es/ai-model/conversation-history.mjs.map +1 -1
- package/dist/es/ai-model/llm-planning.mjs +8 -8
- package/dist/es/ai-model/llm-planning.mjs.map +1 -1
- package/dist/es/ai-model/prompt/llm-planning.mjs +225 -13
- package/dist/es/ai-model/prompt/llm-planning.mjs.map +1 -1
- package/dist/es/types.mjs.map +1 -1
- package/dist/es/utils.mjs +2 -2
- package/dist/lib/agent/tasks.js +5 -5
- package/dist/lib/agent/tasks.js.map +1 -1
- package/dist/lib/agent/utils.js +1 -1
- package/dist/lib/ai-model/conversation-history.js +10 -10
- package/dist/lib/ai-model/conversation-history.js.map +1 -1
- package/dist/lib/ai-model/llm-planning.js +8 -8
- package/dist/lib/ai-model/llm-planning.js.map +1 -1
- package/dist/lib/ai-model/prompt/llm-planning.js +225 -13
- package/dist/lib/ai-model/prompt/llm-planning.js.map +1 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/utils.js +2 -2
- package/dist/types/ai-model/conversation-history.d.ts +9 -9
- package/dist/types/types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ export interface ConversationHistoryOptions {
|
|
|
6
6
|
export declare class ConversationHistory {
|
|
7
7
|
private readonly messages;
|
|
8
8
|
private subGoals;
|
|
9
|
-
private
|
|
9
|
+
private memories;
|
|
10
10
|
pendingFeedbackMessage: string;
|
|
11
11
|
constructor(options?: ConversationHistoryOptions);
|
|
12
12
|
resetPendingFeedbackMessageIfExists(): void;
|
|
@@ -51,21 +51,21 @@ export declare class ConversationHistory {
|
|
|
51
51
|
*/
|
|
52
52
|
subGoalsToText(): string;
|
|
53
53
|
/**
|
|
54
|
-
* Append a
|
|
54
|
+
* Append a memory to the memories list
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
appendMemory(memory: string): void;
|
|
57
57
|
/**
|
|
58
|
-
* Get all
|
|
58
|
+
* Get all memories
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
getMemories(): string[];
|
|
61
61
|
/**
|
|
62
|
-
* Convert
|
|
62
|
+
* Convert memories to text representation
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
memoriesToText(): string;
|
|
65
65
|
/**
|
|
66
|
-
* Clear all
|
|
66
|
+
* Clear all memories
|
|
67
67
|
*/
|
|
68
|
-
|
|
68
|
+
clearMemories(): void;
|
|
69
69
|
/**
|
|
70
70
|
* Compress the conversation history if it exceeds the threshold.
|
|
71
71
|
* Removes the oldest messages and replaces them with a single placeholder message.
|
package/dist/types/types.d.ts
CHANGED
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.3.3
|
|
4
|
+
"version": "1.3.3",
|
|
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
|
"undici": "^6.0.0",
|
|
91
91
|
"zod": "3.24.3",
|
|
92
|
-
"@midscene/shared": "1.3.3
|
|
92
|
+
"@midscene/shared": "1.3.3"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@rslib/core": "^0.18.3",
|