demoseed

package
v0.3.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package demoseed prepares a coherent local workspace for product demonstrations.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrScenarioExists reports that the Northstar Pay workspace already exists.
	ErrScenarioExists = errors.New("demo seed: Northstar Pay scenario already exists")
)

Functions

This section is empty.

Types

type Counts

type Counts struct {
	Agents           int `json:"agents"`
	Sessions         int `json:"sessions"`
	Tasks            int `json:"tasks"`
	NetworkMessages  int `json:"network_messages"`
	LoopRuns         int `json:"loop_runs"`
	AutomationJobs   int `json:"automation_jobs"`
	AutomationRuns   int `json:"automation_runs"`
	TranscriptEvents int `json:"transcript_events"`
}

Counts summarizes the durable records created by a seed run.

type Options

type Options struct {
	HomeDir string
	Replace bool
	Now     time.Time
}

Options controls where and when the scenario is written.

type Result

type Result struct {
	HomeDir          string   `json:"home_dir"`
	DatabaseFile     string   `json:"database_file"`
	WorkspaceID      string   `json:"workspace_id"`
	WorkspaceRoot    string   `json:"workspace_root"`
	WorkspaceName    string   `json:"workspace_name"`
	SessionIDs       []string `json:"session_ids"`
	TaskIDs          []string `json:"task_ids"`
	NetworkChannel   string   `json:"network_channel"`
	NetworkThreadID  string   `json:"network_thread_id"`
	LoopName         string   `json:"loop_name"`
	LoopRunID        string   `json:"loop_run_id"`
	AutomationJobID  string   `json:"automation_job_id"`
	SuggestedWebPath []string `json:"suggested_web_path"`
	Counts           Counts   `json:"counts"`
}

Result identifies the seeded workspace and the shortest useful demo route.

func Seed

func Seed(ctx context.Context, opts Options) (result Result, err error)

Seed writes the Northstar Pay launch scenario into one explicit Compozy home.

Jump to

Keyboard shortcuts

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