probe

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package probe runs the deterministic detection probes bin/f10-load-project.sh runs: remote host and CLI routing, stack and verify marker files, and the existing plans. Each answer carries the evidence that produced it - the provenance column is the point of the binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probes

type Probes struct {
	RemoteURL string   `json:"remote,omitempty"` // origin url; empty without an origin
	Host      string   `json:"host,omitempty"`   // hostname of the remote; empty for a local-path remote
	CLI       Signal   `json:"cli"`              // "gh", "glab", "unknown" or "none"
	Stack     []Signal `json:"stack,omitempty"`  // marker files at the checkout root
	Verify    []Signal `json:"verify,omitempty"`
	Review    *Review  `json:"review,omitempty"` // a CI review workflow, when one uses the Claude Code action
	Plans     []string `json:"plans,omitempty"`  // plan filenames under the storage root
	PlansDir  string   `json:"plansDir"`
}

Probes holds everything detection can say about a checkout.

func Run

func Run(ctx context.Context, lay *layout.Layout) *Probes

Run probes the located checkout. Read-only, like everything here.

type Review added in v0.26.0

type Review struct {
	Reviewer string `json:"reviewer"`          // the login that posts: claude[bot], or github-actions[bot] with a github_token
	Trigger  string `json:"trigger"`           // "automatic", "manual", or "automatic, manual"
	Mention  string `json:"mention,omitempty"` // the comment that triggers a manual run, "@claude" by default
	Workflow string `json:"workflow"`          // the workflow file, relative to the checkout root: the evidence
}

A Review is the remote review a CI workflow declares: a workflow under .github/workflows that runs the Claude Code action, read for who posts the review and what fires it. Everything else about the review (where it arrives, what marks it handled) is the action's out-of-the-box behavior and is written by facts.Scaffold as declared defaults, so a project whose workflow does otherwise edits one line.

type Signal

type Signal struct {
	Value    string `json:"value"`
	Evidence string `json:"evidence"`
}

A Signal is one detected value plus the evidence that produced it.

Jump to

Keyboard shortcuts

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