workapi

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 21 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

Overview

Package workapi is the engine's API for ideas, pursuits and evidence: twelve methods, typed once, each change one command with its event.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Methods

func Methods(name func(ctx context.Context, dir string) string) func(get func(ctx context.Context, repo string) (*state.State, error)) []api.Method

Methods returns what the engine calls with its state opener to get the twelve methods. name names who adds an idea when idea.add leaves the person out: the person running Physa on this machine, named as the CLI names them; "" when no name can be had.

func PersonOnly

func PersonOnly(method string) bool

PersonOnly reports whether method is one only a person may call: a pursuit is started and stopped by people (people-pursue).

func Refusal

func Refusal(method, agent string) string

Refusal is what a command says when method is called inside agent's session.

func StateOptions

func StateOptions() state.Options

StateOptions registers the evidence poll and its retention in every repo's state, with GitHub as the forge, for the engine to run with.

Types

This section is empty.

Jump to

Keyboard shortcuts

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