MCPcopy Create free account
hub / github.com/compozy/agh / bundleNetworkSettingsBundle

Function bundleNetworkSettingsBundle

internal/cli/bundle.go:461–516  ·  view source on GitHub ↗
(item BundleNetworkSettingsRecord)

Source from the content-addressed store, hash-verified

459}
460
461func bundleNetworkSettingsBundle(item BundleNetworkSettingsRecord) outputBundle {
462 return outputBundle{
463 jsonValue: item,
464 human: func() (string, error) {
465 return renderHumanBlocks(
466 renderHumanSection("Bundle Network Settings", []keyValue{
467 {
468 Label: "Configured Default",
469 Value: stringOrDash(item.ConfiguredDefaultChannel),
470 },
471 {Label: "Effective Default", Value: stringOrDash(item.EffectiveDefaultChannel)},
472 {Label: "Effective Source", Value: stringOrDash(item.EffectiveDefaultSource)},
473 }),
474 renderHumanTable(
475 "Declared Channels",
476 []string{
477 "Activation",
478 bridgeExtensionValue,
479 bundleBundleValue,
480 bundleProfileValue,
481 authoredContextWorkspaceValue,
482 bundleNameValue,
483 "Primary",
484 },
485 bundleDeclaredChannelRows(item.DeclaredChannels),
486 ),
487 ), nil
488 },
489 toon: func() (string, error) {
490 return renderHumanBlocks(
491 renderToonObject(
492 "bundle_network",
493 []string{"configured_default", "effective_default", "effective_source"},
494 []string{
495 item.ConfiguredDefaultChannel,
496 item.EffectiveDefaultChannel,
497 item.EffectiveDefaultSource,
498 },
499 ),
500 renderToonArray(
501 "declared_channels",
502 []string{
503 "activation",
504 bundleExtensionKey,
505 bundleBundleKey,
506 bundleProfileKey,
507 workspaceSkillSource,
508 automationNameKey,
509 "primary",
510 },
511 bundleDeclaredChannelRows(item.DeclaredChannels),
512 ),
513 ), nil
514 },
515 }
516}
517
518func bundleProfileNames(item BundleCatalogRecord) []string {

Callers 1

Calls 7

renderHumanBlocksFunction · 0.85
renderHumanSectionFunction · 0.85
stringOrDashFunction · 0.85
renderHumanTableFunction · 0.85
renderToonObjectFunction · 0.85
renderToonArrayFunction · 0.85

Tested by

no test coverage detected