Skip to main content

Crate harn_stdlib

Crate harn_stdlib 

Source
Expand description

Canonical embedded Harn standard library source catalog.

This crate intentionally contains only static source strings so runtime and static tooling crates can share the same stdlib modules without depending on each other.

Structs§

StdlibCliScript
Embedded .harn script that backs a CLI subcommand. Looked up by the harn-cli dispatch wedge (see harn#2293 epic and harn#2294 G1) so subcommands can ship in Harn instead of Rust.
StdlibEntrypointModule
StdlibPromptAsset
StdlibPublicFunction
StdlibSource

Constants§

CONNECTOR_EVENT_SCHEMAS_SOURCE
Canonical normalized connector event schemas, authored as Harn type declarations. This is the SOURCE OF TRUTH for the Rust event-payload structs in crates/harn-vm/src/triggers/event/schemas_generated.rs, which are generated from these declarations by harn connector-schema-codegen.
STDLIB_CLI_SCRIPTS
STDLIB_PROMPT_ASSETS
STDLIB_SOURCES

Functions§

entrypoint_modules
find_cli_script
Find an embedded CLI subcommand script by name. Returns the embedded source string when present, or None if no script with that name is registered in STDLIB_CLI_SCRIPTS.
get_stdlib_prompt_asset
get_stdlib_source
public_functions_for_module