forge

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvenanceEvents

func ProvenanceEvents(projectPath string) ([]provenance.Event, error)

func ReviewGates

func ReviewGates() map[string]GateSpec

Types

type Approval

type Approval struct {
	Gate      string `json:"gate"`
	Note      string `json:"note,omitempty"`
	Actor     string `json:"actor"`
	Timestamp string `json:"timestamp"`
}

type ApprovalInput

type ApprovalInput struct{ Gate, Note, Actor string }

type BlockedGate

type BlockedGate struct {
	Gate             string `json:"gate"`
	AppliesAt        string `json:"appliesAt"`
	RequiredDecision string `json:"requiredDecision"`
}

type GateSpec

type GateSpec struct {
	Gate             string `json:"gate"`
	AppliesAt        string `json:"appliesAt"`
	RequiredDecision string `json:"requiredDecision"`
}

type InitOptions

type InitOptions struct {
	Question      string
	Actor         string
	SourceChoices []string
	ToolChoices   []string
}

type NextAction

type NextAction struct {
	Label string `json:"label"`
	CLI   string `json:"cli"`
}

type PackageCompletion added in v0.1.5

type PackageCompletion struct {
	State        State                 `json:"state"`
	Package      reviewpkg.Package     `json:"package"`
	AuditReport  reviewpkg.AuditReport `json:"auditReport"`
	ReplayReport reviewpkg.AuditReport `json:"replayReport"`
	PackagePath  string                `json:"packagePath"`
}

func CompleteFixturePackage added in v0.1.5

func CompleteFixturePackage(projectPath, packagePath, actorName string) (PackageCompletion, error)

type RunWorkflowOptions

type RunWorkflowOptions struct {
	MaxSteps int
	Actor    string
}

type State

type State struct {
	SchemaVersion       string        `json:"schemaVersion"`
	ProjectPath         string        `json:"projectPath"`
	Manifest            string        `json:"manifest"`
	Question            string        `json:"question"`
	SourceChoices       []string      `json:"sourceChoices,omitempty"`
	ToolChoices         []string      `json:"toolChoices,omitempty"`
	PrivacyLegalPreview []string      `json:"privacyLegalPreview,omitempty"`
	CurrentState        StateID       `json:"currentState"`
	Approvals           []Approval    `json:"approvals"`
	BlockedReviewGates  []BlockedGate `json:"blockedReviewGates"`
	NextSafeActions     []NextAction  `json:"nextSafeActions"`
	ValidationReceipts  []string      `json:"validationReceipts"`
	UpdatedAt           string        `json:"updatedAt"`
}

func Approve

func Approve(projectPath string, input ApprovalInput) (State, error)

func CompleteFixtureAcquisition added in v0.1.5

func CompleteFixtureAcquisition(projectPath, actorName string) (State, error)

func CompleteFixtureReferenceManager added in v0.1.5

func CompleteFixtureReferenceManager(projectPath, actorName string) (State, error)

func CompleteFixtureSourceImport added in v0.1.5

func CompleteFixtureSourceImport(projectPath, actorName string) (State, error)

func Init

func Init(projectPath string, opts InitOptions) (State, error)

func Next

func Next(projectPath, actorName string) (State, error)

func Reopen

func Reopen(projectPath string, target StateID, reason, actorName string) (State, error)

func Status

func Status(projectPath string) (State, error)

func (State) BlockedBy

func (s State) BlockedBy(gate string) bool

type StateID

type StateID string
const (
	StateQuestionDraft       StateID = "question_draft"
	StateProtocolPlan        StateID = "protocol_plan"
	StateSourcePlan          StateID = "source_plan"
	StateImportPlan          StateID = "import_plan"
	StateDedupeReview        StateID = "dedupe_review"
	StateFullTextAcquisition StateID = "full_text_acquisition"
	StateParserArbitration   StateID = "parser_arbitration"
	StateIndexing            StateID = "indexing"
	StateScreening           StateID = "screening"
	StateExtraction          StateID = "extraction"
	StateAnalysis            StateID = "analysis"
	StateReportBuild         StateID = "report_build"
	StatePackageExport       StateID = "package_export"
	StateDone                StateID = "done"
)

type WorkflowCheckpoint

type WorkflowCheckpoint struct {
	StepID      string   `json:"stepId"`
	Completed   bool     `json:"completed"`
	Inputs      []string `json:"inputs,omitempty"`
	Outputs     []string `json:"outputs,omitempty"`
	Checkpoint  string   `json:"checkpoint"`
	CompletedAt string   `json:"completedAt"`
}

type WorkflowDAG

type WorkflowDAG struct {
	SchemaVersion string         `json:"schemaVersion"`
	Question      string         `json:"question"`
	Steps         []WorkflowStep `json:"steps"`
}

func DefaultWorkflowDAG

func DefaultWorkflowDAG(question string) WorkflowDAG

type WorkflowRun

type WorkflowRun struct {
	SchemaVersion      string               `json:"schemaVersion"`
	ProjectPath        string               `json:"projectPath"`
	Checkpoints        []WorkflowCheckpoint `json:"checkpoints"`
	RestartSafeSkipped int                  `json:"restartSafeSkipped"`
	UpdatedAt          string               `json:"updatedAt"`
}

func RunWorkflowDAG

func RunWorkflowDAG(projectPath string, dag WorkflowDAG, opts RunWorkflowOptions) (WorkflowRun, error)

type WorkflowStep

type WorkflowStep struct {
	ID               string   `json:"id"`
	Label            string   `json:"label"`
	DependsOn        []string `json:"dependsOn,omitempty"`
	Command          string   `json:"command"`
	Inputs           []string `json:"inputs,omitempty"`
	Outputs          []string `json:"outputs,omitempty"`
	Checkpoint       string   `json:"checkpoint"`
	ProvenanceAction string   `json:"provenanceAction"`
}

Jump to

Keyboard shortcuts

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