mcp-fs-shell-windows 0.2.20 → 0.2.29
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/LICENSE +2 -1
- package/README.md +155 -4
- package/dist/analyze_project/handler.js +62 -0
- package/dist/analyze_project/schema.js +5 -0
- package/dist/browser/browserActions.js +128 -0
- package/dist/browser/fuzzySearch.js +49 -0
- package/dist/browser/handler.js +227 -0
- package/dist/browser/launcher.js +103 -0
- package/dist/browser/schema.js +37 -0
- package/dist/browser/session.js +14 -0
- package/dist/compat/handler.js +254 -0
- package/dist/compat/schema.js +97 -0
- package/dist/gh/handler.js +406 -0
- package/dist/gh/schema.js +36 -0
- package/dist/git/handler.js +209 -0
- package/dist/git/schema.js +23 -0
- package/dist/launch_file/handler.js +3 -1
- package/dist/query_database/handler.js +27 -0
- package/dist/query_database/schema.js +5 -0
- package/dist/rag/handler.js +103 -0
- package/dist/rag/helpers.js +126 -0
- package/dist/rag/schema.js +16 -0
- package/dist/read_document/handler.js +61 -0
- package/dist/read_document/schema.js +4 -0
- package/dist/server.js +864 -1
- package/dist/shell/handler.js +8 -0
- package/dist/subagent/handler.js +752 -0
- package/dist/subagent/handoffMessage.js +56 -0
- package/dist/subagent/schema.js +18 -0
- package/dist/subagent/subAgentToolCallParser.js +491 -0
- package/dist/subagent/toolCallValidator.js +97 -0
- package/dist/system/handler.js +239 -0
- package/dist/system/schema.js +21 -0
- package/dist/web/ddgParse.js +51 -0
- package/dist/web/handler.js +286 -0
- package/dist/web/schema.js +18 -0
- package/package.json +22 -2
package/dist/shell/handler.js
CHANGED
|
@@ -16,6 +16,14 @@ import { SHELL_MAX_TIMEOUT_SEC } from "./schema.js";
|
|
|
16
16
|
export const SHELL_JOBS_DIR = nodePath.join(os.tmpdir(), "mcp-fs-shell-windows", "shell-jobs");
|
|
17
17
|
const jobs = new Map();
|
|
18
18
|
let defaultShellCwd = process.cwd();
|
|
19
|
+
/**
|
|
20
|
+
* The shell_cwd default working directory. Exposed for tools that operate on
|
|
21
|
+
* "the working directory" as their context (fork equivalent of the
|
|
22
|
+
* Beledarian plugin's currentWorkingDirectory), e.g. analyze_project.
|
|
23
|
+
*/
|
|
24
|
+
export function getDefaultShellCwd() {
|
|
25
|
+
return defaultShellCwd;
|
|
26
|
+
}
|
|
19
27
|
// Best-effort startup cleanup: drop job log files older than 24 h.
|
|
20
28
|
try {
|
|
21
29
|
const entries = fs.readdirSync(SHELL_JOBS_DIR);
|