feat: Remote-Execute für Linux/Bash – OS-basierte Tool-Descriptions und remote.sh Script
Remote-Verbindungen erkennen jetzt das OS des Clients und passen die Tool-Description dynamisch an (PowerShell für Windows, Bash für Linux). Neues remote.sh Script für Linux/macOS-Clients mit embedded Python WebSocket-Client. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
1035066a39
commit
53cee67bef
11 files changed
+381
-27
No files matched your search
@@ -101,7 +101,8 @@ public partial class AnthropicService
|
||||
if (systemPrompt != null && systemPrompt.Count > 0)
|
||||
payload["system"] = systemPrompt;
|
||||
|
||||
var hasRemote = remoteMgr?.GetBySessionId(sessionId) != null;
|
||||
var remoteConn = remoteMgr?.GetBySessionId(sessionId);
|
||||
var hasRemote = remoteConn != null;
|
||||
AddToolsToPayload(payload, new ToolPayloadOptions
|
||||
{
|
||||
Workspace = workspace,
|
||||
@@ -113,6 +114,7 @@ public partial class AnthropicService
|
||||
AllowUserChoice = allowUserChoice,
|
||||
PlanMode = planMode,
|
||||
IncludeRemote = hasRemote,
|
||||
RemoteOs = remoteConn?.OsVersion,
|
||||
IncludeGitHubSearch = useGitHubSearch && _toolService.HasGitHubToken,
|
||||
IncludeSerperSearch = useSerperSearch && _toolService.HasSerperKey
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user