probe

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package probe runs the deterministic detection probes bin/resolve.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"`
	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, res *resolve.Resolution) *Probes

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

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