Claude Code
@5minds/node-red-contrib-processcube-claude-code — Integration der Claude Code CLI in Node-RED für AI-gesteuerte Automatisierung.
Überblick
Das Claude Code-Package ermöglicht die Ausführung von Claude Code-Prompts direkt aus Node-RED Flows. Es startet die Claude CLI als Child-Process und kommuniziert über Stream-JSON.
npm-Paket: @5minds/node-red-contrib-processcube-claude-code
Version: 1.0.x
Lizenz: Proprietary
Config-Node
claude-code-config
Zentrale Claude Code-Konfiguration.
| Eigenschaft | Typ | Standard | Beschreibung |
|---|---|---|---|
claudePath | string | ~/.claude/local/claude | Pfad zur Claude CLI |
permissionMode | string | default | Permission-Modus |
autoApprove | boolean | true | Tools automatisch genehmigen |
timeout | number | 300000 | Timeout in ms (5 Minuten) |
useSystemToken | boolean | true | System OAuth-Token verwenden |
Permission-Modi:
default— Standard-BerechtigungenacceptEdits— Dateiänderungen automatisch akzeptierenplan— Nur Planung, keine AusführungbypassPermissions— Alle Berechtigungen umgehen
Node
claude-code
Führt Claude Code-Prompts aus.
Kategorie: ProcessCube AI
Konfiguration:
| Eigenschaft | Beschreibung |
|---|---|
config | Claude Code-Konfiguration |
promptField | Quelle des Prompts (z.B. msg.payload) |
workingDirectory | Arbeitsverzeichnis für Claude |
Input:
| Feld | Typ | Beschreibung |
|---|---|---|
msg.payload | string | Prompt für Claude |
Output:
| Feld | Typ | Beschreibung |
|---|---|---|
msg.payload.success | boolean | Ausführung erfolgreich |
msg.payload.response | string | Claude’s Antwort |
msg.payload.toolsUsed | Array | Verwendete Tools |
msg.payload.duration | number | Dauer in ms |
msg.payload.error | string | Fehlertext (nur bei Fehler) |
Features
- Stream-JSON: Echtzeit-Kommunikation mit Claude CLI
- Tool-Approval: Automatische oder manuelle Tool-Genehmigung
- Hook-System: PreToolUse-Hooks für Kontrolle
- OAuth-Token: Integration mit ProcessCube® Authority
- Timeout-Management: Konfigurierbare Timeouts
Beispiel
[Inject: Prompt] → [claude-code] → [Debug: Antwort]
↑
workingDirectory: "/app"
prompt: "Erstelle eine README.md"Installation
Im Enterprise Image enthalten. Keine separate Installation erforderlich.
Nächste Schritte
- MCP Integration — MCP-Tools für AI
- Chat — Chat-Interface