open-agents-ai 0.187.477 → 0.187.478
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/index.js +0 -12
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -518353,23 +518353,11 @@ function slimSystemPromptForTaskMode(prompt) {
|
|
|
518353
518353
|
/^##\s*Self-Awareness( & Introspection)?\s*$/im,
|
|
518354
518354
|
/^##\s*Debugging\s*[—-]\s*Observe Before Reasoning\s*$/im
|
|
518355
518355
|
];
|
|
518356
|
-
const TOOL_LINES_TO_REMOVE = [
|
|
518357
|
-
/^- nexus:.*$/im,
|
|
518358
|
-
/^- background_run.*task_status.*task_output.*task_stop:.*$/im,
|
|
518359
|
-
/^- (asr_listen|audio_capture|audio_playback|audio_analyze|camera_capture|desktop_click|bluetooth_scan|browser_action):.*$/im,
|
|
518360
|
-
/^Voice\/TTS:.*$/im,
|
|
518361
|
-
/^- Voice\/TTS:.*$/im,
|
|
518362
|
-
/^- Desktop\/Vision:.*$/im,
|
|
518363
|
-
/^- P2P:.*$/im
|
|
518364
|
-
];
|
|
518365
518356
|
const CHAT_MODE_BLOCK = /^\*\*CHAT MODE\*\*[\s\S]*?(?=\*\*TASK MODE\*\*)/im;
|
|
518366
518357
|
let out = prompt;
|
|
518367
518358
|
for (const re of SECTION_HEADERS_TO_REMOVE) {
|
|
518368
518359
|
out = out.replace(new RegExp(re.source + "[\\s\\S]*?(?=^##\\s|\\Z)", "im"), "");
|
|
518369
518360
|
}
|
|
518370
|
-
for (const re of TOOL_LINES_TO_REMOVE) {
|
|
518371
|
-
out = out.replace(re, "");
|
|
518372
|
-
}
|
|
518373
518361
|
out = out.replace(CHAT_MODE_BLOCK, "");
|
|
518374
518362
|
out = out.replace(/^\*\*TASK MODE\*\*[^\n]*\n/im, "");
|
|
518375
518363
|
out = out.replace(/\n{3,}/g, "\n\n");
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.187.
|
|
3
|
+
"version": "0.187.478",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "open-agents-ai",
|
|
9
|
-
"version": "0.187.
|
|
9
|
+
"version": "0.187.478",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "CC-BY-NC-4.0",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED