approvalflow

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 4 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

View Source
const (
	OptionAllow = "allow"
	OptionDeny  = "deny"
)

Variables

This section is empty.

Functions

func DiffContent

func DiffContent(path, oldText, newText string) []libacp.ToolCallContent

func MarshalArgs

func MarshalArgs(args map[string]any) json.RawMessage

func MarshalMeta

func MarshalMeta(meta Meta) json.RawMessage

func SummarizeToolCallArgs

func SummarizeToolCallArgs(toolName string, args map[string]any) string

func Title

func ToolCallID

func ToolCallID(req hitlservice.ApprovalRequest) string

func ToolKindFor

func ToolKindFor(toolsName, toolName string) libacp.ToolKind

Types

type BuildOptions

type BuildOptions struct {
	SessionID  libacp.SessionID
	PolicyName string
	PolicyPath string
}

type Meta

type Meta struct {
	ToolsName  string `json:"toolsName,omitempty"`
	ToolName   string `json:"toolName,omitempty"`
	PolicyName string `json:"policyName,omitempty"`
	PolicyPath string `json:"policyPath,omitempty"`
	Diff       string `json:"diff,omitempty"`
	DiffOld    string `json:"diffOld,omitempty"`
	DiffNew    string `json:"diffNew,omitempty"`
}

Jump to

Keyboard shortcuts

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