internal/

directory
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT

Directories

Path Synopsis
origin
Package origin defines the closed capture-origin provenance enum shared by the acceptance corpus (re-exported through package acceptance) and the lifecycle receipt/envelope origin carriers.
Package origin defines the closed capture-origin provenance enum shared by the acceptance corpus (re-exported through package acceptance) and the lifecycle receipt/envelope origin carriers.
Package acp provides an ACP (Agent Client Protocol) client for connecting to ACP-compatible agents and receiving live session update streams.
Package acp provides an ACP (Agent Client Protocol) client for connecting to ACP-compatible agents and receiving live session update streams.
Package audit provides the pluggable audit persistence interface and concrete implementations for the Pasture epoch workflow audit trail.
Package audit provides the pluggable audit persistence interface and concrete implementations for the Pasture epoch workflow audit trail.
Package codegen — agent definition generation.
Package codegen — agent definition generation.
capabilitylint
Package capabilitylint implements a narrow static-analysis rule for the typed capability escape hatch (github.com/dayvidpham/pasture/internal/codegen/ir): CapabilityID is a named string type (ir.CapabilityID string), not an opaque struct like ir.SemanticOperationID/ir.SkillID/ir.EffectID, so Go's own untyped-literal-assignability rule lets a raw string literal compile successfully as a DefineCapability/MustDefineCapability identity argument.
Package capabilitylint implements a narrow static-analysis rule for the typed capability escape hatch (github.com/dayvidpham/pasture/internal/codegen/ir): CapabilityID is a named string type (ir.CapabilityID string), not an opaque struct like ir.SemanticOperationID/ir.SkillID/ir.EffectID, so Go's own untyped-literal-assignability rule lets a raw string literal compile successfully as a DefineCapability/MustDefineCapability identity argument.
ir
Package ir defines Pasture's portable, harness-neutral document and orchestration intermediate representation.
Package ir defines Pasture's portable, harness-neutral document and orchestration intermediate representation.
scan
Package scan implements Pasture's read-only Goldmark inventory and classification of native harness syntax across canonical Markdown source roots (github.com/dayvidpham/pasture issue #47).
Package scan implements Pasture's read-only Goldmark inventory and classification of native harness syntax across canonical Markdown source roots (github.com/dayvidpham/pasture issue #47).
Package config provides configuration structs and resolution logic for pasture daemons and CLI tools.
Package config provides configuration structs and resolution logic for pasture daemons and CLI tools.
Package dbconn centralizes how every pasture component opens a modernc SQLite handle on the shared pasture.db file.
Package dbconn centralizes how every pasture component opens a modernc SQLite handle on the shared pasture.db file.
Package effects defines Pasture's typed process, Git, and filesystem workflow effect algebra: opaque, constructor-validated operands and closed effect sums that make operational semantics explicit instead of hiding them in shell-fragment strings.
Package effects defines Pasture's typed process, Git, and filesystem workflow effect algebra: opaque, constructor-validated operands and closed effect sums that make operational semantics explicit instead of hiding them in shell-fragment strings.
Package engine is the durable-execution adapter for the pasture epoch lifecycle.
Package engine is the durable-execution adapter for the pasture epoch lifecycle.
Package errors provides structured, actionable error reporting for the pasture system.
Package errors provides structured, actionable error reporting for the pasture system.
Package formatters — events.go
Package formatters — events.go
Package handlers — hook.go
Package handlers — hook.go
Package hooks provides a hook event dispatch system for the pasture protocol.
Package hooks provides a hook event dispatch system for the pasture protocol.
install
activation
Package activation defines the versioned native-activation contract that binds each generated component (harness/extension identity plus its published artifact bundle and runtime contract) to exactly one closed activation strategy.
Package activation defines the versioned native-activation contract that binds each generated component (harness/extension identity plus its published artifact bundle and runtime contract) to exactly one closed activation strategy.
apply
Package apply owns the typed request, result, error, and activator contracts plus concrete activation-strategy adapters.
Package apply owns the typed request, result, error, and activator contracts plus concrete activation-strategy adapters.
cell
Package cell defines the canonical harness/extension coordinate space shared by the Pasture installer and activation contract.
Package cell defines the canonical harness/extension coordinate space shared by the Pasture installer and activation contract.
export
Package export builds the immutable per-cell component archives and the component-set document that an aggregate release producer consumes.
Package export builds the immutable per-cell component archives and the component-set document that an aggregate release producer consumes.
fsatomic
Package fsatomic performs symlink-safe atomic file replacement for the installer's preference and confirmed-state files.
Package fsatomic performs symlink-safe atomic file replacement for the installer's preference and confirmed-state files.
host/claudecode
Package claudecode binds the immutable Claude Code target to the reviewed global native-manager contract and implements its ownership-safe controller.
Package claudecode binds the immutable Claude Code target to the reviewed global native-manager contract and implements its ownership-safe controller.
host/codex
Package codex binds the immutable Codex target to its reviewed global filesystem layout and factual pending-trust reporting.
Package codex binds the immutable Codex target to its reviewed global filesystem layout and factual pending-trust reporting.
host/opencode
Package opencode binds the generated OpenCode target to its documented global direct-discovery layout.
Package opencode binds the generated OpenCode target to its documented global direct-discovery layout.
inventory
Package inventory provides the global-installation view over the shared registry.
Package inventory provides the global-installation view over the shared registry.
preferences
Package preferences models the persisted installer choices under the existing Pasture config root (~/.config/pasture/config.yaml, install: section).
Package preferences models the persisted installer choices under the existing Pasture config root (~/.config/pasture/config.yaml, install: section).
registry
Package registry owns the first-shipped installation registry shared by global and project-local installation.
Package registry owns the first-shipped installation registry shared by global and project-local installation.
releasecatalog
Package releasecatalog selects and completely verifies immutable aggregate GitHub Releases.
Package releasecatalog selects and completely verifies immutable aggregate GitHub Releases.
selection
Package selection defines the transient effective-selection document that the installer TUI and Home Manager both hand to the apply engine.
Package selection defines the transient effective-selection document that the installer TUI and Home Manager both hand to the apply engine.
service
Package service is the application boundary shared by installer frontends.
Package service is the application boundary shared by installer frontends.
Code generated by codegen.
Code generated by codegen.
lifecycle
backend
Package backend maps a legalized consultation into canonical receipt evidence and the typed response expected by the native host.
Package backend maps a legalized consultation into canonical receipt evidence and the typed response expected by the native host.
context
Package context builds the Pasture-side context-disclosure projection: a bounded, canonical summary of committed lifecycle records, per-host chain summaries derived from committed links, and the metamodel coordinates present in the interpreted evidence.
Package context builds the Pasture-side context-disclosure projection: a bounded, canonical summary of committed lifecycle records, per-host chain summaries derived from committed links, and the metamodel coordinates present in the interpreted evidence.
frontend
Package frontend is the single generic lifecycle frontend skeleton.
Package frontend is the single generic lifecycle frontend skeleton.
frontend/claude
Package claude supplies the pinned Claude capture vocabulary as host data for the generic lifecycle frontend.
Package claude supplies the pinned Claude capture vocabulary as host data for the generic lifecycle frontend.
frontend/codex
Package codex supplies the pinned Codex 0.146.0 command-hook vocabulary as host data for the generic lifecycle frontend.
Package codex supplies the pinned Codex 0.146.0 command-hook vocabulary as host data for the generic lifecycle frontend.
frontend/opencode
Package opencode supplies the pinned OpenCode callback vocabulary as host data for the generic lifecycle frontend.
Package opencode supplies the pinned OpenCode callback vocabulary as host data for the generic lifecycle frontend.
gate
Package gate is the Pasture-side normative write gate: the closed set of durable lifecycle write classes, a constructor-owned Warrant, and Legalize as the sole warrant issuer.
Package gate is the Pasture-side normative write gate: the closed set of durable lifecycle write classes, a constructor-owned Warrant, and Legalize as the sole warrant issuer.
ingress/claude
Package claude captures Claude Code hook payloads without allowing host semantics to leak into target-neutral lifecycle packages.
Package claude captures Claude Code hook payloads without allowing host semantics to leak into target-neutral lifecycle packages.
ingress/codex
Package codex captures exact command-hook stdin bytes from the pinned Codex 0.146.0 CLI lifecycle contract.
Package codex captures exact command-hook stdin bytes from the pinned Codex 0.146.0 CLI lifecycle contract.
ingress/opencode
Package opencode captures callback objects from the pinned OpenCode plugin contract without treating the serialized object as a native wire stream.
Package opencode captures callback objects from the pinned OpenCode plugin contract without treating the serialized object as a native wire stream.
legalize
Package legalize classifies verified lifecycle events into pure semantic terminals.
Package legalize classifies verified lifecycle events into pure semantic terminals.
lineage
Package lineage derives read-side occurrence lineage edges from committed Level-2 lifecycle evidence.
Package lineage derives read-side occurrence lineage edges from committed Level-2 lifecycle evidence.
metamodel
Package metamodel is the generated, content-addressed lifecycle interpretation vocabulary (D1).
Package metamodel is the generated, content-addressed lifecycle interpretation vocabulary (D1).
middleend
Package middleend derives provider-independent lifecycle effects and host responses from verified lifecycle events.
Package middleend derives provider-independent lifecycle effects and host responses from verified lifecycle events.
model
Package model defines the target-neutral lifecycle journal contract.
Package model defines the target-neutral lifecycle journal contract.
nativeresponse
Package nativeresponse is the per-target emission backend for the lifecycle pipeline: it maps the provider-neutral, constructor-built backend.HostResponse into the exact native continuation bytes a host reads from a command-hook's standard output.
Package nativeresponse is the per-target emission backend for the lifecycle pipeline: it maps the provider-neutral, constructor-built backend.HostResponse into the exact native continuation bytes a host reads from a command-hook's standard output.
registration
Code generated by hostcontractgen.
Code generated by hostcontractgen.
waist
Package waist defines the target-independent lifecycle values between native harness frontends and Pasture's protocol stages.
Package waist defines the target-independent lifecycle values between native harness frontends and Pasture's protocol stages.
Package provadapter is Pasture's thin low-level adapter over the released Provenance global-journal surface (github.com/dayvidpham/provenance at dayvidpham/provenance#4/#5/#6, module pinned to main@ecc7663).
Package provadapter is Pasture's thin low-level adapter over the released Provenance global-journal surface (github.com/dayvidpham/provenance at dayvidpham/provenance#4/#5/#6, module pinned to main@ecc7663).
Package release provides version management, changelog generation, git helpers, and plugin registry operations for pasture-release.
Package release provides version management, changelog generation, git helpers, and plugin registry operations for pasture-release.
Package runtime defines Pasture's opaque, version-bounded runtime contracts: the only authority allowed to turn a protocol semantic operation, effect, or typed capability into native runtime behavior for a specific harness at a specific host version.
Package runtime defines Pasture's opaque, version-bounded runtime contracts: the only authority allowed to turn a protocol semantic operation, effect, or typed capability into native runtime behavior for a specific harness at a specific host version.
target
claudecode
Package claudecode publishes the pinned Claude Code native-output target descriptor: a stable target/component identity, one immutable, content- addressed artifact.Bundle per installable component (skills, agents, hooks), and the RuntimeContractID the target was compiled under.
Package claudecode publishes the pinned Claude Code native-output target descriptor: a stable target/component identity, one immutable, content- addressed artifact.Bundle per installable component (skills, agents, hooks), and the RuntimeContractID the target was compiled under.
codex
Package codex publishes the immutable Codex target descriptor consumed by installation.
Package codex publishes the immutable Codex target descriptor consumed by installation.
opencode
Package opencode publishes the immutable, independently installable OpenCode skills, agents, and lifecycle-hook artifacts.
Package opencode publishes the immutable, independently installable OpenCode skills, agents, and lifecycle-hook artifacts.
Package tasks — open_ro.go
Package tasks — open_ro.go
Package testutil provides shared testing utilities for the pasture test suite.
Package testutil provides shared testing utilities for the pasture test suite.
Package timeouts owns the ordered timeout hierarchy shared by SQLite, lifecycle ingress, and slice workflows.
Package timeouts owns the ordered timeout hierarchy shared by SQLite, lifecycle ingress, and slice workflows.
Package types defines internal enums and value types for the Pasture daemon and CLI.
Package types defines internal enums and value types for the Pasture daemon and CLI.

Jump to

Keyboard shortcuts

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