mocode-ai 1.6.2 → 1.6.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/config/index.js
CHANGED
|
@@ -369,7 +369,10 @@ export function filterAgentsSectionsForInjection(content) {
|
|
|
369
369
|
if (!inIndexedSection)
|
|
370
370
|
out.push(line);
|
|
371
371
|
}
|
|
372
|
-
return out
|
|
372
|
+
return out
|
|
373
|
+
.join('\n')
|
|
374
|
+
.replace(/\n{3,}/g, '\n\n')
|
|
375
|
+
.trim();
|
|
373
376
|
}
|
|
374
377
|
/**
|
|
375
378
|
* 工作区根 AGENTS.md 自动导入段:与 memory 开关完全无关——
|
|
@@ -166,7 +166,7 @@ export const runCommandTool = {
|
|
|
166
166
|
name: 'run_command',
|
|
167
167
|
description: 'Run a FOREGROUND shell command, merging stdout+stderr. Default timeout 120s, hard cap 10min; pass shell=cmd|powershell|bash to pick the interpreter (platform default and MOCODE_SHELL override are stated in the system prompt). Non-interactive cmd cannot run `timeout /t` — use shell=powershell (`Start-Sleep`) or shell=bash (`sleep`) for waits.\n' +
|
|
168
168
|
'Anything that must keep running after this call returns — dev server, model service, watcher, log tail — belongs to dev_server (survives across calls; gives an id for incremental logs and process-tree kill). Do NOT detach via `start /b`, `nohup`, `&`: you lose both the logs and the handle.\n' +
|
|
169
|
-
|
|
169
|
+
"Multiple independent calls may be issued in one response (they run serially, in order); do not depend one on another's output within the same message.",
|
|
170
170
|
risk: 'dangerous',
|
|
171
171
|
parameters: {
|
|
172
172
|
type: 'object',
|
|
@@ -77,7 +77,8 @@ async function attemptFetch(target, via, signal) {
|
|
|
77
77
|
// ---------- web_fetch ----------
|
|
78
78
|
export const webFetchTool = {
|
|
79
79
|
name: 'web_fetch',
|
|
80
|
-
description: 'Fetch a URL and clean HTML to body text. Use to read a link from search results or a URL given by the user.',
|
|
80
|
+
description: 'Fetch a URL and clean HTML to body text. Use to read a link from search results or a URL given by the user.',
|
|
81
|
+
parameters: {
|
|
81
82
|
type: 'object',
|
|
82
83
|
properties: {
|
|
83
84
|
url: { type: 'string', description: 'Full URL to fetch; must be http/https' },
|
|
@@ -6,7 +6,8 @@ const MAX_CONTENT_CHARS = 800;
|
|
|
6
6
|
// ---------- web_search ----------
|
|
7
7
|
export const webSearchTool = {
|
|
8
8
|
name: 'web_search',
|
|
9
|
-
description: 'Search the web (AnySearch). Returns title/url/snippet/body per result. Optional tag for sub-domain capability.',
|
|
9
|
+
description: 'Search the web (AnySearch). Returns title/url/snippet/body per result. Optional tag for sub-domain capability.',
|
|
10
|
+
parameters: {
|
|
10
11
|
type: 'object',
|
|
11
12
|
properties: {
|
|
12
13
|
query: { type: 'string', description: 'Search query' },
|