@eko-ai/eko 2.0.2-alpha.7 → 2.0.2-alpha.8
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser_labels.d.ts","sourceRoot":"","sources":["../../../src/agent/browser/browser_labels.ts"],"names":[],"mappings":"AACA,OAAO,gBAAgB,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAc,UAAU,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,sBAAuB,SAAQ,gBAAgB;gBAC/D,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,EAAE,UAAU;
|
|
1
|
+
{"version":3,"file":"browser_labels.d.ts","sourceRoot":"","sources":["../../../src/agent/browser/browser_labels.ts"],"names":[],"mappings":"AACA,OAAO,gBAAgB,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAc,UAAU,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,sBAAuB,SAAQ,gBAAgB;gBAC/D,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,EAAE,UAAU;cAqCvD,UAAU,CACxB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,IAAI,CAAC;cAOA,aAAa,CAC3B,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAClC,OAAO,CAAC,IAAI,CAAC;cAMA,iBAAiB,CAC/B,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;cAaA,kBAAkB,CAChC,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;cAgBA,gBAAgB,CAC9B,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;cAIA,mBAAmB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC;QACvE,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,YAAY,GAAG,WAAW,CAAC;QACtC,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAsCF,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInD,OAAO,CAAC,cAAc;cA6RN,cAAc,CAC5B,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,IAAI,CAAC;CA8BjB"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -16606,7 +16606,7 @@ Your task is to understand the user's requirements, dynamically plan the user's
|
|
|
16606
16606
|
2. Analyze the Agents that need to be used based on the user's requirements.
|
|
16607
16607
|
3. Generate the Agent calling plan based on the analysis results.
|
|
16608
16608
|
4. About agent name, please do not arbitrarily fabricate non-existent agent names.
|
|
16609
|
-
5. You only need to provide the steps to complete the user's task, steps
|
|
16609
|
+
5. You only need to provide the steps to complete the user's task, key steps only, no need to be too detailed.
|
|
16610
16610
|
6. Please strictly follow the output format and example output.
|
|
16611
16611
|
7. The output language should follow the language corresponding to the user's task.
|
|
16612
16612
|
|
|
@@ -17743,7 +17743,7 @@ class BaseBrowserAgent extends Agent {
|
|
|
17743
17743
|
async go_back(agentContext) {
|
|
17744
17744
|
try {
|
|
17745
17745
|
await this.execute_script(agentContext, () => {
|
|
17746
|
-
|
|
17746
|
+
window.navigation.back();
|
|
17747
17747
|
}, []);
|
|
17748
17748
|
await sleep(100);
|
|
17749
17749
|
}
|
|
@@ -18480,15 +18480,17 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
|
|
|
18480
18480
|
- Screenshot help verify element positions and relationships. Labels may sometimes overlap, so extracted elements are used to verify the correct elements.
|
|
18481
18481
|
- In addition to screenshot, simplified information about interactive elements is returned, with element indexes corresponding to those in the screenshot.
|
|
18482
18482
|
- This tool can ONLY screenshot the VISIBLE content. If a complete content is required, use 'extract_content' instead.
|
|
18483
|
+
- If the webpage content hasn't loaded, please use the \`wait\` tool to allow time for the content to load.
|
|
18483
18484
|
* ELEMENT INTERACTION:
|
|
18484
18485
|
- Only use indexes that exist in the provided element list
|
|
18485
18486
|
- Each element has a unique index number (e.g., "[33]:<button>")
|
|
18486
18487
|
- Elements marked with "[]:" are non-interactive (for context only)
|
|
18487
|
-
*
|
|
18488
|
+
* ERROR HANDLING:
|
|
18488
18489
|
- If no suitable elements exist, use other functions to complete the task
|
|
18489
18490
|
- If stuck, try alternative approaches, don't refuse tasks
|
|
18490
18491
|
- Handle popups/cookies by accepting or closing them
|
|
18491
|
-
- Use scroll to find elements you are looking for
|
|
18492
|
+
- Use scroll to find elements you are looking for
|
|
18493
|
+
- When extracting content, prioritize using extract_content, only scroll when you need to load more content`;
|
|
18492
18494
|
const _tools_ = [];
|
|
18493
18495
|
super({
|
|
18494
18496
|
name: AGENT_NAME,
|
package/dist/index.esm.js
CHANGED
|
@@ -16571,7 +16571,7 @@ Your task is to understand the user's requirements, dynamically plan the user's
|
|
|
16571
16571
|
2. Analyze the Agents that need to be used based on the user's requirements.
|
|
16572
16572
|
3. Generate the Agent calling plan based on the analysis results.
|
|
16573
16573
|
4. About agent name, please do not arbitrarily fabricate non-existent agent names.
|
|
16574
|
-
5. You only need to provide the steps to complete the user's task, steps
|
|
16574
|
+
5. You only need to provide the steps to complete the user's task, key steps only, no need to be too detailed.
|
|
16575
16575
|
6. Please strictly follow the output format and example output.
|
|
16576
16576
|
7. The output language should follow the language corresponding to the user's task.
|
|
16577
16577
|
|
|
@@ -17708,7 +17708,7 @@ class BaseBrowserAgent extends Agent {
|
|
|
17708
17708
|
async go_back(agentContext) {
|
|
17709
17709
|
try {
|
|
17710
17710
|
await this.execute_script(agentContext, () => {
|
|
17711
|
-
|
|
17711
|
+
window.navigation.back();
|
|
17712
17712
|
}, []);
|
|
17713
17713
|
await sleep(100);
|
|
17714
17714
|
}
|
|
@@ -18445,15 +18445,17 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
|
|
|
18445
18445
|
- Screenshot help verify element positions and relationships. Labels may sometimes overlap, so extracted elements are used to verify the correct elements.
|
|
18446
18446
|
- In addition to screenshot, simplified information about interactive elements is returned, with element indexes corresponding to those in the screenshot.
|
|
18447
18447
|
- This tool can ONLY screenshot the VISIBLE content. If a complete content is required, use 'extract_content' instead.
|
|
18448
|
+
- If the webpage content hasn't loaded, please use the \`wait\` tool to allow time for the content to load.
|
|
18448
18449
|
* ELEMENT INTERACTION:
|
|
18449
18450
|
- Only use indexes that exist in the provided element list
|
|
18450
18451
|
- Each element has a unique index number (e.g., "[33]:<button>")
|
|
18451
18452
|
- Elements marked with "[]:" are non-interactive (for context only)
|
|
18452
|
-
*
|
|
18453
|
+
* ERROR HANDLING:
|
|
18453
18454
|
- If no suitable elements exist, use other functions to complete the task
|
|
18454
18455
|
- If stuck, try alternative approaches, don't refuse tasks
|
|
18455
18456
|
- Handle popups/cookies by accepting or closing them
|
|
18456
|
-
- Use scroll to find elements you are looking for
|
|
18457
|
+
- Use scroll to find elements you are looking for
|
|
18458
|
+
- When extracting content, prioritize using extract_content, only scroll when you need to load more content`;
|
|
18457
18459
|
const _tools_ = [];
|
|
18458
18460
|
super({
|
|
18459
18461
|
name: AGENT_NAME,
|