Skip to main content

Module agent_pack

Module agent_pack 

Source
Expand description

AgenticWorker (dw-application) pack emission: designer-faithful sidecars and the store describe document. All output mirrors greentic-designer’s orchestrate::pack_via_packc / orchestrate::dw_publish byte-for-byte.

Structs§

AgenticWorkerSecretsPolicy
The secrets-policy.json document embedded in a published dw-application .gtpack.
DescribeMeta
Inputs for the store describe document. manifest_sha256 is the lowercase-hex SHA-256 of the FINAL .gtpack bytes (== artifactSha256).
SecretPolicyEntry
One requirement: the canonical SecretRequirement flattened with its share policy tag. Mirrors SecretPolicyEntry in the designer’s store::secrets_policy.

Enums§

SecretSharePolicy
Mirror of greentic-designer store::secrets_policy::SecretSharePolicy.

Functions§

agentic_worker_describe
Author a describe-v2 document for an Agentic Worker. Byte-faithful to greentic-designer orchestrate::dw_publish::agentic_worker_describe.
dw_agents_sidecar_bytes
Serialize the agents: map to the dw-agents.json sidecar bytes (bare { "<agent_id>": <AgentConfig> } JSON). Returns None when the map is empty so non-agent packs produce byte-identical archives.
secrets_policy_sidecar_bytes
Build the secrets-policy.json sidecar bytes from the canonical secret requirements the pack declares. All entries are assigned the byo-required policy — no publisher value ever ships. Returns None when requirements is empty so packs with no secrets produce a byte-identical archive.