migrate

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDuplicate

func FindDuplicate(idx DedupIndex, dst provider.Provider, conv *model.Conversation) (*provider.WriteResult, bool)

FindDuplicate searches the index and target provider storage for an existing migration of conv.

func FindExistingMigration

func FindExistingMigration(storagePath, originDigest string) (string, bool)

FindExistingMigration scans JSONL storage for agenthop_migration metadata matching origin digest.

func ResolveSession

func ResolveSession(ctx context.Context, reg *registry.Registry, idx *index.Store, id, from string) (*model.Summary, provider.Provider, error)

Types

type DedupIndex added in v0.1.2

type DedupIndex interface {
	FindMigration(providerID, originDigest string) (sessionID, storagePath string, ok bool, err error)
}

DedupIndex is satisfied by index.Store for migration deduplication.

type Engine

type Engine struct {
	Registry *registry.Registry
	Index    *index.Store
}

func (*Engine) Run

func (e *Engine) Run(ctx context.Context, opts Options) (*Result, error)

type Options

type Options struct {
	FromProvider string
	ToProvider   string
	SessionID    string
	ProjectPath  string
	DryRun       bool
}

type Result

type Result struct {
	Source        *model.Conversation
	Write         *provider.WriteResult
	Resume        string
	TargetName    string
	AlreadyExists bool
}

Jump to

Keyboard shortcuts

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