demoseed

package
v0.3.0-beta.25 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 31 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 = errors.New("demo seed: Northstar Pay scenario already exists")

ErrScenarioExists reports that a Northstar Pay workspace already exists.

Functions

This section is empty.

Types

type Counts

type Counts struct {
	Workspaces          int `json:"workspaces"`
	Agents              int `json:"agents"`
	Sessions            int `json:"sessions"`
	Tasks               int `json:"tasks"`
	TaskRuns            int `json:"task_runs"`
	NetworkMessages     int `json:"network_messages"`
	LoopDefinitions     int `json:"loop_definitions"`
	LoopRuns            int `json:"loop_runs"`
	LoopGenerations     int `json:"loop_generations"`
	LoopRunEvents       int `json:"loop_run_events"`
	GoalTurns           int `json:"goal_turns"`
	Memories            int `json:"memories"`
	EventSummaries      int `json:"event_summaries"`
	TokenUsageDays      int `json:"token_usage_days"`
	Worktrees           int `json:"worktrees"`
	NotificationPresets int `json:"notification_presets"`
	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"`
	WorkspaceIDs     []string `json:"workspace_ids"`
	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"`
	LoopNames        []string `json:"loop_names"`
	LoopRunID        string   `json:"loop_run_id"`
	LoopRunIDs       []string `json:"loop_run_ids"`
	AutomationJobID  string   `json:"automation_job_id"`
	SuggestedWebPath []string `json:"suggested_web_path"`
	Counts           Counts   `json:"counts"`
}

Result identifies the seeded workspaces and the shortest useful demo routes.

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