@yeaft/webchat-agent 0.1.488 → 0.1.490
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/package.json
CHANGED
package/unify/eval/cases/e2e.js
CHANGED
|
@@ -23,7 +23,6 @@ const listProjectsTool = defineTool({
|
|
|
23
23
|
name: 'list_projects',
|
|
24
24
|
description: 'List all projects in the workspace.',
|
|
25
25
|
parameters: { type: 'object', properties: {} },
|
|
26
|
-
modes: ['chat', 'work'],
|
|
27
26
|
async execute() {
|
|
28
27
|
return JSON.stringify({
|
|
29
28
|
projects: ['my-app', 'shared-lib', 'docs-site'],
|
|
@@ -41,7 +40,6 @@ const getProjectInfoTool = defineTool({
|
|
|
41
40
|
},
|
|
42
41
|
required: ['name'],
|
|
43
42
|
},
|
|
44
|
-
modes: ['chat', 'work'],
|
|
45
43
|
async execute(input) {
|
|
46
44
|
const projects = {
|
|
47
45
|
'my-app': { name: 'my-app', language: 'TypeScript', framework: 'Express', tests: 142 },
|
|
@@ -33,7 +33,6 @@ const searchTool = defineTool({
|
|
|
33
33
|
},
|
|
34
34
|
required: ['query'],
|
|
35
35
|
},
|
|
36
|
-
modes: ['chat', 'work'],
|
|
37
36
|
async execute(input) {
|
|
38
37
|
const q = (input.query || '').slice(0, 200);
|
|
39
38
|
return JSON.stringify({
|
|
@@ -54,7 +53,6 @@ const calculatorTool = defineTool({
|
|
|
54
53
|
},
|
|
55
54
|
required: ['expression'],
|
|
56
55
|
},
|
|
57
|
-
modes: ['chat', 'work'],
|
|
58
56
|
async execute(input) {
|
|
59
57
|
try {
|
|
60
58
|
// Safe eval for basic math
|
|
@@ -76,7 +74,6 @@ const readFileTool = defineTool({
|
|
|
76
74
|
},
|
|
77
75
|
required: ['path'],
|
|
78
76
|
},
|
|
79
|
-
modes: ['chat', 'work'],
|
|
80
77
|
async execute(input) {
|
|
81
78
|
// Mock file system
|
|
82
79
|
const files = {
|
|
@@ -99,7 +96,6 @@ const writeFileTool = defineTool({
|
|
|
99
96
|
},
|
|
100
97
|
required: ['path', 'content'],
|
|
101
98
|
},
|
|
102
|
-
modes: ['work'],
|
|
103
99
|
async execute(input) {
|
|
104
100
|
return `Successfully wrote ${input.content.length} bytes to ${input.path}`;
|
|
105
101
|
},
|
|
@@ -115,7 +111,6 @@ const bashTool = defineTool({
|
|
|
115
111
|
},
|
|
116
112
|
required: ['command'],
|
|
117
113
|
},
|
|
118
|
-
modes: ['work'],
|
|
119
114
|
async execute(input) {
|
|
120
115
|
// Mock bash responses
|
|
121
116
|
const responses = {
|