execmodel

package
v0.50.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package execmodel holds shared DTOs that cross the codexexecgateway↔handlers package boundary. Both packages import it to avoid an import cycle and to eliminate field-by-field adapter translation that silently drops new fields.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectedExecutor

type ConnectedExecutor struct {
	ExeID       string     `json:"exe_id"`
	Description string     `json:"description"`
	DefaultCwd  string     `json:"default_cwd"`
	IsDefault   bool       `json:"is_default"`
	LastSeenAt  *time.Time `json:"last_seen_at,omitempty"`
}

ConnectedExecutor is the join shape returned by workspace listing and /api/exec-gateway/connected endpoints.

type Executor

type Executor struct {
	ExeID        string     `json:"exe_id"`
	UserID       string     `json:"user_id"`
	DisplayName  string     `json:"display_name,omitempty"`
	Description  string     `json:"description,omitempty"`
	DefaultCwd   string     `json:"default_cwd,omitempty"`
	RegisteredAt time.Time  `json:"registered_at"`
	LastSeenAt   *time.Time `json:"last_seen_at,omitempty"`
}

Executor is the persistent identity of a codex-exec node.

type WorkspaceExecutor

type WorkspaceExecutor struct {
	WorkspaceID string    `json:"workspace_id"`
	ExeID       string    `json:"exe_id"`
	IsDefault   bool      `json:"is_default"`
	CreatedAt   time.Time `json:"created_at"`
}

WorkspaceExecutor is a row in workspace_executors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL