mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 08:31:49 +00:00
* feat(capabilities): add shared agent capability layer for MCP and CLI Introduce a registry-driven capability foundation so terminal, SFTP, vault, and port-forward tools can be extended from one policy and surface definition. Wire mcpServerBridge permission checks and the Skills CLI RPC client through the shared layer without changing existing AI runtime behavior. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(capabilities): restore SFTP cancel gating and home RPC timeout Match legacy mcpServerBridge behavior by blocking SFTP write RPCs after chat cancel and treating sftp/home as a long-running operation for timeout budget calculation. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
765 B
JavaScript
23 lines
765 B
JavaScript
"use strict";
|
|
|
|
const { createNotImplementedHandler } = require("./notImplemented.cjs");
|
|
|
|
/**
|
|
* Vault domain service skeleton. Handlers will be wired to a VaultFacade bridge
|
|
* in a follow-up PR; registry entries already describe the public contract.
|
|
*/
|
|
function createVaultService(_ctx = {}) {
|
|
return {
|
|
getHost: createNotImplementedHandler("vault.host.get"),
|
|
getHostNotes: createNotImplementedHandler("vault.host.notes.get"),
|
|
setHostNotes: createNotImplementedHandler("vault.host.notes.set"),
|
|
listSnippets: createNotImplementedHandler("vault.snippets.list"),
|
|
getSnippet: createNotImplementedHandler("vault.snippets.get"),
|
|
runSnippet: createNotImplementedHandler("vault.snippets.run"),
|
|
};
|
|
}
|
|
|
|
module.exports = {
|
|
createVaultService,
|
|
};
|