demoseed

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 38 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"`
	SessionFolders     int `json:"session_folders"`
	AlwaysOnInstances  int `json:"always_on_instances"`
	CheckIns           int `json:"check_ins"`
	InstanceReports    int `json:"instance_reports"`
	ProposalPicks      int `json:"proposal_picks"`
	Agents             int `json:"agents"`
	Sessions           int `json:"sessions"`
	Tasks              int `json:"tasks"`
	TaskRuns           int `json:"task_runs"`
	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"`
	EventSummaries     int `json:"event_summaries"`
	TokenUsageDays     int `json:"token_usage_days"`
	Worktrees          int `json:"worktrees"`
	AutomationJobs     int `json:"automation_jobs"`
	AutomationRuns     int `json:"automation_runs"`
	AutomationTriggers int `json:"automation_triggers"`
	TranscriptEvents   int `json:"transcript_events"`
	Subagents          int `json:"subagents"`
	Monitors           int `json:"monitors"`
	PullRequests       int `json:"pull_requests"`
	LaterSessions      int `json:"later_sessions"`
}

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"`
	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