@jarvis-agent/core 0.1.2 → 0.1.4

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.esm.js CHANGED
@@ -34417,6 +34417,7 @@ class Agent {
34417
34417
  if (hasWatch) {
34418
34418
  tools.push(new WatchTriggerTool());
34419
34419
  }
34420
+ tools.push(new HumanInteractTool());
34420
34421
  let toolNames = this.tools.map((tool) => tool.name);
34421
34422
  return tools.filter((tool) => toolNames.indexOf(tool.name) == -1);
34422
34423
  }
@@ -34550,7 +34551,12 @@ class BaseFileAgent extends Agent {
34550
34551
  constructor(work_path, llms, ext_tools, mcpClient, planDescription) {
34551
34552
  const _tools_ = [];
34552
34553
  const prompt = work_path
34553
- ? `Your default working path is: ${work_path}`
34554
+ ? `Your working directory is: ${work_path}
34555
+ - When viewing file lists and outputting file paths, always include the working directory
34556
+ - Output file names must be in English
34557
+ - At the end, only summarize task completion without listing file paths or verifying if output files or addresses exist
34558
+ - For data-related content, combine with visualization tools for display
34559
+ - For visualizations, generate charts first before page generation to minimize repetitive work`
34554
34560
  : "";
34555
34561
  super({
34556
34562
  name: AGENT_NAME$3,
@@ -34559,7 +34565,11 @@ class BaseFileAgent extends Agent {
34559
34565
  llms: llms,
34560
34566
  mcpClient: mcpClient,
34561
34567
  planDescription: planDescription ||
34562
- "File operation agent, handling file-related tasks such as creating, finding, reading, modifying files, etc, only text file writing is supported.",
34568
+ `File operation agent, handles file-related tasks such as creating, finding, reading, modifying files, etc. Only supports text file output
34569
+ - Output file names must be in English
34570
+ - When users request poster or summary file output, only output txt or html files, no need to verify existence or accessibility at the end
34571
+ - For data-related content, combine with visualization tools for display
34572
+ - For visualizations, generate charts first before page generation to minimize repetitive work`,
34563
34573
  });
34564
34574
  let init_tools = this.buildInitTools();
34565
34575
  if (ext_tools && ext_tools.length > 0) {