codeximport

package
v0.260418.2200 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportStateActiveKey

func ImportStateActiveKey() string

func ImportStateAutoUndoOnStopKey

func ImportStateAutoUndoOnStopKey() string

func ImportStateCodexHomeKey

func ImportStateCodexHomeKey() string

func ImportStateSourceProviderKey

func ImportStateSourceProviderKey() string

func ImportStateSqliteHomeKey

func ImportStateSqliteHomeKey() string

func ImportStateStateDBPathKey

func ImportStateStateDBPathKey() string

func ImportStateTargetProviderKey

func ImportStateTargetProviderKey() string

func RegisterRoutes

func RegisterRoutes(router *swagger.RouteGroup, handler *Handler)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(importer *Importer, cfg *config.Config) *Handler

func (*Handler) ImportOpenAISessions

func (h *Handler) ImportOpenAISessions(c *gin.Context)

type ImportOpenAISessionsRequest

type ImportOpenAISessionsRequest struct {
	SourceProvider  string `json:"sourceProvider,omitempty"`
	TargetProvider  string `json:"targetProvider,omitempty"`
	CodexHome       string `json:"codexHome,omitempty"`
	SqliteHome      string `json:"sqliteHome,omitempty"`
	StateDBPath     string `json:"stateDbPath,omitempty"`
	IncludeArchived *bool  `json:"includeArchived,omitempty"`
	CreateBackup    *bool  `json:"createBackup,omitempty"`
	AutoUndoOnStop  *bool  `json:"autoUndoOnStop,omitempty"`
	DryRun          bool   `json:"dryRun,omitempty"`
}

type ImportOpenAISessionsResponse

type ImportOpenAISessionsResponse struct {
	Success               bool     `json:"success"`
	Message               string   `json:"message,omitempty"`
	CodexHome             string   `json:"codexHome"`
	SqliteHome            string   `json:"sqliteHome"`
	StateDBPath           string   `json:"stateDbPath"`
	SourceProvider        string   `json:"sourceProvider"`
	TargetProvider        string   `json:"targetProvider"`
	DryRun                bool     `json:"dryRun"`
	ScannedFiles          int      `json:"scannedFiles"`
	UpdatedSessionFiles   int      `json:"updatedSessionFiles"`
	UpdatedArchivedFiles  int      `json:"updatedArchivedFiles"`
	UpdatedThreadRows     int64    `json:"updatedThreadRows"`
	UpdatedFiles          []string `json:"updatedFiles,omitempty"`
	BackupPaths           []string `json:"backupPaths,omitempty"`
	SkippedLockedFiles    []string `json:"skippedLockedFiles,omitempty"`
	SkippedInvalidJSONL   []string `json:"skippedInvalidJsonl,omitempty"`
	SkippedUnchangedFiles int      `json:"skippedUnchangedFiles"`
}

type Importer

type Importer struct {
	// contains filtered or unexported fields
}

func NewImporter

func NewImporter() *Importer

func (*Importer) ImportOpenAISessions

Jump to

Keyboard shortcuts

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