Documentation
¶
Index ¶
- func ProvenanceEvents(projectPath string) ([]provenance.Event, error)
- func ReviewGates() map[string]GateSpec
- type Approval
- type ApprovalInput
- type BlockedGate
- type GateSpec
- type InitOptions
- type NextAction
- type PackageCompletion
- type RunWorkflowOptions
- type State
- func Approve(projectPath string, input ApprovalInput) (State, error)
- func CompleteFixtureAcquisition(projectPath, actorName string) (State, error)
- func CompleteFixtureReferenceManager(projectPath, actorName string) (State, error)
- func CompleteFixtureSourceImport(projectPath, actorName string) (State, error)
- func Init(projectPath string, opts InitOptions) (State, error)
- func Next(projectPath, actorName string) (State, error)
- func Reopen(projectPath string, target StateID, reason, actorName string) (State, error)
- func Status(projectPath string) (State, error)
- type StateID
- type WorkflowCheckpoint
- type WorkflowDAG
- type WorkflowRun
- type WorkflowStep
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvenanceEvents ¶
func ProvenanceEvents(projectPath string) ([]provenance.Event, error)
func ReviewGates ¶
Types ¶
type ApprovalInput ¶
type ApprovalInput struct{ Gate, Note, Actor string }
type BlockedGate ¶
type InitOptions ¶
type NextAction ¶
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 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 CompleteFixtureAcquisition ¶ added in v0.1.5
func CompleteFixtureReferenceManager ¶ added in v0.1.5
func CompleteFixtureSourceImport ¶ added in v0.1.5
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 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"`
}
Click to show internal directories.
Click to hide internal directories.