Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
33 lines
760 B
Go
33 lines
760 B
Go
package workbench
|
|
|
|
import (
|
|
"encoding/json"
|
|
"strings"
|
|
)
|
|
|
|
type NodeLaunchRequest struct {
|
|
WorkspaceID string
|
|
TypeID string
|
|
Source string
|
|
LaunchSource string
|
|
DockEntryID string
|
|
RequestID string
|
|
Payload json.RawMessage
|
|
}
|
|
|
|
func NormalizeNodeLaunchRequest(input NodeLaunchRequest) NodeLaunchRequest {
|
|
source := strings.TrimSpace(input.Source)
|
|
if source == "" {
|
|
source = "cli"
|
|
}
|
|
return NodeLaunchRequest{
|
|
WorkspaceID: strings.TrimSpace(input.WorkspaceID),
|
|
TypeID: strings.TrimSpace(input.TypeID),
|
|
Source: source,
|
|
LaunchSource: strings.TrimSpace(input.LaunchSource),
|
|
DockEntryID: strings.TrimSpace(input.DockEntryID),
|
|
RequestID: strings.TrimSpace(input.RequestID),
|
|
Payload: input.Payload,
|
|
}
|
|
}
|