@eko-ai/eko 2.0.2-alpha.1 → 2.0.2-alpha.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.
@@ -11,6 +11,16 @@ export default abstract class BaseBrowserAgent extends Agent {
11
11
  url: string;
12
12
  title?: string;
13
13
  }>;
14
+ protected abstract get_all_tabs(agentContext: AgentContext): Promise<Array<{
15
+ tabId: number;
16
+ url: string;
17
+ title: string;
18
+ }>>;
19
+ protected abstract switch_tab(agentContext: AgentContext, tabId: number): Promise<{
20
+ tabId: number;
21
+ url: string;
22
+ title: string;
23
+ }>;
14
24
  protected go_back(agentContext: AgentContext): Promise<void>;
15
25
  protected extract_content(agentContext: AgentContext): Promise<string>;
16
26
  protected controlMcpTools(agentContext: AgentContext, messages: LanguageModelV1Prompt, loopNum: number): Promise<{
@@ -21,8 +31,7 @@ export default abstract class BaseBrowserAgent extends Agent {
21
31
  protected get_current_page(agentContext: AgentContext): Promise<{
22
32
  url: string;
23
33
  title?: string;
24
- tabId?: string;
25
- windowId?: string;
34
+ tabId?: number;
26
35
  }>;
27
36
  protected lastToolResult(messages: LanguageModelV1Prompt): {
28
37
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"browser_base.d.ts","sourceRoot":"","sources":["../../../src/agent/browser/browser_base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAA+B,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAc,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,gBAAiB,SAAQ,KAAK;IAC1D,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC;QACjE,WAAW,EAAE,MAAM,CAAC;QACpB,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,EAAE,UAAU;IA6BvE,SAAS,CAAC,QAAQ,CAAC,MAAM,CACvB,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IAEhB,SAAS,CAAC,QAAQ,CAAC,KAAK,CACtB,YAAY,EAAE,YAAY,EAC1B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GACvC,OAAO,CAAC,IAAI,CAAC;IAEhB,SAAS,CAAC,QAAQ,CAAC,MAAM,CACvB,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;IAEhB,SAAS,CAAC,QAAQ,CAAC,OAAO,CACxB,YAAY,EAAE,YAAY,EAC1B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACR,OAAO,CAAC,IAAI,CAAC;IAEhB,SAAS,CAAC,QAAQ,CAAC,KAAK,CACtB,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,GACtD,OAAO,CAAC,IAAI,CAAC;IAEhB,SAAS,CAAC,QAAQ,CAAC,aAAa,CAC9B,YAAY,EAAE,YAAY,EAC1B,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,IAAI,CAAC;IAEhB,OAAO,CAAC,cAAc;cAoUN,cAAc,CAC5B,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,IAAI,CAAC;CAuBjB"}
@@ -4,8 +4,7 @@ import { Tool, IMcpClient } from "../types";
4
4
  import { LanguageModelV1Prompt } from "@ai-sdk/provider";
5
5
  export declare const AGENT_NAME = "Computer";
6
6
  export default abstract class BaseComputerAgent extends Agent {
7
- readonly keyboardKeys: string[];
8
- constructor(llms?: string[], ext_tools?: Tool[], mcpClient?: IMcpClient);
7
+ constructor(llms?: string[], ext_tools?: Tool[], mcpClient?: IMcpClient, keyboardKeys?: string[]);
9
8
  protected abstract screenshot(agentContext: AgentContext): Promise<{
10
9
  imageBase64: string;
11
10
  imageType: "image/jpeg" | "image/png";
@@ -1 +1 @@
1
- {"version":3,"file":"computer.d.ts","sourceRoot":"","sources":["../../src/agent/computer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAc,UAAU,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,eAAO,MAAM,UAAU,aAAa,CAAC;AAErC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,iBAAkB,SAAQ,KAAK;IAC3D,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAU7B;gBAEU,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,EAAE,UAAU;IAiBvE,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC;QACjE,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,YAAY,GAAG,WAAW,CAAC;KACvC,CAAC;IAEF,SAAS,CAAC,QAAQ,CAAC,MAAM,CACvB,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IAEhB,SAAS,CAAC,QAAQ,CAAC,KAAK,CACtB,YAAY,EAAE,YAAY,EAC1B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,GAAG,OAAO,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AE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,IAAI,CAAC;IAEhB,OAAO,CAAC,cAAc;cAwON,cAAc,CAC5B,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,IAAI,CAAC;CAuCjB"}
@@ -8,7 +8,7 @@ export default abstract class BaseShellAgent extends Agent {
8
8
  session_id: string;
9
9
  }>;
10
10
  protected abstract shell_exec(agentContext: AgentContext, session_id: string, command: string): Promise<string>;
11
- protected abstract close_session(agentContext: AgentContext, session_id: string): Promise<string>;
11
+ protected abstract close_session(agentContext: AgentContext, session_id: string): Promise<void>;
12
12
  private buildInitTools;
13
13
  }
14
14
  //# sourceMappingURL=shell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../src/agent/shell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAc,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,UAAU,UAAU,CAAC;AAElC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,cAAe,SAAQ,KAAK;gBAC5C,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,EAAE,UAAU;IAiBvE,SAAS,CAAC,QAAQ,CAAC,cAAc,CAC/B,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;QACT,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC;IAElB,SAAS,CAAC,QAAQ,CAAC,aAAa,CAC9B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC;IAElB,OAAO,CAAC,cAAc;CA+EvB"}
1
+ {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../src/agent/shell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAc,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,UAAU,UAAU,CAAC;AAElC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,cAAe,SAAQ,KAAK;gBAC5C,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,EAAE,UAAU;IAiBvE,SAAS,CAAC,QAAQ,CAAC,cAAc,CAC/B,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;QACT,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC;IAElB,SAAS,CAAC,QAAQ,CAAC,aAAa,CAC9B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC;IAEhB,OAAO,CAAC,cAAc;CA+EvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,OAAO,MAAM,WAAW,CAAC;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AAU;gBAEb,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM;IAKtC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI3C,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;YAIrC,MAAM;CAmFrB"}
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../src/core/plan.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAQ/C,qBAAa,OAAO;IAClB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAU;gBAEb,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM;IAKtC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI3C,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;YAIrC,MAAM;CA6FrB"}
package/dist/index.cjs.js CHANGED
@@ -15671,6 +15671,8 @@ confirm: Ask the user to confirm whether to execute an operation, especially whe
15671
15671
  input: Prompt the user to enter text; for example, when a task is ambiguous, the AI can choose to ask the user for details, and the user can respond by inputting.
15672
15672
  select: Allow the user to make a choice; in situations that require selection, the AI can ask the user to make a decision.
15673
15673
  request_help: Request assistance from the user; for instance, when an operation is blocked, the AI can ask the user for help, such as needing to log into a website or solve a CAPTCHA.`;
15674
+ this.planDescription =
15675
+ "AI interacts with humans, when performing dangerous operations such as deleting files, you can request confirmation from humans";
15674
15676
  this.parameters = {
15675
15677
  type: "object",
15676
15678
  properties: {
@@ -15939,7 +15941,7 @@ class WatchTriggerTool {
15939
15941
  };
15940
15942
  }
15941
15943
  async execute(args, agentContext) {
15942
- // TODO 监听 dom 文件 改变,执行节点
15944
+ // TODO Listen for changes to the DOM or file, and execute nodes
15943
15945
  return null;
15944
15946
  }
15945
15947
  }
@@ -16774,15 +16776,20 @@ const PLAN_USER_TEMPLATE = `
16774
16776
  User Platform: {platform}
16775
16777
  Task Description: {taskPrompt}
16776
16778
  `;
16779
+ const PLAN_USER_TASK_WEBSITE_TEMPLATE = `
16780
+ User Platform: {platform}
16781
+ Task Website: {task_website}
16782
+ Task Description: {taskPrompt}
16783
+ `;
16777
16784
  function getPlanSystemPrompt(agents) {
16778
16785
  let agents_prompt = agents
16779
16786
  .map((agent) => {
16780
16787
  return (`<agent name="${agent.Name}">\n` +
16781
16788
  `Description: ${agent.PlanDescription || agent.Description}\nTools:\n` +
16782
- agent.Tools.map((tool) => `- ${tool.name}: ${tool.description || ""}`).join("\n") +
16789
+ agent.Tools.map((tool) => `- ${tool.name}: ${tool.planDescription || tool.description || ""}`).join("\n") +
16783
16790
  `\n</agent>`);
16784
16791
  })
16785
- .join("\n");
16792
+ .join("\n\n");
16786
16793
  let example_prompt = "";
16787
16794
  let hasChatAgent = agents.filter((a) => a.Name == AGENT_NAME$4).length > 0;
16788
16795
  const example_list = hasChatAgent
@@ -16797,10 +16804,18 @@ function getPlanSystemPrompt(agents) {
16797
16804
  .replace("{example_prompt}", example_prompt)
16798
16805
  .trim();
16799
16806
  }
16800
- function getPlanUserPrompt(taskPrompt) {
16801
- return PLAN_USER_TEMPLATE.replace("{taskPrompt}", taskPrompt)
16802
- .replace("{platform}", config.platform)
16803
- .trim();
16807
+ function getPlanUserPrompt(taskPrompt, task_website) {
16808
+ if (task_website) {
16809
+ return PLAN_USER_TASK_WEBSITE_TEMPLATE.replace("{taskPrompt}", taskPrompt)
16810
+ .replace("{platform}", config.platform)
16811
+ .replace("{task_website}", task_website)
16812
+ .trim();
16813
+ }
16814
+ else {
16815
+ return PLAN_USER_TEMPLATE.replace("{taskPrompt}", taskPrompt)
16816
+ .replace("{platform}", config.platform)
16817
+ .trim();
16818
+ }
16804
16819
  }
16805
16820
 
16806
16821
  class Planner {
@@ -16829,7 +16844,7 @@ class Planner {
16829
16844
  {
16830
16845
  role: "user",
16831
16846
  content: [{ type: "text", text: taskPrompt }],
16832
- }
16847
+ },
16833
16848
  ];
16834
16849
  }
16835
16850
  else {
@@ -16837,7 +16852,12 @@ class Planner {
16837
16852
  { role: "system", content: getPlanSystemPrompt(this.context.agents) },
16838
16853
  {
16839
16854
  role: "user",
16840
- content: [{ type: "text", text: getPlanUserPrompt(taskPrompt) }],
16855
+ content: [
16856
+ {
16857
+ type: "text",
16858
+ text: getPlanUserPrompt(taskPrompt, this.context.variables.get("task_website")),
16859
+ },
16860
+ ],
16841
16861
  },
16842
16862
  ];
16843
16863
  }
@@ -16950,14 +16970,12 @@ class Eko {
16950
16970
  }
16951
16971
  catch (e) {
16952
16972
  return {
16973
+ taskId,
16953
16974
  success: false,
16954
16975
  stopReason: e?.name == "AbortError" ? "abort" : "error",
16955
16976
  result: e,
16956
16977
  };
16957
16978
  }
16958
- finally {
16959
- this.deleteTask(taskId);
16960
- }
16961
16979
  }
16962
16980
  async run(taskPrompt, taskId = uuidv4(), contextParams) {
16963
16981
  await this.generate(taskPrompt, taskId, contextParams);
@@ -17001,11 +17019,11 @@ class Eko {
17001
17019
  agent.result = await agent.run(context, agentChain);
17002
17020
  lastResult = agent.result;
17003
17021
  }
17004
- // TODO 超过2个Agent时需要summary输出结果。
17005
17022
  return {
17006
17023
  success: true,
17007
17024
  stopReason: "done",
17008
17025
  result: lastResult,
17026
+ taskId: context.taskId,
17009
17027
  };
17010
17028
  }
17011
17029
  getTask(taskId) {
@@ -17473,34 +17491,55 @@ class BaseTimerAgent extends Agent {
17473
17491
 
17474
17492
  const AGENT_NAME$1 = "Computer";
17475
17493
  class BaseComputerAgent extends Agent {
17476
- constructor(llms, ext_tools, mcpClient) {
17494
+ constructor(llms, ext_tools, mcpClient, keyboardKeys) {
17477
17495
  const _tools_ = [];
17478
17496
  super({
17479
17497
  name: AGENT_NAME$1,
17480
- description: "You are a computer operation agent, who interacts with the computer using mouse and keyboard, completing specified tasks step by step based on the given tasks and screenshots. After each of your operations, you will receive the latest computer screenshot to evaluate the task execution status.",
17498
+ description: `You are a computer operation agent, who interacts with the computer using mouse and keyboard, completing specified tasks step by step based on the given tasks and screenshots. After each of your operations, you will receive the latest computer screenshot to evaluate the task execution status.
17499
+ This is a computer GUI interface, observe the execution through screenshots, and specify action sequences to complete designated tasks.
17500
+ * COMPUTER OPERATIONS:
17501
+ - You can operate the application using shortcuts.
17502
+ - If stuck, try alternative approaches`,
17481
17503
  tools: _tools_,
17482
17504
  llms: llms,
17483
17505
  mcpClient: mcpClient,
17484
- planDescription: "Computer operation agent, interact with the computer using the mouse and keyboard."
17506
+ planDescription: "Computer operation agent, interact with the computer using the mouse and keyboard, operation application."
17485
17507
  });
17486
- this.keyboardKeys = [
17487
- 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
17488
- 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
17489
- '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
17490
- 'enter', 'esc', 'backspace', 'tab', 'space', 'delete',
17491
- 'ctrl', 'alt', 'shift', 'win',
17492
- 'up', 'down', 'left', 'right',
17493
- 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12',
17494
- 'ctrl+c', 'ctrl+v', 'ctrl+x', 'ctrl+z', 'ctrl+a', 'ctrl+s',
17495
- 'alt+tab', 'alt+f4', 'ctrl+alt+delete'
17496
- ];
17497
- let init_tools = this.buildInitTools();
17508
+ if (!keyboardKeys) {
17509
+ if (config.platform == "windows") {
17510
+ keyboardKeys = [
17511
+ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
17512
+ 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
17513
+ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
17514
+ 'enter', 'esc', 'backspace', 'tab', 'space', 'delete',
17515
+ 'ctrl', 'alt', 'shift', 'win',
17516
+ 'up', 'down', 'left', 'right',
17517
+ 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12',
17518
+ 'ctrl+c', 'ctrl+v', 'ctrl+x', 'ctrl+z', 'ctrl+a', 'ctrl+s',
17519
+ 'alt+tab', 'alt+f4', 'ctrl+alt+delete'
17520
+ ];
17521
+ }
17522
+ else {
17523
+ keyboardKeys = [
17524
+ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
17525
+ 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
17526
+ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
17527
+ 'enter', 'esc', 'backspace', 'tab', 'space', 'delete',
17528
+ 'command', 'option', 'shift', 'control',
17529
+ 'up', 'down', 'left', 'right',
17530
+ 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12',
17531
+ 'command+c', 'command+v', 'command+x', 'command+z', 'command+a', 'command+s',
17532
+ 'command+tab', 'command+q', 'command+escape'
17533
+ ];
17534
+ }
17535
+ }
17536
+ let init_tools = this.buildInitTools(keyboardKeys);
17498
17537
  if (ext_tools && ext_tools.length > 0) {
17499
17538
  init_tools = mergeTools(init_tools, ext_tools);
17500
17539
  }
17501
17540
  init_tools.forEach((tool) => _tools_.push(tool));
17502
17541
  }
17503
- buildInitTools() {
17542
+ buildInitTools(keyboardKeys) {
17504
17543
  return [
17505
17544
  {
17506
17545
  name: "typing",
@@ -17601,7 +17640,7 @@ class BaseComputerAgent extends Agent {
17601
17640
  key: {
17602
17641
  type: "string",
17603
17642
  description: "Key to press",
17604
- enum: this.keyboardKeys,
17643
+ enum: keyboardKeys,
17605
17644
  },
17606
17645
  },
17607
17646
  required: ["key"],
@@ -17619,7 +17658,7 @@ class BaseComputerAgent extends Agent {
17619
17658
  keys: {
17620
17659
  type: "string",
17621
17660
  description: "Key combination to press",
17622
- enum: this.keyboardKeys,
17661
+ enum: keyboardKeys,
17623
17662
  },
17624
17663
  },
17625
17664
  required: ["keys"],
@@ -18441,7 +18480,7 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
18441
18480
  - Elements marked with "[]:" are non-interactive (for context only)
18442
18481
  * NAVIGATION & ERROR HANDLING:
18443
18482
  - If no suitable elements exist, use other functions to complete the task
18444
- - If stuck, try alternative approaches
18483
+ - If stuck, try alternative approaches, don't refuse tasks
18445
18484
  - Handle popups/cookies by accepting or closing them
18446
18485
  - Use scroll to find elements you are looking for`;
18447
18486
  const _tools_ = [];
@@ -18491,7 +18530,7 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
18491
18530
  try {
18492
18531
  let element_result = null;
18493
18532
  for (let i = 0; i < 5; i++) {
18494
- await sleep(300);
18533
+ await sleep(200);
18495
18534
  await this.execute_script(agentContext, run_build_dom_tree, []);
18496
18535
  element_result = (await this.execute_script(agentContext, () => {
18497
18536
  return window.get_clickable_elements(true);
@@ -18684,6 +18723,34 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
18684
18723
  return await this.callInnerTool(() => this.extract_content(agentContext));
18685
18724
  },
18686
18725
  },
18726
+ {
18727
+ name: "get_all_tabs",
18728
+ description: "Get all tabs of the current browser",
18729
+ parameters: {
18730
+ type: "object",
18731
+ properties: {},
18732
+ },
18733
+ execute: async (args, agentContext) => {
18734
+ return await this.callInnerTool(() => this.get_all_tabs(agentContext));
18735
+ },
18736
+ },
18737
+ {
18738
+ name: "switch_tab",
18739
+ description: "Switch to the specified tab page",
18740
+ parameters: {
18741
+ type: "object",
18742
+ properties: {
18743
+ tabId: {
18744
+ type: "number",
18745
+ description: "Tab ID, obtained through get_all_tabs",
18746
+ },
18747
+ },
18748
+ required: ["tabId"],
18749
+ },
18750
+ execute: async (args, agentContext) => {
18751
+ return await this.callInnerTool(() => this.switch_tab(agentContext, args.tabId));
18752
+ },
18753
+ },
18687
18754
  {
18688
18755
  name: "wait",
18689
18756
  description: "Wait for specified duration",
@@ -18708,7 +18775,7 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
18708
18775
  }
18709
18776
  async handleMessages(agentContext, messages) {
18710
18777
  let lastTool = this.lastToolResult(messages);
18711
- if (lastTool && lastTool.toolName !== "extract_content") {
18778
+ if (lastTool && lastTool.toolName !== "extract_content" && lastTool.toolName !== "get_all_tabs") {
18712
18779
  await sleep(200);
18713
18780
  let result = await this.screenshot_and_html(agentContext);
18714
18781
  let image = toImage(result.imageBase64);
@@ -19054,6 +19121,34 @@ class BaseBrowserScreenAgent extends BaseBrowserAgent {
19054
19121
  return await this.callInnerTool(() => this.drag_and_drop(agentContext, args.x1, args.y1, args.x2, args.y2));
19055
19122
  },
19056
19123
  },
19124
+ {
19125
+ name: "get_all_tabs",
19126
+ description: "Get all tabs of the current browser",
19127
+ parameters: {
19128
+ type: "object",
19129
+ properties: {},
19130
+ },
19131
+ execute: async (args, agentContext) => {
19132
+ return await this.callInnerTool(() => this.get_all_tabs(agentContext));
19133
+ },
19134
+ },
19135
+ {
19136
+ name: "switch_tab",
19137
+ description: "Switch to the specified tab page",
19138
+ parameters: {
19139
+ type: "object",
19140
+ properties: {
19141
+ tabId: {
19142
+ type: "number",
19143
+ description: "Tab ID, obtained through get_all_tabs",
19144
+ },
19145
+ },
19146
+ required: ["tabId"],
19147
+ },
19148
+ execute: async (args, agentContext) => {
19149
+ return await this.callInnerTool(() => this.switch_tab(agentContext, args.tabId));
19150
+ },
19151
+ },
19057
19152
  {
19058
19153
  name: "wait",
19059
19154
  description: "Wait for specified duration",
@@ -19078,7 +19173,7 @@ class BaseBrowserScreenAgent extends BaseBrowserAgent {
19078
19173
  }
19079
19174
  async handleMessages(agentContext, messages) {
19080
19175
  let lastTool = this.lastToolResult(messages);
19081
- if (lastTool && lastTool.toolName !== "extract_content") {
19176
+ if (lastTool && lastTool.toolName !== "extract_content" && lastTool.toolName !== "get_all_tabs") {
19082
19177
  await sleep(200);
19083
19178
  let result = await this.screenshot(agentContext);
19084
19179
  let image = toImage(result.imageBase64);
package/dist/index.esm.js CHANGED
@@ -15636,6 +15636,8 @@ confirm: Ask the user to confirm whether to execute an operation, especially whe
15636
15636
  input: Prompt the user to enter text; for example, when a task is ambiguous, the AI can choose to ask the user for details, and the user can respond by inputting.
15637
15637
  select: Allow the user to make a choice; in situations that require selection, the AI can ask the user to make a decision.
15638
15638
  request_help: Request assistance from the user; for instance, when an operation is blocked, the AI can ask the user for help, such as needing to log into a website or solve a CAPTCHA.`;
15639
+ this.planDescription =
15640
+ "AI interacts with humans, when performing dangerous operations such as deleting files, you can request confirmation from humans";
15639
15641
  this.parameters = {
15640
15642
  type: "object",
15641
15643
  properties: {
@@ -15904,7 +15906,7 @@ class WatchTriggerTool {
15904
15906
  };
15905
15907
  }
15906
15908
  async execute(args, agentContext) {
15907
- // TODO 监听 dom 文件 改变,执行节点
15909
+ // TODO Listen for changes to the DOM or file, and execute nodes
15908
15910
  return null;
15909
15911
  }
15910
15912
  }
@@ -16739,15 +16741,20 @@ const PLAN_USER_TEMPLATE = `
16739
16741
  User Platform: {platform}
16740
16742
  Task Description: {taskPrompt}
16741
16743
  `;
16744
+ const PLAN_USER_TASK_WEBSITE_TEMPLATE = `
16745
+ User Platform: {platform}
16746
+ Task Website: {task_website}
16747
+ Task Description: {taskPrompt}
16748
+ `;
16742
16749
  function getPlanSystemPrompt(agents) {
16743
16750
  let agents_prompt = agents
16744
16751
  .map((agent) => {
16745
16752
  return (`<agent name="${agent.Name}">\n` +
16746
16753
  `Description: ${agent.PlanDescription || agent.Description}\nTools:\n` +
16747
- agent.Tools.map((tool) => `- ${tool.name}: ${tool.description || ""}`).join("\n") +
16754
+ agent.Tools.map((tool) => `- ${tool.name}: ${tool.planDescription || tool.description || ""}`).join("\n") +
16748
16755
  `\n</agent>`);
16749
16756
  })
16750
- .join("\n");
16757
+ .join("\n\n");
16751
16758
  let example_prompt = "";
16752
16759
  let hasChatAgent = agents.filter((a) => a.Name == AGENT_NAME$4).length > 0;
16753
16760
  const example_list = hasChatAgent
@@ -16762,10 +16769,18 @@ function getPlanSystemPrompt(agents) {
16762
16769
  .replace("{example_prompt}", example_prompt)
16763
16770
  .trim();
16764
16771
  }
16765
- function getPlanUserPrompt(taskPrompt) {
16766
- return PLAN_USER_TEMPLATE.replace("{taskPrompt}", taskPrompt)
16767
- .replace("{platform}", config.platform)
16768
- .trim();
16772
+ function getPlanUserPrompt(taskPrompt, task_website) {
16773
+ if (task_website) {
16774
+ return PLAN_USER_TASK_WEBSITE_TEMPLATE.replace("{taskPrompt}", taskPrompt)
16775
+ .replace("{platform}", config.platform)
16776
+ .replace("{task_website}", task_website)
16777
+ .trim();
16778
+ }
16779
+ else {
16780
+ return PLAN_USER_TEMPLATE.replace("{taskPrompt}", taskPrompt)
16781
+ .replace("{platform}", config.platform)
16782
+ .trim();
16783
+ }
16769
16784
  }
16770
16785
 
16771
16786
  class Planner {
@@ -16794,7 +16809,7 @@ class Planner {
16794
16809
  {
16795
16810
  role: "user",
16796
16811
  content: [{ type: "text", text: taskPrompt }],
16797
- }
16812
+ },
16798
16813
  ];
16799
16814
  }
16800
16815
  else {
@@ -16802,7 +16817,12 @@ class Planner {
16802
16817
  { role: "system", content: getPlanSystemPrompt(this.context.agents) },
16803
16818
  {
16804
16819
  role: "user",
16805
- content: [{ type: "text", text: getPlanUserPrompt(taskPrompt) }],
16820
+ content: [
16821
+ {
16822
+ type: "text",
16823
+ text: getPlanUserPrompt(taskPrompt, this.context.variables.get("task_website")),
16824
+ },
16825
+ ],
16806
16826
  },
16807
16827
  ];
16808
16828
  }
@@ -16915,14 +16935,12 @@ class Eko {
16915
16935
  }
16916
16936
  catch (e) {
16917
16937
  return {
16938
+ taskId,
16918
16939
  success: false,
16919
16940
  stopReason: e?.name == "AbortError" ? "abort" : "error",
16920
16941
  result: e,
16921
16942
  };
16922
16943
  }
16923
- finally {
16924
- this.deleteTask(taskId);
16925
- }
16926
16944
  }
16927
16945
  async run(taskPrompt, taskId = uuidv4(), contextParams) {
16928
16946
  await this.generate(taskPrompt, taskId, contextParams);
@@ -16966,11 +16984,11 @@ class Eko {
16966
16984
  agent.result = await agent.run(context, agentChain);
16967
16985
  lastResult = agent.result;
16968
16986
  }
16969
- // TODO 超过2个Agent时需要summary输出结果。
16970
16987
  return {
16971
16988
  success: true,
16972
16989
  stopReason: "done",
16973
16990
  result: lastResult,
16991
+ taskId: context.taskId,
16974
16992
  };
16975
16993
  }
16976
16994
  getTask(taskId) {
@@ -17438,34 +17456,55 @@ class BaseTimerAgent extends Agent {
17438
17456
 
17439
17457
  const AGENT_NAME$1 = "Computer";
17440
17458
  class BaseComputerAgent extends Agent {
17441
- constructor(llms, ext_tools, mcpClient) {
17459
+ constructor(llms, ext_tools, mcpClient, keyboardKeys) {
17442
17460
  const _tools_ = [];
17443
17461
  super({
17444
17462
  name: AGENT_NAME$1,
17445
- description: "You are a computer operation agent, who interacts with the computer using mouse and keyboard, completing specified tasks step by step based on the given tasks and screenshots. After each of your operations, you will receive the latest computer screenshot to evaluate the task execution status.",
17463
+ description: `You are a computer operation agent, who interacts with the computer using mouse and keyboard, completing specified tasks step by step based on the given tasks and screenshots. After each of your operations, you will receive the latest computer screenshot to evaluate the task execution status.
17464
+ This is a computer GUI interface, observe the execution through screenshots, and specify action sequences to complete designated tasks.
17465
+ * COMPUTER OPERATIONS:
17466
+ - You can operate the application using shortcuts.
17467
+ - If stuck, try alternative approaches`,
17446
17468
  tools: _tools_,
17447
17469
  llms: llms,
17448
17470
  mcpClient: mcpClient,
17449
- planDescription: "Computer operation agent, interact with the computer using the mouse and keyboard."
17471
+ planDescription: "Computer operation agent, interact with the computer using the mouse and keyboard, operation application."
17450
17472
  });
17451
- this.keyboardKeys = [
17452
- 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
17453
- 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
17454
- '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
17455
- 'enter', 'esc', 'backspace', 'tab', 'space', 'delete',
17456
- 'ctrl', 'alt', 'shift', 'win',
17457
- 'up', 'down', 'left', 'right',
17458
- 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12',
17459
- 'ctrl+c', 'ctrl+v', 'ctrl+x', 'ctrl+z', 'ctrl+a', 'ctrl+s',
17460
- 'alt+tab', 'alt+f4', 'ctrl+alt+delete'
17461
- ];
17462
- let init_tools = this.buildInitTools();
17473
+ if (!keyboardKeys) {
17474
+ if (config.platform == "windows") {
17475
+ keyboardKeys = [
17476
+ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
17477
+ 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
17478
+ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
17479
+ 'enter', 'esc', 'backspace', 'tab', 'space', 'delete',
17480
+ 'ctrl', 'alt', 'shift', 'win',
17481
+ 'up', 'down', 'left', 'right',
17482
+ 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12',
17483
+ 'ctrl+c', 'ctrl+v', 'ctrl+x', 'ctrl+z', 'ctrl+a', 'ctrl+s',
17484
+ 'alt+tab', 'alt+f4', 'ctrl+alt+delete'
17485
+ ];
17486
+ }
17487
+ else {
17488
+ keyboardKeys = [
17489
+ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
17490
+ 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
17491
+ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
17492
+ 'enter', 'esc', 'backspace', 'tab', 'space', 'delete',
17493
+ 'command', 'option', 'shift', 'control',
17494
+ 'up', 'down', 'left', 'right',
17495
+ 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12',
17496
+ 'command+c', 'command+v', 'command+x', 'command+z', 'command+a', 'command+s',
17497
+ 'command+tab', 'command+q', 'command+escape'
17498
+ ];
17499
+ }
17500
+ }
17501
+ let init_tools = this.buildInitTools(keyboardKeys);
17463
17502
  if (ext_tools && ext_tools.length > 0) {
17464
17503
  init_tools = mergeTools(init_tools, ext_tools);
17465
17504
  }
17466
17505
  init_tools.forEach((tool) => _tools_.push(tool));
17467
17506
  }
17468
- buildInitTools() {
17507
+ buildInitTools(keyboardKeys) {
17469
17508
  return [
17470
17509
  {
17471
17510
  name: "typing",
@@ -17566,7 +17605,7 @@ class BaseComputerAgent extends Agent {
17566
17605
  key: {
17567
17606
  type: "string",
17568
17607
  description: "Key to press",
17569
- enum: this.keyboardKeys,
17608
+ enum: keyboardKeys,
17570
17609
  },
17571
17610
  },
17572
17611
  required: ["key"],
@@ -17584,7 +17623,7 @@ class BaseComputerAgent extends Agent {
17584
17623
  keys: {
17585
17624
  type: "string",
17586
17625
  description: "Key combination to press",
17587
- enum: this.keyboardKeys,
17626
+ enum: keyboardKeys,
17588
17627
  },
17589
17628
  },
17590
17629
  required: ["keys"],
@@ -18406,7 +18445,7 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
18406
18445
  - Elements marked with "[]:" are non-interactive (for context only)
18407
18446
  * NAVIGATION & ERROR HANDLING:
18408
18447
  - If no suitable elements exist, use other functions to complete the task
18409
- - If stuck, try alternative approaches
18448
+ - If stuck, try alternative approaches, don't refuse tasks
18410
18449
  - Handle popups/cookies by accepting or closing them
18411
18450
  - Use scroll to find elements you are looking for`;
18412
18451
  const _tools_ = [];
@@ -18456,7 +18495,7 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
18456
18495
  try {
18457
18496
  let element_result = null;
18458
18497
  for (let i = 0; i < 5; i++) {
18459
- await sleep(300);
18498
+ await sleep(200);
18460
18499
  await this.execute_script(agentContext, run_build_dom_tree, []);
18461
18500
  element_result = (await this.execute_script(agentContext, () => {
18462
18501
  return window.get_clickable_elements(true);
@@ -18649,6 +18688,34 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
18649
18688
  return await this.callInnerTool(() => this.extract_content(agentContext));
18650
18689
  },
18651
18690
  },
18691
+ {
18692
+ name: "get_all_tabs",
18693
+ description: "Get all tabs of the current browser",
18694
+ parameters: {
18695
+ type: "object",
18696
+ properties: {},
18697
+ },
18698
+ execute: async (args, agentContext) => {
18699
+ return await this.callInnerTool(() => this.get_all_tabs(agentContext));
18700
+ },
18701
+ },
18702
+ {
18703
+ name: "switch_tab",
18704
+ description: "Switch to the specified tab page",
18705
+ parameters: {
18706
+ type: "object",
18707
+ properties: {
18708
+ tabId: {
18709
+ type: "number",
18710
+ description: "Tab ID, obtained through get_all_tabs",
18711
+ },
18712
+ },
18713
+ required: ["tabId"],
18714
+ },
18715
+ execute: async (args, agentContext) => {
18716
+ return await this.callInnerTool(() => this.switch_tab(agentContext, args.tabId));
18717
+ },
18718
+ },
18652
18719
  {
18653
18720
  name: "wait",
18654
18721
  description: "Wait for specified duration",
@@ -18673,7 +18740,7 @@ class BaseBrowserLabelsAgent extends BaseBrowserAgent {
18673
18740
  }
18674
18741
  async handleMessages(agentContext, messages) {
18675
18742
  let lastTool = this.lastToolResult(messages);
18676
- if (lastTool && lastTool.toolName !== "extract_content") {
18743
+ if (lastTool && lastTool.toolName !== "extract_content" && lastTool.toolName !== "get_all_tabs") {
18677
18744
  await sleep(200);
18678
18745
  let result = await this.screenshot_and_html(agentContext);
18679
18746
  let image = toImage(result.imageBase64);
@@ -19019,6 +19086,34 @@ class BaseBrowserScreenAgent extends BaseBrowserAgent {
19019
19086
  return await this.callInnerTool(() => this.drag_and_drop(agentContext, args.x1, args.y1, args.x2, args.y2));
19020
19087
  },
19021
19088
  },
19089
+ {
19090
+ name: "get_all_tabs",
19091
+ description: "Get all tabs of the current browser",
19092
+ parameters: {
19093
+ type: "object",
19094
+ properties: {},
19095
+ },
19096
+ execute: async (args, agentContext) => {
19097
+ return await this.callInnerTool(() => this.get_all_tabs(agentContext));
19098
+ },
19099
+ },
19100
+ {
19101
+ name: "switch_tab",
19102
+ description: "Switch to the specified tab page",
19103
+ parameters: {
19104
+ type: "object",
19105
+ properties: {
19106
+ tabId: {
19107
+ type: "number",
19108
+ description: "Tab ID, obtained through get_all_tabs",
19109
+ },
19110
+ },
19111
+ required: ["tabId"],
19112
+ },
19113
+ execute: async (args, agentContext) => {
19114
+ return await this.callInnerTool(() => this.switch_tab(agentContext, args.tabId));
19115
+ },
19116
+ },
19022
19117
  {
19023
19118
  name: "wait",
19024
19119
  description: "Wait for specified duration",
@@ -19043,7 +19138,7 @@ class BaseBrowserScreenAgent extends BaseBrowserAgent {
19043
19138
  }
19044
19139
  async handleMessages(agentContext, messages) {
19045
19140
  let lastTool = this.lastToolResult(messages);
19046
- if (lastTool && lastTool.toolName !== "extract_content") {
19141
+ if (lastTool && lastTool.toolName !== "extract_content" && lastTool.toolName !== "get_all_tabs") {
19047
19142
  await sleep(200);
19048
19143
  let result = await this.screenshot(agentContext);
19049
19144
  let image = toImage(result.imageBase64);
@@ -1,4 +1,4 @@
1
1
  import { Agent } from "../agent";
2
2
  export declare function getPlanSystemPrompt(agents: Agent[]): string;
3
- export declare function getPlanUserPrompt(taskPrompt: string): string;
3
+ export declare function getPlanUserPrompt(taskPrompt: string, task_website?: string): string;
4
4
  //# sourceMappingURL=plan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../src/prompt/plan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAwKjC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CA0B3D;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAI5D"}
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../src/prompt/plan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA8KjC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CA0B3D;AAED,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,GACpB,MAAM,CAWR"}
@@ -5,6 +5,7 @@ export declare const TOOL_NAME = "human_interact";
5
5
  export default class HumanInteractTool implements Tool {
6
6
  readonly name: string;
7
7
  readonly description: string;
8
+ readonly planDescription: string;
8
9
  readonly parameters: JSONSchema7;
9
10
  constructor();
10
11
  execute(args: Record<string, unknown>, agentContext: AgentContext): Promise<ToolResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"human_interact.d.ts","sourceRoot":"","sources":["../../src/tools/human_interact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAExD,eAAO,MAAM,SAAS,mBAAmB,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,iBAAkB,YAAW,IAAI;IACpD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAa;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;;IA4E3B,OAAO,CACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,UAAU,CAAC;CAuEvB"}
1
+ {"version":3,"file":"human_interact.d.ts","sourceRoot":"","sources":["../../src/tools/human_interact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAExD,eAAO,MAAM,SAAS,mBAAmB,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,iBAAkB,YAAW,IAAI;IACpD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAa;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;;IA8E3B,OAAO,CACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,UAAU,CAAC;CAuEvB"}
@@ -108,6 +108,7 @@ export interface HumanCallback {
108
108
  onHumanHelp?: (agentContext: AgentContext, helpType: "request_login" | "request_assistance", prompt: string) => Promise<boolean>;
109
109
  }
110
110
  export type EkoResult = {
111
+ taskId: string;
111
112
  success: boolean;
112
113
  stopReason: "abort" | "error" | "done";
113
114
  result?: any;
@@ -1 +1 @@
1
- {"version":3,"file":"core.types.d.ts","sourceRoot":"","sources":["../../src/types/core.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG;IACtB,I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oB,EAChD,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IACvC,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC"}
@@ -52,6 +52,7 @@ export interface ToolExecuter {
52
52
  export interface Tool extends ToolExecuter {
53
53
  readonly name: string;
54
54
  readonly description?: string;
55
+ readonly planDescription?: string;
55
56
  readonly parameters: JSONSchema7;
56
57
  }
57
58
  //# sourceMappingURL=tools.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tools.types.d.ts","sourceRoot":"","sources":["../../src/types/tools.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,MAAM,UAAU,GAClB;IACE,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,WAAW,CAAC;CACzB,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,WAAW,CAAC;CAC3B,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,WAAW,CAAC;KACzB,CAAC;CACH,CAAC;AAEN,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EACH;QACE;YACE,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,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ai/eko",
3
- "version": "2.0.2-alpha.1",
3
+ "version": "2.0.2-alpha.3",
4
4
  "description": "Empowering language to transform human words into action.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",