Skip to main content

Module bundle

Module bundle 

Source
Expand description

Bundle directory structure creation and management.

Handles creating the demo bundle scaffold, writing configuration files, and managing tenant/team directories.

Structs§

BundleReference
One bundle dependency entry to register in bundle.yaml and bundle.lock.json.

Enums§

BundleReferenceKind
The bundle metadata list a pack reference should be written into.

Constants§

BUNDLE_LOCK_FILE
BUNDLE_WORKSPACE_MARKER
LEGACY_BUNDLE_MARKER

Functions§

create_demo_bundle_structure
Create the standard demo bundle directory structure.
discover_tenants
Discover tenants inside the bundle.
ensure_bundle_metadata
Ensure normalized bundle metadata files exist.
find_provider_pack_path
Locate a provider’s .gtpack file in the bundle by provider_id stem.
gmap_path
Compute the gmap file path for a tenant/team in a bundle.
is_bundle_root
load_provider_registry
Read and parse the provider registry JSON from a bundle.
register_bundle_references
Register pack references in both bundle.yaml and bundle.lock.json.
resolved_manifest_filename
Compute the resolved manifest filename for a tenant/team.
validate_bundle_exists
Validate that a bundle directory exists and has the expected marker file.
write_if_missing
Write a file only if it doesn’t already exist.
write_provider_registry
Write the provider registry JSON to a bundle.