3 releases
Uses new Rust 2024
| new 0.4.7 | Feb 4, 2026 |
|---|---|
| 0.4.6 | Feb 3, 2026 |
| 0.4.2 | Jan 21, 2026 |
#273 in Compression
83KB
2.5K
SLoC
greentic-cards2pack
Generate Greentic pack workspaces and .gtpack archives from a directory of Adaptive Card JSON files.
This CLI scans cards, groups them into flows, generates flow files, and packages everything into a Greentic pack in a single command.
Quick Start
- Install:
cargo install cargo-binstall
cargo binstall greentic-cards2pack
You also need:
cargo binstall greentic-flow greentic-pack
- Run:
greentic-cards2pack generate \
--cards ./cards \
--out ./packs/hr-demo \
--name hr-demo
What You Get
--out becomes a full pack workspace:
./packs/hr-demo/
pack.yaml
flows/main.ygtc
assets/cards/...
dist/hr-demo.gtpack
.cards2pack/manifest.json
The generated flow uses the Adaptive Card component:
oci://ghcr.io/greentic-ai/components/component-adaptive-card:latest.
Common Warnings
-
ignored_file: A JSON file under--cardsis not an Adaptive Card (missingtype: "AdaptiveCard").- Safe to ignore if those JSON files are supporting data.
- If it should be a card, fix the file so it has
type: "AdaptiveCard".
-
missing_target: A card action references a step/cardId that does not exist in the flow.- In non-strict mode, a stub node is created.
- In strict mode, this is an error and generation fails.
- Fix by ensuring the target card exists or updating the action data.
Tips
- Use
--strictto enforce consistent metadata and required targets. - The
.cards2pack/manifest.jsonfile records the scan results and warnings.
Dependencies
~7–12MB
~216K SLoC