@jarvis-agent/core 0.1.2 → 0.1.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/agent/file.d.ts.map +1 -1
- package/dist/index.cjs.js +11 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/agent/file.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/agent/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,IAAI,EAAc,UAAU,EAAE,MAAM,UAAU,CAAC;AAGxD,eAAO,MAAM,UAAU,SAAS,CAAC;AAEjC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,aAAc,SAAQ,KAAK;gBAErD,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,SAAS,CAAC,EAAE,IAAI,EAAE,EAClB,SAAS,CAAC,EAAE,UAAU,EACtB,eAAe,CAAC,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/agent/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,IAAI,EAAc,UAAU,EAAE,MAAM,UAAU,CAAC;AAGxD,eAAO,MAAM,UAAU,SAAS,CAAC;AAEjC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,aAAc,SAAQ,KAAK;gBAErD,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,SAAS,CAAC,EAAE,I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Y,EAAE,YAAY,EAC1B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CACR,KAAK,CAAC;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC,CACH;IAED,OAAO,CAAC,cAAc;CAwKvB;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -34585,7 +34585,12 @@ class BaseFileAgent extends Agent {
|
|
|
34585
34585
|
constructor(work_path, llms, ext_tools, mcpClient, planDescription) {
|
|
34586
34586
|
const _tools_ = [];
|
|
34587
34587
|
const prompt = work_path
|
|
34588
|
-
? `Your
|
|
34588
|
+
? `Your working directory is: ${work_path}
|
|
34589
|
+
- When viewing file lists and outputting file paths, always include the working directory
|
|
34590
|
+
- Output file names must be in English
|
|
34591
|
+
- At the end, only summarize task completion without listing file paths or verifying if output files or addresses exist
|
|
34592
|
+
- For data-related content, combine with visualization tools for display
|
|
34593
|
+
- For visualizations, generate charts first before page generation to minimize repetitive work`
|
|
34589
34594
|
: "";
|
|
34590
34595
|
super({
|
|
34591
34596
|
name: AGENT_NAME$3,
|
|
@@ -34594,7 +34599,11 @@ class BaseFileAgent extends Agent {
|
|
|
34594
34599
|
llms: llms,
|
|
34595
34600
|
mcpClient: mcpClient,
|
|
34596
34601
|
planDescription: planDescription ||
|
|
34597
|
-
|
|
34602
|
+
`File operation agent, handles file-related tasks such as creating, finding, reading, modifying files, etc. Only supports text file output
|
|
34603
|
+
- Output file names must be in English
|
|
34604
|
+
- When users request poster or summary file output, only output txt or html files, no need to verify existence or accessibility at the end
|
|
34605
|
+
- For data-related content, combine with visualization tools for display
|
|
34606
|
+
- For visualizations, generate charts first before page generation to minimize repetitive work`,
|
|
34598
34607
|
});
|
|
34599
34608
|
let init_tools = this.buildInitTools();
|
|
34600
34609
|
if (ext_tools && ext_tools.length > 0) {
|