Expand description
End-to-end bundle setup engine for the Greentic platform.
Provides pack discovery, QA-driven configuration, secrets persistence, and bundle lifecycle management as a library crate.
Re-exports§
pub use bundle_source::BundleSource;pub use engine::SetupEngine;pub use plan::SetupMode;pub use plan::SetupPlan;pub use plan::SetupStep;pub use plan::SetupStepKind;
Modules§
- admin
- Admin API types and configuration for secure bundle lifecycle management.
- answers_
crypto - bundle
- Bundle directory structure creation and management.
- bundle_
source - Bundle source resolution — parse and resolve bundle references from various protocols.
- capabilities
- Capability validation and auto-upgrade for provider gtpacks.
- card_
setup - Adaptive Card setup flow types.
- cli_
args - CLI argument definitions for greentic-setup.
- cli_
commands - CLI command implementations for greentic-setup.
- cli_
helpers - CLI helper functions for greentic-setup.
- cli_
i18n - CLI i18n support for greentic-setup.
- config_
envelope - Provider configuration envelope — CBOR-serialized config with provenance.
- deployment_
targets - discovery
- Pack discovery — scans a bundle directory for
.gtpackfiles across provider domains (messaging, events, oauth) and extracts metadata. - engine
- Setup engine — orchestrates plan building and execution for create/update/remove workflows.
- flow
- QAFlowSpec builder for multi-step setup with conditional jumps.
- gtbundle
- .gtbundle archive format support.
- plan
- Setup plan types — mode, steps, and metadata for bundle lifecycle operations.
- platform_
setup - Bundle-level platform setup types and static routes policy handling.
- qa
- QA-driven configuration: FormSpec bridge, wizard prompts, answers persistence, and setup input loading.
- reload
- Hot reload types and diffing for bundle changes.
- secret_
name - Normalize secret names to a store-friendly canonical form.
- secrets
- Dev secrets store management for bundle setup.
- setup_
input - Load and validate user-provided setup answers from JSON/YAML files.
- setup_
to_ formspec - Converts legacy
setup.yaml(SetupSpec) intoqa_spec::FormSpec. - webhook
- Webhook registration for messaging providers during setup.
Functions§
- canonical_
secret_ uri - Build a canonical secret URI:
secrets://{env}/{tenant}/{team}/{provider}/{key}. - resolve_
env - Resolve the effective environment string.
- version
- Returns the crate version.