Documentation
¶
Index ¶
- Constants
- func ApprovalTokenPayload(token ApprovalToken) ([]byte, error)
- func ContractIntConstraint(value int64) *int64
- func ContractStringConstraint(value string) *string
- func DecodeContractOutcomeEnvelope(data []byte) (kind, name string, payload json.RawMessage, err error)
- func DecodeJSONObject(data []byte) (map[string]json.RawMessage, error)
- func EncodeContractCompositeKey(components ...[]byte) (string, error)
- func EncodeContractKeyComponent(value any, typeExpression string) ([]byte, error)
- func MarshalContractOutcomeVariant(kind, name string, value any, typeExpression string) ([]byte, error)
- func MarshalContractValue(value any, typeExpression string) ([]byte, error)
- func UnmarshalContractValue(data []byte, target any, typeExpression string) error
- func UnmarshalContractValueWithNamed(data []byte, target any, typeExpression string, named ContractNamedDecoder) error
- func ValidateApprovalToken(token ApprovalToken) error
- func ValidateContractRecord(fields map[string]any, fieldTypes map[string]string, ...) error
- func ValidateContractValue(value any, typeExpression string, constraints ContractConstraints) error
- type APIDesc
- type AppMetadata
- type ApprovalToken
- type CloudProvider
- type ContractConstraints
- type ContractNamedDecoder
- type ContractValidationError
- type Date
- type DateTime
- type Decimal
- type Duration
- type Environment
- type EnvironmentType
- type ExecutionReceipt
- type Int
- type Invocation
- type JSON
- type Nullable
- type Optional
- type PathParam
- type PathParams
- type Problem
- type Registry
- type RelativePath
- type Request
- type RequestType
- type SecretRef
- type Set
- type Size
- type URL
- type UUID
- type Unit
Constants ¶
const ( EnvProduction = shared.EnvProduction EnvDevelopment = shared.EnvDevelopment EnvEphemeral = shared.EnvEphemeral EnvLocal = shared.EnvLocal EnvTest = shared.EnvTest CloudAWS = shared.CloudAWS CloudGCP = shared.CloudGCP CloudAzure = shared.CloudAzure CloudLocal = shared.CloudLocal None = shared.None APICall = shared.APICall InternalCall = shared.InternalCall RawAPICall = shared.RawAPICall )
Variables ¶
This section is empty.
Functions ¶
func ApprovalTokenPayload ¶ added in v0.3.2
func ApprovalTokenPayload(token ApprovalToken) ([]byte, error)
ApprovalTokenPayload returns the canonical bytes an approval service signs.
func ContractIntConstraint ¶ added in v0.3.2
func ContractStringConstraint ¶ added in v0.3.2
func DecodeContractOutcomeEnvelope ¶ added in v0.3.2
func DecodeContractOutcomeEnvelope(data []byte) (kind, name string, payload json.RawMessage, err error)
DecodeContractOutcomeEnvelope validates a closed durable outcome envelope and returns a defensive copy of its schema-directed payload.
func DecodeJSONObject ¶ added in v0.3.2
func DecodeJSONObject(data []byte) (map[string]json.RawMessage, error)
DecodeJSONObject is the strict object decoder used by generated contract records.
func EncodeContractCompositeKey ¶ added in v0.3.2
func EncodeContractKeyComponent ¶ added in v0.3.2
EncodeContractKeyComponent preserves the schema type and presence state of one idempotency or concurrency-key component.
func MarshalContractOutcomeVariant ¶ added in v0.3.2
func MarshalContractOutcomeVariant(kind, name string, value any, typeExpression string) ([]byte, error)
MarshalContractOutcomeVariant encodes one closed operation outcome using a stable envelope suitable for durable storage and wait delivery.
func MarshalContractValue ¶ added in v0.3.2
MarshalContractValue applies the schema-directed contract JSON wire representation. Generated contract packages use it for record fields so exact integers, nested collections, and sets never fall back to Go's lossy/default encoding choices.
func UnmarshalContractValue ¶ added in v0.3.2
UnmarshalContractValue decodes one schema-directed contract value into target. Target must be a non-nil pointer.
func UnmarshalContractValueWithNamed ¶ added in v0.3.2
func UnmarshalContractValueWithNamed(data []byte, target any, typeExpression string, named ContractNamedDecoder) error
func ValidateApprovalToken ¶ added in v0.3.2
func ValidateApprovalToken(token ApprovalToken) error
ValidateApprovalToken enforces the current scenery.approval-token shape and signature encoding before a caller attempts trust-root verification.
func ValidateContractRecord ¶ added in v0.3.2
func ValidateContractRecord(fields map[string]any, fieldTypes map[string]string, encodedProgram, code, message, path string) error
ValidateContractRecord evaluates a compiler-validated, data-only expression over generated record fields. The public runtime deliberately does not include the HCL compiler; generated packages carry the compiled expression.
func ValidateContractValue ¶ added in v0.3.2
func ValidateContractValue(value any, typeExpression string, constraints ContractConstraints) error
ValidateContractValue enforces one field's contract constraints against the generated Go representation.
Types ¶
type ApprovalToken ¶ added in v0.3.2
type ApprovalToken = contract.ApprovalToken
ApprovalToken is a detached, plan-bound authorization for explicitly named risk scopes. Signature is excluded from ApprovalTokenPayload.
func NewApprovalToken ¶ added in v0.3.2
func NewApprovalToken(planID, caller string, riskScopes []string, expiresAt time.Time) ApprovalToken
NewApprovalToken creates the current detached approval shape. The caller signs ApprovalTokenPayload and then fills Signature.
type CloudProvider ¶
type CloudProvider = shared.CloudProvider
type ContractConstraints ¶ added in v0.3.2
type ContractConstraints = contract.ContractConstraints
ContractConstraints is emitted by generated contract packages. Pointer fields distinguish an absent limit from an explicit zero limit.
type ContractNamedDecoder ¶ added in v0.3.2
type ContractNamedDecoder = contract.ContractNamedDecoder
ContractNamedDecoder lets a generated package provide codecs for named tagged unions while the shared runtime continues to recurse through optional, nullable, collection, map, and tuple wrappers.
type ContractValidationError ¶ added in v0.3.2
type ContractValidationError = contract.ContractValidationError
ContractValidationError is a declared record-validation failure. Code, message, and path come from the named validation block in the contract.
type DateTime ¶ added in v0.3.2
func ParseDateTime ¶ added in v0.3.2
type Decimal ¶ added in v0.3.2
Decimal preserves an exact coefficient and base-10 scale.
func ParseDecimal ¶ added in v0.3.2
type Duration ¶ added in v0.3.2
func ParseDuration ¶ added in v0.3.2
type Environment ¶
type Environment = shared.Environment
type EnvironmentType ¶
type EnvironmentType = shared.EnvironmentType
type ExecutionReceipt ¶ added in v0.3.2
type ExecutionReceipt = runtimeapi.ExecutionReceipt
type Invocation ¶ added in v0.3.2
type Invocation = runtimeapi.Invocation
func InvocationFromContext ¶ added in v0.3.2
func InvocationFromContext(ctx context.Context) (Invocation, bool)
type JSON ¶ added in v0.3.2
type JSON = json.RawMessage
type Nullable ¶ added in v0.3.2
Nullable distinguishes a present null from a present concrete value.
type PathParams ¶
type PathParams = shared.PathParams
type Registry ¶ added in v0.3.2
type Registry = runtimeapi.Registry
Registry is the generated-adapter registration boundary.
type RelativePath ¶ added in v0.3.2
type RelativePath = contract.RelativePath
func ParseRelativePath ¶ added in v0.3.2
func ParseRelativePath(value string) (RelativePath, error)
type RequestType ¶
type RequestType = shared.RequestType
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
scenery
command
|
|
|
Package datasource defines stable capability interfaces injected into generated service constructors.
|
Package datasource defines stable capability interfaces injected into generated service constructors. |
|
internal
|
|
|
appwalk
Package appwalk holds the shared skip policy for walking scenery app trees.
|
Package appwalk holds the shared skip policy for walking scenery app trees. |
|
assistantadapter/eve
Package eve contains the developer-only adapter for the pinned Eve filesystem runtime.
|
Package eve contains the developer-only adapter for the pinned Eve filesystem runtime. |
|
assistantapi
Package assistantapi owns Scenery's provider-neutral public assistant HTTP contracts.
|
Package assistantapi owns Scenery's provider-neutral public assistant HTTP contracts. |
|
assistantcontrol
Package assistantcontrol owns the provider-neutral private protocol between Scenery's Go runtime and a managed assistant helper.
|
Package assistantcontrol owns the provider-neutral private protocol between Scenery's Go runtime and a managed assistant helper. |
|
assistantruntime
Package assistantruntime owns the provider-neutral lifecycle and helper boundary for Scenery assistants.
|
Package assistantruntime owns the provider-neutral lifecycle and helper boundary for Scenery assistants. |
|
assistanttoken
Package assistanttoken owns opaque public assistant handles, approval tokens, and anonymous initiator cookies.
|
Package assistanttoken owns opaque public assistant handles, approval tokens, and anonymous initiator cookies. |
|
atomicfile
Package atomicfile is the single implementation of write-temp-then-rename file replacement.
|
Package atomicfile is the single implementation of write-temp-then-rename file replacement. |
|
cmd/gentoolchain
command
|
|
|
compiler
Package compiler owns source loading, validation, and immutable graph results.
|
Package compiler owns source loading, validation, and immutable graph results. |
|
deploydiag
Package deploydiag builds the deploy diagnostics report behind `scenery deploy status` and `scenery doctor`: it turns one snapshot of the public edge (privileged helper, Caddy edge, deploy targets) plus injectable network probes into an ordered list of ok/warn/error/skipped checks.
|
Package deploydiag builds the deploy diagnostics report behind `scenery deploy status` and `scenery doctor`: it turns one snapshot of the public edge (privileged helper, Caddy edge, deploy targets) plus injectable network probes into an ordered list of ok/warn/error/skipped checks. |
|
deployplan
Package deployplan owns immutable deployment plans, provider planning, and crash-safe application of a compiler-resolved deployment projection.
|
Package deployplan owns immutable deployment plans, provider planning, and crash-safe application of a compiler-resolved deployment projection. |
|
desktop
Package desktop owns the Tauri-specific project, command, and artifact contract used by Scenery's CLI orchestration.
|
Package desktop owns the Tauri-specific project, command, and artifact contract used by Scenery's CLI orchestration. |
|
doctor
Package doctor implements the scenery doctor check engine: host, resource, dependency, storage, and app readiness probes that produce stable check IDs, statuses, severities, and messages.
|
Package doctor implements the scenery doctor check engine: host, resource, dependency, storage, and app readiness probes that produce stable check IDs, statuses, severities, and messages. |
|
machine
Package machine owns Scenery's current cross-process CLI envelope shapes.
|
Package machine owns Scenery's current cross-process CLI envelope shapes. |
|
mcpcontract
Package mcpcontract owns Scenery's provider-neutral MCP capability manifest and the wire values exchanged across the private gateway dispatch boundary.
|
Package mcpcontract owns Scenery's provider-neutral MCP capability manifest and the wire values exchanged across the private gateway dispatch boundary. |
|
mcpfederation
Package mcpfederation connects Scenery-owned MCP connections to remote Streamable HTTP servers.
|
Package mcpfederation connects Scenery-owned MCP connections to remote Streamable HTTP servers. |
|
mcpgateway
Package mcpgateway exposes a private, provider-neutral MCP gateway.
|
Package mcpgateway exposes a private, provider-neutral MCP gateway. |
|
mcpprojection
Package mcpprojection converts the canonical expanded Scenery graph into the provider-neutral MCP capability manifest.
|
Package mcpprojection converts the canonical expanded Scenery graph into the provider-neutral MCP capability manifest. |
|
netprobe
Package netprobe is the single implementation of local TCP probing: whether a listener currently accepts connections at an address, and whether an address is free to bind.
|
Package netprobe is the single implementation of local TCP probing: whether a listener currently accepts connections at an address, and whether an address is free to bind. |
|
postgresname
Package postgresname derives PostgreSQL-safe database, schema, and env names without pulling the PostgreSQL driver into configuration-only packages.
|
Package postgresname derives PostgreSQL-safe database, schema, and env names without pulling the PostgreSQL driver into configuration-only packages. |
|
runtimeassets
Package runtimeassets provides deterministic, verified packaging for the child runtimes shipped with a Scenery application.
|
Package runtimeassets provides deterministic, verified packaging for the child runtimes shipped with a Scenery application. |
|
testlimit
Package testlimit caps scheduler parallelism for test binaries.
|
Package testlimit caps scheduler parallelism for test binaries. |
|
testsuite
Package testsuite executes every repository test from content-addressed Go test binaries.
|
Package testsuite executes every repository test from content-addressed Go test binaries. |
|
toolchain
Code generated by go generate ./internal/toolchain; DO NOT EDIT.
|
Code generated by go generate ./internal/toolchain; DO NOT EDIT. |
|
validation
Package validation resolves app-configured validation profiles into executable plans and runs those plans.
|
Package validation resolves app-configured validation profiles into executable plans and runs those plans. |
|
victoria
Package victoria manages the local VictoriaMetrics/VictoriaLogs/VictoriaTraces observability substrate: pinned component specs, managed binary resolution, component process lifecycle, readiness probing, and agent substrate payloads.
|
Package victoria manages the local VictoriaMetrics/VictoriaLogs/VictoriaTraces observability substrate: pinned component specs, managed binary resolution, component process lifecycle, readiness probing, and agent substrate payloads. |
|
Package library loads and hot-swaps Scenery c-shared library artifacts.
|
Package library loads and hot-swaps Scenery c-shared library artifacts. |
|
Package object defines the object-store capability used by generated constructor injection.
|
Package object defines the object-store capability used by generated constructor injection. |
|
scripts
|
|
|
testsuite
command
|
|
|
Package ui embeds the TypeScript UI catalog shipped by the Scenery binary.
|
Package ui embeds the TypeScript UI catalog shipped by the Scenery binary. |