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
122 lines
4.6 KiB
Go
122 lines
4.6 KiB
Go
// Code generated by tools/scripts/generate-workbench-go-contract.mjs. DO NOT EDIT.
|
|
|
|
package workbenchservice
|
|
|
|
const (
|
|
workbenchSnapshotContractSchemaVersion = 1
|
|
workbenchSnapshotContractMaxSerializedBytes = 524288
|
|
workbenchSnapshotContractMaxNodes = 128
|
|
workbenchSnapshotContractMaxNodeIDLength = 160
|
|
workbenchSnapshotContractMaxKindLength = 120
|
|
workbenchSnapshotContractMaxTitleLength = 240
|
|
workbenchSnapshotContractMinFrameWidth = 160
|
|
workbenchSnapshotContractMinFrameHeight = 120
|
|
)
|
|
|
|
type WorkbenchSnapshot struct {
|
|
SchemaVersion int `json:"schemaVersion"`
|
|
Nodes []WorkbenchSnapshotNode `json:"nodes"`
|
|
NodeStack *[]string `json:"nodeStack,omitempty"`
|
|
ActiveNodeID *string `json:"activeNodeId,omitempty"`
|
|
Spaces *[]WorkbenchSnapshotSpace `json:"spaces,omitempty"`
|
|
ActiveSpaceID *string `json:"activeSpaceId,omitempty"`
|
|
LayoutBasis *WorkbenchSnapshotLayoutBasis `json:"layoutBasis,omitempty"`
|
|
LockedLayout *WorkbenchSnapshotLockedLayout `json:"lockedLayout,omitempty"`
|
|
Metadata map[string]interface{} `json:"metadata,omitempty"`
|
|
}
|
|
|
|
type WorkbenchSnapshotNode struct {
|
|
ID string `json:"id"`
|
|
Kind string `json:"kind"`
|
|
Title string `json:"title"`
|
|
Frame WorkbenchSnapshotFrame `json:"frame"`
|
|
DisplayMode *WorkbenchSnapshotDisplayMode `json:"displayMode,omitempty"`
|
|
RestoreFrame *WorkbenchSnapshotFrame `json:"restoreFrame,omitempty"`
|
|
IsMinimized *bool `json:"isMinimized,omitempty"`
|
|
MinimizedAtUnixMs *int64 `json:"minimizedAtUnixMs,omitempty"`
|
|
Data interface{} `json:"data,omitempty"`
|
|
AdapterState map[string]interface{} `json:"adapterState,omitempty"`
|
|
}
|
|
|
|
type WorkbenchSnapshotSpace struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
NodeIDs []string `json:"nodeIds"`
|
|
Frame *WorkbenchSnapshotFrame `json:"frame,omitempty"`
|
|
Data interface{} `json:"data,omitempty"`
|
|
}
|
|
|
|
type WorkbenchSnapshotFrame struct {
|
|
X float64 `json:"x"`
|
|
Y float64 `json:"y"`
|
|
Width float64 `json:"width"`
|
|
Height float64 `json:"height"`
|
|
}
|
|
|
|
type WorkbenchSnapshotSize struct {
|
|
Width float64 `json:"width"`
|
|
Height float64 `json:"height"`
|
|
}
|
|
|
|
type WorkbenchSnapshotSafeArea struct {
|
|
Top float64 `json:"top"`
|
|
Right float64 `json:"right"`
|
|
Bottom float64 `json:"bottom"`
|
|
Left float64 `json:"left"`
|
|
}
|
|
|
|
type WorkbenchSnapshotLayoutConstraints struct {
|
|
MinWidth float64 `json:"minWidth"`
|
|
MinHeight float64 `json:"minHeight"`
|
|
SurfacePadding float64 `json:"surfacePadding"`
|
|
SafeArea WorkbenchSnapshotSafeArea `json:"safeArea"`
|
|
}
|
|
|
|
type WorkbenchSnapshotLayoutBasis struct {
|
|
SurfaceSize WorkbenchSnapshotSize `json:"surfaceSize"`
|
|
LayoutConstraints WorkbenchSnapshotLayoutConstraints `json:"layoutConstraints"`
|
|
}
|
|
|
|
type WorkbenchSnapshotNormalizedFrame struct {
|
|
X float64 `json:"x"`
|
|
Y float64 `json:"y"`
|
|
Width float64 `json:"width"`
|
|
Height float64 `json:"height"`
|
|
}
|
|
|
|
type WorkbenchSnapshotLayoutPreset struct {
|
|
Kind WorkbenchSnapshotLayoutPresetKind `json:"kind"`
|
|
}
|
|
|
|
type WorkbenchSnapshotLockedLayout struct {
|
|
Preset WorkbenchSnapshotLayoutPreset `json:"preset"`
|
|
NodeIDs []string `json:"nodeIDs"`
|
|
NormalizedFrames map[string]WorkbenchSnapshotNormalizedFrame `json:"normalizedFrames,omitempty"`
|
|
}
|
|
|
|
type WorkbenchSnapshotDisplayMode string
|
|
|
|
const (
|
|
WorkbenchSnapshotDisplayModeFloating WorkbenchSnapshotDisplayMode = "floating"
|
|
WorkbenchSnapshotDisplayModeFullscreen WorkbenchSnapshotDisplayMode = "fullscreen"
|
|
)
|
|
|
|
type WorkbenchSnapshotLayoutPresetKind string
|
|
|
|
const (
|
|
WorkbenchSnapshotLayoutPresetKindBalanced WorkbenchSnapshotLayoutPresetKind = "balanced"
|
|
WorkbenchSnapshotLayoutPresetKindRow WorkbenchSnapshotLayoutPresetKind = "row"
|
|
WorkbenchSnapshotLayoutPresetKindColumn WorkbenchSnapshotLayoutPresetKind = "column"
|
|
)
|
|
|
|
var workbenchSnapshotContractLayoutPresetKinds = map[WorkbenchSnapshotLayoutPresetKind]struct{}{
|
|
WorkbenchSnapshotLayoutPresetKindBalanced: {},
|
|
WorkbenchSnapshotLayoutPresetKindRow: {},
|
|
WorkbenchSnapshotLayoutPresetKindColumn: {},
|
|
}
|
|
|
|
var workbenchSnapshotContractDisplayModes = map[WorkbenchSnapshotDisplayMode]struct{}{
|
|
WorkbenchSnapshotDisplayModeFloating: {},
|
|
WorkbenchSnapshotDisplayModeFullscreen: {},
|
|
}
|